:root {
  --navy: #0b1f4d;
  --navy-2: #12306b;
  --blue: #1b5d89;
  --gold: #f2b632;
  --gold-2: #f2d77d;
  --gold-dark: #a87512;
  --tfe-card-gold-border: #d4af37;
  --tfe-premium-card-shadow: 0 18px 38px rgba(7, 27, 77, 0.18);
  --tfe-button-amber: #d9911b;
  --tfe-button-amber-hover: #c98214;
  --tfe-button-amber-pressed: #ad6d0e;
  --tfe-button-amber-border: #a96f10;
  --tfe-button-navy: linear-gradient(180deg, #123d73 0%, #08285a 100%);
  --tfe-button-navy-hover: linear-gradient(180deg, #174981 0%, #0a2f67 100%);
  --tfe-button-navy-pressed: linear-gradient(180deg, #0b2f62 0%, #061f47 100%);
  --tfe-button-gold-border: #d89a13;
  --tfe-button-gold-highlight: rgba(255, 220, 128, 0.32);
  --tfe-button-focus: rgba(242, 182, 50, 0.44);
  --ink: #132238;
  --muted: #64748b;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --good: #0f8a61;
  --warn: #b7791f;
  --bad: #ba3d3d;
  --shadow: 0 18px 45px rgba(7, 27, 51, 0.14);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Tutor Debrief AI-assisted evidence interpreter - active */
.tutor-debrief-launch {
  border: 1px solid rgba(238, 177, 52, 0.92) !important;
  box-shadow: 0 14px 30px rgba(3, 21, 52, 0.2);
}

.tutor-debrief-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.tutor-debrief-general,
.tutor-debrief-card {
  border: 1px solid rgba(218, 166, 62, 0.62);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(6, 24, 58, 0.12);
}

.tutor-debrief-controls label,
.tutor-debrief-general label,
.tutor-debrief-question {
  display: grid;
  gap: 8px;
  color: #10234a;
  font-weight: 800;
}

.tutor-debrief-page :is(select, textarea) {
  width: 100%;
  border: 1px solid rgba(12, 37, 80, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #10234a;
  font: inherit;
}

.tutor-debrief-page select {
  min-height: 44px;
  padding: 10px 12px;
}

.tutor-debrief-page textarea {
  min-height: 118px;
  padding: 12px 14px;
  resize: vertical;
}

.tutor-debrief-page :is(select, textarea):focus-visible {
  outline: 3px solid rgba(224, 170, 56, 0.35);
  border-color: #d9a02e;
}

.tutor-debrief-learners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.tutor-debrief-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tutor-debrief-card.is-expanded {
  grid-column: 1 / -1;
  border-color: rgba(218, 166, 62, 0.82);
  box-shadow: 0 24px 56px rgba(6, 24, 58, 0.16);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tutor-debrief-card.is-collapsed {
  cursor: pointer;
  gap: 0;
  padding: 14px 16px;
  border-color: rgba(218, 166, 62, 0.38);
  box-shadow: 0 10px 24px rgba(6, 24, 58, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  opacity: 0.94;
}

.tutor-debrief-card.is-collapsed:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 166, 62, 0.88);
  box-shadow: 0 18px 38px rgba(6, 24, 58, 0.14);
}

.tutor-debrief-card-detail {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.tutor-debrief-card-detail[hidden] {
  display: none;
}

.tutor-debrief-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(224, 170, 56, 0.42);
}

.tutor-debrief-card-summary {
  cursor: pointer;
}

.tutor-debrief-learner-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.tutor-debrief-learner-lockup > div {
  min-width: 0;
}

.tutor-debrief-learner-lockup .learner-avatar.tutor-intelligence {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(214, 156, 37, 0.88);
  border-radius: 50%;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 255, 0.88)),
    #ffffff;
  color: #071b42;
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.16), 0 0 0 4px rgba(255, 232, 168, 0.16);
  font-size: 1.05rem;
  font-weight: 950;
}

span.learner-avatar.tutor-intelligence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.tutor-debrief-card.is-expanded .tutor-debrief-card-summary {
  position: relative;
  align-items: center;
  padding: 22px 24px 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.08), transparent 44%),
    linear-gradient(135deg, #061a3f 0%, #082b63 58%, #0b3672 100%);
  border-bottom: 3px solid #d69c25;
}

.tutor-debrief-card.is-expanded .tutor-debrief-card-summary::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -3px;
  height: 1px;
  background: rgba(255, 232, 168, 0.9);
}

.tutor-debrief-card.is-expanded .tutor-debrief-card-summary .eyebrow {
  color: rgba(255, 232, 168, 0.9);
}

.tutor-debrief-card.is-expanded .tutor-debrief-card-summary h4 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.tutor-debrief-card.is-expanded .learner-avatar.tutor-intelligence {
  border-color: #d69c25;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 232, 168, 0.18);
}

.tutor-debrief-card.is-collapsed .tutor-debrief-card-summary {
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
}

.tutor-debrief-card.is-collapsed .tutor-debrief-learner-lockup {
  gap: 11px;
}

.tutor-debrief-card.is-collapsed .learner-avatar.tutor-intelligence {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-width: 1px;
  box-shadow: 0 8px 16px rgba(7, 27, 77, 0.1);
  font-size: 0.88rem;
}

.tutor-debrief-compact-reason {
  max-width: 56rem;
  margin: 6px 0 0;
  color: #40516f;
  font-size: 0.93rem;
  line-height: 1.45;
}

.tutor-debrief-card.is-expanded .tutor-debrief-compact-reason {
  max-width: 68rem;
  color: rgba(255, 255, 255, 0.84);
}

.tutor-debrief-card.is-collapsed .tutor-debrief-compact-reason {
  display: -webkit-box;
  overflow: hidden;
  color: #5a6982;
  font-size: 0.86rem;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.tutor-debrief-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.tutor-debrief-header-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(214, 156, 37, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #071b42;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tutor-debrief-card.is-expanded .tutor-debrief-header-badge,
.tutor-debrief-card.is-expanded .tutor-debrief-status {
  border-color: rgba(255, 215, 128, 0.62);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tutor-debrief-card.is-collapsed .tutor-debrief-header-badge {
  display: none;
}

.tutor-debrief-expand-button {
  min-height: 36px !important;
  padding: 8px 15px !important;
  border: 1px solid rgba(214, 156, 37, 0.82) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  color: #071b42 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08) !important;
}

.tutor-debrief-card.is-expanded .tutor-debrief-expand-button {
  border-color: rgba(255, 215, 128, 0.9) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  color: #071b42 !important;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.16) !important;
}

@media (max-width: 680px) {
  .tutor-debrief-card.is-expanded .tutor-debrief-card-summary {
    align-items: flex-start;
  }

  .tutor-debrief-learner-lockup {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tutor-debrief-learner-lockup .learner-avatar.tutor-intelligence {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .tutor-debrief-summary-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

.tutor-debrief-card h4 {
  margin: 2px 0 0;
  color: #071b42;
  font-size: 1.25rem;
}

.tutor-debrief-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.tutor-debrief-status.stable {
  background: #e8f7ed;
  color: #116733;
  border-color: #bde7c9;
}

.tutor-debrief-status.monitor {
  background: #fff4d6;
  color: #8a5a02;
  border-color: #f1cb72;
}

.tutor-debrief-status.priority {
  background: #ffe8d7;
  color: #9a4810;
  border-color: #efb081;
}

.tutor-debrief-status.urgent {
  background: #ffe5e8;
  color: #9d1730;
  border-color: #ef9aa8;
}

.tutor-debrief-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.tutor-debrief-evidence-grid section {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(12, 37, 80, 0.1);
  background: #fff;
}

.tutor-debrief-evidence-grid span,
.tutor-debrief-question span,
.tutor-debrief-general label span {
  color: #5d6d86;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tutor-debrief-evidence-grid p {
  margin: 4px 0 0;
  color: #162b55;
  line-height: 1.45;
}

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

.tutor-debrief-controls fieldset {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(224, 170, 56, 0.45);
  border-radius: 12px;
}

.tutor-debrief-controls legend {
  padding: 0 6px;
  color: #10234a;
  font-weight: 900;
}

.tutor-debrief-controls fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f5f8fd;
  font-size: 0.86rem;
}

.tutor-debrief-interview {
  display: grid;
  gap: 14px;
}

.tutor-intelligence-question-list {
  display: grid;
  gap: 12px;
}

.tutor-intelligence-question {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(12, 37, 80, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.08);
}

.tutor-intelligence-question.risk {
  border-color: rgba(186, 61, 61, 0.28);
  border-left: 4px solid #ba3d3d;
}

.tutor-intelligence-question.positive {
  border-color: rgba(15, 138, 97, 0.28);
  border-left: 4px solid #0f8a61;
}

.tutor-intelligence-question.teaching,
.tutor-intelligence-question.open {
  border-left: 4px solid #d69c25;
}

.tutor-intelligence-question-head {
  display: grid;
  gap: 6px;
}

.tutor-intelligence-question-head span {
  color: #d69c25;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutor-intelligence-question-head strong {
  color: #071b42;
  font-size: 1rem;
  line-height: 1.35;
}

.tutor-intelligence-light-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tutor-intelligence-light-actions label,
.tutor-intelligence-light-actions .tutor-intelligence-dictate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(214, 156, 37, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #071b42;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.tutor-intelligence-light-actions label:hover,
.tutor-intelligence-light-actions label:focus-within,
.tutor-intelligence-light-actions .tutor-intelligence-dictate-button:hover,
.tutor-intelligence-light-actions .tutor-intelligence-dictate-button:focus-visible {
  border-color: #d69c25;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.13), 0 0 0 3px rgba(214, 156, 37, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.tutor-intelligence-light-actions input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #d69c25;
}

.tutor-intelligence-light-actions label:has(input:checked) {
  border-color: #d69c25;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.2), rgba(214, 156, 37, 0.06)),
    linear-gradient(135deg, #071b42, #0b2f6f);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.18), 0 0 0 3px rgba(214, 156, 37, 0.14);
}

.tutor-intelligence-light-actions .tutor-intelligence-dictate-button.is-listening {
  border-color: #d69c25;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.22), rgba(214, 156, 37, 0.06)),
    linear-gradient(135deg, #071b42, #0b2f6f);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.18), 0 0 0 4px rgba(214, 156, 37, 0.16);
}

.tutor-intelligence-light-actions .tutor-intelligence-dictate-button.is-unavailable {
  border-color: rgba(186, 61, 61, 0.38);
  background: #fff7f7;
  color: #8f2424;
}

.tutor-intelligence-dictation-status {
  align-self: center;
  min-height: 1.2em;
  color: #53637f;
  font-size: 0.84rem;
  font-weight: 850;
}

.tutor-intelligence-light-actions .tutor-intelligence-dictate-button.is-listening + .tutor-intelligence-dictation-status {
  color: #116733;
}

.tutor-debrief-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.tutor-debrief-choice-grid fieldset {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(12, 37, 80, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.tutor-debrief-choice-grid legend {
  padding: 0 6px;
  color: #071b42;
  font-weight: 900;
}

.tutor-debrief-choice-grid legend small {
  display: block;
  margin-top: 2px;
  color: #60708c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tutor-debrief-choice-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #152b55;
  background: #fff;
  border: 1px solid rgba(12, 37, 80, 0.08);
  font-weight: 750;
  line-height: 1.3;
}

.tutor-debrief-choice-grid input {
  margin-top: 3px;
  accent-color: #0f8a61;
}

.tutor-debrief-dictation textarea {
  min-height: 150px;
  border-color: rgba(224, 170, 56, 0.38);
  box-shadow: inset 0 1px 0 rgba(224, 170, 56, 0.08);
}

.tutor-debrief-interpretation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tutor-debrief-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(218, 166, 62, 0.58);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 28px rgba(6, 24, 58, 0.08);
}

.tutor-debrief-panel > span {
  color: #071b42;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutor-debrief-panel p {
  margin: 0;
  color: #213758;
  line-height: 1.55;
  white-space: pre-wrap;
}

.tutor-debrief-panel textarea {
  min-height: 260px;
  border-color: rgba(12, 37, 80, 0.14);
  line-height: 1.5;
}

.tutor-debrief-confidence {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef7f2;
  color: #116733;
}

.tutor-debrief-confidence strong {
  color: #116733;
}

.tutor-debrief-confidence p {
  color: #335d4a;
  font-size: 0.86rem;
}

.tutor-debrief-card-actions .danger-lite {
  border-color: rgba(186, 61, 61, 0.38);
  color: #8f2032;
  background: #fff8f8;
}

.tutor-debrief-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tutor-debrief-saved,
.tutor-debrief-message {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f7ed;
  color: #116733;
  font-weight: 800;
}

.tutor-debrief-message {
  justify-self: start;
  margin: 0;
}

.tutor-debrief-propagation-checklist {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(214, 156, 37, 0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.1);
}

.tutor-debrief-propagation-checklist header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tutor-debrief-propagation-checklist header span,
.tutor-debrief-propagation-checklist li strong {
  color: #071b42;
  font-weight: 900;
}

.tutor-debrief-propagation-checklist header span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.tutor-debrief-propagation-checklist ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutor-debrief-propagation-checklist li {
  display: grid;
  grid-template-columns: auto minmax(150px, 0.8fr) 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.tutor-debrief-propagation-checklist li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8f7ed;
  color: #116733;
  font-weight: 950;
}

.tutor-debrief-propagation-checklist li.no_update span {
  width: auto;
  padding: 0 8px;
  background: #fff6dd;
  color: #7a5312;
  font-size: 0.72rem;
  white-space: nowrap;
}

.tutor-debrief-propagation-checklist li em {
  color: #475975;
  font-style: normal;
  line-height: 1.35;
}

.tutor-debrief-general {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.tutor-debrief-general h4 {
  margin: 2px 0 6px;
  color: #071b42;
}

.tutor-debrief-general-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

@media (max-width: 820px) {
  .tutor-debrief-controls {
    grid-template-columns: 1fr;
  }

  .tutor-debrief-interpretation {
    grid-template-columns: 1fr;
  }
}

.tfe-premium-card {
  border: 1px solid var(--tfe-card-gold-border);
  box-shadow: var(--tfe-premium-card-shadow);
}

/* Tutor Evidence Interpreter ILP history - active */
.live-ilp-dashboard .live-ilp-evidence-history {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(218, 166, 62, 0.62);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.12);
}

.live-ilp-dashboard .live-ilp-evidence-history .live-ilp-section-heading {
  margin: 0;
}

.live-ilp-dashboard .live-ilp-evidence-history .live-ilp-section-heading span {
  color: #d69c25;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-ilp-evidence-history-list {
  display: grid;
  gap: 12px;
}

.live-ilp-evidence-history-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(12, 37, 80, 0.12);
  border-left: 4px solid #d69c25;
  border-radius: 14px;
  background: #fff;
}

.live-ilp-evidence-history-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.live-ilp-evidence-history-card span {
  color: #071b42;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-ilp-evidence-history-card strong {
  color: #10234a;
}

.live-ilp-evidence-history-card p {
  margin: 0;
  color: #213758;
  line-height: 1.5;
  white-space: pre-wrap;
}

.live-ilp-evidence-history-card .live-ilp-evidence-meta {
  color: #116733;
  font-weight: 850;
}

.live-ilp-evidence-history-card details {
  padding-top: 4px;
}

.live-ilp-evidence-history-card summary {
  cursor: pointer;
  color: #0b1f4d;
  font-weight: 900;
}

.parent-tutor-intelligence-card,
.school-tutor-intelligence-note,
.management-tutor-intelligence-summary {
  border: 1px solid rgba(214, 156, 37, 0.52);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.1);
}

.parent-tutor-intelligence-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.parent-tutor-intelligence-card header,
.management-tutor-intelligence-summary header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.parent-tutor-intelligence-card header span,
.school-tutor-intelligence-note strong,
.management-tutor-intelligence-summary .eyebrow {
  color: #d69c25;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-tutor-intelligence-card header strong,
.management-tutor-intelligence-summary h4 {
  color: #071b42;
  font-weight: 950;
}

.parent-tutor-intelligence-card p,
.school-tutor-intelligence-note p,
.management-tutor-intelligence-summary p {
  margin: 0;
  color: #213758;
  line-height: 1.5;
}

.parent-tutor-intelligence-card small,
.school-tutor-intelligence-note span {
  color: #116733;
  font-weight: 850;
}

.school-tutor-intelligence-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 4px solid #d69c25;
}

.management-tutor-intelligence-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.management-tutor-intelligence-summary header > strong {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  border-radius: 14px;
  background: #071b42;
  color: #ffffff;
  border: 1px solid rgba(214, 156, 37, 0.64);
  font-size: 1.35rem;
}

.management-tutor-intelligence-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.management-tutor-intelligence-metrics span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #10234a;
  font-weight: 850;
}

.management-tutor-intelligence-list {
  display: grid;
  gap: 10px;
}

.management-tutor-intelligence-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(7, 27, 77, 0.08);
}

.management-tutor-intelligence-list strong {
  color: #071b42;
}

.management-tutor-intelligence-list span {
  color: #475975;
  line-height: 1.45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(216, 167, 44, 0.16), transparent 28rem),
    linear-gradient(180deg, #eef4fa 0%, #ffffff 42%, #f4f7fb 100%);
  color: var(--ink);
}

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

button,
select {
  cursor: pointer;
}

.app-shell {
  --shell-pad: 14px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: var(--shell-pad);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  margin: calc(var(--shell-pad) * -1) calc(50% - 50vw) 18px;
  padding: 16px max(var(--shell-pad), calc((100vw - 1180px) / 2 + var(--shell-pad)));
  background: #ffffff;
  border-bottom: 1px solid #e5eaf2;
  box-shadow: 0 4px 20px rgba(15, 35, 75, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: min(76vw, 620px);
  text-decoration: none;
  background: transparent;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(48px, 9vw, 70px);
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.icon-button {
  display: none;
}

.tutor-welcome-card {
  position: relative;
  margin: 4px 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #071b4d;
}

.tutor-welcome-card::after {
  display: none;
}

.tutor-shell {
  display: grid;
  gap: 18px;
  animation: tutorDashboardEnter 360ms ease both;
}

body:has(#tutorWelcomeCard:not(.hidden)) {
  background:
    radial-gradient(circle at 12% 10%, rgba(49, 111, 177, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(242, 182, 50, 0.11), transparent 24rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #f8fbff 100%);
}

.tutor-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 290px;
  padding: 38px;
  border: 1px solid rgba(242, 182, 50, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 108, 0.2), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(72, 139, 210, 0.34), transparent 32%),
    linear-gradient(135deg, #041333 0%, #071b4d 36%, #0b3477 72%, #05152f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 54px rgba(7, 27, 77, 0.24);
  color: #ffffff !important;
}

.tutor-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.tutor-hero > * {
  position: relative;
  z-index: 1;
}

.tutor-hero-logout {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 226, 138, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(7, 27, 77, 0.2);
  color: #ffffff;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tutor-hero-logout:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 138, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
    rgba(18, 61, 115, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(216, 154, 19, 0.1);
}

.tutor-hero-logout:focus-visible {
  outline: 3px solid rgba(255, 215, 108, 0.72);
  outline-offset: 3px;
}

.tutor-photo-wrap {
  position: relative;
  display: grid;
  width: 200px;
  height: 200px;
  min-width: 200px;
  place-items: center;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3c4, #ffffff);
  color: #071b4d;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.26),
    0 0 0 3px rgba(242, 182, 50, 0.66),
    0 0 0 11px rgba(49, 111, 177, 0.18),
    0 0 32px rgba(77, 147, 217, 0.28);
}

.tutor-photo-img,
.tutor-photo-fallback {
  grid-area: 1 / 1;
}

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

.tutor-photo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #fff1bd, #ffffff);
  color: #071b4d;
  font-size: 2.35rem;
  font-weight: 1000;
}

.tutor-photo-wrap.has-photo .tutor-photo-fallback {
  opacity: 0;
}

.tutor-photo-wrap.photo-missing .tutor-photo-fallback {
  opacity: 1;
}

.tutor-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tutor-hero-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(242, 182, 50, 0.38);
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.12);
  color: #ffd76c;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tutor-greeting {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.65rem, 4.9vw, 4.45rem);
  line-height: 0.98;
  font-weight: 1000;
}

.tutor-hero-copy p {
  max-width: 39rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.45;
}

.tutor-identity-line {
  margin-top: -2px !important;
  color: rgba(255, 215, 108, 0.9) !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em;
}

.tutor-hero-ready {
  margin-top: 8px !important;
}

.tutor-hero-ready strong {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 1000;
}

.tutor-hero-unlock {
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 790 !important;
}

.tutor-hero-command-actions {
  margin-top: 18px;
}

.tutor-hero .tutor-hero-command-actions .primary-action {
  min-width: 168px;
  border: 1px solid rgba(255, 226, 138, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 255, 0.94));
  color: #071b4d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tutor-hero .tutor-hero-command-actions .primary-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 138, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 42px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(216, 154, 19, 0.12);
}

.tutor-hero-meta-card {
  display: grid;
  gap: 12px;
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 226, 138, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(216, 154, 19, 0.64), rgba(216, 154, 19, 0)) 0 0 / 100% 3px no-repeat,
    radial-gradient(circle at 92% 4%, rgba(255, 226, 138, 0.16), transparent 7rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(216, 154, 19, 0.1),
    0 20px 42px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.15);
}

.tutor-hero-meta-card div {
  display: grid;
  gap: 3px;
}

.tutor-online-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(77, 147, 217, 0.26), rgba(7, 27, 77, 0.18));
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.tutor-online-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62f08f;
  box-shadow:
    0 0 0 4px rgba(98, 240, 143, 0.14),
    0 0 14px rgba(98, 240, 143, 0.62);
  animation: tutorOnlinePulse 1.8s ease-out infinite;
}

.tutor-hero-meta-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tutor-hero-meta-card strong {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.25;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.tutor-hero-time strong {
  font-size: clamp(1.72rem, 2.3vw, 2.35rem);
  font-weight: 1000;
  letter-spacing: 0.01em;
  line-height: 1;
}

.tutor-hero-date strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.tutor-welcome-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 34px;
  align-items: center;
}

.tutor-welcome-identity {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.tutor-welcome-photo-wrap {
  position: relative;
  flex: 0 0 auto;
}

.tutor-welcome-photo {
  display: grid;
  width: 124px;
  height: 124px;
  min-width: 124px;
  place-items: center;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff8df, #ffffff);
  color: #071b4d;
  font-size: 2.1rem;
  font-weight: 1000;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.tutor-welcome-photo img,
.tutor-welcome-photo .tutor-welcome-initials {
  grid-area: 1 / 1;
}

.tutor-welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-welcome-photo .tutor-welcome-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.tutor-welcome-photo.has-photo .tutor-welcome-initials {
  opacity: 0;
}

.tutor-welcome-photo.photo-missing .tutor-welcome-initials {
  opacity: 1;
}

.tutor-welcome-photo-badge {
  position: absolute;
  right: -8px;
  bottom: 5px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #0b2c6b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.tutor-welcome-photo-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tutor-welcome-identity p,
.tutor-welcome-identity h2,
.tutor-welcome-identity span,
.tutor-welcome-identity em,
.tutor-welcome-meta p,
.tutor-welcome-meta strong {
  margin: 0;
}

.tutor-welcome-role {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 11px;
  border: 1px solid rgba(242, 182, 50, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd76c;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tutor-welcome-identity p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  font-weight: 850;
}

.tutor-welcome-identity h2 {
  color: #ffffff;
  font-size: clamp(2.75rem, 5vw, 4.2rem);
  line-height: 0.98;
  font-weight: 1000;
}

.tutor-welcome-identity span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.45;
}

.tutor-welcome-meta {
  display: grid;
  gap: 28px;
  min-width: 286px;
}

.tutor-welcome-meta > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
}

.tutor-welcome-meta-icon {
  grid-row: span 2;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #f2b632;
  border-radius: 50%;
  color: #f2b632;
  font-size: 0.52rem;
  font-weight: 1000;
}

.tutor-welcome-meta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
}

.tutor-welcome-meta strong {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 1000;
}

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

@keyframes tutorOnlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 227, 138, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(94, 227, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 227, 138, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutor-shell,
  .tutor-landing-panel > .tutor-cohort-card,
  .tutor-hero-logout,
  .tutor-online-status::before {
    animation: none;
    transition: none;
  }
}

.session-strip.tutor-session-strip {
  align-items: center;
  border: 1px solid rgba(49, 111, 177, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.055);
}

.session-strip.tutor-session-strip #sessionLabel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #071b4d;
}

.tutor-account-name {
  font-weight: 1000;
}

.tutor-account-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tutor-account-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 27, 77, 0.08);
  color: #071b4d;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 27, 51, 0.94), rgba(16, 45, 80, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(216, 167, 44, 0.18) 18px 20px);
  color: white;
  box-shadow: var(--shadow);
}

.hero-panel.admin-hero-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 34px);
  border: 1px solid rgba(242, 182, 50, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.12), transparent 18rem),
    linear-gradient(135deg, #071b4d 0%, #0d2c66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 48px rgba(7, 27, 77, 0.2);
}

.hero-panel.admin-hero-panel > div:first-child,
.hero-panel.tutor-hero-panel > div:first-child {
  max-width: 64rem;
}

.admin-community-hub-cta {
  width: 164px;
  min-height: 146px;
}

.admin-hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.admin-hero-logout {
  align-self: flex-start;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 226, 138, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07)),
    rgba(7, 27, 77, 0.22);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 1000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-hero-logout:hover,
.admin-hero-logout:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 138, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.11)),
    rgba(18, 61, 115, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(216, 154, 19, 0.12);
  outline: none;
}

.admin-community-hub-cta em {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.hero-panel.tutor-hero-panel {
  padding: 24px clamp(18px, 4vw, 34px);
}

.hero-panel h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 7vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-panel p:last-child {
  max-width: 55rem;
  margin: 0;
  color: #d7e3ee;
}

.status-tile {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(242, 215, 125, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.status-tile span {
  color: var(--gold-2);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-tile strong {
  font-size: 1.6rem;
}

.status-tile strong {
  line-height: 1.05;
}

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

.metric {
  min-height: 95px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.55rem;
}

.admin-action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  min-height: 132px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.08);
}

.admin-action-card:hover {
  border-color: rgba(242, 182, 50, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 35, 75, 0.12);
}

.admin-action-card strong {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.15;
}

.admin-action-card em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.admin-navigation-groups {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.admin-navigation-group {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(215, 227, 241, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.05), transparent 10rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 16px 38px rgba(11, 31, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-navigation-group::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #f2b632, #ffe28a);
}

.admin-navigation-group::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.04);
  pointer-events: none;
}

.admin-navigation-group:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.36);
  box-shadow:
    0 24px 52px rgba(11, 31, 77, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.admin-navigation-group h4 {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  min-height: 44px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(215, 227, 241, 0.82);
  color: #071b4d;
  font-size: 1.12rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.admin-navigation-group h4::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 182, 50, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72)),
    rgba(242, 182, 50, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(11, 31, 77, 0.08);
}

.admin-navigation-group h4::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 18px;
  height: 18px;
  border: 2px solid #071b4d;
  border-radius: 999px;
  box-shadow: 9px 10px 0 -6px #071b4d;
}

.admin-navigation-group > div {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px 11px 14px;
  border: 1px solid rgba(216, 154, 19, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #123d73 0%, #071b4d 100%);
  color: #ffffff;
  font-weight: 950;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(216, 154, 19, 0.18),
    0 13px 25px rgba(7, 27, 77, 0.18);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-nav-link::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid rgba(255, 226, 138, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe28a 0%, #d89a13 100%);
  color: #071b4d;
  font-size: 1.05rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 5px 12px rgba(7, 27, 77, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #17477f 0%, #092f66 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(242, 182, 50, 0.24),
    0 17px 32px rgba(7, 27, 77, 0.24),
    0 0 0 3px rgba(216, 154, 19, 0.08);
  outline: none;
}

.admin-nav-link:hover::after,
.admin-nav-link:focus-visible::after {
  transform: translateX(2px);
  background: linear-gradient(180deg, #fff0ad 0%, #e3a31a 100%);
  border-color: #ffe28a;
  color: #071b4d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 7px 16px rgba(7, 27, 77, 0.28);
}

.admin-nav-link:active {
  transform: translateY(0);
  border-color: rgba(190, 124, 5, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #092f66 0%, #071b4d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(216, 154, 19, 0.14),
    0 9px 18px rgba(7, 27, 77, 0.18);
}

.admin-nav-link.active {
  border-color: rgba(242, 182, 50, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #123d73 0%, #071b4d 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(242, 182, 50, 0.22),
    0 13px 25px rgba(7, 27, 77, 0.18);
}

.admin-nav-link.active::after {
  background: linear-gradient(180deg, #ffe28a 0%, #d89a13 100%);
  border-color: rgba(255, 226, 138, 0.9);
  color: #071b4d;
}

.admin-nav-link.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-nav-link.disabled:hover,
.admin-nav-link.disabled:focus-visible {
  transform: none;
  border-color: rgba(216, 154, 19, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #123d73 0%, #071b4d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(216, 154, 19, 0.18),
    0 13px 25px rgba(7, 27, 77, 0.18);
}

.admin-nav-link.disabled:hover::after,
.admin-nav-link.disabled:focus-visible::after {
  transform: none;
}

.admin-nav-link em {
  color: #f2d77d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.admin-action-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.18);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.view {
  margin: 18px 0 36px;
}

.hidden {
  display: none !important;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.learner-dashboard-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.learner-dashboard-topbar .portal-logout {
  width: auto;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 35, 75, 0.08);
}

.lesson-heading {
  margin-top: 18px;
}

.learner-dashboard-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.learner-dashboard-grid:first-of-type {
  align-items: stretch;
}

.learner-dashboard-loading-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 35, 75, 0.1);
}

.learner-dashboard-loading-state strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 1000;
}

.learner-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.learner-menu button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(15, 35, 75, 0.05);
}

.learner-menu button.active {
  border-color: rgba(216, 167, 44, 0.72);
  background: #fff7dc;
  box-shadow: 0 8px 18px rgba(216, 167, 44, 0.14);
}

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

.learner-menu-page > .learner-home-card:first-child,
.learner-menu-page > .achievement-cabinet {
  grid-column: 1 / -1;
}

.learner-achievements-page {
  gap: 18px;
}

.learner-trophy-cabinet,
.learner-awards-history-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 44, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(245, 180, 27, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 48px rgba(7, 27, 77, 0.12);
}

.learner-trophy-cabinet {
  padding: 22px;
}

.learner-trophy-cabinet::before,
.learner-awards-history-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #f8d45c, #d8a72c);
}

.learner-trophy-head {
  margin-bottom: 18px;
}

.learner-trophy-head h4,
.learner-awards-history-card h4 {
  margin: 4px 0;
  color: #071b4d;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 1000;
  letter-spacing: 0;
}

.learner-trophy-head span,
.learner-awards-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(216, 167, 44, 0.35);
  border-radius: 999px;
  background: #fff7dc;
  color: #8a6100;
  font-size: 0.76rem;
  font-weight: 1000;
}

.learner-trophy-cabinet .achievement-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.learner-trophy-cabinet .achievement-badge-grid article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: center;
  padding: 16px;
  border: 1px solid #dbe5f1;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.learner-trophy-cabinet .achievement-badge-grid article.unlocked {
  border-color: rgba(216, 167, 44, 0.5);
  background: linear-gradient(180deg, #fffdf5, #ffffff);
  box-shadow: 0 16px 34px rgba(216, 167, 44, 0.16);
}

.learner-trophy-cabinet .achievement-badge-grid article.locked {
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  opacity: 0.82;
}

.learner-trophy-cabinet .achievement-badge-grid article > span {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #071b4d;
  color: #f8d45c;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.learner-trophy-cabinet .achievement-badge-grid article.locked > span {
  background: #e2e8f0;
  color: #64748b;
}

.learner-trophy-cabinet .achievement-badge-grid strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.18;
}

.learner-trophy-cabinet .achievement-badge-grid em {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.learner-trophy-cabinet .achievement-badge-grid article.unlocked em {
  color: #8a6100;
}

.learner-awards-history-card {
  padding: 20px;
}

.learner-awards-history-card .learner-home-card-head {
  align-items: center;
}

.learner-awards-list {
  display: grid;
  gap: 10px;
}

.learner-awards-list > div {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.learner-awards-list span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learner-awards-list strong {
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 1000;
}

.learner-awards-list em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(216, 167, 44, 0.36);
  border-radius: 999px;
  background: #fff7dc;
  color: #8a6100;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
}

.profile-panel,
.rating-panel,
.readiness-panel,
.progress-panel,
.current-lesson-panel,
.action-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.profile-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.premium-learner-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding: 0 0 10px;
}

.learner-passport-header,
.premium-learner-hero-grid,
.premium-metric-grid,
.premium-lesson-action-grid {
  grid-column: 1 / -1;
}

.learner-passport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid #dbe3ef;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.learner-passport-header .eyebrow {
  color: #f5b41b;
  letter-spacing: 0.16em;
}

.learner-passport-header h2 {
  margin: 4px 0 0;
  color: #071b4d;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 1000;
  letter-spacing: 0;
}

.premium-id-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid #071b4d;
  border-radius: 999px;
  background: #071b4d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.16);
}

.premium-learner-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.premium-profile-card {
  grid-column: span 8;
  display: grid;
  /* Visual-only learner hero layout adjustment. Keep data/routing/persistence untouched. */
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(245, 180, 27, 0.16), transparent 34%),
    linear-gradient(135deg, #071b4d 0%, #0d3271 100%);
  color: #ffffff;
  box-shadow: 0 24px 58px rgba(7, 27, 77, 0.22);
  overflow: hidden;
}

.premium-profile-photo-column {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  text-align: center;
}

.premium-profile-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 15vw, 214px);
  height: clamp(160px, 15vw, 214px);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #f8d45c, #f2b632) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 180, 27, 0.45)) border-box;
  padding: 9px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}

.premium-profile-photo-wrap .learner-photo {
  width: 100%;
  height: 100%;
  min-width: 100%;
  border: 5px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  background: #ffffff;
  color: #071b4d;
  font-size: 3rem;
  font-weight: 1000;
}

.premium-profile-name-lockup {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.premium-photo-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.premium-photo-badges span {
  display: grid;
  gap: 3px;
  min-height: 48px;
  min-width: 118px;
  align-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 3px solid rgba(245, 180, 27, 0.88);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.085));
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.premium-photo-badges small {
  color: #f5b41b;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.premium-profile-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 4px 4px 4px 0;
}

.premium-welcome,
.premium-card-kicker {
  margin: 0;
  color: #f5b41b;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-profile-name-lockup h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 1.7vw, 1.66rem);
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.premium-learner-strapline {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 850;
}

.premium-profile-chip-row {
  margin: 1px 0 0;
}

.premium-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -3px;
}

.premium-profile-info-grid article {
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 24px rgba(2, 6, 23, 0.09);
}

.premium-profile-info-grid span,
.premium-metric-grid span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-profile-info-grid strong {
  display: block;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.32;
}

.premium-performance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.premium-performance-row span,
.premium-performance-row strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
}

.premium-performance-row strong {
  background: rgba(245, 180, 27, 0.18);
  color: #ffdf78;
}

.premium-readiness-card {
  grid-column: span 4;
  display: grid;
  gap: 15px;
  align-content: start;
  padding: 24px;
  border: 1px solid rgba(216, 167, 44, 0.42);
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 26px 62px rgba(7, 27, 77, 0.15);
}

.premium-card-kicker {
  text-align: left;
  color: #64748b;
}

.premium-readiness-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.premium-readiness-score-row strong {
  display: block;
  color: #071b4d;
  font-size: clamp(3.45rem, 4.45vw, 4.35rem);
  font-weight: 1000;
  line-height: 0.9;
}

.premium-readiness-score-row span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.2;
}

.premium-readiness-score-row em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8dc, #fff0bd);
  color: #805700;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 1000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 16px rgba(154, 106, 0, 0.08);
}

.premium-readiness-progress {
  display: grid;
  gap: 9px;
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #fff8de);
  border: 1px solid rgba(216, 167, 44, 0.38);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.premium-readiness-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-readiness-progress > div:first-child strong {
  color: #071b4d;
}

.premium-readiness-steps {
  display: grid;
  gap: 9px;
}

.premium-readiness-steps article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.premium-readiness-steps article span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.premium-readiness-steps article strong {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 1000;
}

.premium-readiness-steps article.active {
  border-color: rgba(22, 163, 74, 0.3);
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
}

.premium-readiness-steps article.active span {
  background: #16a34a;
}

.premium-readiness-steps article.active strong {
  color: #15803d;
}

.premium-readiness-ring {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 190px;
  height: 190px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(#16a34a var(--score), #dbe3ef 0);
  box-shadow: inset 0 0 0 12px #ffffff, 0 18px 34px rgba(15, 23, 42, 0.11);
  cursor: pointer;
}

.premium-readiness-ring span,
.premium-readiness-ring strong,
.premium-readiness-ring em {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-style: normal;
}

.premium-readiness-ring span {
  color: #071b4d;
  font-size: 3rem;
  font-weight: 1000;
  line-height: 1;
}

.premium-readiness-ring strong {
  margin-top: 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-readiness-ring em {
  width: 130px;
  margin-top: 7px;
  color: #a87512;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.premium-readiness-target {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.premium-readiness-target strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.premium-progress-bar {
  width: 100%;
  height: 11px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(214, 226, 241, 0.78), rgba(241, 246, 252, 0.96));
  box-shadow:
    inset 0 1px 3px rgba(7, 27, 77, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #0a2a66 0%, #d4af37 56%, #f7d774 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 18px rgba(212, 175, 55, 0.3);
  animation: learnerProgressFill 0.72s ease both;
}

.premium-progress-bar.wide {
  grid-column: 1 / -1;
  height: 14px;
}

.premium-cta-stack {
  display: grid;
  gap: 10px;
}

.premium-cta {
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.premium-cta:hover,
.premium-metric-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.premium-cta.navy {
  border: 1px solid #071b4d;
  background: #071b4d;
  color: #ffffff;
}

.premium-cta.white {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #071b4d;
}

.premium-cta.gold {
  border: 2px solid var(--tfe-button-gold-border);
  background: var(--tfe-button-navy);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 26px rgba(7, 27, 77, 0.18);
}

.premium-cta.gold:hover,
.premium-cta.gold:focus-visible {
  border-color: #f2b632;
  background: var(--tfe-button-navy-hover);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.42),
    0 16px 32px rgba(7, 27, 77, 0.24),
    0 0 0 4px rgba(242, 182, 50, 0.12);
}

.premium-cta.gold:active {
  transform: translateY(0);
  border-color: #b8790f;
  background: var(--tfe-button-navy-pressed);
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.2),
    0 8px 16px rgba(7, 27, 77, 0.18);
}

.premium-cta.navy-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.premium-cta:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.premium-learner-passport-redesign {
  gap: 22px;
  padding: 4px 0 18px;
  animation: learnerDashboardReveal 0.48s ease both;
}

.premium-passport-hero-card {
  grid-column: span 8;
  min-height: 360px;
  background:
    radial-gradient(circle at top left, rgba(245, 180, 27, 0.24), transparent 32%),
    linear-gradient(135deg, #071b4d 0%, #0b2a63 58%, #113b7f 100%);
}

.premium-passport-hero-card .premium-profile-photo-column {
  gap: 14px;
}

.premium-passport-hero-card .premium-profile-photo-wrap {
  width: 218px;
  height: 218px;
}

.premium-standard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 180, 27, 0.56);
  border-radius: 999px;
  background: rgba(245, 180, 27, 0.16);
  color: #ffe28a;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.premium-standard-badge.gold {
  background: rgba(245, 180, 27, 0.24);
  color: #ffe28a;
}

.premium-standard-badge.silver {
  background: rgba(226, 232, 240, 0.18);
  color: #f8fafc;
}

.premium-standard-badge.bronze {
  background: rgba(180, 83, 9, 0.22);
  color: #fed7aa;
}

.premium-passport-hero-card .premium-profile-name-lockup h3 {
  font-size: 2rem;
}

.premium-passport-hero-card .premium-photo-badges span,
.premium-passport-hero-card .premium-profile-info-grid strong {
  overflow-wrap: anywhere;
}

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

.premium-learner-passport-redesign .premium-readiness-card {
  align-content: stretch;
}

.premium-learner-passport-redesign .premium-readiness-score-row strong {
  font-size: 2.65rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.premium-info-card-grid {
  grid-column: 1 / -1;
}

.premium-breakdown-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #d7e3f1;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.premium-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.premium-section-title h3 {
  margin: 2px 0 0;
  color: #071b4d;
  font-size: 1.25rem;
  font-weight: 1000;
}

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

.premium-breakdown-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.premium-breakdown-grid article > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.premium-breakdown-grid span,
.premium-info-card-grid span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-breakdown-grid strong,
.premium-info-card-grid strong {
  display: block;
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 1000;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

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

.premium-info-card-grid article {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #d7e3f1;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.065);
}

.premium-info-card-grid article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f5b41b;
}

.premium-info-card-grid strong {
  margin-top: 6px;
  text-align: left;
}

.premium-dashboard-hero-card,
.premium-readiness-summary-grid,
.premium-learner-detail-grid {
  grid-column: 1 / -1;
}

.premium-dashboard-hero-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 2.62fr) minmax(224px, 0.76fr);
  column-gap: clamp(38px, 5.2vw, 76px);
  row-gap: 28px;
  align-items: center;
  min-height: 278px;
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 180, 27, 0.22), transparent 30%),
    linear-gradient(135deg, #061842 0%, #092864 55%, #103d82 100%);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(7, 27, 77, 0.24);
  position: relative;
  overflow: hidden;
}

.premium-dashboard-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 44%;
  height: 220px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.premium-dashboard-photo-column {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.premium-dashboard-photo-column .premium-profile-photo-wrap {
  width: clamp(190px, 17vw, 232px);
  height: clamp(190px, 17vw, 232px);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 10px rgba(245, 180, 27, 0.12);
}

.premium-dashboard-identity {
  display: grid;
  gap: 22px;
  align-content: center;
  min-width: 0;
  padding-inline-start: clamp(4px, 1.2vw, 18px);
}

.premium-dashboard-identity .premium-profile-name-lockup {
  gap: 10px;
}

.premium-dashboard-identity .premium-profile-name-lockup h3 {
  max-width: 900px;
  font-size: clamp(3rem, 5.15vw, 5.65rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.premium-dashboard-identity .premium-profile-name-lockup .premium-welcome {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(245, 180, 27, 0.44);
  border-radius: 999px;
  background: rgba(245, 180, 27, 0.14);
  color: #ffe28a;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.premium-dashboard-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.premium-dashboard-meta-grid article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.premium-dashboard-meta-grid span,
.premium-info-row-grid span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-dashboard-meta-grid strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.premium-hero-detail-list {
  display: grid;
  gap: 7px;
  max-width: 720px;
}

.premium-hero-detail-list div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 3px 0;
}

.premium-hero-detail-list span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.premium-hero-detail-list strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.premium-dashboard-hero-card .premium-primary-actions {
  grid-template-columns: 1fr;
  align-self: stretch;
  align-content: center;
  gap: 16px;
}

.premium-dashboard-hero-card .premium-cta {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 16px 30px rgba(2, 6, 23, 0.18);
}

.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport) {
  border: 2px solid var(--tfe-button-gold-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 16px 30px rgba(7, 27, 77, 0.24);
}

.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport):hover,
.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport):focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 20px 38px rgba(2, 6, 23, 0.24);
}

.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport):hover,
.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport):focus-visible {
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover);
}

.premium-dashboard-hero-card .premium-cta:is(.learner-continue, .learner-practical, .learner-progress, .learner-passport):active {
  transform: translateY(0);
  border-color: #b8790f;
  background: var(--tfe-button-navy-pressed);
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.2),
    0 8px 16px rgba(7, 27, 77, 0.18);
}

.premium-readiness-summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 36px;
  background:
    radial-gradient(circle at 6% 0%, rgba(212, 175, 55, 0.14), transparent 25rem),
    radial-gradient(circle at 98% 12%, rgba(10, 42, 102, 0.12), transparent 27rem),
    linear-gradient(135deg, rgba(244, 249, 255, 0.99), rgba(255, 253, 246, 0.98));
  box-shadow:
    0 28px 68px rgba(7, 27, 77, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.premium-readiness-kpi-card,
.premium-mission-card,
.premium-info-panel,
.premium-performance-panel,
.premium-activity-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow:
    0 22px 52px rgba(7, 27, 77, 0.105),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.premium-readiness-kpi-card:hover,
.premium-readiness-breakdown-card:hover,
.premium-mission-card:hover,
.premium-performance-panel:hover,
.premium-activity-panel:hover,
.premium-dashboard-hero-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 72px rgba(7, 27, 77, 0.14),
    0 0 0 1px rgba(212, 175, 55, 0.18);
}

.premium-readiness-kpi-card {
  grid-template-columns: 1fr;
  align-content: start;
  grid-template-rows: auto auto auto minmax(260px, 1fr);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.11), transparent 16rem),
    radial-gradient(circle at 0% 8%, rgba(10, 42, 102, 0.06), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.99)),
    #ffffff;
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow:
    0 24px 58px rgba(7, 27, 77, 0.115),
    inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.premium-readiness-kpi-card h3 {
  margin: 2px 0 0;
  color: #071b4d;
  font-size: 1.35rem;
  font-weight: 1000;
}

.premium-readiness-kpi-card .premium-readiness-progress {
  align-self: stretch;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 12rem),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 12px 26px rgba(7, 27, 77, 0.055);
}

.premium-readiness-score-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 14px 30px rgba(7, 27, 77, 0.07);
}

.premium-readiness-score-layout .premium-readiness-ring {
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(#d4af37 0 var(--score), #dfe9f5 var(--score) 100%);
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.98),
    0 18px 34px rgba(7, 27, 77, 0.14),
    0 0 0 1px rgba(212, 175, 55, 0.26);
  animation: readinessRingIn 0.7s ease both;
}

.premium-readiness-score-layout .premium-readiness-ring span {
  color: #071b4d;
  font-size: clamp(1.62rem, 2.2vw, 1.95rem);
  letter-spacing: 0;
}

.premium-readiness-score-layout .premium-readiness-ring strong {
  color: #7b8798;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.premium-readiness-score-layout .premium-readiness-score-row {
  align-items: center;
  gap: 12px;
}

.premium-readiness-score-layout .premium-readiness-score-row strong {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.premium-readiness-empty-state {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 180, 27, 0.2), transparent 36%),
    linear-gradient(135deg, #fff8df, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(216, 167, 44, 0.26);
}

.premium-readiness-empty-state strong {
  color: #071b4d;
  font-size: 2.35rem;
  font-weight: 1000;
  line-height: 1.05;
  white-space: nowrap;
}

.premium-readiness-empty-state span {
  color: #64748b;
  font-weight: 900;
}

.premium-secondary-kpi,
.premium-today-target-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.1), transparent 10rem),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.2),
    0 16px 34px rgba(7, 27, 77, 0.07);
}

.premium-secondary-kpi {
  min-height: 132px;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.premium-secondary-kpi::before {
  content: "";
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #ffe28a);
}

.premium-secondary-kpi::after {
  content: "";
  display: block;
  width: min(var(--professional-development, 0%), 100%);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a2a66, #d4af37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.premium-secondary-kpi span,
.premium-evidence-progress-block span,
.premium-employment-target-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-secondary-kpi strong {
  color: #071b4d;
  font-size: clamp(2rem, 3.35vw, 2.75rem);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 #ffffff;
}

.premium-evidence-progress-block > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.premium-evidence-progress-block strong {
  color: #071b4d;
  font-size: 0.95rem;
  text-align: right;
}

.premium-evidence-progress-block em {
  color: #9a6a00;
  font-style: normal;
  font-weight: 1000;
}

.premium-today-target-card {
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.28), transparent 36%),
    radial-gradient(circle at bottom right, rgba(7, 27, 77, 0.1), transparent 40%),
    linear-gradient(145deg, #fff5cf 0%, #ffffff 48%, #f7fbff 100%);
  align-content: space-between;
  gap: 18px;
  min-height: 100%;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 22px 46px rgba(154, 106, 0, 0.105),
    0 8px 18px rgba(7, 27, 77, 0.055);
  position: relative;
  overflow: hidden;
}

.premium-today-target-card::before {
  content: "";
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #ffe28a);
}

.premium-employment-target-head {
  display: grid;
  gap: 7px;
}

.premium-employment-target-head strong {
  color: #071b4d;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  font-weight: 1000;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.premium-target-progress {
  display: grid;
  gap: 10px;
}

.premium-target-progress em {
  color: #805700;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 1000;
}

.premium-target-checklist {
  display: grid;
  gap: 12px;
}

.premium-target-checklist div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 10px 22px rgba(154, 106, 0, 0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.premium-target-checklist div:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.28),
    0 14px 28px rgba(154, 106, 0, 0.09);
}

.premium-target-checklist b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 1000;
}

.premium-target-checklist div.done b {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.premium-target-checklist strong {
  color: #071b4d;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.premium-today-target-card p {
  display: block;
  margin: 0;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(245, 180, 27, 0.16);
  color: #7a5400;
  font-size: 0.94rem;
  font-weight: 1000;
}

.premium-readiness-breakdown-card {
  align-content: start;
  padding: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(10, 42, 102, 0.07), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.99));
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 24px 58px rgba(7, 27, 77, 0.105),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.premium-readiness-breakdown-card .premium-breakdown-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.premium-readiness-breakdown-card .premium-breakdown-grid article {
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85);
}

.premium-readiness-breakdown-card .premium-breakdown-grid strong {
  white-space: nowrap;
}

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

.premium-improvement-list article {
  display: grid;
  gap: 9px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.08), transparent 9rem),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.premium-improvement-list article:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.28),
    0 18px 36px rgba(7, 27, 77, 0.09);
}

.premium-improvement-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.premium-improvement-list span {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.premium-improvement-list strong {
  color: #9a6a00;
  font-size: 0.92rem;
  white-space: nowrap;
}

.premium-improvement-list p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 850;
}

.premium-improvement-empty strong {
  color: #071b4d;
  white-space: normal;
}

.premium-learner-details-panel {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(245, 180, 27, 0.18);
  background:
    radial-gradient(circle at 92% 4%, rgba(245, 180, 27, 0.18), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #071b4d 0%, #14284a 48%, #293a53 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(7, 27, 77, 0.18);
}

.premium-learner-details-panel > span {
  color: #ffe28a;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-learner-details-panel div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.premium-learner-details-panel em {
  color: rgba(255, 226, 138, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-learner-details-panel strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.premium-employment-insights-panel {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 44px rgba(7, 27, 77, 0.09);
}

.premium-employment-insights-panel > span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #071b4d;
  color: #ffe28a;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-employment-insights-panel > span::after {
  content: "";
  width: 42px;
  height: 3px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #ffe28a);
}

.premium-employment-insights-panel article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.premium-employment-insights-panel article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.premium-employment-insights-panel em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.premium-employment-insights-panel article > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  min-width: 0;
}

.premium-employment-insights-panel strong {
  color: #071b4d;
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  font-weight: 1000;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.premium-employment-insights-panel b {
  color: #9a6a00;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.premium-employment-insights-panel small {
  color: #9a6a00;
  font-size: 0.82rem;
  font-weight: 900;
}

.premium-employment-insights-panel .secondary-action {
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
}

.premium-readiness-evidence-summary {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #071b4d;
  color: #ffffff;
}

.premium-readiness-evidence-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.premium-readiness-evidence-summary strong {
  color: #f5b41b;
  font-size: 1rem;
}

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

.premium-readiness-timeline article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.88);
  text-align: center;
}

.premium-readiness-timeline article span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 5px rgba(203, 213, 225, 0.22);
}

.premium-readiness-timeline article.complete span {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.13);
}

.premium-readiness-timeline article.current span {
  background: #f5b41b;
  box-shadow: 0 0 0 5px rgba(245, 180, 27, 0.2);
}

.premium-readiness-timeline strong {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 1000;
  line-height: 1.2;
}

.premium-mission-card {
  align-content: center;
  border-color: rgba(245, 180, 27, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 248, 222, 0.95), #ffffff);
}

.premium-mission-card h3 {
  margin: 0;
  color: #071b4d;
  font-size: 1.55rem;
  font-weight: 1000;
}

.premium-mission-card p {
  margin: 0;
  color: #475569;
  font-weight: 850;
  line-height: 1.45;
}

.premium-mission-card > strong {
  display: block;
  color: #9a6a00;
  font-size: 0.92rem;
}

.premium-mission-checklist {
  display: grid;
  gap: 10px;
}

.premium-mission-checklist div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(216, 167, 44, 0.28);
}

.premium-mission-checklist span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.premium-mission-checklist div.done span {
  background: #16a34a;
}

.premium-mission-checklist strong {
  color: #071b4d;
  font-size: 0.9rem;
  line-height: 1.25;
}

.premium-lower-dashboard-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.premium-lower-dashboard-grid .premium-mission-card {
  grid-column: span 4;
}

.premium-lower-dashboard-grid .premium-performance-panel {
  grid-column: span 8;
}

.premium-lower-dashboard-grid .premium-activity-panel {
  grid-column: 1 / -1;
}

.premium-info-card-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.premium-learner-passport-redesign .premium-info-card-grid article {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(226, 232, 240, 0.9),
    0 14px 30px rgba(15, 23, 42, 0.055);
}

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

@keyframes learnerProgressFill {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }
  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@keyframes readinessRingIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.premium-learner-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

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

.premium-info-row-grid div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.premium-info-row-grid span {
  color: #64748b;
}

.premium-info-row-grid strong {
  display: block;
  color: #071b4d;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.premium-metric-grid article,
.premium-metric-grid button {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 19px;
  border: 1px solid #d7e3f1;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  text-align: left;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.075);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.premium-metric-grid article::before,
.premium-metric-grid button::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #f5b41b;
}

.premium-metric-grid button {
  cursor: pointer;
}

.premium-metric-grid article:hover,
.premium-current-lesson-card:hover,
.premium-next-action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  border-color: #c9d7e8;
}

.premium-metric-grid strong {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1.15;
}

.premium-metric-grid p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.premium-lesson-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.premium-current-lesson-card,
.premium-next-action-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.premium-current-lesson-card {
  border: 1px solid #d7e3f1;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.premium-next-action-card {
  align-content: start;
  background: #071b4d;
  color: #ffffff;
}

.premium-current-lesson-card h3,
.premium-next-action-card h3 {
  margin: 4px 0 6px;
  color: #071b4d;
  font-size: 1.55rem;
  font-weight: 1000;
}

.premium-next-action-card h3 {
  color: #ffffff;
}

.premium-current-lesson-card p:not(.eyebrow),
.premium-next-action-card p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.premium-next-action-card .eyebrow {
  color: #f5b41b;
}

.premium-next-action-card p:not(.eyebrow) {
  color: #cbd5e1;
}

@media (max-width: 1180px) {
  .premium-profile-card,
  .premium-readiness-card {
    grid-column: 1 / -1;
  }

  .premium-breakdown-grid,
  .premium-info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-dashboard-hero-card,
  .premium-readiness-summary-grid,
  .premium-learner-detail-grid {
    grid-template-columns: 1fr;
  }

  .premium-dashboard-hero-card {
    text-align: center;
  }

  .premium-dashboard-identity .premium-profile-name-lockup h3 {
    font-size: clamp(2.35rem, 7vw, 4.1rem);
  }

  .premium-dashboard-identity,
  .premium-profile-name-lockup {
    justify-items: center;
  }

  .premium-dashboard-identity {
    padding-inline-start: 0;
  }

  .premium-dashboard-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
  }

  .premium-readiness-kpi-card {
    grid-template-columns: 1fr;
  }

  .premium-readiness-kpi-card .premium-readiness-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-readiness-score-layout {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .premium-readiness-score-layout .premium-readiness-ring {
    width: 126px;
    height: 126px;
  }

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

  .premium-profile-card {
    grid-template-columns: minmax(210px, 0.4fr) minmax(0, 1fr);
    min-height: 0;
  }

  .premium-profile-photo-wrap {
    width: clamp(168px, 22vw, 210px);
    height: clamp(168px, 22vw, 210px);
  }

  .premium-readiness-card {
    grid-template-columns: 1fr;
  }

  .premium-card-kicker {
    grid-column: 1 / -1;
    text-align: left;
  }

  .premium-cta-stack {
    align-self: stretch;
  }

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

  .learner-trophy-cabinet .achievement-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-lesson-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-navigation-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #adminView > .section-heading.admin-home-search-panel,
  #adminView > .section-heading.admin-home-search-panel .admin-controls {
    grid-template-columns: 1fr;
  }

  .admissions-summary,
  .admissions-learner-card,
  .admissions-learner-meta,
  .admin-search-result-card,
  .admin-intel-hero,
  .admin-intel-hero-meta,
  .admin-intel-summary-panel,
  .admin-intel-summary-grid,
  .admin-intel-kpi-grid,
  .admin-intel-metric-grid,
  .admin-intel-two-column,
  .admin-performance-dashboard-head,
  .admin-performance-dashboard-stats,
  .admin-decision-support-grid,
  .admin-intel-review-body,
  .admin-intel-snapshot-grid,
  .admin-intel-report-body,
  .admin-progress-timeline {
    grid-template-columns: 1fr;
  }

  .admin-intel-identity {
    align-items: flex-start;
  }

  .admin-intel-identity .learner-avatar.large {
    width: 112px;
    height: 112px;
    min-width: 112px;
  }

  .admin-intel-review-panel .panel-head {
    grid-template-columns: 1fr;
  }

  .tutor-work-awaiting-review .cohort-slot-summary,
  .tutor-submitted-work-card {
    grid-template-columns: 1fr;
  }

  .tutor-submitted-work-actions {
    justify-content: flex-start;
  }

  .admin-navigation-groups {
    grid-template-columns: 1fr;
  }

  .premium-learner-dashboard {
    gap: 16px;
  }

  .learner-passport-header,
  .premium-profile-card,
  .premium-current-lesson-card,
  .premium-lesson-action-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .learner-passport-header {
    padding: 20px;
  }

  .premium-profile-card {
    padding: 20px;
    text-align: center;
  }

  .premium-profile-photo-wrap {
    width: min(58vw, 190px);
    height: min(58vw, 190px);
  }

  .premium-profile-photo-column,
  .premium-profile-photo-wrap {
    justify-self: center;
  }

  .premium-profile-name-lockup,
  .premium-photo-badges {
    justify-items: center;
    justify-content: center;
  }

  .premium-profile-info-grid,
  .premium-readiness-card,
  .premium-metric-grid,
  .premium-breakdown-grid,
  .premium-info-card-grid,
  .premium-dashboard-meta-grid,
  .premium-info-row-grid,
  .premium-lower-dashboard-grid,
  .premium-info-card-grid.compact,
  .learner-trophy-cabinet .achievement-badge-grid {
    grid-template-columns: 1fr;
  }

  .premium-lower-dashboard-grid .premium-mission-card,
  .premium-lower-dashboard-grid .premium-performance-panel,
  .premium-lower-dashboard-grid .premium-activity-panel {
    grid-column: 1 / -1;
  }

  .premium-hero-detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .premium-dashboard-identity .premium-profile-name-lockup h3 {
    font-size: clamp(2.05rem, 10.5vw, 3.15rem);
    line-height: 0.98;
  }

  .premium-dashboard-identity .premium-profile-name-lockup .premium-welcome {
    justify-self: center;
    max-width: 100%;
    text-align: center;
  }

  .premium-readiness-empty-state strong {
    font-size: 1.85rem;
    white-space: normal;
  }

  .premium-readiness-score-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .premium-readiness-score-layout .premium-readiness-ring {
    width: 124px;
    height: 124px;
  }

  .premium-readiness-timeline {
    grid-template-columns: 1fr;
  }

  .premium-readiness-timeline article {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .premium-evidence-progress-block > div:first-child,
  .premium-improvement-list article > div:first-child {
    display: grid;
  }

  .premium-evidence-progress-block strong,
  .premium-improvement-list strong {
    text-align: left;
    white-space: normal;
  }

  .premium-learner-details-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .premium-learner-details-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .premium-employment-insights-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .premium-employment-insights-panel article > div {
    display: grid;
    gap: 5px;
  }

  .premium-secondary-kpi strong {
    white-space: normal;
  }

  .premium-dashboard-hero-card,
  .premium-breakdown-section,
  .premium-readiness-kpi-card,
  .premium-mission-card,
  .premium-info-panel,
  .premium-performance-panel,
  .premium-activity-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .premium-dashboard-photo-column .premium-profile-photo-wrap {
    width: min(58vw, 190px);
    height: min(58vw, 190px);
  }

  .premium-readiness-kpi-card .premium-readiness-steps {
    grid-template-columns: 1fr;
  }

  .premium-passport-hero-card .premium-profile-name-lockup h3 {
    font-size: 1.55rem;
  }

  .premium-primary-actions {
    grid-template-columns: 1fr;
  }

  .premium-section-title {
    display: grid;
    align-items: start;
  }

  .premium-breakdown-grid article > div:first-child {
    display: grid;
  }

  .premium-breakdown-grid strong {
    text-align: left;
  }

  .learner-awards-list > div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .premium-readiness-card {
    padding: 24px;
  }

  .premium-card-kicker {
    text-align: center;
  }

  .premium-readiness-score-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-next-action-card .premium-cta,
  .premium-primary-actions .premium-cta {
    width: 100%;
  }
}

.premium-learner-passport-redesign .premium-readiness-summary-grid {
  border-color: rgba(212, 175, 55, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.11), transparent 20rem),
    radial-gradient(circle at 100% 14%, rgba(10, 42, 102, 0.1), transparent 24rem),
    linear-gradient(135deg, #f5f9ff 0%, #ffffff 58%, #fffaf1 100%);
  box-shadow:
    0 26px 62px rgba(7, 27, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-readiness-kpi-card {
  gap: 15px;
  grid-template-rows: auto;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 14rem),
    radial-gradient(circle at left 18%, rgba(10, 42, 102, 0.065), transparent 15rem),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow:
    0 22px 52px rgba(7, 27, 77, 0.115),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 0 0 2px rgba(10, 42, 102, 0.035);
}

.premium-learner-passport-redesign .premium-readiness-score-layout {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow:
    0 12px 26px rgba(7, 27, 77, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring {
  width: 116px;
  height: 116px;
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(#0a2a66 0 calc(var(--score) * 0.55), #d4af37 calc(var(--score) * 0.55) var(--score), #e4edf8 var(--score) 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(7, 27, 77, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.24);
}

.premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring span {
  font-size: clamp(1.42rem, 1.9vw, 1.7rem);
  line-height: 0.98;
}

.premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring strong {
  margin-top: 3px;
  color: #6b7890;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.premium-learner-passport-redesign .premium-readiness-score-summary {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.premium-learner-passport-redesign .premium-readiness-score-summary > strong {
  display: block;
  color: #071b4d;
  font-size: clamp(1.58rem, 2.4vw, 2rem);
  font-weight: 1000;
  line-height: 0.95;
}

.premium-learner-passport-redesign .premium-readiness-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.premium-learner-passport-redesign .premium-readiness-meta-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  color: #516078;
  font-size: 0.82rem;
  font-weight: 1000;
}

.premium-learner-passport-redesign .premium-readiness-meta-row em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #805700;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 1000;
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, #fff8dd, #ffefba);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 16px rgba(154, 106, 0, 0.08);
}

.premium-learner-passport-redesign .premium-readiness-kpi-card .premium-readiness-progress {
  padding: 13px 14px;
  border-color: rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.07), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(7, 27, 77, 0.045);
}

.premium-learner-passport-redesign .premium-secondary-kpi {
  min-height: 0;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 10rem),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow:
    0 14px 30px rgba(7, 27, 77, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-learner-passport-redesign .premium-secondary-kpi::before {
  content: none;
}

.premium-learner-passport-redesign .premium-secondary-kpi::after {
  content: none;
}

.premium-learner-passport-redesign .premium-secondary-kpi__head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  min-width: 0;
}

.premium-learner-passport-redesign .premium-secondary-kpi__head span {
  color: #53627a;
}

.premium-learner-passport-redesign .premium-secondary-kpi__head strong {
  font-size: clamp(1.68rem, 2.6vw, 2.15rem);
}

.premium-learner-passport-redesign .premium-secondary-kpi__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(10, 42, 102, 0.06);
  background: linear-gradient(180deg, rgba(222, 233, 246, 0.88), rgba(243, 247, 252, 0.98));
  box-shadow: inset 0 1px 2px rgba(7, 27, 77, 0.1);
}

.premium-learner-passport-redesign .premium-secondary-kpi__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a2a66 0%, #4774b1 46%, #d4af37 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 14px rgba(212, 175, 55, 0.2);
}

.premium-learner-passport-redesign .premium-today-target-card {
  min-height: 0;
}

.premium-learner-passport-redesign .premium-improvement-list article,
.premium-learner-passport-redesign .premium-employment-insights-panel {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 12rem),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow:
    0 16px 34px rgba(7, 27, 77, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-learner-passport-redesign .premium-improvement-list article:hover {
  box-shadow:
    0 20px 42px rgba(7, 27, 77, 0.11),
    0 0 0 1px rgba(212, 175, 55, 0.18);
}

.premium-learner-passport-redesign .premium-progress-bar {
  height: 10px;
  background:
    linear-gradient(180deg, rgba(222, 233, 246, 0.9), rgba(244, 248, 252, 0.98));
  box-shadow:
    inset 0 1px 2px rgba(7, 27, 77, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-learner-passport-redesign .premium-progress-bar span {
  background: linear-gradient(90deg, #0a2a66 0%, #4774b1 48%, #d4af37 82%, #f3d678 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 14px rgba(212, 175, 55, 0.22);
}

/* Learner dashboard premium polish: visual-only overrides scoped to the learner surface. */
.premium-learner-passport-redesign {
  --learner-premium-navy: #061842;
  --learner-premium-blue: #0a2a66;
  --learner-premium-gold: #d4af37;
  --learner-premium-gold-soft: rgba(212, 175, 55, 0.22);
  --learner-premium-border: rgba(212, 175, 55, 0.34);
  --learner-premium-muted: #52627a;
  --learner-premium-track: #e9eef6;
}

.premium-learner-passport-redesign .premium-dashboard-hero-card {
  border-color: rgba(212, 175, 55, 0.42);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.22), transparent 18%),
    linear-gradient(135deg, #061842 0%, #09245a 54%, #0a2a66 100%);
  box-shadow:
    0 22px 54px rgba(7, 27, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.premium-learner-passport-redesign .premium-dashboard-hero-card::after {
  opacity: 0.34;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07));
}

.premium-learner-passport-redesign .premium-dashboard-photo-column .premium-profile-photo-wrap {
  box-shadow:
    0 20px 42px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 0 0 8px rgba(212, 175, 55, 0.11);
}

.premium-learner-passport-redesign .premium-dashboard-identity .premium-profile-name-lockup .premium-welcome {
  border-color: rgba(212, 175, 55, 0.58);
  background: rgba(212, 175, 55, 0.12);
  color: #f7dc86;
  letter-spacing: 0.1em;
}

.premium-learner-passport-redesign .premium-readiness-summary-grid {
  border-color: var(--learner-premium-border);
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 64%, #f7faff 100%);
  box-shadow:
    0 22px 54px rgba(7, 27, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-readiness-kpi-card,
.premium-learner-passport-redesign .premium-readiness-breakdown-card {
  border-color: var(--learner-premium-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    0 18px 42px rgba(7, 27, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-card-kicker,
.premium-learner-passport-redesign .premium-section-title .eyebrow,
.premium-learner-passport-redesign .premium-secondary-kpi__head span,
.premium-learner-passport-redesign .premium-employment-target-head span,
.premium-learner-passport-redesign .premium-target-progress em,
.premium-learner-passport-redesign .premium-improvement-list p,
.premium-learner-passport-redesign .premium-employment-insights-panel em {
  color: var(--learner-premium-muted);
  letter-spacing: 0.08em;
}

.premium-learner-passport-redesign .premium-readiness-kpi-card h3,
.premium-learner-passport-redesign .premium-section-title h3,
.premium-learner-passport-redesign .premium-employment-target-head strong,
.premium-learner-passport-redesign .premium-improvement-list span,
.premium-learner-passport-redesign .premium-employment-insights-panel strong {
  color: var(--learner-premium-navy);
}

.premium-learner-passport-redesign .premium-readiness-score-layout {
  border-color: rgba(212, 175, 55, 0.44);
  background:
    linear-gradient(135deg, #061842 0%, #08235a 56%, #0a2a66 100%);
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--learner-premium-gold) 0 var(--score), rgba(255, 255, 255, 0.2) var(--score) 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(2, 6, 23, 0.22),
    0 0 0 1px rgba(212, 175, 55, 0.4);
}

.premium-learner-passport-redesign .premium-readiness-score-summary > strong {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(2, 6, 23, 0.24);
}

.premium-learner-passport-redesign .premium-readiness-meta-row span {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.premium-learner-passport-redesign .premium-readiness-meta-row em {
  border: 1px solid rgba(212, 175, 55, 0.62);
  background: linear-gradient(180deg, #fff7dc, #f3d678);
  color: #5f4200;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px rgba(154, 106, 0, 0.1);
}

.premium-learner-passport-redesign .premium-readiness-kpi-card .premium-readiness-progress,
.premium-learner-passport-redesign .premium-secondary-kpi,
.premium-learner-passport-redesign .premium-today-target-card {
  border-color: rgba(212, 175, 55, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 12px 28px rgba(7, 27, 77, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-secondary-kpi__head strong {
  color: var(--learner-premium-navy);
  text-shadow: none;
}

.premium-learner-passport-redesign .premium-progress-bar,
.premium-learner-passport-redesign .premium-secondary-kpi__track {
  border-color: rgba(7, 27, 77, 0.07);
  background: var(--learner-premium-track);
  box-shadow:
    inset 0 1px 2px rgba(7, 27, 77, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-learner-passport-redesign .premium-progress-bar span,
.premium-learner-passport-redesign .premium-secondary-kpi__track i {
  background: linear-gradient(90deg, var(--learner-premium-navy), var(--learner-premium-blue));
  box-shadow:
    inset -4px 0 0 var(--learner-premium-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.premium-learner-passport-redesign .premium-today-target-card::before {
  background: linear-gradient(90deg, var(--learner-premium-gold), #f7dc86);
}

.premium-learner-passport-redesign .premium-target-checklist div {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 8px 18px rgba(7, 27, 77, 0.045);
}

.premium-learner-passport-redesign .premium-target-checklist b {
  background: #eef3f9;
  color: var(--learner-premium-blue);
}

.premium-learner-passport-redesign .premium-target-checklist div.done b {
  background: rgba(13, 128, 42, 0.14);
  color: #0d802a;
}

.premium-learner-passport-redesign .premium-today-target-card p {
  background: rgba(212, 175, 55, 0.12);
  color: #6f4b00;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.16);
}

.premium-learner-passport-redesign .premium-improvement-list article {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:
    0 12px 28px rgba(7, 27, 77, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-learner-passport-redesign .premium-improvement-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--learner-premium-gold), rgba(212, 175, 55, 0.18));
}

.premium-learner-passport-redesign .premium-improvement-list strong,
.premium-learner-passport-redesign .premium-employment-insights-panel b,
.premium-learner-passport-redesign .premium-employment-insights-panel small {
  color: #805700;
}

.premium-learner-passport-redesign .premium-employment-insights-panel {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 16px 36px rgba(7, 27, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.premium-learner-passport-redesign .premium-employment-insights-panel > span {
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: var(--learner-premium-navy);
  color: #f7dc86;
}

.premium-learner-passport-redesign .premium-employment-insights-panel article {
  border-bottom-color: rgba(212, 175, 55, 0.18);
}

@media (max-width: 1180px) {
  .premium-learner-passport-redesign .premium-readiness-score-layout {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 760px) {
  .premium-learner-passport-redesign .premium-readiness-score-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring {
    width: 110px;
    height: 110px;
  }

  .premium-learner-passport-redesign .premium-readiness-score-summary {
    justify-items: center;
  }

  .premium-learner-passport-redesign .premium-readiness-score-summary > strong {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
  }

  .premium-learner-passport-redesign .premium-secondary-kpi {
    min-height: 0;
  }

  .premium-learner-passport-redesign .premium-secondary-kpi__head {
    display: grid;
    gap: 8px;
  }
}

.learner-hero {
  width: 100%;
  min-height: 420px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0B1F4D, #183E7A);
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.photo-column,
.hero-details,
.readiness-column {
  min-width: 0;
}

.learner-home-card {
  display: grid;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
  box-sizing: border-box;
}

.learner-home-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.learner-home-card h4,
.learner-home-card p {
  margin: 0;
}

.learner-home-card h4 {
  color: var(--navy);
}

.learner-home-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.league-position-snapshot {
  border-top: 5px solid var(--gold);
}

.league-position-snapshot.green {
  border-left: 6px solid #18a558;
}

.league-position-snapshot.amber {
  border-left: 6px solid #f2b632;
}

.league-position-snapshot.red {
  border-left: 6px solid #c0392b;
}

.league-position-grid,
.learner-score-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.league-position-grid article,
.learner-score-metric-grid article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 77, 0.08);
}

.league-position-grid article span,
.learner-score-metric-grid article span,
.passport-next-task span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.league-position-grid article strong {
  color: var(--navy);
  font-size: 1.35rem;
}

.league-position-rank {
  background: linear-gradient(135deg, #fff7dc, #ffffff) !important;
  border-color: rgba(216, 167, 44, 0.5) !important;
}

.league-position-rank strong {
  color: #9a6a00 !important;
  font-size: 2rem !important;
}

.learner-score-metric-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.learner-score-metric-grid article.green {
  border-left: 5px solid #18a558;
  background: #effaf3;
}

.learner-score-metric-grid article.amber {
  border-left: 5px solid #f2b632;
  background: #fff8e6;
}

.learner-score-metric-grid article.red {
  border-left: 5px solid #c0392b;
  background: #fff1f0;
}

.learner-score-metric-grid article strong {
  color: var(--navy);
  font-size: 1.4rem;
}

.learner-improvement-message {
  border-left: 6px solid var(--gold);
  background: linear-gradient(135deg, #ffffff, #fffaf0);
}

.learner-passport-summary .passport-progress {
  margin: 0;
}

.passport-next-task {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 77, 0.08);
}

.passport-next-task strong {
  color: var(--navy);
}

.photo-column,
.readiness-column {
  display: grid;
  place-items: center;
}

.learner-photo {
  display: grid;
  width: 200px;
  height: 200px;
  min-width: 200px;
  place-items: center;
  border: 6px solid #F2B632;
  border-radius: 50%;
  background: #fff8df;
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 5px rgba(255, 255, 255, 0.95);
  font-size: 2rem;
  font-weight: 900;
  object-fit: cover;
}

.hero-details {
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero-kicker {
  margin: 0;
  color: #F2B632;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.learner-name {
  max-width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.learner-course-lines {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 800;
}

.learner-course-lines span {
  overflow-wrap: normal;
  word-break: normal;
}

.status-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.status-chip {
  min-width: 180px;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.status-chip-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.8;
}

.status-chip-value {
  display: block;
  margin-top: 5px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.learner-readiness-circle {
  --score: 0;
  display: grid;
  width: 260px;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #0B1F4D 70%, transparent 71%),
    conic-gradient(#18A558 calc(var(--score) * 1%), rgba(255, 255, 255, 0.25) 0);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.learner-readiness-circle strong {
  color: white;
  font-size: 3.8rem;
  line-height: 1;
}

.learner-readiness-circle span {
  display: block;
  max-width: 140px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.learner-readiness-circle em {
  max-width: 160px;
  color: var(--gold-2);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.career-journey {
  width: 100%;
  display: grid;
  gap: 12px;
}

.rating-panel {
  grid-column: 1 / -1;
}

.apprentice-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.25fr) minmax(0, 0.45fr) minmax(260px, 0.3fr);
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 420px;
  padding: 48px;
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(11, 31, 77, 0.98), rgba(18, 48, 107, 0.92)),
    radial-gradient(circle at 85% 10%, rgba(242, 182, 50, 0.34), transparent 28rem);
  color: white;
  box-shadow: var(--shadow);
}

.hero-photo,
.hero-identity,
.hero-meta,
.task-reward-grid,
.career-goal-grid {
  display: grid;
  gap: 10px;
}

.hero-photo {
  place-items: center;
  min-width: 0;
}

.hero-identity {
  align-content: center;
  gap: 22px;
  min-width: 0;
}

.apprentice-hero .learner-avatar.large {
  width: 240px;
  height: 240px;
  min-width: 240px;
  border: 6px solid var(--gold);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(255, 255, 255, 0.95),
    0 0 0 14px rgba(255, 255, 255, 0.12);
  font-size: 2.35rem;
  object-fit: cover;
}

.hero-identity h3,
.hero-copy h4,
.next-task-card h4 {
  margin: 0;
  letter-spacing: 0;
}

.hero-identity h3 {
  max-width: 560px;
  font-size: 3.25rem;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-identity span,
.phase-label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.hero-copy h4 {
  margin-top: 6px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.hero-meta div,
.career-goal-grid div,
.task-reward-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta div {
  min-height: 78px;
}

.hero-meta span,
.career-goal-grid span,
.task-reward-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-meta strong,
.career-goal-grid strong,
.task-reward-grid strong {
  display: block;
  margin-top: 4px;
  color: white;
  overflow-wrap: anywhere;
}

.apprentice-score {
  --score: 0;
  display: grid;
  width: 270px;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--navy) 70%, transparent 71%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255, 255, 255, 0.2) 0);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  align-content: center;
  gap: 6px;
  text-align: center;
}

.apprentice-score.red {
  --score-color: #e45454;
}

.apprentice-score.amber {
  --score-color: var(--gold);
}

.apprentice-score.green {
  --score-color: #18A558;
}

.apprentice-score strong {
  color: white;
  font-size: 3.85rem;
  line-height: 1;
}

.apprentice-score span {
  display: block;
  max-width: 120px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.apprentice-score em {
  max-width: 140px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.career-roadmap {
  display: grid;
  gap: 10px;
}

.journey-phase {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.journey-phase summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.journey-phase summary::-webkit-details-marker {
  display: none;
}

.journey-phase summary span,
.journey-phase summary strong {
  font-weight: 900;
}

.journey-phase.completed {
  border-color: rgba(242, 182, 50, 0.76);
  background: #fff8df;
}

.journey-phase.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.2), 0 14px 30px rgba(11, 31, 77, 0.1);
}

.journey-phase.future {
  color: var(--muted);
  background: #f3f6fa;
}

.phase-metrics,
.passport-levels,
.employer-checks,
.leaderboard-list {
  display: grid;
  gap: 8px;
}

.phase-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 12px 12px;
}

.phase-metrics div,
.passport-level,
.employer-checks div,
.leaderboard-list div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.phase-metrics span,
.passport-level p,
.employer-checks strong,
.leaderboard-list strong,
.leaderboard-list em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.15rem;
}

.passport-level {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
}

.passport-level.unlocked {
  border-color: rgba(242, 182, 50, 0.68);
  background: #fffaf0;
}

.passport-level.locked {
  opacity: 0.72;
}

.passport-level h4 {
  margin: 2px 0 0;
  color: var(--navy);
}

.passport-level > strong {
  color: var(--navy);
  font-size: 1.6rem;
}

.level-bar,
.attendance-track,
.xp-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.level-bar span,
.attendance-track span,
.xp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

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

.employer-checks div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employer-checks span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-weight: 900;
}

.employer-checks .passed span {
  background: #e7f5ee;
  color: var(--good);
}

.next-task-card {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #fff8df);
  border: 1px solid rgba(242, 182, 50, 0.45);
}

.next-task-card h4 {
  color: var(--navy);
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

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

.task-reward-grid div,
.career-goal-grid div {
  border-color: var(--line);
  background: white;
}

.task-reward-grid span,
.career-goal-grid span {
  color: var(--muted);
}

.task-reward-grid strong,
.career-goal-grid strong {
  color: var(--navy);
}

.dashboard-split {
  display: grid;
  gap: 12px;
}

.visual-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 35, 63, 0.07);
}

.achievement-feed {
  display: grid;
  gap: 8px;
}

.achievement-feed article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.achievement-feed article > span,
.leaderboard-list div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff8df;
  color: #684a0f;
  font-weight: 900;
}

.achievement-feed strong {
  color: var(--navy);
}

.achievement-feed p,
.achievement-feed em {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.attendance-track.green span {
  background: var(--good);
}

.attendance-track.red span {
  background: var(--bad);
}

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

.portfolio-gallery {
  display: grid;
  gap: 10px;
}

.portfolio-gallery article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.portfolio-gallery .evidence-media {
  max-height: 150px;
}

.portfolio-gallery span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-gallery strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
}

.portfolio-gallery p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.portfolio-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #b9c8d8;
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 900;
}

.leaderboard-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.leaderboard-list strong {
  color: var(--navy);
  font-size: 0.95rem;
  text-transform: none;
}

.leaderboard-list em {
  color: var(--gold);
}

.rating-panel {
  background:
    linear-gradient(180deg, rgba(27, 93, 137, 0.08), rgba(255, 255, 255, 0)),
    var(--paper);
}

.readiness-panel {
  background:
    linear-gradient(180deg, rgba(216, 167, 44, 0.12), rgba(255, 255, 255, 0)),
    var(--paper);
}

.readiness-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-weight: 900;
}

.readiness-label.getting-there {
  background: #edf3f8;
  color: var(--blue);
}

.readiness-label.nearly-ready {
  background: #fff4cc;
  color: #7a5610;
}

.readiness-label.phase-2-ready {
  background: #e7f5ee;
  color: #1f5a43;
}

.readiness-label.red {
  background: #fde8e8;
  color: var(--bad);
}

.readiness-label.amber {
  background: #fff4cc;
  color: #7a5610;
}

.readiness-label.green {
  background: #e7f5ee;
  color: #1f5a43;
}

.readiness-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.readiness-gauge {
  display: grid;
  place-items: center;
  width: clamp(92px, 24vw, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 58%, transparent 59%),
    conic-gradient(var(--gold) calc(var(--readiness) * 1%), #e6edf5 0);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px rgba(15, 35, 63, 0.12);
  text-align: center;
}

.readiness-gauge strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.5rem, 7vw, 2rem);
  line-height: 1;
}

.readiness-gauge span {
  display: block;
  max-width: 74px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.readiness-bar {
  min-width: 0;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

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

.readiness-breakdown div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.readiness-breakdown span,
.readiness-actions {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.readiness-breakdown span {
  display: block;
  text-transform: uppercase;
}

.readiness-breakdown strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 1.15rem;
}

.readiness-actions {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-actions li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.readiness-actions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.rating-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.rating-hero h4 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: 1.6rem;
}

.rating-medal {
  --medal-start: #eef2f7;
  --medal-mid: #d7dee8;
  --medal-end: #aeb9c7;
  --medal-edge: #8794a5;
  --ribbon-left: var(--navy);
  --ribbon-right: var(--blue);
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(82px, 20vw, 116px);
  min-width: clamp(82px, 20vw, 116px);
  height: clamp(96px, 23vw, 136px);
}

.medal-ribbon {
  position: absolute;
  top: 0;
  width: 28%;
  height: 52%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--ribbon-left), #0b2341);
  box-shadow: 0 8px 16px rgba(15, 35, 63, 0.14);
}

.medal-ribbon.left {
  left: 29%;
  transform: rotate(11deg);
}

.medal-ribbon.right {
  right: 29%;
  transform: rotate(-11deg);
  background: linear-gradient(180deg, var(--ribbon-right), #123c66);
}

.medal-disc {
  position: absolute;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 76%;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(145deg, var(--medal-start), var(--medal-mid) 48%, var(--medal-end));
  box-shadow:
    inset 0 -5px 10px rgba(15, 35, 63, 0.14),
    inset 0 4px 8px rgba(255, 255, 255, 0.45),
    0 14px 28px rgba(15, 35, 63, 0.18);
}

.medal-disc::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px solid color-mix(in srgb, var(--medal-edge), white 38%);
  border-radius: 50%;
}

.medal-disc span {
  position: relative;
  color: #17335a;
  font-size: clamp(1.4rem, 5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rating-medal.gold {
  --medal-start: #fff4bd;
  --medal-mid: #e3bb42;
  --medal-end: #b98212;
  --medal-edge: #9c6a0e;
  --ribbon-left: #112a4d;
  --ribbon-right: #d8a72c;
}

.rating-medal.silver {
  --medal-start: #f9fbfd;
  --medal-mid: #cbd4df;
  --medal-end: #8f9bad;
  --medal-edge: #667386;
  --ribbon-left: #123c66;
  --ribbon-right: #7d8998;
}

.rating-medal.bronze {
  --medal-start: #f7d8ae;
  --medal-mid: #c77b32;
  --medal-end: #884918;
  --medal-edge: #713810;
  --ribbon-left: #112a4d;
  --ribbon-right: #b66426;
}

.rating-medal.not-assessed {
  --medal-start: #f7f9fc;
  --medal-mid: #d7dee8;
  --medal-end: #aeb9c7;
  --medal-edge: #8794a5;
  --ribbon-left: #536173;
  --ribbon-right: #8b97a8;
}

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

.rating-counts div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.rating-counts span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-counts strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 1.35rem;
}

.rating-message {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-panel {
  background:
    linear-gradient(180deg, rgba(216, 167, 44, 0.1), rgba(255, 255, 255, 0)),
    var(--paper);
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.learner-avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(216, 167, 44, 0.72);
  border-radius: 50%;
  background: #fff8df;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  object-fit: cover;
}

.learner-avatar.large {
  width: 72px;
  height: 72px;
  min-width: 72px;
  font-size: 1rem;
}

.learner-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 167, 44, 0.58);
  border-radius: 999px;
  background: #fff8df;
  color: #684a0f;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.profile-grid div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.progress-panel {
  background:
    linear-gradient(180deg, rgba(7, 27, 51, 0.04), rgba(255, 255, 255, 0)),
    var(--paper);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-head h4 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.progress-ring {
  --progress: 0;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff 72%, transparent 73%),
    conic-gradient(var(--gold) calc(var(--progress) * 1%), #e6edf5 0);
}

.progress-ring strong {
  color: var(--navy);
  font-size: 1.75rem;
}

.progress-ring span {
  display: block;
  max-width: 76px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.focus-task {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--wash);
}

.focus-task span,
.action-row span,
.evidence-row span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-task strong,
.action-row strong,
.evidence-row strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.focus-task p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.action-row,
.evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: inherit;
  text-align: left;
}

.action-row {
  width: 100%;
}

.mini-upload {
  position: relative;
  display: inline-grid;
  min-height: 38px;
  min-width: 82px;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.mini-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

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

.evidence-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.evidence-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.evidence-card-head span,
.evidence-card-head em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-card-head strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.evidence-media {
  display: block;
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.evidence-file-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

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

.evidence-card-actions span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-preview-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 2px solid #F2B632;
  border-radius: 18px;
  background: #0B1F4D;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.16);
}

.admin-preview-banner h3,
.admin-preview-banner p {
  margin: 0;
}

.admin-preview-banner .eyebrow {
  color: #F2B632;
}

.admin-learner-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.admin-learner-row-actions button {
  min-height: 40px;
}

[title="Disabled in Admin Preview Mode."] {
  cursor: not-allowed;
}

.disabled-control {
  opacity: 0.62;
  cursor: not-allowed;
}

select,
input[type="search"],
input[type="text"],
textarea,
.file-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

select {
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
}

input[type="search"],
input[type="text"] {
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
}

.portal-login {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-panel,
.session-strip {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.auth-panel h2 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 1.25rem;
}

.auth-panel p:not(.eyebrow),
.session-strip span {
  margin: 0;
  color: var(--muted);
}

#roleLoginForm {
  display: grid;
  gap: 8px;
}

#roleLoginForm select,
#roleLoginForm input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

#roleLoginForm select {
  appearance: auto;
  cursor: pointer;
}

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

.session-strip.learner-logout-strip,
.session-strip.admin-logout-strip {
  justify-items: end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.session-strip.admin-logout-strip {
  margin: 0 0 10px;
}

.session-strip.learner-logout-strip #sessionLabel,
.session-strip.admin-logout-strip #sessionLabel {
  display: none;
}

.session-strip.learner-logout-strip .secondary-action,
.session-strip.admin-logout-strip .secondary-action {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 35, 75, 0.08);
}

.session-strip.tutor-session-strip {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(49, 111, 177, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.055);
}

.session-strip.tutor-session-strip span {
  color: #52647d;
  font-weight: 760;
}

.session-strip.tutor-session-strip .secondary-action {
  border-color: rgba(11, 31, 77, 0.34);
  color: #071b4d;
  font-weight: 900;
}

.portal-login h3 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 1.35rem;
}

.portal-login p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.portal-login label,
.comment-label {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

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

.login-error {
  min-height: 20px;
  color: var(--bad);
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-logout {
  width: 100%;
}

textarea {
  min-height: 72px;
  padding: 10px;
  resize: vertical;
}

.login-shell {
  display: contents;
}

.login-card-panel {
  display: contents;
}

.login-visual-panel {
  display: none;
}

body:has(#authPanel:not(.hidden)),
body:has(#passwordRecoveryPanel:not(.hidden)) {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(11, 31, 77, 0.08), rgba(242, 182, 50, 0.1)),
    #f4f7fb;
}

body:has(#authPanel:not(.hidden)) .app-shell,
body:has(#passwordRecoveryPanel:not(.hidden)) .app-shell {
  width: min(100%, 1280px);
  min-height: 100vh;
  padding: clamp(14px, 2.4vw, 28px);
  display: grid;
  align-items: center;
}

body:has(#authPanel:not(.hidden)) .login-shell,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(7, 27, 51, 0.18);
}

body:has(#authPanel:not(.hidden)) .login-visual-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(4, 13, 34, 0.82) 0%, rgba(11, 31, 77, 0.66) 42%, rgba(11, 31, 77, 0.29) 100%),
    linear-gradient(0deg, rgba(4, 13, 34, 0.58), rgba(4, 13, 34, 0.07)),
    url("./public/assets/login-workshop-photo.jpg") center / cover no-repeat;
  color: #ffffff;
}

body:has(#authPanel:not(.hidden)) .login-visual-panel {
  border-right: 2.5px solid rgba(242, 182, 50, 0.58);
}

body:has(#authPanel:not(.hidden)) .login-visual-panel::after,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(4, 13, 34, 0.78), transparent);
  pointer-events: none;
}

.login-visual-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.login-visual-content .eyebrow {
  color: var(--gold-2);
}

.login-visual-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.login-visual-content p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  font-weight: 700;
}

.login-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.login-feature-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(242, 215, 125, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(4, 13, 34, 0.18);
  backdrop-filter: blur(10px);
}

body:has(#authPanel:not(.hidden)) .login-card-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-card-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4.8vw, 56px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

body:has(#authPanel:not(.hidden)) .topbar,
body:has(#passwordRecoveryPanel:not(.hidden)) .topbar {
  position: static;
  min-height: auto;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:has(#authPanel:not(.hidden)) .brand,
body:has(#passwordRecoveryPanel:not(.hidden)) .brand {
  max-width: 100%;
}

body:has(#authPanel:not(.hidden)) .brand-logo,
body:has(#passwordRecoveryPanel:not(.hidden)) .brand-logo {
  height: clamp(54px, 7vw, 78px);
}

body:has(#authPanel:not(.hidden)) .auth-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel {
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(#authPanel:not(.hidden)) .auth-panel h2,
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel h2 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
}

body:has(#authPanel:not(.hidden)) .auth-panel p:not(.eyebrow),
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel p:not(.eyebrow) {
  max-width: 34rem;
  color: #536277;
  line-height: 1.55;
}

body:has(#authPanel:not(.hidden)) #roleLoginForm,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm {
  gap: 12px;
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select,
body:has(#authPanel:not(.hidden)) #roleLoginForm input,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input {
  min-height: 54px;
  border: 1px solid #ccd6e4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(11, 31, 77, 0.04);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select:focus,
body:has(#authPanel:not(.hidden)) #roleLoginForm input:focus,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input:focus {
  outline: 3px solid rgba(242, 182, 50, 0.28);
  border-color: var(--gold);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action {
  min-height: 56px;
  margin-top: 4px;
  border-color: #d99b18;
  background:
    linear-gradient(180deg, #f7ca58 0%, var(--gold) 100%);
  color: #132238;
  font-size: 1rem;
  box-shadow: 0 16px 30px rgba(168, 117, 18, 0.28);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action:hover:not(:disabled),
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action:hover:not(:disabled) {
  background:
    linear-gradient(180deg, #ffd86d 0%, #ecae28 100%);
  box-shadow: 0 18px 34px rgba(168, 117, 18, 0.34);
}

body:has(#authPanel:not(.hidden)) main,
body:has(#passwordRecoveryPanel:not(.hidden)) main {
  display: none;
}

@media (max-width: 860px) {
  body:has(#authPanel:not(.hidden)) .app-shell,
  body:has(#passwordRecoveryPanel:not(.hidden)) .app-shell {
    align-items: start;
    padding: 0;
  }

  body:has(#authPanel:not(.hidden)) .login-shell,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-shell {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  body:has(#authPanel:not(.hidden)) .login-visual-panel,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
    min-height: 300px;
    padding: 24px;
    background-position: center 43%;
  }

  .login-visual-content {
    gap: 12px;
  }

  .login-visual-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }

  .login-feature-pills span {
    min-height: 31px;
    font-size: 0.76rem;
  }

  body:has(#authPanel:not(.hidden)) .login-card-panel,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-card-panel {
    align-content: start;
    padding: 24px 18px 30px;
  }
}

.lesson-list,
.review-stack,
.admin-grid,
.admin-record-panels,
.admin-marking-panel,
.learner-portal-grid {
  display: grid;
  gap: 12px;
}

.admin-grid > .cohort-slot-overview,
.admin-record-panels > .live-setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.07);
}

.live-setup-panel h4,
.live-setup-panel p {
  margin: 0;
}

.live-setup-panel h4 {
  color: #0B1F4D;
  font-size: 1.35rem;
}

.live-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .live-setup-panel {
    grid-template-columns: 1fr;
  }

  .live-admin-actions {
    justify-content: stretch;
  }

  .live-admin-actions button {
    width: 100%;
  }
}

.cohort-slot-overview {
  grid-column: 1 / -1;
}

.portal-record-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.portal-record-panel h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.passport-lines,
.award-list,
.attendance-list,
.feedback-list {
  display: grid;
  gap: 8px;
}

.passport-lines span,
.award-list div,
.attendance-list div,
.feedback-list div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.award-list div,
.attendance-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.award-list span,
.attendance-list span,
.feedback-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.award-list strong,
.attendance-list strong,
.feedback-list strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.attendance-list em {
  color: var(--blue);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.feedback-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.reflection-box {
  min-height: 86px;
}

.admin-controls {
  display: grid;
  gap: 8px;
}

.admissions-page {
  gap: 18px;
  padding: 18px;
  border-color: rgba(216, 167, 44, 0.36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.12), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

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

.admissions-summary div,
.admissions-learner-card {
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.07);
}

.admissions-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.admissions-summary span,
.admissions-learner-meta small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admissions-summary strong,
.admissions-learner-meta strong {
  color: #071b4d;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.admissions-learner-list {
  display: grid;
  gap: 12px;
}

.admissions-learner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.admissions-learner-photo .learner-avatar.large {
  width: 76px;
  height: 76px;
  border: 4px solid #ffffff;
  outline: 3px solid rgba(242, 182, 50, 0.72);
  box-shadow: 0 12px 24px rgba(11, 31, 77, 0.15);
}

.admissions-learner-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admissions-learner-main h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1.2rem;
  line-height: 1.15;
}

.admissions-learner-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admissions-learner-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-search-results-panel,
.admin-learner-intelligence-page {
  display: grid;
  gap: 16px;
}

.admin-search-result-list {
  display: grid;
  gap: 12px;
}

.admin-search-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(215, 227, 241, 0.92);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(11, 31, 77, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-search-result-card:hover,
.admin-search-result-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.55);
  box-shadow: 0 20px 42px rgba(7, 27, 77, 0.14);
}

.admin-search-result-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-search-result-main strong {
  color: #071b4d;
  font-size: 1.08rem;
  font-weight: 1000;
}

.admin-search-result-main em,
.admin-search-result-main small,
.admin-search-result-score small {
  color: #64748b;
  font-style: normal;
  font-weight: 850;
}

.admin-search-result-score {
  display: grid;
  justify-items: center;
  min-width: 86px;
  padding: 10px;
  border-radius: 16px;
  background: #071b4d;
  color: #ffffff;
}

.admin-search-result-score b {
  color: #f2b632;
  font-size: 1.3rem;
}

.admin-intel-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-intel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1.48fr) minmax(220px, 0.42fr);
  gap: 26px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid rgba(242, 182, 50, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.14), transparent 18rem),
    linear-gradient(135deg, #071b4d 0%, #0d2c66 100%);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(7, 27, 77, 0.22);
}

.admin-intel-identity {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.admin-intel-identity .learner-avatar.large {
  width: 134px;
  height: 134px;
  min-width: 134px;
  border: 4px solid #ffffff;
  outline: 3px solid #f2b632;
}

.admin-intel-identity h3 {
  margin: 4px 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.admin-intel-identity p:not(.eyebrow) {
  margin: 0;
  color: #d7e3ee;
  font-weight: 800;
}

.admin-intel-hero-meta,
.admin-intel-kpi-grid,
.admin-intel-metric-grid {
  display: grid;
  gap: 10px;
}

.admin-intel-hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-intel-hero.school-intel-hero {
  grid-template-columns: minmax(360px, 1.18fr) minmax(420px, 1.42fr);
}

.admin-intel-hero-meta span,
.admin-intel-kpi-grid .admin-intel-metric,
.admin-intel-card {
  border: 1px solid rgba(215, 227, 241, 0.86);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 31, 77, 0.08);
}

.admin-intel-hero-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-intel-hero-meta small,
.admin-intel-metric span,
.admin-intel-card .eyebrow {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-intel-hero-meta small {
  color: #f2d77d;
}

.admin-intel-hero-meta strong {
  overflow-wrap: anywhere;
}

.admin-intel-action-stack {
  display: grid;
  gap: 10px;
}

.admin-intel-action-stack button {
  width: 100%;
}

.admin-intel-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-intel-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(242, 182, 50, 0.26);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.12), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 46px rgba(11, 31, 77, 0.11);
}

.admin-intel-summary-main {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 11rem),
    linear-gradient(135deg, #071b4d 0%, #0d2c66 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(7, 27, 77, 0.18);
}

.admin-intel-summary-main .eyebrow {
  color: #f2d77d;
}

.admin-intel-summary-main h4 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.05;
}

.admin-intel-summary-main p:not(.eyebrow) {
  margin: 0;
  color: #d7e3ee;
  font-weight: 750;
  line-height: 1.45;
}

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

.admin-intel-summary-grid article {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(11, 31, 77, 0.07);
}

.admin-intel-summary-grid span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-intel-summary-grid strong {
  color: #071b4d;
  font-size: 1.05rem;
  font-weight: 1000;
}

.admin-intel-summary-grid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #071b4d;
  font-weight: 850;
}

.admin-intel-section,
.admin-intel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(11, 31, 77, 0.09);
}

.admin-performance-dashboard {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(242, 182, 50, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.1), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 52px rgba(11, 31, 77, 0.1);
}

.admin-performance-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 13rem),
    linear-gradient(135deg, #071b4d 0%, #0d2c66 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.18);
}

.admin-performance-dashboard-head h4 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}

.admin-performance-dashboard-head p:not(.eyebrow) {
  margin: 0;
  color: #d7e3ee;
  font-weight: 760;
  line-height: 1.45;
}

.admin-performance-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-performance-dashboard-stats span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-performance-dashboard-stats small {
  color: #f2d77d;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-performance-dashboard-stats strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 1000;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-metric-rag-section {
  display: grid;
  gap: 12px;
}

.admin-metric-rag-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.admin-metric-rag-heading h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1.05rem;
  font-weight: 1000;
}

.admin-metric-rag-heading span {
  color: #b98208;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-priority-empty-state {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(125, 143, 166, 0.24);
  border-left: 4px solid rgba(100, 116, 139, 0.42);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3f6fa 0%, #fbfdff 100%);
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.07);
}

.admin-priority-empty-state strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.admin-priority-empty-state p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.45;
}

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

.admin-intel-metric {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  border-left: 4px solid rgba(100, 116, 139, 0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 30px rgba(11, 31, 77, 0.075);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.admin-intel-metric:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 36px rgba(11, 31, 77, 0.12);
}

.admin-intel-metric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.admin-intel-metric-head span {
  max-width: 11rem;
  line-height: 1.25;
}

.admin-intel-metric strong {
  color: #071b4d;
  font-size: 1.28rem;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.admin-intel-kpi-grid .admin-intel-metric strong {
  font-size: 1.72rem;
}

.admin-intel-metric.secondary {
  min-height: 118px;
}

.admin-intel-metric.secondary strong {
  font-size: 1.18rem;
}

.admin-intel-metric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-intel-metric-meta small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-intel-metric-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #071b4d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.admin-intel-metric p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-intel-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.08);
}

.admin-intel-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(11, 31, 77, 0.2);
}

.admin-intel-metric.green {
  border-color: rgba(64, 128, 92, 0.24);
  border-left-color: rgba(46, 125, 82, 0.52);
  background: linear-gradient(135deg, #eef8f1 0%, #fbfefc 100%);
}

.admin-intel-metric.green strong {
  color: #0f6f50;
}

.admin-intel-metric.green .admin-intel-metric-meta em {
  border-color: rgba(46, 125, 82, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #0f6f50;
}

.admin-intel-metric.amber {
  border-color: rgba(210, 145, 45, 0.24);
  border-left-color: rgba(204, 139, 36, 0.55);
  background: linear-gradient(135deg, #fff6e4 0%, #fffdf8 100%);
}

.admin-intel-metric.amber strong {
  color: #8a6100;
}

.admin-intel-metric.amber .admin-intel-metric-meta em {
  border-color: rgba(204, 139, 36, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #8a6100;
}

.admin-intel-metric.red {
  border-color: rgba(190, 82, 88, 0.24);
  border-left-color: rgba(176, 67, 77, 0.55);
  background: linear-gradient(135deg, #fff0f1 0%, #fffafa 100%);
}

.admin-intel-metric.red strong {
  color: #9f2f2f;
}

.admin-intel-metric.red .admin-intel-metric-meta em {
  border-color: rgba(176, 67, 77, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #9f2f2f;
}

.admin-intel-metric.muted {
  border-color: rgba(125, 143, 166, 0.24);
  border-left-color: rgba(100, 116, 139, 0.42);
  background: linear-gradient(135deg, #f3f6fa 0%, #fbfdff 100%);
}

.admin-intel-metric.muted strong {
  color: #64748b;
}

.admin-intel-metric.muted .admin-intel-metric-meta em {
  border-color: rgba(100, 116, 139, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #52657d;
}

.admin-intel-metric.muted .admin-intel-progress i {
  background: rgba(100, 116, 139, 0.18);
}

.admin-intel-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-intel-card h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.2rem;
}

.admin-intel-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.admin-intel-list {
  display: grid;
  gap: 9px;
}

.admin-intel-list div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-intel-list strong {
  color: #071b4d;
}

.admin-intel-list span {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 750;
}

.learner-intelligence-centre-page {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.learner-intelligence-centre-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.learner-intelligence-selector-panel,
.learner-intelligence-selected-card,
.learner-intelligence-strategy-panel,
.learner-intelligence-phase-review {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 44, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(11, 31, 77, 0.09);
}

.learner-intelligence-selector-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: end;
}

.learner-intelligence-selector-panel h4,
.learner-intelligence-selected-card h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.22rem;
}

.learner-intelligence-selector-panel p,
.learner-intelligence-selected-card p {
  margin: 0;
  color: #64748b;
  font-weight: 780;
}

.learner-intelligence-selector-panel select {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 77, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #071b4d;
  font-weight: 850;
}

.learner-intelligence-selected-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

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

.learner-intelligence-question-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(215, 227, 241, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(11, 31, 77, 0.075);
}

.learner-intelligence-question-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.learner-intelligence-question-head > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  border-radius: 50%;
  background: #071b4d;
  color: #f2b632;
  font-weight: 1000;
}

.learner-intelligence-question-head h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1rem;
  line-height: 1.3;
}

.learner-intelligence-question-head p {
  margin: 3px 0 0;
  color: #b98208;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.learner-intelligence-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learner-intelligence-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 999px;
  background: #f8fbff;
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.learner-intelligence-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.learner-intelligence-option.selected {
  border-color: rgba(216, 167, 44, 0.72);
  background: #fff5d6;
  box-shadow: inset 0 0 0 1px rgba(216, 167, 44, 0.2);
}

.learner-intelligence-note {
  display: grid;
  gap: 6px;
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 900;
}

.learner-intelligence-note textarea {
  min-height: 82px;
  resize: vertical;
  border: 1px solid rgba(11, 31, 77, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: #071b4d;
}

.learner-intelligence-limit-message {
  min-height: 18px;
  margin: 0;
  color: #9b1c1c;
  font-size: 0.78rem;
  font-weight: 850;
}

.learner-intelligence-actions {
  background: #ffffff;
}

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

.learner-intelligence-strategy-grid article,
.learner-intelligence-review-status,
.learner-intelligence-review-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(215, 227, 241, 0.95);
  border-radius: 18px;
  background: #ffffff;
}

.learner-intelligence-strategy-grid h5,
.learner-intelligence-review-status h5,
.learner-intelligence-review-grid strong {
  margin: 0;
  color: #071b4d;
  font-size: 0.96rem;
  font-weight: 1000;
}

.learner-intelligence-strategy-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.42;
}

.learner-intelligence-review-status p,
.learner-intelligence-review-grid p {
  margin: 0;
  color: #64748b;
  font-weight: 780;
  line-height: 1.45;
}

.learner-intelligence-strategy-panel {
  gap: 18px;
  border-color: rgba(216, 167, 44, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #fffaf0 100%);
}

.learner-intelligence-strategy-rag-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.learner-intelligence-strategy-grid .learner-intelligence-strategy-card,
.learner-intelligence-strategy-summary-card {
  position: relative;
  overflow: hidden;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(11, 31, 77, 0.08);
}

.learner-intelligence-strategy-grid .learner-intelligence-strategy-card::before,
.learner-intelligence-strategy-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.learner-intelligence-strategy-card--green {
  border-color: rgba(27, 128, 82, 0.2);
  background: #effaf3;
}

.learner-intelligence-strategy-card--green::before {
  background: #36a269;
}

.learner-intelligence-strategy-card--amber {
  border-color: rgba(188, 111, 18, 0.22);
  background: #fff6e6;
}

.learner-intelligence-strategy-card--amber::before {
  background: #e39a2d;
}

.learner-intelligence-strategy-card--red {
  border-color: rgba(190, 71, 71, 0.22);
  background: #fff0f0;
}

.learner-intelligence-strategy-card--red::before {
  background: #d96b6b;
}

.learner-intelligence-strategy-card-head {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.learner-intelligence-strategy-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #071b4d;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.learner-intelligence-strategy-card-head h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 1000;
}

.learner-intelligence-strategy-grid .learner-intelligence-strategy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learner-intelligence-strategy-grid .learner-intelligence-strategy-card li {
  position: relative;
  padding-left: 18px;
  color: #263446;
  font-size: 0.91rem;
  font-weight: 790;
  line-height: 1.42;
}

.learner-intelligence-strategy-grid .learner-intelligence-strategy-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
}

.learner-intelligence-strategy-summary-card {
  border-color: rgba(49, 111, 177, 0.2);
  background: #edf6ff;
}

.learner-intelligence-strategy-summary-card::before {
  background: #4d93d9;
}

.learner-intelligence-strategy-summary-card p {
  max-width: 920px;
  color: #1e3858;
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.55;
}

.phase-teaching-brief {
  gap: 18px;
}

.phase-teaching-brief-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.phase-teaching-brief-head h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.42rem;
  line-height: 1.12;
  font-weight: 1000;
}

.phase-teaching-brief-head p:not(.eyebrow) {
  margin: 5px 0 0;
  color: #64748b;
  font-weight: 820;
}

.phase-teaching-snapshot,
.phase-teaching-adjustments,
.phase-teaching-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(11, 31, 77, 0.085);
}

.phase-teaching-snapshot {
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 55%, #fff9eb 100%);
}

.phase-teaching-snapshot-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.phase-teaching-snapshot-title strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

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

.phase-teaching-snapshot-grid span {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.phase-teaching-snapshot-grid small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-teaching-snapshot-grid strong {
  color: #071b4d;
  font-size: 0.91rem;
  font-weight: 930;
  line-height: 1.35;
}

.phase-teaching-personalised {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(49, 111, 177, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 58%, #fff9eb 100%);
  box-shadow: 0 20px 42px rgba(11, 31, 77, 0.095);
}

.phase-teaching-personalised::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #4d93d9;
}

.phase-teaching-personalised-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.phase-teaching-personalised-head h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1.12rem;
  line-height: 1.18;
  font-weight: 1000;
}

.phase-teaching-personalised-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.phase-teaching-personalised > p {
  max-width: 980px;
  margin: 0;
  color: #1e3858;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.62;
}

.phase-teaching-learning-prediction {
  display: grid;
  gap: 7px;
  max-width: 980px;
  padding: 14px 16px;
  border: 1px solid rgba(49, 111, 177, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.phase-teaching-learning-prediction strong {
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-teaching-learning-prediction span {
  color: #1e3858;
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.48;
}

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

.phase-teaching-card {
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.phase-teaching-card::before,
.phase-teaching-adjustments::before,
.phase-teaching-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.phase-teaching-card--green {
  border-color: rgba(27, 128, 82, 0.2);
  background: #effaf3;
}

.phase-teaching-card--green::before {
  background: #36a269;
}

.phase-teaching-card--amber {
  border-color: rgba(188, 111, 18, 0.22);
  background: #fff6e6;
}

.phase-teaching-card--amber::before {
  background: #e39a2d;
}

.phase-teaching-card--red {
  border-color: rgba(190, 71, 71, 0.22);
  background: #fff0f0;
}

.phase-teaching-card--red::before {
  background: #d96b6b;
}

.phase-teaching-card ul,
.phase-teaching-adjustments ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-teaching-card li,
.phase-teaching-adjustments li {
  position: relative;
  padding-left: 18px;
  color: #263446;
  font-size: 0.91rem;
  font-weight: 790;
  line-height: 1.42;
}

.phase-teaching-card li::before,
.phase-teaching-adjustments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
}

.phase-teaching-adjustments {
  gap: 16px;
  padding: 20px;
  border-color: rgba(216, 167, 44, 0.22);
  background: #ffffff;
}

.phase-teaching-adjustments::before {
  background: #d8a72c;
}

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

.phase-teaching-adjustment-grid section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(215, 227, 241, 0.95);
  border-radius: 16px;
  background: #f8fbff;
}

.phase-teaching-adjustment-grid strong {
  color: #071b4d;
  font-size: 0.93rem;
  font-weight: 1000;
}

.phase-teaching-summary {
  padding: 20px;
}

.phase-teaching-confidence {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 17px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(49, 111, 177, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 58%, #fffaf0 100%);
  box-shadow: 0 20px 44px rgba(11, 31, 77, 0.095);
}

.phase-teaching-confidence::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #071b4d 0%, #4d93d9 68%, #d8a72c 100%);
}

.phase-teaching-confidence--high {
  border-color: rgba(27, 128, 82, 0.22);
  background: linear-gradient(135deg, #f0faf4 0%, #ffffff 62%, #f7fbff 100%);
}

.phase-teaching-confidence--high::before {
  background: linear-gradient(90deg, #1b8052 0%, #36a269 72%, #d8a72c 100%);
}

.phase-teaching-confidence--moderate {
  border-color: rgba(49, 111, 177, 0.24);
  background: linear-gradient(135deg, #edf6ff 0%, #ffffff 58%, #fff8e7 100%);
}

.phase-teaching-confidence--moderate::before {
  background: linear-gradient(90deg, #316fb1 0%, #4d93d9 68%, #d8a72c 100%);
}

.phase-teaching-confidence--developing {
  border-color: rgba(188, 111, 18, 0.24);
  background: linear-gradient(135deg, #fff8eb 0%, #ffffff 64%, #f7fbff 100%);
}

.phase-teaching-confidence--developing::before {
  background: linear-gradient(90deg, #bc6f12 0%, #e3a13b 74%, #4d93d9 100%);
}

.phase-teaching-confidence--low {
  border-color: rgba(100, 116, 139, 0.22);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 68%, #f3f8ff 100%);
}

.phase-teaching-confidence--low::before {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 75%, #4d93d9 100%);
}

.phase-teaching-confidence-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.phase-teaching-confidence .learner-intelligence-strategy-chip {
  border-color: rgba(216, 167, 44, 0.36);
  background: linear-gradient(135deg, #071b4d 0%, #123a76 100%);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(216, 167, 44, 0.42), 0 8px 18px rgba(7, 27, 77, 0.12);
}

.phase-teaching-confidence-head h5 {
  margin: 8px 0 0;
  color: #071b4d;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 1000;
}

.phase-teaching-confidence-head > strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgba(49, 111, 177, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #071b4d;
  font-size: 0.9rem;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(11, 31, 77, 0.09);
}

.phase-teaching-confidence--high .phase-teaching-confidence-head > strong {
  border-color: rgba(27, 128, 82, 0.22);
  background: #effaf3;
  color: #145c3b;
}

.phase-teaching-confidence--moderate .phase-teaching-confidence-head > strong {
  border-color: rgba(216, 167, 44, 0.34);
  background: linear-gradient(135deg, #edf6ff 0%, #fff6dc 100%);
  color: #071b4d;
}

.phase-teaching-confidence--developing .phase-teaching-confidence-head > strong {
  border-color: rgba(188, 111, 18, 0.26);
  background: #fff3d8;
  color: #7a4a09;
}

.phase-teaching-confidence--low .phase-teaching-confidence-head > strong {
  border-color: rgba(100, 116, 139, 0.22);
  background: #f1f5f9;
  color: #334155;
}

.phase-teaching-evidence-meter {
  position: relative;
  overflow: hidden;
  height: 13px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(49, 111, 177, 0.12);
  box-shadow: inset 0 1px 2px rgba(11, 31, 77, 0.12);
}

.phase-teaching-evidence-meter::before {
  content: "Evidence strength";
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-teaching-evidence-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #071b4d 0%, #316fb1 58%, #d8a72c 100%);
  box-shadow: 0 0 18px rgba(49, 111, 177, 0.26);
}

.phase-teaching-confidence p {
  margin: 0;
  color: #1e3858;
  font-size: 0.94rem;
  font-weight: 790;
  line-height: 1.62;
}

.phase-teaching-confidence p b {
  color: #071b4d;
  font-weight: 1000;
}

.phase-teaching-confidence h6 {
  margin: 0;
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-teaching-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.phase-teaching-evidence-grid span {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.92) 100%);
  box-shadow: 0 10px 22px rgba(11, 31, 77, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.phase-teaching-evidence-grid span::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #4d93d9 0%, #d8a72c 100%);
}

.phase-teaching-evidence-grid span:hover {
  border-color: rgba(49, 111, 177, 0.22);
  box-shadow: 0 14px 28px rgba(11, 31, 77, 0.085);
  transform: translateY(-1px);
}

.phase-teaching-evidence-grid small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 920;
  line-height: 1.28;
}

.phase-teaching-evidence-grid strong {
  color: #071b4d;
  font-size: 1.28rem;
  font-weight: 1000;
  line-height: 1;
}

.phase-teaching-confidence-note {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid rgba(216, 167, 44, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e7 0%, #f3f8ff 100%);
}

.phase-teaching-confidence-note::before {
  content: "Improves over time";
  color: #7a4a09;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-teaching-confidence > small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.learner-intelligence-phase-review {
  margin-top: 8px;
  border-color: rgba(215, 227, 241, 0.92);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.055);
}

@media (max-width: 880px) {
  .learner-intelligence-centre-hero,
  .learner-intelligence-selector-panel,
  .learner-intelligence-selected-card,
  .learner-intelligence-question-grid,
  .learner-intelligence-strategy-grid,
  .learner-intelligence-review-grid {
    grid-template-columns: 1fr;
  }

  .learner-intelligence-selected-card {
    justify-items: start;
  }

  .phase-teaching-brief-head,
  .phase-teaching-snapshot-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .phase-teaching-snapshot-grid,
  .phase-teaching-action-grid,
  .phase-teaching-adjustment-grid,
  .phase-teaching-evidence-grid {
    grid-template-columns: 1fr;
  }
}

.admin-progress-timeline-panel {
  overflow: hidden;
}

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

.admin-progress-timeline article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-left: 4px solid rgba(242, 182, 50, 0.55);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 31, 77, 0.06);
}

.admin-progress-timeline span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-progress-timeline strong {
  color: #071b4d;
  font-weight: 1000;
}

.admin-progress-timeline p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 780;
}

.admin-standard-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 999px;
  background: #fff8dc;
  color: #071b4d;
  font-weight: 1000;
}

.admin-awards-progress,
.admin-feedback-themes {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(215, 227, 241, 0.86);
  border-radius: 16px;
  background: #f8fbff;
}

.admin-awards-progress span,
.admin-feedback-themes span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-awards-progress strong,
.admin-feedback-themes strong {
  color: #071b4d;
  font-weight: 1000;
}

.admin-feedback-themes div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-feedback-themes em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(242, 182, 50, 0.25);
  border-radius: 999px;
  background: #fff8dc;
  color: #071b4d;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.admin-evidence-status-list span {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 999px;
  background: #eef4fb;
  color: #071b4d;
  font-size: 0.76rem;
  font-weight: 1000;
}

/* Premium learner panel visual enhancement */
/* Panel identity styling */
.admin-awards-card,
.admin-interventions-card,
.admin-evidence-card,
.admin-feedback-card {
  position: relative;
  overflow: hidden;
  gap: 15px;
  padding: 20px;
  border-color: rgba(190, 204, 220, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 48px rgba(11, 31, 77, 0.11);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.admin-awards-card:hover,
.admin-interventions-card:hover,
.admin-evidence-card:hover,
.admin-feedback-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 58px rgba(11, 31, 77, 0.14);
}

.admin-awards-card::before,
.admin-interventions-card::before,
.admin-evidence-card::before,
.admin-feedback-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  opacity: 0.9;
}

.admin-awards-card::after,
.admin-interventions-card::after,
.admin-evidence-card::after,
.admin-feedback-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

.admin-awards-card {
  border-color: rgba(176, 116, 37, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(176, 116, 37, 0.1), transparent 13rem),
    linear-gradient(135deg, #fffaf0 0%, #ffffff 58%, #f8fbff 100%);
}

.admin-awards-card::before {
  background: linear-gradient(90deg, #b87425, #f2b632, rgba(242, 182, 50, 0.2));
}

.admin-awards-card::after {
  content: "AWD";
  border: 1px solid rgba(176, 116, 37, 0.22);
  background: linear-gradient(135deg, #fff4cc, #ffffff);
  color: #8a4f0b;
}

.admin-interventions-card {
  border-color: rgba(39, 92, 150, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(39, 92, 150, 0.09), transparent 13rem),
    linear-gradient(135deg, #f2f8ff 0%, #ffffff 58%, #f8fbff 100%);
}

.admin-interventions-card::before {
  background: linear-gradient(90deg, #275c96, #7aa8d8, rgba(122, 168, 216, 0.18));
}

.admin-interventions-card::after {
  content: "SAFE";
  border: 1px solid rgba(39, 92, 150, 0.2);
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  color: #174a82;
}

.admin-evidence-card {
  border-color: rgba(46, 125, 82, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 125, 82, 0.09), transparent 13rem),
    linear-gradient(135deg, #f0faf4 0%, #ffffff 58%, #f8fbff 100%);
}

.admin-evidence-card::before {
  background: linear-gradient(90deg, #2e7d52, #78c090, rgba(120, 192, 144, 0.18));
}

.admin-evidence-card::after {
  content: "DOC";
  border: 1px solid rgba(46, 125, 82, 0.2);
  background: linear-gradient(135deg, #e9f8ef, #ffffff);
  color: #17603f;
}

.admin-feedback-card {
  border-color: rgba(204, 139, 36, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 139, 36, 0.09), transparent 13rem),
    linear-gradient(135deg, #fff8e8 0%, #ffffff 58%, #f8fbff 100%);
}

.admin-feedback-card::before {
  background: linear-gradient(90deg, #cc8b24, #f2b632, rgba(242, 182, 50, 0.18));
}

.admin-feedback-card::after {
  content: "NOTE";
  border: 1px solid rgba(204, 139, 36, 0.2);
  background: linear-gradient(135deg, #fff4d6, #ffffff);
  color: #8a6100;
}

/* Dashboard typography refinement */
.admin-awards-card h4,
.admin-interventions-card h4,
.admin-evidence-card h4,
.admin-feedback-card h4 {
  padding-right: 42px;
  font-size: clamp(1.28rem, 1.7vw, 1.58rem);
  font-weight: 1000;
  line-height: 1.12;
}

.admin-awards-card p,
.admin-interventions-card p,
.admin-evidence-card p,
.admin-feedback-card p {
  color: #536781;
  font-size: 0.92rem;
  font-weight: 760;
}

.admin-awards-card .admin-standard-badge {
  min-height: 40px;
  padding: 8px 14px;
  border-color: rgba(176, 116, 37, 0.36);
  background:
    linear-gradient(135deg, #fff4cc, #ffffff),
    #fff8dc;
  color: #7a4300;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(176, 116, 37, 0.12);
}

.admin-awards-card .admin-awards-progress {
  border-color: rgba(176, 116, 37, 0.2);
  background: linear-gradient(135deg, rgba(255, 244, 204, 0.75), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-awards-card .admin-intel-list div {
  border: 1px solid rgba(176, 116, 37, 0.16);
  background: linear-gradient(135deg, #fff9e8, #ffffff);
}

.admin-awards-card .admin-intel-list strong::before {
  content: "AWD";
  display: inline-flex;
  margin-right: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(176, 116, 37, 0.12);
  color: #8a4f0b;
  font-size: 0.62rem;
  font-weight: 1000;
  vertical-align: middle;
}

.admin-evidence-status-list {
  gap: 11px;
}

.admin-evidence-status-list div {
  position: relative;
  gap: 7px;
  padding: 14px 14px 14px 46px;
  border: 1px solid rgba(46, 125, 82, 0.14);
  background: linear-gradient(135deg, rgba(240, 250, 244, 0.86), #ffffff);
}

.admin-evidence-status-list div::before {
  content: "DOC";
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(46, 125, 82, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #17603f;
  font-size: 0.55rem;
  font-weight: 1000;
}

.admin-evidence-status-list span {
  border-color: rgba(46, 125, 82, 0.2);
  background: linear-gradient(135deg, #e9f8ef, #ffffff);
  color: #17603f;
  box-shadow: 0 7px 14px rgba(46, 125, 82, 0.08);
}

.admin-feedback-card .admin-feedback-themes {
  gap: 9px;
  border-color: rgba(204, 139, 36, 0.18);
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.76), rgba(255, 255, 255, 0.88));
}

.admin-feedback-card .admin-feedback-themes div {
  gap: 9px;
}

.admin-feedback-card .admin-feedback-themes em {
  min-height: 30px;
  padding: 7px 11px;
  border-color: rgba(204, 139, 36, 0.26);
  background: rgba(255, 255, 255, 0.78);
  color: #7a5600;
  font-size: 0.78rem;
}

.admin-feedback-card .admin-intel-list {
  gap: 12px;
}

.admin-feedback-card .admin-intel-list div {
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(204, 139, 36, 0.14);
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.82), #ffffff);
}

.admin-monitoring-state {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(39, 92, 150, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234, 244, 255, 0.86), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admin-monitoring-state span {
  color: #174a82;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-monitoring-state strong {
  color: #071b4d;
  font-size: 1.16rem;
  font-weight: 1000;
}

.admin-monitoring-state p,
.admin-monitoring-state em {
  margin: 0;
  color: #536781;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.admin-intel-review-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.9), rgba(255, 224, 138, 0.56), transparent 44%) top left / 100% 5px no-repeat,
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.13), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 50px rgba(11, 31, 77, 0.11);
}

.admin-intel-review-panel .panel-head {
  align-items: start;
  gap: 16px;
  margin: 0;
}

.admin-intel-review-panel .panel-head h4 {
  color: #071b4d;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.admin-intel-review-panel .panel-head p:not(.eyebrow) {
  color: #64748b;
  font-weight: 780;
}

.admin-intel-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(242, 182, 50, 0.4);
  border-radius: 999px;
  background: #fff8dc;
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  white-space: nowrap;
}

.admin-decision-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-decision-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.09), transparent 10rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(11, 31, 77, 0.08);
}

.admin-decision-card.readiness {
  border-color: rgba(242, 182, 50, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 12rem),
    linear-gradient(135deg, #fffdf4 0%, #ffffff 100%);
}

.admin-decision-card span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-decision-card strong {
  color: #071b4d;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1.18;
}

.admin-decision-card p {
  margin: 0;
  color: #536781;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.4;
}

.admin-decision-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-decision-card li {
  display: grid;
  gap: 2px;
  color: #071b4d;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.32;
}

.admin-decision-card li b {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

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

.admin-intel-snapshot-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(215, 227, 241, 0.94);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.1), transparent 8rem),
    linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 12px 24px rgba(11, 31, 77, 0.07);
}

.admin-intel-snapshot-grid span {
  color: #b98208;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-intel-snapshot-grid strong {
  color: #071b4d;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-intel-review-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-intel-review-body article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(215, 227, 241, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.07);
}

.admin-intel-review-body .admin-intel-review-summary {
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.12), transparent 12rem),
    linear-gradient(135deg, #ffffff 0%, #f3f7fd 100%);
}

.admin-intel-review-body span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-intel-review-body p {
  margin: 0;
  color: #26364a;
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.6;
}

.admin-intel-review-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-intel-review-body li {
  position: relative;
  padding-left: 17px;
  color: #071b4d;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.admin-intel-review-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f2b632;
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.16);
}

.admin-intel-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 14px;
}

.admin-intel-report-body article {
  display: grid;
  gap: 11px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(215, 227, 241, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 30px rgba(11, 31, 77, 0.075);
}

.admin-intel-report-summary {
  grid-row: span 2;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.13), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #f5f8fd 100%);
}

.admin-intel-report-summary p {
  color: #24364d;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 720;
  line-height: 1.72;
}

.admin-intel-report-sections {
  display: grid;
  gap: 16px;
}

.admin-intel-report-sections div {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(215, 227, 241, 0.86);
  border-left-width: 4px;
  border-radius: 16px;
  background: #f8fbff;
}

.admin-intel-report-sections div:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(215, 227, 241, 0.86);
}

.admin-intel-report-sections h5 {
  margin: 0;
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.admin-intel-report-sections .rag-strength {
  border-color: rgba(64, 128, 92, 0.24);
  border-left-color: rgba(46, 125, 82, 0.5);
  background: linear-gradient(135deg, #eef8f1 0%, #fbfefc 100%);
}

.admin-intel-report-sections .rag-monitor {
  border-color: rgba(210, 145, 45, 0.24);
  border-left-color: rgba(204, 139, 36, 0.52);
  background: linear-gradient(135deg, #fff6e4 0%, #fffdf8 100%);
}

.admin-intel-report-sections .rag-priority {
  border-color: rgba(190, 82, 88, 0.24);
  border-left-color: rgba(176, 67, 77, 0.52);
  background: linear-gradient(135deg, #fff0f1 0%, #fffafa 100%);
}

.admin-intel-report-sections .rag-insufficient {
  border-color: rgba(125, 143, 166, 0.24);
  border-left-color: rgba(100, 116, 139, 0.42);
  background: linear-gradient(135deg, #f3f6fa 0%, #fbfdff 100%);
}

.admin-intel-report-sections .rag-strength p,
.admin-intel-report-sections .rag-monitor p,
.admin-intel-report-sections .rag-priority p,
.admin-intel-report-sections .rag-insufficient p {
  color: #132238;
}

.admin-intel-report-body span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-intel-report-body p,
.admin-intel-report-confidence strong {
  margin: 0;
  color: #26364a;
  font-size: 0.96rem;
  line-height: 1.58;
}

.admin-intel-report-confidence {
  border-color: rgba(242, 182, 50, 0.32) !important;
  background: linear-gradient(135deg, #fff8dc 0%, #ffffff 100%) !important;
}

.admin-intel-report-confidence strong {
  color: #071b4d;
  font-weight: 900;
}

.admin-intel-report-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-intel-report-body ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: report-priority;
}

.admin-intel-report-body ol li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(242, 182, 50, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf4 0%, #ffffff 100%);
}

.admin-intel-report-body ol strong {
  color: #071b4d;
  font-size: 0.93rem;
  font-weight: 1000;
  line-height: 1.35;
}

.admin-intel-report-body ol em {
  color: #52657d;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
}

.admin-intel-report-body li {
  position: relative;
  padding-left: 19px;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.42;
}

.admin-intel-report-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2b632, #ffe08a);
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.16);
}

.admin-intel-report-body ol li::before {
  display: none;
}

#adminView > .section-heading.admin-home-search-panel {
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  align-items: center;
  gap: 22px;
  margin: 6px 0 0;
  padding: 24px;
  border: 1px solid rgba(216, 154, 19, 0.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 6%, rgba(242, 182, 50, 0.16), transparent 13rem),
    radial-gradient(circle at 0% 100%, rgba(15, 76, 138, 0.08), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 54%, rgba(239, 245, 252, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(216, 154, 19, 0.08),
    0 22px 50px rgba(11, 31, 77, 0.13);
}

#adminView > .section-heading.admin-home-search-panel .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(216, 154, 19, 0.28);
  border-radius: 999px;
  background: #fff8e7;
  color: #9a6505;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

#adminView > .section-heading.admin-home-search-panel h3 {
  color: #071b4d;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

#adminView > .section-heading.admin-home-search-panel .admin-controls {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.34fr);
  align-items: center;
  gap: 10px;
}

#adminView > .section-heading.admin-home-search-panel input,
#adminView > .section-heading.admin-home-search-panel select {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(7, 27, 77, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  color: #071b4d;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 999px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(11, 31, 77, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#adminView > .section-heading.admin-home-search-panel input::placeholder {
  color: rgba(83, 97, 115, 0.78);
  font-weight: 800;
}

#adminView > .section-heading.admin-home-search-panel input:focus,
#adminView > .section-heading.admin-home-search-panel select:focus {
  border-color: rgba(216, 154, 19, 0.82);
  outline: 3px solid rgba(216, 154, 19, 0.16);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 5px rgba(15, 76, 138, 0.08),
    0 14px 30px rgba(7, 27, 77, 0.13);
}

.tutor-signoff-layout {
  display: grid;
  gap: 16px;
}

.signoff-queue {
  display: grid;
  gap: 14px;
}

.tutor-dashboard-mode {
  grid-template-columns: 1fr;
}

.tutor-dashboard-mode .signoff-queue {
  display: none;
}

.tutor-dashboard-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding: 4px;
  background: #f4f7fb;
}

.tutor-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #061b46 0%, #0d3c87 100%);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(4, 18, 54, 0.24);
}

.tutor-command-hero h1,
.tutor-command-hero p {
  margin: 0;
}

.tutor-command-hero .eyebrow {
  color: #f5b41b;
  letter-spacing: 0.22em;
}

.tutor-command-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.tutor-command-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}

.tutor-command-hero > div > span {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 1000;
}

.tutor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.tutor-hero-actions .primary-action {
  width: auto;
  min-width: 180px;
  box-shadow: 0 16px 34px rgba(245, 180, 27, 0.28);
}

.tutor-hero-actions .small-text {
  color: #dbeafe;
  font-weight: 900;
}

.tutor-priority-card {
  min-width: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.11);
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tutor-priority-card p,
.tutor-priority-card span {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tutor-priority-card p {
  color: #facc15;
}

.tutor-priority-card strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
  font-weight: 1000;
}

.tutor-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}

.tutor-action-card {
  display: grid;
  gap: 8px;
  min-height: 146px;
  width: 100%;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-top: 5px solid #f5b41b;
  border-radius: 24px;
  background: #ffffff;
  color: #071b4d;
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tutor-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.tutor-action-card.active {
  border-color: #f5b41b;
  background: linear-gradient(180deg, #fff8dc 0%, #ffffff 100%);
  box-shadow: 0 0 0 4px rgba(245, 180, 27, 0.16), 0 18px 42px rgba(15, 23, 42, 0.1);
}

.tutor-action-card span {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: normal;
  word-break: normal;
}

.tutor-action-card strong {
  color: #071b4d;
  font-size: 2.25rem;
  font-weight: 1000;
  line-height: 1;
}

.tutor-action-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
}

.tutor-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 26px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.tutor-cohort-selector-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(245, 180, 27, 0.34);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 248, 220, 0.98) 0%, #ffffff 72%),
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.18), transparent 13rem);
  color: #071b4d;
  box-shadow: 0 20px 46px rgba(245, 180, 27, 0.16), 0 8px 22px rgba(15, 23, 42, 0.06);
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tutor-cohort-selector-panel h4,
.tutor-cohort-selector-panel p {
  margin: 0;
}

.tutor-cohort-selector-panel h4 {
  color: var(--navy);
  font-size: 1.56rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.tutor-cohort-selector-panel .eyebrow {
  color: #a36f00;
  letter-spacing: 0.18em;
}

.tutor-cohort-selector-panel p:not(.eyebrow) {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.tutor-cohort-selector-panel select {
  align-self: end;
  min-height: 62px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(163, 111, 0, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  color: #071b4d;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(15, 23, 42, 0.07);
}

.tutor-safeguarding-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(245, 180, 27, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.18), transparent 12rem),
    linear-gradient(145deg, #071b4d 0%, #102b62 100%);
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(4, 18, 54, 0.22), 0 10px 24px rgba(15, 23, 42, 0.12);
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tutor-recognition-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(245, 180, 27, 0.34);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 248, 220, 0.98) 0%, #ffffff 72%),
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.18), transparent 13rem);
  color: #071b4d;
  box-shadow: 0 20px 46px rgba(245, 180, 27, 0.16), 0 8px 22px rgba(15, 23, 42, 0.06);
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tutor-cohort-selector-panel:hover,
.tutor-safeguarding-panel:hover,
.tutor-recognition-panel:hover {
  transform: translateY(-2px);
}

.tutor-cohort-selector-panel:hover,
.tutor-recognition-panel:hover {
  border-color: rgba(245, 180, 27, 0.52);
  box-shadow: 0 26px 58px rgba(245, 180, 27, 0.18), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tutor-safeguarding-panel:hover {
  box-shadow: 0 28px 62px rgba(4, 18, 54, 0.28), 0 14px 32px rgba(15, 23, 42, 0.14);
}

.tutor-safeguarding-panel .eyebrow {
  color: #f5b41b;
  letter-spacing: 0.18em;
}

.tutor-recognition-panel .eyebrow {
  color: #a36f00;
  letter-spacing: 0.18em;
}

.tutor-safeguarding-panel h4,
.tutor-safeguarding-panel p,
.tutor-recognition-panel h4,
.tutor-recognition-panel p {
  margin: 0;
}

.tutor-safeguarding-panel h4 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 1000;
}

.tutor-recognition-panel h4 {
  color: #071b4d;
  font-size: 1.5rem;
  font-weight: 1000;
}

.tutor-safeguarding-panel p:not(.eyebrow) {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.tutor-recognition-panel p:not(.eyebrow) {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.tutor-recognition-recent-list {
  display: grid;
  gap: 8px;
}

.tutor-recognition-recent-list article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 180, 27, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tutor-recognition-recent-list strong {
  color: #071b4d;
  font-size: 0.9rem;
  font-weight: 1000;
}

.tutor-recognition-recent-list span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.tutor-safeguarding-panel div {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.tutor-safeguarding-panel .primary-action,
.tutor-safeguarding-panel .secondary-action,
.tutor-recognition-panel .primary-action {
  justify-content: center;
  min-height: 50px;
  border-radius: 18px;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tutor-safeguarding-panel .primary-action:hover,
.tutor-safeguarding-panel .secondary-action:hover,
.tutor-recognition-panel .primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.tutor-recognition-panel .primary-action {
  margin-top: 6px;
  background: #f5b41b;
  color: #071b4d;
}

.tutor-recognition-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 54, 0.68);
}

.tutor-recognition-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 18, 54, 0.28);
}

.tutor-recognition-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.tutor-recognition-modal h3,
.tutor-recognition-modal p {
  margin: 0;
}

.tutor-recognition-modal h3 {
  margin-top: 4px;
  color: #071b4d;
  font-size: 2rem;
  font-weight: 1000;
}

.tutor-recognition-modal header p:not(.eyebrow) {
  margin-top: 6px;
  color: #64748b;
  font-weight: 800;
}

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

.tutor-recognition-form label {
  display: grid;
  gap: 8px;
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tutor-recognition-form input,
.tutor-recognition-form select,
.tutor-recognition-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 800;
}

.tutor-recognition-form input,
.tutor-recognition-form select {
  min-height: 52px;
  padding: 0 14px;
}

.tutor-recognition-form textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.tutor-recognition-form .form-wide,
.tutor-recognition-feedback,
.tutor-recognition-form .modal-actions {
  grid-column: 1 / -1;
}

.tutor-recognition-feedback {
  min-height: 20px;
  margin: 0;
  font-weight: 900;
}

.tutor-recognition-feedback.error {
  color: #b91c1c;
}

.tutor-queue-overview {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.1), transparent 15rem);
  box-shadow: 0 22px 50px rgba(15, 35, 75, 0.1), 0 8px 22px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.tutor-queue-overview > .cohort-slot-summary {
  padding: 18px 20px;
  border: 1px solid rgba(245, 180, 27, 0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.7), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tutor-queue-overview > .cohort-slot-summary h4 {
  font-size: 1.22rem;
  font-weight: 1000;
}

.tutor-queue-overview .empty-state {
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tutor-work-awaiting-review {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.12), transparent 14rem);
  box-shadow: 0 22px 50px rgba(15, 35, 75, 0.1), 0 8px 22px rgba(15, 23, 42, 0.04);
  margin-top: 26px;
}

.tutor-work-awaiting-review .cohort-slot-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 20px;
  border: 1px solid rgba(245, 180, 27, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.74), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tutor-awaiting-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5b41b, #ffd96a);
  color: var(--navy);
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(245, 180, 27, 0.22);
}

.tutor-submitted-work-list {
  display: grid;
  gap: 12px;
}

.tutor-submitted-work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(245, 180, 27, 0.3);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff8e8 0%, #ffffff 82%);
  box-shadow: 0 14px 32px rgba(245, 180, 27, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tutor-submitted-work-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(245, 180, 27, 0.16), 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tutor-submitted-work-card h5,
.tutor-submitted-work-card p {
  margin: 0;
}

.tutor-submitted-work-card h5 {
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 1000;
}

.tutor-submitted-work-card p {
  color: #64748b;
  font-weight: 800;
}

.tutor-submitted-work-card strong,
.tutor-submitted-work-card span {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-weight: 900;
}

.tutor-submitted-work-card span {
  color: #a36f00;
}

.tutor-submitted-work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tutor-submitted-work-actions .primary-action,
.tutor-submitted-work-actions .secondary-action {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 1000;
}

.tutor-cohort-card.needs-action {
  border-color: rgba(242, 182, 50, 0.55);
  background: #fffdf3;
}

.tutor-card-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tutor-attendance-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.tutor-back-dashboard {
  width: fit-content;
}

.tutor-learner-banner {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(11, 31, 77, 0.98), rgba(18, 48, 107, 0.94)),
    radial-gradient(circle at 90% 10%, rgba(242, 182, 50, 0.28), transparent 22rem);
  color: white;
  box-shadow: var(--shadow);
}

.tutor-banner-photo {
  display: grid;
  place-items: start;
}

.tutor-banner-photo .learner-avatar.large {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border: 5px solid var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 0 5px rgba(255, 255, 255, 0.16);
  font-size: 1.6rem;
}

.tutor-banner-main {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.tutor-banner-main h3 {
  margin: 0;
  color: white;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tutor-banner-main p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.tutor-banner-stats,
.tutor-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutor-banner-stats span,
.ready-count-pill,
.phase-status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.tutor-banner-stats strong,
.ready-count-pill strong,
.phase-status-pill strong {
  color: white;
}

.tutor-banner-actions {
  align-content: center;
}

.tutor-banner-actions label {
  display: grid;
  gap: 5px;
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ready-count-pill {
  border: 1px solid rgba(24, 165, 88, 0.45);
  background: #def8e8;
  color: #0b6b35;
}

.ready-count-pill strong {
  color: #0b6b35;
  font-size: 1.4rem;
}

.phase-status-pill {
  border: 1px solid rgba(242, 182, 50, 0.45);
  background: #fff2c7;
  color: #8a5b00;
}

.phase-status-pill span {
  color: #8a5b00;
}

.tutor-summary-grid {
  display: grid;
  gap: 10px;
}

.tutor-summary-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.tutor-summary-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutor-summary-card strong {
  color: var(--navy);
  font-size: 1.8rem;
}

.tutor-summary-card.green {
  border-color: rgba(24, 165, 88, 0.35);
  box-shadow: inset 5px 0 0 #18a558, 0 8px 24px rgba(15, 35, 63, 0.07);
}

.tutor-summary-card.blue {
  box-shadow: inset 5px 0 0 var(--blue), 0 8px 24px rgba(15, 35, 63, 0.07);
}

.tutor-summary-card.amber {
  box-shadow: inset 5px 0 0 var(--warn), 0 8px 24px rgba(15, 35, 63, 0.07);
}

.tutor-summary-card.gold {
  box-shadow: inset 5px 0 0 var(--gold), 0 8px 24px rgba(15, 35, 63, 0.07);
}

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

.tutor-queue-section,
.tutor-collapsible {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.ready-marking-grid,
.marked-task-list,
.awaiting-task-list {
  display: grid;
  gap: 10px;
}

.ready-mark-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(24, 165, 88, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 165, 88, 0.08), rgba(255, 255, 255, 0)), #ffffff;
  box-shadow: inset 5px 0 0 #18a558;
}

.ready-mark-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ready-mark-head h4,
.marked-task-card h4,
.awaiting-task-list h4 {
  margin: 6px 0 0;
  color: var(--navy);
}

.ready-mark-head p,
.marked-task-card p,
.awaiting-task-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ready-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #def8e8;
  color: #0b6b35;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ready-mark-facts {
  display: grid;
  gap: 8px;
}

.ready-mark-facts div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.ready-mark-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ready-mark-facts strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
}

.queue-evidence-preview .evidence-list {
  margin-top: 0;
}

.queue-mark-actions {
  display: grid;
  gap: 8px;
}

.queue-mark-actions .selected,
.grade-picker button.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.grade-bronze {
  border-color: #c47a3c;
}

.grade-silver {
  border-color: #b9c5d1;
}

.grade-gold {
  border-color: var(--gold);
}

.tutor-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
}

.tutor-collapsible summary::-webkit-details-marker {
  display: none;
}

.tutor-collapsible summary strong {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--wash);
}

.marked-task-card,
.awaiting-task-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.awaiting-task-list article {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fffaf0;
}

.awaiting-task-list article > span {
  color: var(--warn);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marked-task-actions {
  display: grid;
  gap: 8px;
}

.queue-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-align: left;
}

.queue-task.active {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 8px 24px rgba(15, 35, 63, 0.08);
}

.queue-task span,
.signoff-evidence span,
.evidence-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.queue-task strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.queue-task small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.signoff-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

#tutorSignoffPanel:has(.award-certificate-wrap) {
  width: calc(100vw - 28px);
  max-width: none;
  margin-left: calc(50% - 50vw + 14px);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#tutorSignoffPanel:has(.tutor-shared-live-ilp-overlay) {
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.tutor-shared-live-ilp-overlay {
  z-index: 10000;
}

.marking-assessment-layout {
  display: grid;
  gap: 16px;
}

.technical-assessment-panel,
.professional-behaviour-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.professional-behaviour-panel {
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(216, 167, 44, 0.38);
  border-radius: 8px;
  background: #fffdf7;
}

.professional-behaviour-panel .panel-head {
  align-items: start;
}

.tutor-marking-workflow-mode .signoff-queue,
.tutor-marking-workflow-mode #tutorTaskList {
  display: none;
}

.tutor-marking-workflow {
  display: grid;
  gap: 18px;
}

.tutor-back-dashboard {
  justify-self: start;
}

.tutor-marking-learner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
    #ffffff;
  box-shadow: 0 24px 54px rgba(5, 19, 50, 0.12);
}

.tutor-learner-confirmation-profile {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.tutor-learner-confirmation-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(242, 182, 50, 0.18), transparent 34%),
    linear-gradient(135deg, #0b1f4d 0%, #123674 100%);
  box-shadow: 0 20px 42px rgba(15, 35, 63, 0.22);
}

.tutor-learner-confirmation-name {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tutor-marking-learner-header .assigned-slot-photo .learner-avatar.large {
  width: clamp(112px, 10vw, 142px);
  height: clamp(112px, 10vw, 142px);
  border-radius: 50%;
  border: 6px solid #ffffff;
  outline: 4px solid rgba(242, 182, 50, 0.78);
  box-shadow: 0 18px 34px rgba(5, 19, 50, 0.26);
}

.tutor-marking-learner-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.04;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.tutor-learner-confirmation-panel .eyebrow {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.tutor-learner-status-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 850;
}

.tutor-marking-learner-header .assigned-slot-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tutor-marking-learner-header .assigned-slot-meta span {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 34px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 31, 77, 0.11);
  border-left: 4px solid var(--gold);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 35, 63, 0.07);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 950;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tutor-marking-learner-header .assigned-slot-meta small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutor-marking-kpis {
  display: grid;
  gap: 12px;
}

.tutor-marking-kpis div {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px 17px 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.11);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 32px rgba(5, 19, 50, 0.09);
}

.tutor-marking-kpis div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gold);
}

.tutor-marking-kpis span,
.lesson-marking-facts span,
.learner-response-box span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutor-marking-kpis strong,
.lesson-marking-facts strong {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 1000;
}

.outstanding-lessons-queue {
  display: grid;
  gap: 16px;
}

.lesson-marking-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(5, 19, 50, 0.1);
}

.lesson-marking-card-head {
  display: grid;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lesson-marking-card-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.lesson-marking-card-head p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
}

.lesson-marking-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.lesson-evidence-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.lesson-marking-facts {
  display: grid;
  gap: 10px;
}

.lesson-marking-facts div,
.learner-response-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.lesson-marking-facts div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 24px rgba(5, 19, 50, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lesson-marking-facts div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}

.lesson-marking-facts div:hover {
  border-color: rgba(242, 182, 50, 0.36);
  box-shadow: 0 16px 30px rgba(5, 19, 50, 0.11);
  transform: translateY(-1px);
}

.lesson-marking-facts div span {
  color: rgba(11, 31, 77, 0.62);
  letter-spacing: 0.055em;
}

.lesson-marking-facts div strong {
  color: var(--navy);
  font-weight: 1000;
}

.learner-response-box p {
  margin: 0;
  color: var(--navy);
  line-height: 1.5;
}

.lesson-evidence-column .evidence-review-panel {
  display: grid;
  min-height: 320px;
  align-content: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 16px 34px rgba(5, 19, 50, 0.09);
}

.lesson-evidence-column .evidence-review-panel .eyebrow {
  color: var(--gold);
  font-weight: 1000;
  letter-spacing: 0.065em;
}

.lesson-evidence-column .evidence-review-panel .evidence-preview {
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(5, 19, 50, 0.06);
}

.lesson-evidence-column .evidence-review-panel .evidence-preview strong {
  color: var(--navy);
  font-weight: 1000;
}

.lesson-evidence-column .evidence-review-panel .evidence-preview p {
  color: rgba(11, 31, 77, 0.62);
  font-weight: 750;
}

.lesson-evidence-column .evidence-media {
  width: 100%;
  min-height: 220px;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.lesson-evidence-column .learner-response-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 16px 34px rgba(5, 19, 50, 0.09);
}

.lesson-evidence-column .learner-response-box span {
  color: var(--gold);
  font-weight: 1000;
  letter-spacing: 0.065em;
}

.lesson-evidence-column .learner-response-box p {
  color: var(--navy);
  font-weight: 800;
}

.lesson-comment-save {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tutor-feedback-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-left: 6px solid var(--gold);
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.1);
}

.tutor-feedback-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.tutor-feedback-card-head span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-feedback-card-head h4 {
  margin: 3px 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
}

.tutor-feedback-card-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.tutor-feedback-card-head em {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(242, 182, 50, 0.42);
  border-radius: 999px;
  background: #fff8df;
  color: #946400;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.tutor-feedback-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutor-feedback-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 7px 14px rgba(15, 35, 63, 0.06);
}

.tutor-feedback-chip:hover,
.tutor-feedback-chip:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.22);
}

.tutor-feedback-textarea-label {
  display: grid;
  gap: 8px;
}

.tutor-feedback-textarea-label span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.tutor-feedback-textarea-label textarea {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(11, 31, 77, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(15, 35, 63, 0.04);
}

.tutor-feedback-textarea-label textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(242, 182, 50, 0.24);
}

.tutor-feedback-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.lesson-comment-save .primary-action {
  justify-self: start;
  min-width: min(260px, 100%);
}

.lesson-comment-save .primary-action.is-saving {
  opacity: 0.75;
  cursor: wait;
}

.lesson-comment-save .primary-action.is-saved {
  background: #18A558;
  border-color: #18A558;
  color: #ffffff;
}

.lesson-comment-save .primary-action.is-failed {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
}

.lesson-comment-save .primary-action.has-unsaved-changes {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.lesson-save-feedback {
  min-height: 20px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 900;
}

.lesson-save-feedback.success {
  color: #137a3f;
}

.lesson-save-feedback.error {
  color: #b42318;
}

.lesson-save-feedback.unsaved {
  color: #8a6200;
}

.lesson-technical-picker button {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(5, 19, 50, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.lesson-technical-picker button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gold);
}

.lesson-technical-picker button:hover,
.lesson-technical-picker button:focus-visible {
  border-color: rgba(242, 182, 50, 0.72);
  box-shadow: 0 16px 30px rgba(5, 19, 50, 0.12), 0 0 0 3px rgba(242, 182, 50, 0.16);
  transform: translateY(-1px);
}

.lesson-technical-picker button:active {
  transform: scale(0.99);
}

.lesson-technical-picker button.selected {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, #123674 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(5, 19, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.lesson-technical-picker button span {
  color: inherit;
  font-weight: 1000;
}

.lesson-technical-picker button small {
  color: inherit;
  opacity: 0.72;
  font-weight: 800;
}

.marked-lesson-summary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.assessment-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.assessment-history-list {
  display: grid;
  gap: 8px;
}

.assessment-history-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #ffffff;
}

.assessment-history-list strong {
  color: var(--navy);
}

.assessment-history-list span,
.assessment-history-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.edit-reason-field textarea {
  border-color: rgba(242, 182, 50, 0.6);
  background: #fffdf4;
}

.behaviour-metric-list {
  display: grid;
  gap: 18px;
}

.behaviour-metric {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(11, 31, 77, 0.1);
}

.behaviour-metric:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.behaviour-metric legend {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 1000;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.behaviour-metric legend::before {
  content: "";
  width: 5px;
  height: 24px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 4px 10px rgba(242, 182, 50, 0.28);
}

.behaviour-grade-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.behaviour-grade-options button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(5, 19, 50, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.behaviour-grade-options button:hover,
.behaviour-grade-options button:focus-visible {
  border-color: rgba(242, 182, 50, 0.72);
  box-shadow: 0 12px 22px rgba(5, 19, 50, 0.11), 0 0 0 3px rgba(242, 182, 50, 0.18);
  transform: translateY(-1px);
}

.behaviour-grade-options button:active {
  transform: scale(0.98);
}

.behaviour-grade-options button.selected {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, #123674 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(5, 19, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.behaviour-grade-options button.selected span {
  color: #ffffff;
}

.behaviour-score-summary {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
}

.behaviour-score-summary span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.behaviour-score-summary strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.behaviour-score-summary p,
.professional-standards-score-display {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.behaviour-score-summary .professional-standards-score-value {
  display: block;
  color: #ffffff;
  font-size: clamp(3.1rem, 8vw, 5.2rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: none;
}

.behaviour-score-summary .professional-standards-score-display small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.behaviour-score-summary .professional-standards-score-display.incomplete .professional-standards-score-value {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
}

.behaviour-live-metrics {
  display: grid;
  gap: 8px;
}

.behaviour-live-metrics div {
  padding: 10px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.behaviour-live-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.behaviour-live-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
}

.behaviour-profile-grid {
  display: grid;
  gap: 8px;
}

.behaviour-profile-grid div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.behaviour-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.behaviour-profile-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.25rem;
}

.signoff-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.signoff-header h4 {
  margin: 3px 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.signoff-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.signoff-evidence div,
.evidence-preview,
.attempt-row {
  padding: 11px;
  border-radius: 8px;
  background: var(--wash);
}

.signoff-evidence strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.evidence-preview {
  display: grid;
  gap: 4px;
  border: 1px dashed #b9c8d8;
}

.evidence-preview strong {
  color: var(--navy);
}

.evidence-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.grade-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.grade-picker legend,
.comment-label {
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

.grade-picker button {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  text-align: left;
}

.grade-picker button.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.grade-picker button span {
  font-weight: 900;
}

.grade-picker button small {
  color: inherit;
  opacity: 0.78;
  font-size: 0.78rem;
}

.comment-label {
  display: block;
}

.official-signoff-panel,
.official-signoff-note,
.signed-record {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216, 167, 44, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(216, 167, 44, 0.1), rgba(255, 255, 255, 0)),
    #fffdf7;
}

.official-signoff-note {
  border-color: var(--line);
  background: #fbfdff;
}

.official-signoff-note h4,
.signed-record h5 {
  margin: 0;
  color: var(--navy);
}

.official-signoff-note p:not(.eyebrow),
.signed-record p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.signature-pad-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #aebed0;
  border-radius: 8px;
  background:
    linear-gradient(transparent calc(100% - 42px), rgba(15, 35, 63, 0.08) calc(100% - 41px), transparent calc(100% - 40px)),
    white;
}

.signature-pad {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 230px);
  cursor: crosshair;
  touch-action: none;
}

.signed-record {
  border-color: #c9d5e3;
  background: #fbfdff;
}

.signed-record.compact {
  box-shadow: none;
}

.signed-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.signed-record-grid div {
  padding: 9px;
  border-radius: 8px;
  background: var(--wash);
}

.signed-record-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signed-record-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.signature-image {
  width: min(100%, 260px);
  min-height: 74px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.signature-thumb {
  width: 92px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  object-fit: contain;
}

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

.attempt-history {
  display: grid;
  gap: 8px;
}

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

.signoff-audit-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.employer-signoffs {
  display: grid;
  gap: 10px;
}

.attempt-row span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 900;
}

.attempt-row strong {
  color: var(--navy);
}

.attempt-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.lesson-card,
.review-card,
.learner-row,
.record-panel,
.employer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.record-panel {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.admin-setup-panel,
.empty-state,
.attendance-marker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.admin-setup-panel {
  border-color: rgba(216, 167, 44, 0.58);
  background: #fffaf0;
}

.learner-setup-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.98)),
    #fffaf0;
}

.admin-back-button {
  width: fit-content;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(11, 31, 77, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 35, 75, 0.06);
}

.admin-back-button:hover {
  border-color: rgba(242, 182, 50, 0.72);
  background: #fffaf0;
}

.learner-setup-title h4 {
  font-size: 1.28rem;
}

.learner-setup-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.setup-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.setup-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.setup-section-heading span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-section-heading h5 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.identity-layout {
  display: grid;
  gap: 12px;
}

.profile-photo-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(216, 167, 44, 0.35);
  border-radius: 8px;
  background: white;
}

.profile-photo-setup.photo-complete {
  border-color: rgba(15, 138, 97, 0.35);
  background: #eefaf3;
}

.profile-photo-setup.show-warning {
  border-color: rgba(186, 61, 61, 0.62);
  background: #fffafa;
}

.profile-photo-setup .photo-upload-status {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-photo-setup.photo-complete .photo-upload-status {
  color: var(--good);
}

.profile-photo-setup .field-warning {
  grid-column: 2;
}

.photo-upload {
  position: relative;
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-photo-setup.photo-complete .photo-upload {
  border-color: rgba(15, 138, 97, 0.44);
  background: #ffffff;
  color: var(--good);
}

.visually-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.learner-setup-page .profile-photo-setup {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(216, 167, 44, 0.48);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 14px 30px rgba(15, 35, 63, 0.08);
}

.learner-setup-page .profile-photo-setup .learner-avatar.large {
  width: 156px;
  height: 156px;
  min-width: 156px;
  border: 5px solid #ffffff;
  outline: 4px solid rgba(216, 167, 44, 0.84);
  box-shadow: 0 18px 34px rgba(15, 35, 63, 0.18);
  object-fit: cover;
}

.learner-setup-page .profile-photo-setup .photo-upload {
  width: fit-content;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(15, 35, 63, 0.08);
}

.learner-setup-page .profile-photo-setup .photo-upload-status,
.learner-setup-page .profile-photo-setup .field-warning {
  grid-column: 2;
}

@media (max-width: 720px) {
  .learner-setup-page .profile-photo-setup {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .learner-setup-page .profile-photo-setup .learner-avatar.large {
    width: 132px;
    height: 132px;
    min-width: 132px;
  }

  .learner-setup-page .profile-photo-setup .photo-upload-status,
  .learner-setup-page .profile-photo-setup .field-warning {
    grid-column: 1;
  }
}

.setup-grid {
  display: grid;
  gap: 8px;
}

.setup-grid label,
.setup-section-grid label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

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

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

.form-field {
  width: 100%;
  min-width: 0;
}

.form-control,
.form-field input,
.form-field select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.form-field textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.form-control.completed,
.form-control.completed-field,
.form-field input.completed,
.form-field input.completed-field,
.form-field select.completed,
.form-field select.completed-field,
.form-field textarea.completed,
.form-field textarea.completed-field {
  background: #e8f7ec;
  border-color: #4caf50;
}

.setup-section-grid label span {
  color: var(--gold-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.setup-section-grid input,
.setup-section-grid select,
.setup-section-grid textarea {
  width: 100%;
}

.setup-section-grid.school-partner-organisation-grid,
.partner-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.setup-section-grid.school-partner-organisation-grid.partner-form-grid {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  overflow: visible;
}

.school-partner-organisation-grid .admin-required-field,
.school-partner-organisation-grid label,
.partner-form-field {
  width: 100%;
  min-width: 0;
}

.school-partner-organisation-grid input,
.school-partner-organisation-grid select,
.school-partner-organisation-grid textarea,
.partner-form-control,
.partner-form-field input,
.partner-form-field select,
.partner-form-field textarea {
  width: 100%;
  height: 48px;
  min-height: 48px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  background: #ffffff;
}

.partner-form-field textarea {
  height: 96px;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .form-grid-3,
  .setup-section-grid.school-partner-organisation-grid,
  .partner-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-grid-3,
  .setup-section-grid.school-partner-organisation-grid,
  .partner-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-required-field input,
.admin-required-field select,
.admin-required-field textarea {
  border: 1px solid var(--line);
  background: #ffffff;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-required-field input.field-valid,
.admin-required-field select.field-valid,
.admin-required-field textarea.field-valid {
  border-color: rgba(15, 138, 97, 0.38);
  background: #eefaf3;
  box-shadow: inset 0 0 0 1px rgba(15, 138, 97, 0.08);
}

.admin-required-field {
  position: relative;
}

.completed-field,
.admin-required-field input.completed-field,
.admin-required-field select.completed-field,
.admin-required-field textarea.completed-field {
  background: #e8f7ec;
  border: 1px solid #4caf50;
  transition: all 0.2s ease;
}

.completed-field:focus,
.admin-required-field input.completed-field:focus,
.admin-required-field select.completed-field:focus,
.admin-required-field textarea.completed-field:focus {
  background: #e8f7ec;
}

.admin-required-field.field-complete::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 34px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  font-size: 0.78rem;
  font-weight: 900;
  pointer-events: none;
}

.admin-required-field.field-complete input,
.admin-required-field.field-complete select,
.admin-required-field.field-complete textarea {
  padding-right: 38px;
}

.admin-required-field input.field-invalid,
.admin-required-field select.field-invalid,
.admin-required-field textarea.field-invalid {
  border-color: rgba(186, 61, 61, 0.62);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(186, 61, 61, 0.08);
}

.partner-form-field .partner-form-control,
.partner-form-field input.partner-form-control,
.partner-form-field select.partner-form-control,
.partner-form-field textarea.partner-form-control {
  width: 100%;
  height: 48px;
  min-height: 48px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  background: #ffffff;
}

.partner-form-field.field-complete .partner-form-control,
.partner-form-field.field-complete input.partner-form-control,
.partner-form-field.field-complete select.partner-form-control,
.partner-form-field.field-complete textarea.partner-form-control {
  padding-right: 38px;
}

.partner-form-field textarea.partner-form-control {
  height: 96px;
  padding-top: 12px;
}

.school-partner-logo-upload {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(216, 167, 44, 0.48);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 14px 30px rgba(15, 35, 63, 0.08);
}

.school-partner-logo-preview {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 22px;
  outline: 4px solid rgba(216, 167, 44, 0.84);
  background: #fff8df;
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 1000;
  box-shadow: 0 18px 34px rgba(15, 35, 63, 0.18);
}

.school-partner-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-partner-logo-controls {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.school-partner-logo-upload .photo-upload {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 35, 63, 0.08);
}

.school-partner-account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.school-partner-account-identity .partner-logo-card {
  width: 82px;
  height: 64px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.school-partner-account-identity .partner-logo,
.school-partner-account-identity .partner-logo-fallback {
  width: 72px;
  height: 54px;
}

.data-integrity-panel {
  display: grid;
  gap: 18px;
}

.learner-reset-panel {
  display: grid;
  gap: 18px;
}

.reset-danger-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  border-left: 6px solid #dc2626;
  background: #fff1f2;
  color: #7f1d1d;
}

.reset-danger-card strong {
  color: #7f1d1d;
}

.reset-danger-card p {
  margin: 8px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.reset-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.reset-report-grid article {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #16a34a;
}

.reset-report-grid span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.reset-report-grid strong {
  display: block;
  margin-top: 6px;
  color: #071b4d;
  font-size: 1.45rem;
  line-height: 1;
}

.reset-warning-list {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

.integrity-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.integrity-summary-grid article {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #f5b41b;
}

.integrity-summary-grid span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.integrity-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #071b4d;
  font-size: 1.8rem;
  line-height: 1;
}

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

.integrity-detail-grid > div,
.integrity-regression-card {
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
}

.integrity-detail-grid h5 {
  margin: 0 0 10px;
  color: #071b4d;
}

.integrity-detail-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-weight: 800;
}

.integrity-regression-card {
  border-left: 5px solid #22c55e;
}

.integrity-regression-card.failed {
  border-left-color: #dc2626;
}

.integrity-regression-card span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.integrity-regression-card strong {
  display: block;
  margin: 5px 0;
  color: #071b4d;
  font-size: 1.3rem;
}

.integrity-regression-card p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.admin-cohort-slot-view {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
}

.admin-cohort-slot-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-cohort-slot-view-head h5,
.admin-cohort-slot-view-head p {
  margin: 0;
}

.admin-cohort-slot-view-head h5 {
  margin-top: 4px;
  color: #071b4d;
}

.admin-cohort-slot-view-head p {
  color: #64748b;
  font-weight: 800;
}

.admin-slot-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.admin-slot-mini-card {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #cbd5e1;
}

.admin-slot-mini-card.selected {
  border-left-color: #f5b41b;
  box-shadow: 0 0 0 3px rgba(245, 180, 27, 0.14);
}

.admin-slot-mini-card.current {
  background: #ecfdf3;
  border-color: #86efac;
  border-left-color: #16a34a;
}

.admin-slot-mini-card.occupied {
  border-left-color: #071b4d;
}

.admin-slot-mini-card.empty {
  border-left-color: #f5b41b;
}

.admin-slot-mini-card > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-slot-mini-card > strong {
  color: #071b4d;
}

.admin-slot-learner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-slot-learner .learner-avatar,
.admin-slot-learner .learner-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.admin-slot-learner strong,
.admin-slot-learner small {
  display: block;
}

.admin-slot-learner strong {
  color: #071b4d;
  line-height: 1.1;
}

.admin-slot-learner small {
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 720px) {
  .school-partner-logo-upload {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .school-partner-logo-preview {
    width: 132px;
    height: 132px;
  }

  .school-partner-logo-controls {
    justify-items: center;
  }

  .integrity-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-cohort-slot-view-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.partner-form-field .partner-form-control.completed-field,
.partner-form-field input.partner-form-control.completed-field,
.partner-form-field select.partner-form-control.completed-field,
.partner-form-field textarea.partner-form-control.completed-field {
  background: #e8f7ec;
  border-color: #4caf50;
}

.field-warning {
  display: none;
  color: var(--bad);
  font-size: 0.74rem;
  font-weight: 800;
}

.parent-link-status {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.parent-link-status.valid {
  color: var(--good);
}

.parent-link-status.invalid {
  color: var(--bad);
}

.admin-required-field.show-warning .field-warning,
.profile-photo-setup.show-warning .field-warning {
  display: block;
}

.learner-setup-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(186, 61, 61, 0.18);
  border-radius: 8px;
  background: #fffafa;
  color: var(--bad);
  font-size: 0.86rem;
  font-weight: 900;
}

.learner-setup-status.progress-low {
  border-color: rgba(186, 61, 61, 0.22);
  background: #fffafa;
  color: var(--bad);
}

.learner-setup-status.progress-almost {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fff7e6;
  color: #92400e;
}

.learner-setup-status.ready {
  border-color: rgba(15, 138, 97, 0.2);
  background: #eefaf3;
  color: var(--good);
}

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

.setup-actions-section {
  background: #f8fbff;
}

.setup-action-grid {
  display: grid;
  gap: 8px;
}

.admin-action-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-action-feedback span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.82rem;
}

.admin-action-feedback.success {
  border: 1px solid rgba(15, 138, 97, 0.24);
  background: #eefaf3;
  color: var(--good);
}

.admin-action-feedback.success span {
  background: var(--good);
}

.admin-action-feedback.error {
  border: 1px solid rgba(186, 61, 61, 0.24);
  background: #fffafa;
  color: var(--bad);
}

.admin-action-feedback.error span {
  background: var(--bad);
}

.progress-snapshot-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

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

.snapshot-card {
  min-height: 132px;
}

.employer-account-admin {
  grid-column: 1 / -1;
}

.admin-viewer-account-grid {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 14px;
}

.cohort-slot-overview {
  display: grid;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.08);
}

.cohort-slot-summary {
  display: grid;
  gap: 12px;
  align-items: center;
}

.cohort-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cohort-slot-summary h4,
.cohort-slot-summary p,
.cohort-slot-card h5,
.cohort-slot-card p {
  margin: 0;
}

.cohort-slot-summary h4 {
  color: var(--navy);
  font-size: 1.28rem;
}

.cohort-slot-summary p,
.cohort-slot-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.cohort-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.admin-record-panels .cohort-slot-overview {
  max-width: none;
}

.admin-record-panels .cohort-slot-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.admin-record-panels .cohort-slot-card {
  grid-column: 1 / -1;
}

.admin-record-panels .cohort-slot-card.assigned,
.admin-record-panels .assigned-slot-card {
  grid-column: 1 / -1;
}

.admin-record-panels .assigned-slot-profile {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
}

.admin-record-panels .cohort-slot-card.available {
  min-height: 120px;
}

.cohort-slot-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
  min-height: 150px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.slot-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.cohort-slot-card.assigned {
  grid-column: span 2;
  align-content: stretch;
  padding: 18px;
  border-color: rgba(15, 138, 97, 0.28);
  background: #f4fff8;
  box-shadow: 0 14px 30px rgba(15, 138, 97, 0.1);
}

.assigned-slot-card {
  grid-column: span 2;
}

.admin-grid .cohort-slot-card.assigned,
.admin-grid .assigned-slot-card,
.admin-record-panels .cohort-slot-card.assigned,
.admin-record-panels .assigned-slot-card {
  grid-column: span 1;
}

.cohort-slot-card.available {
  min-height: 132px;
  border-color: rgba(242, 182, 50, 0.34);
  border-left: 4px solid var(--gold);
  background: #fbfcfe;
}

.assigned-slot-profile {
  display: grid;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.assigned-slot-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.assigned-slot-photo .learner-avatar.large {
  width: 92px;
  height: 92px;
  border: 4px solid #ffffff;
  outline: 3px solid rgba(242, 182, 50, 0.78);
  box-shadow: 0 12px 24px rgba(15, 35, 63, 0.16);
}

.assigned-slot-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.assigned-slot-main h5 {
  font-size: 1.28rem;
  line-height: 1.15;
}

.assigned-slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.assigned-slot-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(15, 138, 97, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.assigned-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.assigned-slot-actions button {
  min-height: 40px;
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-card-top span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-card-top strong,
.cohort-slot-card h5 {
  color: var(--navy);
}

.slot-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-status.assigned {
  background: rgba(15, 138, 97, 0.12);
  color: var(--good);
}

.slot-status.available {
  background: rgba(242, 182, 50, 0.16);
  color: var(--gold-dark);
}

@media (max-width: 900px) {
  .cohort-slot-card.assigned,
  .assigned-slot-card {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .cohort-slot-grid,
  .employer-account-list {
    grid-template-columns: 1fr;
  }

  .admin-record-panels .assigned-slot-profile {
    grid-template-columns: 1fr;
  }
}

#adminView .cohort-slot-overview {
  max-width: none;
}

#adminView .cohort-slot-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
}

#adminView .cohort-slot-card,
#adminView .cohort-slot-card.assigned,
#adminView .assigned-slot-card {
  grid-column: 1 / -1 !important;
  width: 100%;
}

#adminView .assigned-slot-profile {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
}

#adminView .cohort-slot-card.available {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) auto minmax(180px, 240px);
  align-items: center;
  gap: 18px;
  min-height: 104px;
}

#adminView .cohort-slot-card.available .slot-card-top,
#adminView .cohort-slot-card.available h5,
#adminView .cohort-slot-card.available .slot-status,
#adminView .cohort-slot-card.available button {
  margin: 0;
}

#adminView .cohort-slot-card.available button {
  width: 100%;
}

@media (max-width: 760px) {
  #adminView .assigned-slot-profile,
  #adminView .cohort-slot-card.available {
    grid-template-columns: 1fr;
  }
}

.employer-account-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.employer-account-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.07);
}

.employer-account-row.archived {
  border-style: dashed;
  background: #f4f6f8;
  opacity: 0.72;
  box-shadow: none;
}

.parent-carer-account-row.archived h4,
.parent-carer-account-row.archived strong {
  color: #53606f;
}

.employer-account-row h4,
.employer-account-row p {
  margin: 0;
}

.employer-account-row h4 {
  color: var(--navy);
}

.employer-account-row p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.88rem;
}

.employer-account-row span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employer-account-row strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.employer-account-actions {
  display: grid;
  gap: 8px;
}

.account-list-heading {
  align-items: center;
}

.show-archived-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.show-archived-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.danger-action {
  min-height: 42px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 1000;
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.danger-action:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #991b1b;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.danger-action.action-loading {
  opacity: 0.72;
  cursor: progress;
}

.warning-action {
  border-color: #f59e0b;
  color: #92400e;
  background: #fff7e6;
}

.empty-state h4 {
  margin: 0;
  color: var(--navy);
}

.empty-state p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.record-panel h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.record-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.id-management {
  border-color: rgba(216, 167, 44, 0.58);
  background: #fffaf0;
}

.lesson-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-height: 190px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-title {
  display: -webkit-box;
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  color: #071b4d;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lesson-score,
.grade-badge,
.ready-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.lesson-score {
  background: #edf3f8;
  color: var(--blue);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.evidence-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.evidence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.evidence-row.complete {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.evidence-row.awaiting,
.evidence-row.pending {
  background: #fff7e6;
  border-color: #fed7aa;
  color: #92400e;
}

.evidence-row.locked {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.evidence-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-value {
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.locked-message {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.task-groups {
  display: none;
  padding: 0 14px 14px;
}

.lesson-card.open .task-groups {
  display: grid;
  gap: 12px;
}

.task-group h4 {
  margin: 0 0 8px;
  color: var(--navy);
}

.task-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.task-workbook {
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.08);
}

.task-workbook.lesson-workbook-page {
  background: #f4f7fb;
  box-shadow: none;
}

.mission-step-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
}

.mission-step-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mission-step-heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  border-radius: 50%;
  background: #0B1F4D;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.mission-step-heading h3,
.mission-step-heading p,
.mission-step-card h4,
.mission-step-card p {
  margin: 0;
}

.mission-step-card h3 {
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

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

.mission-outcomes span {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8f1;
  color: #12633a;
  font-weight: 900;
}

.mission-outcomes span::before {
  content: "✓ ";
}

.mission-video-panel,
.mission-drop-zone {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: #eef2f6;
}

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

.play-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

.mission-guide-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0B1F4D;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.mission-safety-box {
  padding: 16px;
  border-left: 6px solid #F2B632;
  border-radius: 14px;
  background: #fff8df;
}

.mission-drop-zone {
  border: 2px dashed #9fb0c6;
  background: #f7f9fc;
  text-align: center;
}

.mission-upload-buttons {
  padding: 0;
  border: 0;
  background: transparent;
}

.mission-status-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 9px 14px;
  border-radius: 999px;
  background: #edf1f5;
  color: var(--navy);
  font-weight: 900;
}

.mission-status-pill.awaiting-review {
  background: #fff4cf;
  color: #7a5600;
}

.mission-status-pill.passed {
  background: #e8f8ef;
  color: #12633a;
}

.mission-status-pill.further-practice-required {
  background: #ffe8e8;
  color: #a33a3a;
}

.mission-next-step {
  padding: 14px;
  border-radius: 14px;
  background: #eef2f6;
  color: var(--navy);
  font-weight: 900;
}

.mission-progress {
  height: 12px;
  max-width: 360px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.mission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #18A558;
}

.workbook-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.workbook-task-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #0B1F4D, #15366f);
  color: #ffffff;
}

.workbook-task-header h3,
.workbook-task-header p {
  margin: 0;
}

.workbook-task-header .eyebrow {
  color: var(--gold);
}

.workbook-status {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.workbook-status > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.workbook-meta-grid,
.standard-reference-grid,
.workbook-progress-steps {
  display: grid;
  gap: 10px;
}

.workbook-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workbook-meta-grid div {
  padding: 13px;
  border-radius: 14px;
  background: #eef2f6;
}

.workbook-meta-grid span,
.signed-record-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workbook-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

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

.workbook-checklist span {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8f1;
  color: #12633a;
  font-weight: 900;
}

.workbook-checklist span::before {
  content: "✓ ";
}

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

.standard-reference-grid article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f9fc;
}

.reference-image {
  display: grid;
  min-height: 130px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(11, 31, 77, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(11, 31, 77, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 18px 18px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 900;
}

.reference-image.pass {
  border-color: #18A558;
}

.reference-image.gold {
  border-color: var(--gold);
  background-color: #fff8df;
}

.large-upload-area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 2px dashed #b7c5d7;
  border-radius: 18px;
  background: #f7f9fc;
}

.large-upload-area label {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.large-upload-area label:first-child {
  background: var(--gold);
}

.large-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

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

.upload-success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f8ef;
  color: #12633a;
  font-weight: 900;
}

.workbook-signoff-card,
.workbook-assessment-card,
.practical-check-tutor-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  background: #ffffff;
}

.workbook-signoff-card.pending {
  border-left: 6px solid #b7c5d7;
}

.workbook-signoff-card.passed,
.practical-check-tutor-panel.passed {
  border-left: 6px solid #18A558;
  background: #f0fbf5;
}

.workbook-signoff-card h5,
.workbook-assessment-card h5,
.practical-check-tutor-panel h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.workbook-progress-steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.workbook-progress-steps article {
  display: grid;
  gap: 8px;
  min-height: 104px;
  justify-items: center;
  align-content: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: #edf1f5;
  color: var(--muted);
  text-align: center;
}

.workbook-progress-steps span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #d8dee8;
  color: var(--navy);
  font-weight: 900;
}

.workbook-progress-steps .complete {
  background: #e8f8ef;
  color: #12633a;
}

.workbook-progress-steps .complete span {
  background: #18A558;
  color: #ffffff;
}

.workbook-progress-steps .current {
  background: #e8f3ff;
  color: #0B3A66;
}

.workbook-progress-steps .current span {
  background: #1b5d89;
  color: #ffffff;
}

.next-step-note {
  background: #fff8df;
  border-color: rgba(242, 182, 50, 0.42);
}

@media (max-width: 900px) {
  .mission-outcomes,
  .lesson-workflow-grid,
  .lesson-checklist-grid,
  .lesson-review-flow,
  .workbook-meta-grid,
  .workbook-checklist,
  .standard-reference-grid,
  .large-upload-area,
  .workbook-actions,
  .workbook-progress-steps,
  .submitted-status-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submitted-review-facts {
    grid-template-columns: 1fr;
  }

  .submitted-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-marking-card,
  .mark-submission-facts,
  .marking-criteria-grid {
    grid-template-columns: 1fr;
  }

  .lesson-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mission-outcomes,
  .mission-video-panel,
  .lesson-resource-grid,
  .lesson-guide-row,
  .lesson-upload-buttons,
  .lesson-checklist-grid,
  .lesson-review-flow,
  .workbook-task-header,
  .workbook-meta-grid,
  .workbook-checklist,
  .standard-reference-grid,
  .large-upload-area,
  .workbook-actions,
  .workbook-progress-steps,
  .submitted-evidence-row,
  .submitted-status-timeline {
    grid-template-columns: 1fr;
  }

  .workbook-status {
    justify-items: start;
  }

  .evidence-preview-media {
    height: 120px;
  }

  .task-workbook,
  .mission-step-card,
  .lesson-step-card,
  .lesson-section-card,
  .workbook-section,
  .workbook-signoff-card,
  .workbook-assessment-card {
    padding: 14px;
  }
}

.task-topline,
.review-topline,
.learner-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-name,
.review-card h4,
.learner-row h4 {
  margin: 0;
  font-size: 0.98rem;
}

.task-meta,
.history,
.comment,
.small-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.evidence-actions,
.marking-row {
  display: grid;
  gap: 8px;
}

.file-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.file-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 15px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.18s ease;
}

.primary-action {
  border: 2px solid var(--tfe-button-amber-border);
  background: var(--tfe-button-amber);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(169, 111, 16, 0.18);
}

.secondary-action {
  border: 2px solid var(--tfe-button-amber-border);
  background: var(--tfe-button-amber);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(169, 111, 16, 0.18);
}

.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #8f5e0d;
  background: var(--tfe-button-amber-hover);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(169, 111, 16, 0.24);
}

.primary-action:active:not(:disabled),
.secondary-action:active:not(:disabled) {
  transform: translateY(0);
  border-color: #83540b;
  background: var(--tfe-button-amber-pressed);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(169, 111, 16, 0.16);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid var(--tfe-button-focus);
  outline-offset: 3px;
}

.primary-action.action-loading,
.secondary-action.action-loading {
  opacity: 0.72;
  cursor: progress;
}

.primary-action.action-success,
.secondary-action.action-success {
  border-color: rgba(15, 138, 97, 0.45);
  background: #dff7e8;
  color: #0b6b35;
}

.primary-action.action-success::before,
.secondary-action.action-success::before {
  content: "✓";
  margin-right: 6px;
}

.primary-action.action-error,
.secondary-action.action-error {
  border-color: rgba(186, 61, 61, 0.5);
  background: #ffe8e8;
  color: #9b1c1c;
}

.tfe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border: 3px solid #d9ae2b;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #284d88 0%,
      #0b2b66 45%,
      #061a49 100%
    );
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(6, 26, 73, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.tfe-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(6, 26, 73, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tfe-btn:active:not(:disabled) {
  transform: translateY(0);
}

.tfe-btn:focus-visible {
  outline: 3px solid rgba(217, 174, 43, 0.35);
  outline-offset: 3px;
}

#metricsGrid .admin-navigation-groups .admin-nav-link,
#adminView :is(.primary-action, .secondary-action, .admin-back-button, .admin-community-hub-cta),
#adminView a.primary-action,
#adminView a.secondary-action {
  border-width: 2px;
  border-style: solid;
  border-color: #d9ae2b;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #284d88 0%,
      #0b2b66 45%,
      #061a49 100%
    );
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(6, 26, 73, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

#metricsGrid .admin-navigation-groups .admin-nav-link:hover:not(:disabled),
#metricsGrid .admin-navigation-groups .admin-nav-link:focus-visible,
#adminView :is(.primary-action, .secondary-action, .admin-back-button, .admin-community-hub-cta):hover:not(:disabled),
#adminView :is(.primary-action, .secondary-action, .admin-back-button, .admin-community-hub-cta):focus-visible,
#adminView a.primary-action:hover,
#adminView a.primary-action:focus-visible,
#adminView a.secondary-action:hover,
#adminView a.secondary-action:focus-visible {
  transform: translateY(-2px);
  border-color: #f2d77d;
  background:
    linear-gradient(
      180deg,
      #315994 0%,
      #0f3470 45%,
      #071f55 100%
    );
  color: #ffffff;
  box-shadow:
    0 14px 30px rgba(6, 26, 73, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: 3px solid rgba(217, 174, 43, 0.24);
  outline-offset: 3px;
}

#metricsGrid .admin-navigation-groups .admin-nav-link:active:not(:disabled),
#adminView :is(.primary-action, .secondary-action, .admin-back-button, .admin-community-hub-cta):active:not(:disabled),
#adminView a.primary-action:active,
#adminView a.secondary-action:active {
  transform: translateY(0);
  box-shadow:
    0 7px 18px rgba(6, 26, 73, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#metricsGrid .admin-navigation-groups .admin-nav-link:disabled,
#adminView :is(.primary-action, .secondary-action, .admin-back-button, .admin-community-hub-cta):disabled,
#adminView a.primary-action[aria-disabled="true"],
#adminView a.secondary-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

#adminView .primary-action.action-success,
#adminView .secondary-action.action-success {
  border-color: rgba(15, 138, 97, 0.45);
  background: #dff7e8;
  color: #0b6b35;
  box-shadow: 0 10px 22px rgba(15, 138, 97, 0.14);
}

#adminView .primary-action.action-error,
#adminView .secondary-action.action-error {
  border-color: rgba(186, 61, 61, 0.5);
  background: #ffe8e8;
  color: #9b1c1c;
  box-shadow: 0 10px 22px rgba(186, 61, 61, 0.12);
}

.grade-badge.bronze {
  background: #f5e8d9;
  color: #8a4c19;
}

.grade-badge.silver {
  background: #edf1f5;
  color: #526173;
}

.grade-badge.gold,
.ready-badge.ready {
  background: #fff4cc;
  color: #7a5610;
}

.grade-badge.unmarked,
.grade-badge.not-assessed,
.grade-badge.not-yet-assessed,
.ready-badge.not-ready {
  background: #eef2f7;
  color: var(--muted);
}

.ready-badge.ready {
  color: #1f5a43;
}

.ready-badge.not-ready {
  color: var(--bad);
}

.review-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

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

.review-meta-grid div {
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.review-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.learner-row {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf3;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.employer-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.snapshot-grid div {
  padding: 12px;
  border-radius: 8px;
  background: var(--wash);
}

.snapshot-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.snapshot-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.employer-dashboard-hero,
.live-cv-page {
  display: grid;
  gap: 14px;
}

.employer-dashboard-hero {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
}

.employer-talent-pipeline-page {
  display: grid;
  gap: 22px;
  width: 100%;
}

.employer-talent-pipeline-page .employer-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
}

.employer-pipeline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.talent-pipeline-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}

.talent-pipeline-summary article,
.talent-pipeline-table-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.08);
}

.talent-pipeline-summary article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border-top: 5px solid var(--gold);
}

.talent-pipeline-summary span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.talent-pipeline-summary strong {
  color: var(--navy);
  font-size: 2.25rem;
  line-height: 1;
}

.talent-pipeline-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.talent-pipeline-table-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}

.talent-pipeline-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.talent-pipeline-card-list {
  display: grid;
  gap: 16px;
  width: 100%;
}

/* Employer pipeline action containment fix — full-width action row */
.talent-candidate-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(174, 190, 208, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94)),
    #f8fafc;
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.1);
}

.talent-candidate-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.talent-candidate-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.talent-candidate-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.talent-candidate-identity .learner-avatar.large,
.talent-candidate-identity .learner-avatar {
  width: 96px;
  height: 96px;
  border: 4px solid rgba(245, 180, 27, 0.82);
  box-shadow: 0 14px 30px rgba(15, 35, 63, 0.18);
}

.talent-candidate-nameplate {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.talent-candidate-nameplate h5 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.talent-candidate-nameplate > span {
  color: #65758b;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.talent-candidate-progress,
.talent-candidate-readiness {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.talent-candidate-progress span,
.talent-candidate-readiness span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.talent-candidate-progress strong,
.talent-candidate-readiness strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.talent-candidate-progress .pipeline-progress {
  width: 100%;
}

.talent-candidate-readiness {
  border-color: rgba(245, 180, 27, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.84), rgba(255, 255, 255, 0.82)),
    #fffdf7;
}

.pipeline-actions.talent-candidate-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  justify-content: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pipeline-actions.talent-candidate-actions .primary-action,
.pipeline-actions.talent-candidate-actions .secondary-action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 8px 10px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
/* End employer pipeline action containment fix. */

.talent-pipeline-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.talent-pipeline-table th,
.talent-pipeline-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.talent-pipeline-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.talent-pipeline-table tbody tr {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #dbe3ef;
}

.talent-pipeline-table tbody td:first-child {
  border-radius: 14px 0 0 14px;
}

.talent-pipeline-table tbody td:last-child {
  border-radius: 0 14px 14px 0;
}

.talent-pipeline-table td strong,
.talent-pipeline-table td span,
.talent-pipeline-table td em {
  display: block;
}

.talent-pipeline-table td strong {
  color: var(--navy);
}

.talent-pipeline-table td span,
.talent-pipeline-table td em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.pipeline-progress {
  width: 150px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.pipeline-progress span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #16a34a);
}

.pipeline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.pipeline-status.early_development {
  background: #eef6ff;
  color: #1d4ed8;
}

.pipeline-status.progressing_well {
  background: #ecfdf3;
  color: #166534;
}

.pipeline-status.employer_ready_soon {
  background: #fff7e6;
  color: #92400e;
}

.pipeline-status.employment_ready {
  background: #fef3c7;
  color: #071b4d;
  box-shadow: inset 0 0 0 1px rgba(245, 180, 27, 0.45);
}

.pipeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 290px;
}

.pipeline-actions .primary-action,
.pipeline-actions .secondary-action {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.78rem;
}

.employer-pipeline-extras {
  align-items: stretch;
}

.employer-learner-passport-page {
  display: grid;
  gap: 18px;
}

.employer-passport-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 180, 27, 0.34);
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.07);
}

.employer-passport-action-strip div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.employer-passport-action-strip span {
  color: #a86f00;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employer-passport-action-strip strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.employer-learner-passport-page #employerPrivateNote {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .employer-talent-pipeline-page .employer-dashboard-hero,
  .talent-pipeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .talent-candidate-main {
    grid-template-columns: 1fr;
  }

  .pipeline-actions.talent-candidate-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .employer-talent-pipeline-page .employer-dashboard-hero,
  .talent-pipeline-summary {
    grid-template-columns: 1fr;
  }

  .employer-filter-grid {
    grid-template-columns: 1fr;
  }

  .employer-talent-pipeline-page .employer-dashboard-hero {
    padding: 22px;
  }

  .talent-candidate-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .employer-passport-action-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .employer-passport-action-strip .secondary-action {
    width: 100%;
  }

  .talent-candidate-identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .talent-candidate-identity .learner-avatar.large,
  .talent-candidate-identity .learner-avatar {
    width: 116px;
    height: 116px;
  }

  .talent-candidate-nameplate {
    justify-items: center;
  }

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

  .pipeline-actions.talent-candidate-actions {
    grid-template-columns: 1fr;
  }

  .talent-pipeline-table {
    min-width: 0;
    border-spacing: 0 14px;
  }

  .talent-pipeline-table thead {
    display: none;
  }

  .talent-pipeline-table,
  .talent-pipeline-table tbody,
  .talent-pipeline-table tr,
  .talent-pipeline-table td {
    display: block;
    width: 100%;
  }

  .talent-pipeline-table tbody tr {
    box-sizing: border-box;
    padding: 14px;
    border-radius: 16px;
  }

  .talent-pipeline-table th,
  .talent-pipeline-table td {
    padding: 8px 0;
  }

  .talent-pipeline-table tbody td:first-child,
  .talent-pipeline-table tbody td:last-child {
    border-radius: 0;
  }

  .talent-pipeline-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 1000;
    text-transform: uppercase;
  }

  .pipeline-progress,
  .pipeline-actions {
    width: 100%;
    min-width: 0;
  }

  .pipeline-actions .primary-action,
  .pipeline-actions .secondary-action {
    flex: 1 1 100%;
  }
}

.employer-dashboard-hero h3,
.employer-dashboard-hero p {
  margin: 0;
}

.employer-dashboard-hero .eyebrow {
  color: var(--gold);
}

.employer-origin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.employer-origin span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
}

.talent-hero-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.talent-hero-stat span,
.talent-hero-stat em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.talent-hero-stat strong {
  color: var(--gold);
  font-size: 2.2rem;
}

.talent-pool-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.talent-pool-summary article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.talent-pool-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.talent-pool-summary strong {
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.professional-league-card,
.professional-league-panel {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.08);
  overflow: hidden;
}

.professional-league-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 28px auto 0;
  padding: 22px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at 100% 0%, rgba(245, 180, 27, 0.12), transparent 16rem);
  box-shadow: 0 22px 50px rgba(15, 35, 75, 0.1), 0 8px 22px rgba(15, 23, 42, 0.04);
}

.professional-league-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(245, 180, 27, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.72), rgba(255, 255, 255, 0.96));
}

.professional-league-head h4,
.professional-league-head p {
  margin: 0;
}

.professional-league-head h4 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 1000;
}

.professional-league-table-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.professional-league-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.professional-league-table th,
.professional-league-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7edf5;
  color: var(--navy);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
  font-size: 0.88rem;
}

.professional-league-table th {
  background: linear-gradient(135deg, #071b4d, #102b62);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.professional-league-table th:first-child {
  width: 70px;
}

.professional-league-table th:nth-child(2) {
  width: 28%;
}

.professional-league-table th:nth-child(3),
.professional-league-table th:nth-child(4),
.professional-league-table th:nth-child(5),
.professional-league-table th:nth-child(6) {
  width: 12%;
}

.professional-league-table th:last-child {
  text-align: right;
  width: 15%;
}

.professional-league-table-row.current {
  background: #fff8e3;
  box-shadow: inset 4px 0 0 var(--gold);
}

.league-table-learner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.league-table-learner .learner-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.league-table-learner strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 1000;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-table-learner span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-rank-chip,
.league-score-pill,
.league-grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  white-space: nowrap;
}

.league-rank-chip {
  min-width: 42px;
  background: #edf2f7;
  color: var(--navy);
}

.league-rank-chip.rank-1 {
  background: #fff2bd;
  color: #7a5600;
  border: 1px solid #e4b62d;
}

.league-rank-chip.rank-2 {
  background: #eef2f6;
  color: #3e5165;
  border: 1px solid #b9c5d1;
}

.league-rank-chip.rank-3 {
  background: #f7ddc4;
  color: #7c2d12;
  border: 1px solid #c47c3c;
}

.league-score-pill.green,
.league-grade-pill.green,
.league-overall-cell strong.green {
  background: #dcfce7;
  color: #166534;
}

.league-score-pill.amber,
.league-grade-pill.amber,
.league-overall-cell strong.amber {
  background: #fff7e6;
  color: #92400e;
}

.league-score-pill.red,
.league-grade-pill.red,
.league-overall-cell strong.red {
  background: #fee2e2;
  color: #991b1b;
}

.league-overall-cell {
  display: grid;
  gap: 6px;
}

.league-overall-cell strong {
  display: inline-flex;
  width: max-content;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 1000;
}

.league-overall-cell .progress-line {
  width: 100%;
  max-width: 180px;
  height: 8px;
}

.league-distribution {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #f8fafc;
  overflow-x: auto;
}

.league-distribution h5,
.league-distribution p {
  margin: 0;
}

.league-distribution-bars {
  display: grid;
  gap: 10px;
  min-width: 420px;
}

.league-distribution-bars article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 1000;
}

.league-distribution-bars div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.league-distribution-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.league-distribution-bars .green i {
  background: #22c55e;
}

.league-distribution-bars .amber i {
  background: #f59e0b;
}

.league-distribution-bars .red i {
  background: #ef4444;
}

.league-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.league-quick-stats article {
  padding: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.league-quick-stats span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.league-quick-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 1000;
}

@media (min-width: 1201px) {
  .professional-league-panel {
    min-width: 0;
  }
}

@media (min-width: 901px) {
  .tutor-dashboard-control .professional-league-table-wrap {
    overflow-x: hidden;
  }

  .tutor-dashboard-control .professional-league-table {
    min-width: 0;
  }
}

.professional-league-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-top: 5px solid var(--gold);
}

.professional-league-card h4,
.professional-league-card p {
  margin: 0;
}

.professional-league-card h4 {
  color: var(--navy);
  font-size: 1.35rem;
}

.professional-league-card p {
  color: var(--muted);
  font-weight: 800;
}

.professional-league-card p strong {
  color: var(--navy);
}

.professional-league-list {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.professional-league-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1.45fr) auto auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 156px;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: 0 14px 32px rgba(15, 35, 63, 0.08);
  overflow: hidden;
}

.professional-league-row * {
  box-sizing: border-box;
}

.professional-league-row > * {
  min-width: 0;
}

.professional-league-row.current {
  border-color: rgba(242, 182, 50, 0.75);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.14);
}

.league-rank {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 20px;
  background: #edf1f5;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.league-rank.winner,
.league-rank.gold {
  background: #fff2bd;
  color: #7a5600;
}

.league-rank.silver {
  background: #eef2f6;
  color: #3e5165;
}

.league-rank.development {
  background: #edf1f5;
  color: #516172;
}

.league-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.league-identity .learner-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  min-width: 96px;
  border: 4px solid #ffffff;
  outline: 3px solid rgba(24, 165, 88, 0.55);
  box-shadow: 0 12px 26px rgba(15, 35, 63, 0.14);
  object-fit: cover;
}

.league-identity strong,
.league-score strong {
  display: block;
  color: var(--navy);
}

.league-identity strong {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.league-identity span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.league-score {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.league-score strong {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1;
}

.league-score .progress-line {
  width: 100%;
  min-width: 0;
  height: 12px;
}

.league-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.league-metrics span {
  display: inline-flex;
  flex: 1 1 124px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f4f8;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.league-zone {
  display: inline-flex;
  justify-self: start;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.professional-league-row > .secondary-action {
  justify-self: start;
  white-space: nowrap;
}

.league-zone.gold {
  background: #fff2bd;
  color: #7a5600;
  border: 1px solid #e4b62d;
}

.league-zone.silver {
  background: #eef2f6;
  color: #3e5165;
  border: 1px solid #b9c5d1;
}

.league-zone.development,
.league-zone.bronze {
  background: #edf1f5;
  color: #516172;
  border: 1px solid #d3dae2;
}

.learner-league-page {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.league-page-mode .learner-dashboard-grid,
.league-page-mode .learner-portal-grid {
  display: none;
}

.league-page-mode .learner-dashboard-grid:first-of-type {
  display: grid;
  grid-template-columns: 1fr;
}

.league-page-mode #learnerProfilePanel {
  display: block;
}

.league-page-mode #overallRatingPanel,
.league-page-mode #phase2ReadinessPanel,
.league-page-mode #phaseProgressPanel,
.league-page-mode #currentLessonPanel,
.league-page-mode #nextActionsPanel,
.league-page-mode #evidencePanel,
.league-page-mode #passportPanel,
.league-page-mode #awardsPanel,
.league-page-mode #attendancePanel,
.league-page-mode #feedbackPanel {
  display: none;
}

.league-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.league-page-header .eyebrow {
  color: var(--gold);
}

.league-page-header h3,
.league-page-header p {
  margin: 0;
}

.league-page-header h3 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
}

.league-page-header p:not(.eyebrow) {
  margin-top: 8px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  line-height: 1.4;
}

.league-card-table {
  display: grid;
  gap: 22px;
}

.league-row-card {
  display: grid;
  grid-template-columns: 106px 116px minmax(260px, 1fr) minmax(220px, 0.44fr);
  gap: 24px;
  align-items: center;
  min-height: 240px;
  padding: 30px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.09);
}

.league-row-card.rank-1 {
  background: linear-gradient(135deg, #fff8df, #ffffff);
  border-color: rgba(242, 182, 50, 0.55);
}

.league-row-card.rank-2 {
  background: linear-gradient(135deg, #f4f7fb, #ffffff);
  border-color: rgba(185, 197, 209, 0.8);
}

.league-row-card.rank-3 {
  background: linear-gradient(135deg, #fff1e4, #ffffff);
  border-color: rgba(196, 122, 60, 0.56);
}

.league-row-card.current {
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.2), 0 14px 34px rgba(15, 35, 63, 0.09);
}

.league-row-card.empty-position {
  grid-template-columns: 106px 116px minmax(0, 1fr);
  min-height: 180px;
  background: #f4f6f9;
  border-color: #d8e0ea;
  color: #667386;
  box-shadow: none;
}

.league-row-rank {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 22px;
  background: var(--navy);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
}

.rank-1 .league-row-rank {
  background: #f2b632;
  color: #081a42;
}

.rank-2 .league-row-rank {
  background: #c9d3de;
  color: #081a42;
}

.rank-3 .league-row-rank {
  background: #c47a3c;
  color: #ffffff;
}

.league-row-card > .learner-avatar {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border: 4px solid #ffffff;
  outline: 3px solid #1f7a54;
  box-shadow: 0 10px 22px rgba(15, 35, 63, 0.14);
  object-fit: cover;
}

.rank-1 > .learner-avatar {
  outline-color: #f2b632;
}

.rank-2 > .learner-avatar {
  outline-color: #b9c5d1;
}

.rank-3 > .learner-avatar {
  outline-color: #c47a3c;
}

.league-row-identity {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.league-row-identity h4,
.league-row-identity p {
  margin: 0;
}

.league-row-identity h4 {
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.league-row-identity p {
  color: var(--muted);
  font-weight: 900;
}

.league-row-score {
  display: grid;
  gap: 10px;
}

.league-row-score strong {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.league-row-score > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.league-row-score .progress-line {
  height: 14px;
  width: 100%;
}

.league-row-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.league-row-metrics div {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid #e3eaf2;
  border-left-width: 5px;
  border-radius: 14px;
  background: #fbfdff;
}

.league-row-metrics div.green {
  border-left-color: #18A558;
}

.league-row-metrics div.amber {
  border-left-color: var(--gold);
}

.league-row-metrics div.red {
  border-left-color: #dc4c4c;
}

.league-row-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.league-row-metrics strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.league-row-action {
  grid-column: 4;
  justify-self: end;
  align-self: end;
}

.league-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.podium-card,
.league-performance-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.1);
}

.podium-card {
  justify-items: center;
  align-content: start;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--gold);
}

.podium-card.rank-1 {
  background: linear-gradient(145deg, #fff8df, #ffffff);
  border-color: rgba(242, 182, 50, 0.55);
}

.podium-card.rank-2 {
  background: linear-gradient(145deg, #f4f7fb, #ffffff);
  border-color: rgba(185, 197, 209, 0.75);
}

.podium-card.rank-2::before {
  background: #b9c5d1;
}

.podium-card.rank-3 {
  background: linear-gradient(145deg, #fff1e4, #ffffff);
  border-color: rgba(196, 122, 60, 0.55);
}

.podium-card.rank-3::before {
  background: #c47a3c;
}

.podium-card.current,
.league-performance-card.current {
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.22), 0 16px 36px rgba(15, 35, 63, 0.1);
}

.podium-rank,
.league-card-rank {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #081a42;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.podium-card .learner-avatar.large {
  width: 132px;
  height: 132px;
  min-width: 132px;
  border: 4px solid #ffffff;
  outline: 4px solid rgba(242, 182, 50, 0.6);
  box-shadow: 0 12px 26px rgba(15, 35, 63, 0.18);
}

.podium-card h4,
.league-performance-card h4 {
  margin: 0;
  color: var(--navy);
  line-height: 1.12;
}

.podium-card h4 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.podium-card p,
.league-performance-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.podium-score {
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #081a42;
  color: #ffffff;
}

.podium-score strong {
  color: var(--gold);
  font-size: 2.3rem;
  line-height: 1;
}

.podium-score span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.league-readiness-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.league-readiness-badge.ready {
  background: #def8e8;
  color: #0b6b35;
}

.league-readiness-badge.interview {
  background: #e5f0ff;
  color: #124a8d;
}

.league-readiness-badge.developing {
  background: #fff2c7;
  color: #8a5b00;
}

.league-readiness-badge.building {
  background: #edf1f5;
  color: #516172;
}

.league-strengths,
.league-achievement-badges,
.league-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.league-strengths {
  justify-content: center;
}

.league-strengths span,
.league-achievement-badges span,
.league-card-metrics span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.league-performance-card {
  padding: 18px;
}

.league-card-top {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.league-card-top .learner-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border: 3px solid #ffffff;
  outline: 2px solid rgba(242, 182, 50, 0.45);
}

.league-card-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.league-card-score strong {
  color: var(--navy);
  font-size: 1.8rem;
}

.league-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.podium-card.placeholder,
.league-performance-card.placeholder {
  justify-items: center;
  align-content: center;
  min-height: 220px;
  background: #f4f6f9;
  color: #667386;
  text-align: center;
  box-shadow: none;
}

.podium-card.placeholder::before {
  background: #cbd5e1;
}

.empty-avatar.large {
  width: 112px;
  height: 112px;
  min-width: 112px;
}

.league-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.09);
}

.sports-league-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.sports-league-table th {
  padding: 14px 12px;
  background: #081a42;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.sports-league-table th:first-child {
  border-top-left-radius: 18px;
}

.sports-league-table th:last-child {
  border-top-right-radius: 18px;
}

.sports-league-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e7edf5;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.league-table-row.rank-1 {
  background: #fff8df;
}

.league-table-row.rank-2 {
  background: #f4f7fb;
}

.league-table-row.rank-3 {
  background: #fff1e4;
}

.league-table-row.current {
  box-shadow: inset 5px 0 0 var(--gold);
}

.league-table-row.empty-position {
  background: #f4f6f9;
  color: #667386;
}

.league-table-row.empty-position td {
  color: #667386;
}

.table-rank {
  display: inline-grid;
  min-width: 44px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #edf1f5;
  color: var(--navy);
  font-weight: 900;
}

.rank-1 .table-rank {
  background: #f2b632;
  color: #081a42;
}

.rank-2 .table-rank {
  background: #c9d3de;
  color: #081a42;
}

.rank-3 .table-rank {
  background: #c47a3c;
  color: #ffffff;
}

.table-learner-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
}

.sports-league-table td > .learner-avatar,
.table-learner-cell .learner-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 2px solid #ffffff;
  outline: 2px solid rgba(242, 182, 50, 0.55);
}

.empty-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  min-width: 46px;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #7b8798;
  font-weight: 900;
}

.sports-league-table .progress-line {
  width: 96px;
  margin-top: 7px;
}

.parent-dashboard {
  display: grid;
  gap: 18px;
}

.parent-dashboard-hero .talent-hero-stat {
  min-width: 220px;
}

.parent-progress-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.parent-alert-list {
  display: grid;
  gap: 10px;
}

.parent-alert-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffdf7;
}

.parent-alert-list span {
  display: block;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-alert-list strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  line-height: 1.35;
}

.phase-progress-card {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.phase-progress-card .eyebrow {
  color: var(--gold);
}

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

.phase-progress-head h4,
.phase-progress-head p {
  margin: 0;
}

.phase-progress-head h4 {
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.phase-progress-head > strong {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.phase-progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf3;
}

.phase-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #18A558;
}

.phase-progress-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.employer-filter-panel,
.cv-section,
.cv-brand-strip,
.candidate-card,
.evidence-modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 35, 63, 0.07);
}

.employer-filter-panel,
.cv-section,
.cv-brand-strip {
  padding: 14px;
}

/* Employer filter panel compression fix */
.employer-filter-panel {
  padding: 12px;
}

.employer-filter-grid,
.candidate-grid,
.candidate-facts,
.cv-hero,
.candidate-metrics-grid,
.cv-metric-grid,
.cv-status-grid,
.qualification-grid,
.cv-evidence-grid {
  display: grid;
  gap: 10px;
}

.employer-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  align-items: end;
}

.employer-filter-grid label {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.employer-filter-grid .employer-filter-search {
  grid-column: 1 / -1;
}

.employer-filter-grid input,
.employer-filter-grid select {
  min-height: 38px;
  padding: 8px 10px;
}

.quick-filter-row,
.candidate-card-footer,
.cv-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-filter-row {
  margin-top: 10px;
}

.active-filter {
  background: var(--gold) !important;
  border-color: #9b6b00 !important;
  color: var(--navy) !important;
  font-weight: 1000;
  box-shadow: 0 0 0 2px rgba(242, 182, 50, 0.28);
}

.active-filter-summary {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
}

.candidate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.candidate-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.candidate-card-top h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.candidate-card-top span,
.candidate-facts span,
.candidate-meter span,
.cv-metric-grid span,
.qualification-grid span,
.cv-status-grid span,
.skill-row span,
.cv-evidence-card span,
.tutor-recommendation span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-award,
.employer-rag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.candidate-award.gold {
  background: #fff2bd;
  color: #7a5600;
  border: 1px solid #e4b62d;
}

.candidate-award.silver {
  background: #eef2f6;
  color: #3e5165;
  border: 1px solid #b9c5d1;
}

.candidate-award.bronze {
  background: #f6dcc6;
  color: #744014;
  border: 1px solid #c47a3c;
}

.candidate-award.not-assessed {
  background: #edf1f5;
  color: #5c6977;
  border: 1px solid #d3dae2;
}

.candidate-award.gold-standard,
.performance-badge.gold {
  background: #fff2bd;
  color: #7a5600;
  border: 1px solid #e4b62d;
}

.candidate-award.silver-standard,
.performance-badge.silver {
  background: #eef2f6;
  color: #3e5165;
  border: 1px solid #b9c5d1;
}

.candidate-award.bronze-standard,
.performance-badge.bronze {
  background: #f6dcc6;
  color: #744014;
  border: 1px solid #c47a3c;
}

.candidate-award.not-yet-assessed,
.performance-badge.not-assessed {
  background: #edf1f5;
  color: #5c6977;
  border: 1px solid #d3dae2;
}

.performance-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.performance-badge.compact {
  font-size: 0.72rem;
}

.performance-standard-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.09);
  border: 1px solid rgba(15, 35, 63, 0.08);
}

.performance-standard-card.gold {
  border-top: 6px solid #F2B632;
  background: linear-gradient(145deg, #fffaf0, #ffffff);
}

.performance-standard-card.silver {
  border-top: 6px solid #b9c5d1;
  background: linear-gradient(145deg, #f7f9fc, #ffffff);
}

.performance-standard-card.bronze {
  border-top: 6px solid #c47a3c;
  background: linear-gradient(145deg, #fff5ed, #ffffff);
}

.performance-standard-card.not-assessed {
  border-top: 6px solid #d3dae2;
}

.performance-standard-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-standard-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.performance-standard-card p {
  margin: 4px 0 0;
  color: var(--ink);
}

.performance-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.performance-counts span {
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f4f8;
  color: var(--navy);
}

.performance-message {
  padding: 12px 14px;
  border-left: 5px solid #F2B632;
  border-radius: 12px;
  background: #fff9e8;
  font-weight: 800;
}

.performance-progress {
  display: grid;
  gap: 8px;
}

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

.performance-progress strong {
  margin: 0;
  font-size: 1rem;
}

.performance-standard-card.gold .progress-line span {
  background: #F2B632;
}

.performance-standard-card.silver .progress-line span {
  background: #b9c5d1;
}

.performance-standard-card.bronze .progress-line span {
  background: #c47a3c;
}

.performance-standard-card.not-assessed .progress-line span {
  background: #d3dae2;
}

.employer-rag.green {
  background: #def8e8;
  color: #0b6b35;
}

.employer-rag.amber {
  background: #fff2c7;
  color: #8a5b00;
}

.employer-rag.red {
  background: #ffe0e0;
  color: #9b1c1c;
}

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

.candidate-location-stack {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 8px;
  background: #fbfdff;
}

.candidate-location-stack span {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.candidate-location-stack em,
.travel-location-grid em {
  color: var(--bad);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.travel-suitability {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.travel-suitability.green {
  background: #def8e8;
  color: #0b6b35;
}

.travel-suitability.amber {
  background: #fff2c7;
  color: #8a5b00;
}

.travel-suitability.red {
  background: #ffe0e0;
  color: #9b1c1c;
}

.travel-suitability.neutral {
  background: #edf1f5;
  color: #516172;
}

.candidate-facts div,
.cv-metric-grid article,
.qualification-grid div,
.cv-status-grid div,
.tutor-recommendation div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--wash);
}

.candidate-facts strong,
.candidate-meter strong,
.cv-metric-grid strong,
.qualification-grid strong,
.cv-status-grid strong,
.skill-row strong,
.tutor-recommendation strong {
  color: var(--navy);
}

.candidate-card-footer {
  justify-content: space-between;
}

.cv-brand-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.cv-brand-strip img {
  width: min(320px, 100%);
  height: auto;
}

.cv-brand-strip strong,
.cv-brand-strip span {
  display: block;
  color: var(--navy);
}

.cv-brand-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cv-hero {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), #16438f);
  color: white;
}

.cv-profile-photo-card {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(242, 182, 50, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cv-profile-photo-card .learner-avatar.large {
  width: 180px;
  height: 180px;
  min-width: 180px;
  border: 6px solid var(--gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 10px rgba(255, 255, 255, 0.1);
  font-size: 2.1rem;
}

.cv-profile-details {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.cv-profile-details h3,
.cv-profile-details p {
  margin: 0;
}

.cv-profile-details h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cv-profile-details .eyebrow,
.cv-profile-details p {
  color: rgba(255, 255, 255, 0.8);
}

.profile-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-detail-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-award-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.hero-award-badge span {
  font-size: 1.55rem;
  line-height: 1;
}

.hero-award-badge strong {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-award-badge.gold {
  background: linear-gradient(135deg, #ffe889, var(--gold));
}

.hero-award-badge.silver {
  background: linear-gradient(135deg, #ffffff, #cfd8e3);
}

.hero-award-badge.bronze {
  background: linear-gradient(135deg, #f7c59d, #c77a39);
}

.hero-award-badge.development {
  background: linear-gradient(135deg, #ffffff, #dbe3ec);
}

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

.quick-status-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.quick-status-chip strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.quick-status-chip.status-green {
  background: #def8e8;
  color: #0b6b35;
}

.quick-status-chip.status-green strong {
  color: #0b6b35;
}

.quick-status-chip.status-amber {
  background: #fff2c7;
  color: #8a5b00;
}

.quick-status-chip.status-amber strong {
  color: #8a5b00;
}

.quick-status-chip.status-red {
  background: #ffe0e0;
  color: #9b1c1c;
}

.quick-status-chip.status-red strong {
  color: #9b1c1c;
}

.quick-status-chip.status-neutral {
  background: #edf1f5;
  color: #516172;
}

.quick-status-chip.status-neutral strong {
  color: #516172;
}

.cv-badge-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.metric-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 19, 50, 0.16);
}

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

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.metric-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff4cf;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.metric-label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.metric-value {
  color: var(--navy);
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-helper {
  color: #40536a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.metric-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecf3;
}

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

.metric-card.status-green::before,
.metric-card.status-green .metric-progress span {
  background: #1b9a58;
}

.metric-card.status-amber::before,
.metric-card.status-amber .metric-progress span {
  background: var(--gold);
}

.metric-card.status-red::before,
.metric-card.status-red .metric-progress span {
  background: #d64040;
}

.metric-card.status-neutral::before,
.metric-card.status-neutral .metric-progress span {
  background: #9aa8b7;
}

.metric-card.status-green .metric-icon {
  background: #def8e8;
  color: #0b6b35;
}

.metric-card.status-amber .metric-icon {
  background: #fff2c7;
  color: #8a5b00;
}

.metric-card.status-red .metric-icon {
  background: #ffe0e0;
  color: #9b1c1c;
}

.metric-card.status-neutral .metric-icon {
  background: #edf1f5;
  color: #516172;
}

.featured-metric {
  min-height: 158px;
}

.cv-section h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.12rem;
}

.travel-location-grid {
  display: grid;
  gap: 10px;
}

.travel-location-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: var(--wash);
}

.travel-location-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-location-grid strong {
  color: var(--navy);
}

.travel-location-section .travel-location-grid {
  gap: 14px;
}

.travel-location-section .travel-location-grid article {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.08);
}

.travel-location-section .travel-location-grid span {
  display: block;
  padding: 10px 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.travel-location-section .travel-location-grid strong {
  display: block;
  padding: 14px;
  color: var(--navy);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.travel-location-section .travel-location-grid .travel-suitability {
  display: inline-flex;
  margin: 14px;
  padding: 7px 12px;
  font-size: 0.86rem;
}

.travel-location-section .travel-location-grid em {
  display: block;
  padding: 0 14px 14px;
}

.cv-section > p:not(.eyebrow),
.tutor-recommendation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.skill-grid {
  display: grid;
  gap: 8px;
}

.skill-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.cv-evidence-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.cv-evidence-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 1024px) {
  .tutor-marking-learner-header {
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  }

  .tutor-marking-kpis {
    grid-column: auto;
  }

  .lesson-marking-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
  }

  .lesson-behaviour-column {
    position: sticky;
    top: 16px;
    align-self: stretch;
  }
}

@media (max-width: 1023px) {
  .tutor-marking-learner-header {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .tutor-learner-confirmation-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .tutor-marking-learner-header .assigned-slot-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutor-marking-kpis {
    grid-template-columns: 1fr;
  }

  .tutor-marking-learner-header h3,
  .tutor-learner-status-line {
    text-align: center;
  }

  .tutor-feedback-card-head {
    display: grid;
  }

  .tutor-feedback-card-head em {
    justify-self: start;
  }
}

.evidence-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 31, 77, 0.72);
}

.evidence-modal-panel {
  display: grid;
  gap: 12px;
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 14px;
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .auth-panel,
  .session-strip,
  .hero-panel,
  .metrics-grid,
  .section-heading,
  .cv-actions,
  [data-back-employer-dashboard],
  [data-employer-evidence] {
    display: none !important;
  }

  .app-shell,
  main,
  .employer-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

}

.intervention-review-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.intervention-review-summary p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.4;
}

.intervention-review-summary .secondary-action {
  flex: 0 0 auto;
}

.tutor-workflow-filtered-list {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 35, 75, 0.06);
}

.tutor-workflow-learner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  width: 100%;
}

.tutor-workflow-learner-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e1ec;
  border-left-width: 6px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tutor-workflow-learner-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.1);
}

.tutor-workflow-learner-card.green {
  border-color: rgba(24, 165, 88, 0.35);
  border-left-color: #18A558;
  background: #effaf4;
}

.tutor-workflow-learner-card.amber {
  border-color: rgba(242, 182, 50, 0.5);
  border-left-color: #F2B632;
  background: #fff8df;
}

.tutor-workflow-learner-card.red {
  border-color: rgba(211, 47, 47, 0.34);
  border-left-color: #d32f2f;
  background: #fff1f1;
}

.tutor-workflow-learner-card.blue {
  border-color: rgba(27, 107, 196, 0.3);
  border-left-color: #1b6bc4;
  background: #eef6ff;
}

.tutor-workflow-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.tutor-workflow-card-top h4,
.tutor-workflow-card-top p,
.tutor-workflow-card-body p {
  margin: 0;
}

.tutor-workflow-card-top span,
.tutor-workflow-card-body strong {
  color: #0B1F4D;
  font-weight: 1000;
}

.tutor-workflow-card-top h4 {
  color: #0B1F4D;
  font-size: 1.08rem;
  line-height: 1.18;
}

.tutor-workflow-card-top p,
.tutor-workflow-card-body p {
  color: #334257;
  line-height: 1.4;
}

.tutor-workflow-card-body {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.tutor-pending-work-list {
  display: grid;
  gap: 10px;
}

.tutor-pending-work-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-left: 4px solid #d9ae2b;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(11, 31, 77, 0.06);
}

.tutor-pending-work-item--theory {
  border-left-color: #0b2b66;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.tutor-pending-work-item--practical {
  border-left-color: #d9ae2b;
}

.tutor-pending-work-item span {
  color: #9a6f00;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutor-pending-work-item strong {
  display: block;
  margin-top: 3px;
}

.tutor-pending-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutor-workflow-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.tutor-workflow-filtered-list .empty-state {
  min-height: 160px;
  border: 1px solid rgba(245, 180, 27, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.58), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tutor-cohort-first-panel,
.teacher-intelligence-brief {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(49, 111, 177, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 58%, #fffaf0 100%);
  box-shadow: 0 18px 42px rgba(11, 31, 77, 0.09);
}

.tutor-cohort-first-panel {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.94) 54%, rgba(255, 249, 235, 0.96) 100%);
}

.tutor-cohort-first-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 22px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.tutor-cohort-accent {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  margin-right: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 182, 50, 0.22), rgba(242, 182, 50, 0.08) 42%, transparent 70%),
    linear-gradient(135deg, rgba(7, 27, 77, 0.08), rgba(49, 111, 177, 0.08));
}

.tutor-cohort-accent::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 2px solid rgba(242, 182, 50, 0.46);
  border-radius: 50%;
}

.tutor-cohort-first-panel h3,
.teacher-intelligence-head h3 {
  margin: 0;
  color: #071b4d;
  font-size: 1.45rem;
  line-height: 1.16;
  font-weight: 1000;
}

.tutor-cohort-first-panel p,
.teacher-intelligence-head p {
  margin: 5px 0 0;
  color: #51627a;
  font-weight: 820;
  line-height: 1.45;
}

.tutor-cohort-select-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 9px;
  max-width: 560px;
  padding: 16px;
  border: 1px solid rgba(216, 154, 19, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
  box-shadow:
    0 16px 34px rgba(15, 35, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tutor-cohort-select-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #071b4d 0%, #123d73 48%, #f2b632 100%);
}

.tutor-landing-panel {
  display: grid;
  gap: 18px;
}

.tutor-landing-panel > .tutor-cohort-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(216, 154, 19, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.72), rgba(242, 182, 50, 0)) 0 0 / 100% 4px no-repeat,
    radial-gradient(circle at 94% 18%, rgba(242, 182, 50, 0.12), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(15, 76, 138, 0.08), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 62%, rgba(255, 250, 240, 0.94) 100%);
  box-shadow:
    0 22px 52px rgba(11, 31, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tutor-landing-panel > .tutor-cohort-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 154, 19, 0.34);
  box-shadow:
    0 26px 58px rgba(11, 31, 77, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tutor-cohort-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tutor-cohort-card-copy h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tutor-cohort-card-copy p:not(.eyebrow) {
  margin: 0;
  color: #3e506b;
  font-weight: 820;
  line-height: 1.45;
}

.tutor-cohort-select-card span {
  color: #071b4d;
  font-size: 1.02rem;
  font-weight: 1000;
}

.tutor-cohort-select-card small {
  color: #536173;
  font-size: 0.84rem;
  font-weight: 800;
}

.tutor-cohort-first-panel select,
.tutor-cohort-select-card select {
  min-height: 58px;
  max-width: 520px;
  border: 1px solid rgba(7, 27, 77, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  color: #071b4d;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 999px rgba(255, 255, 255, 0.16),
    0 10px 20px rgba(15, 35, 75, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tutor-cohort-select-card select:hover {
  border-color: rgba(216, 154, 19, 0.46);
}

.tutor-cohort-select-card select:focus-visible {
  outline: 3px solid rgba(216, 154, 19, 0.2);
  outline-offset: 3px;
  border-color: rgba(216, 154, 19, 0.82);
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(15, 76, 138, 0.08),
    0 13px 28px rgba(15, 35, 75, 0.12);
}

.teacher-intelligence-head,
.teacher-handover-top,
.teacher-evidence-confidence > div:first-child {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.teacher-intelligence-head > span,
.teacher-handover-top em,
.teacher-evidence-confidence > div:first-child strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.teacher-intelligence-head > span {
  border: 1px solid rgba(216, 167, 44, 0.34);
  background: linear-gradient(135deg, #071b4d 0%, #123a76 100%);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(216, 167, 44, 0.42);
}

.teacher-today-brief {
  display: grid;
  gap: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(247, 212, 123, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 212, 123, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(7, 27, 77, 0.98), rgba(18, 58, 118, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(216, 167, 44, 0.26),
    0 22px 42px rgba(11, 31, 77, 0.18);
}

.teacher-today-brief span {
  color: #f7d47b;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.teacher-today-brief p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.16rem, 1.02rem + 0.45vw, 1.35rem);
  font-weight: 860;
  line-height: 1.52;
  max-width: 78ch;
}

.teacher-health-grid,
.teacher-evidence-confidence > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.teacher-health-grid article,
.teacher-evidence-confidence > div:last-child span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(11, 31, 77, 0.055);
}

.teacher-health-grid article.green { background: #effaf3; border-color: rgba(27, 128, 82, 0.2); }
.teacher-health-grid article.amber { background: #fff8eb; border-color: rgba(188, 111, 18, 0.22); }
.teacher-health-grid article.orange { background: #fff3df; border-color: rgba(216, 125, 38, 0.22); }
.teacher-health-grid article.red { background: #fff0f0; border-color: rgba(190, 71, 71, 0.22); }
.teacher-health-grid article.blue { background: #edf6ff; border-color: rgba(49, 111, 177, 0.2); }

.teacher-health-grid span,
.teacher-evidence-confidence small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.25;
  text-transform: uppercase;
}

.teacher-health-grid strong,
.teacher-evidence-confidence b {
  color: #071b4d;
  font-size: 1.28rem;
  font-weight: 1000;
  line-height: 1;
}

.teacher-handover-list {
  display: grid;
  gap: 12px;
}

.teacher-handover-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  min-width: 0;
  padding: 14px 16px 13px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-left: 6px solid #4d93d9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(11, 31, 77, 0.07);
}

.teacher-handover-card.urgent { border-left-color: #d96b6b; background: #fff6f6; }
.teacher-handover-card.priority { border-left-color: #e39a2d; background: #fff9ee; }
.teacher-handover-card.monitor { border-left-color: #d8a72c; background: #fffdf3; }
.teacher-handover-card.stable { border-left-color: #36a269; background: #f5fcf7; }

.teacher-handover-top {
  display: grid;
  grid-template-columns: 168px minmax(128px, 0.68fr) minmax(240px, 1.25fr) minmax(168px, 0.82fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding-right: 92px;
}

.teacher-handover-photo {
  display: grid;
  place-items: center;
  min-width: 0;
}

.teacher-handover-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.teacher-handover-top .learner-avatar.teacher-brief {
  width: 168px;
  height: 168px;
  min-width: 168px;
  border-width: 4px;
  font-size: 1.48rem;
  box-shadow:
    0 0 0 3px rgba(216, 167, 44, 0.55),
    0 14px 30px rgba(11, 31, 77, 0.2);
}

.teacher-brief-photo {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #fff8df;
  color: #071b4d;
}

.teacher-brief-photo img,
.teacher-brief-photo > span {
  grid-area: 1 / 1;
}

.teacher-brief-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-brief-photo > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #071b4d;
  font-weight: 1000;
}

.teacher-brief-photo.has-photo > span {
  opacity: 0;
}

.teacher-brief-photo.photo-missing > span {
  opacity: 1;
}

.teacher-handover-top strong {
  display: block;
  color: #071b4d;
  font-size: clamp(1.08rem, 0.98rem + 0.25vw, 1.22rem);
  font-weight: 1000;
  line-height: 1.15;
  text-align: left;
}

.teacher-handover-top small {
  display: block;
  color: #64748b;
  font-weight: 820;
  line-height: 1.25;
  text-align: left;
}

.teacher-handover-top em {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(7, 27, 77, 0.08);
  color: #071b4d;
}

.teacher-handover-compact {
  display: block;
  min-width: 0;
}

.teacher-handover-note {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(49, 111, 177, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.teacher-handover-guidance,
.teacher-handover-avoid {
  min-width: 0;
  align-self: center;
  padding: 10px 12px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.teacher-handover-avoid {
  border-color: rgba(216, 125, 38, 0.16);
  background: rgba(255, 255, 255, 0.58);
}

.teacher-handover-note h4,
.teacher-handover-guidance h4,
.teacher-handover-avoid h4 {
  margin: 0 0 6px;
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1.2;
}

.teacher-handover-note p {
  margin: 0;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.48;
}

.teacher-handover-guidance ul,
.teacher-handover-avoid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.05rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.36;
}

.teacher-handover-guidance li::marker,
.teacher-handover-avoid li::marker {
  color: #d8a72c;
}

.teacher-handover-avoid li::marker {
  color: #d87d26;
}

.teacher-evidence-confidence {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 44, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 58%, #fff8e7 100%);
}

.teacher-evidence-confidence > div:first-child span {
  color: #071b4d;
  font-weight: 1000;
  text-transform: uppercase;
}

.teacher-evidence-confidence > div:first-child strong {
  background: #edf6ff;
  color: #071b4d;
}

.teacher-evidence-confidence p {
  margin: 0;
  color: #334155;
  font-weight: 790;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .tutor-hero,
  .tutor-landing-panel > .tutor-cohort-card {
    grid-template-columns: 1fr;
  }

  .tutor-photo-wrap {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }

  .tutor-hero-meta-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .tutor-online-status {
    grid-column: 1 / -1;
  }

  .tutor-welcome-inner,
  .tutor-cohort-first-panel {
    grid-template-columns: 1fr;
  }

  .tutor-welcome-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .tutor-cohort-accent {
    display: none;
  }

  .tutor-command-hero,
  .tutor-control-grid {
    grid-template-columns: 1fr;
  }

  .tutor-priority-card {
    text-align: left;
  }

  .tutor-workflow-summary-panel {
    grid-template-columns: 1fr;
  }

  .tutor-workflow-summary-grid,
  .tutor-action-grid,
  .teacher-health-grid,
  .teacher-evidence-confidence > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .tutor-welcome-card {
    margin-bottom: 16px;
  }

  .tutor-hero,
  .tutor-landing-panel > .tutor-cohort-card {
    padding: 20px;
    border-radius: 20px;
  }

  .tutor-hero-meta-card {
    grid-template-columns: 1fr;
  }

  .tutor-greeting {
    font-size: 2.25rem;
  }

  .tutor-photo-wrap {
    width: 132px;
    height: 132px;
    min-width: 132px;
  }

  .tutor-hero-logout {
    position: relative;
    top: auto;
    right: auto;
    justify-self: start;
    order: -1;
  }

  .tutor-welcome-inner,
  .tutor-welcome-identity,
  .tutor-welcome-meta {
    grid-template-columns: 1fr;
  }

  .tutor-welcome-identity {
    display: grid;
    justify-items: start;
    gap: 18px;
  }

  .tutor-welcome-photo {
    width: 96px;
    height: 96px;
    min-width: 96px;
  }

  .tutor-welcome-photo-badge {
    width: 38px;
    height: 38px;
  }

  .tutor-welcome-photo-badge img {
    width: 34px;
    height: 34px;
  }

  .tutor-welcome-meta {
    gap: 14px;
  }

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

  .session-strip.tutor-session-strip .secondary-action {
    justify-self: start;
  }

  .tutor-cohort-first-content {
    padding: 16px;
    border-radius: 18px;
  }

  .tutor-command-hero,
  .tutor-cohort-selector-panel,
  .tutor-safeguarding-panel,
  .tutor-recognition-panel,
  .tutor-work-awaiting-review,
  .tutor-queue-overview,
  .tutor-learner-search-section,
  .tutor-workflow-filtered-list,
  .teacher-intelligence-brief,
  .tutor-cohort-first-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .tutor-command-hero h1 {
    font-size: 2.35rem;
  }

  .tutor-learner-search-controls {
    grid-template-columns: 1fr;
  }

  .tutor-recognition-modal {
    padding: 18px;
    border-radius: 22px;
  }

  .tutor-recognition-modal header,
  .tutor-recognition-form {
    grid-template-columns: 1fr;
  }

  .tutor-recognition-modal header {
    display: grid;
  }

  .tutor-workflow-summary-panel {
    padding: 18px;
  }

  .tutor-workflow-summary-grid,
  .tutor-action-grid,
  .teacher-health-grid,
  .teacher-evidence-confidence > div:last-child {
    grid-template-columns: 1fr;
  }

  .tutor-workflow-learner-grid {
    grid-template-columns: 1fr;
  }

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

  .teacher-intelligence-head {
    flex-direction: column;
  }

  .teacher-today-brief {
    gap: 10px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .teacher-today-brief span {
    font-size: 0.82rem;
  }

  .teacher-today-brief p {
    font-size: 1.12rem;
    line-height: 1.46;
  }

  .teacher-handover-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .teacher-handover-top {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding-right: 0;
  }

  .teacher-handover-photo {
    grid-column: 1;
    grid-row: 1;
  }

  .teacher-handover-identity {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    padding-right: 86px;
  }

  .teacher-handover-guidance,
  .teacher-handover-avoid {
    grid-column: 1 / -1;
  }

  .teacher-handover-guidance {
    grid-row: 2;
  }

  .teacher-handover-avoid {
    grid-row: 3;
  }

  .teacher-handover-top strong,
  .teacher-handover-top small {
    text-align: left;
  }

  .teacher-handover-top .learner-avatar.teacher-brief {
    width: 92px;
    height: 92px;
    min-width: 92px;
  }

  .teacher-handover-top em {
    top: 14px;
    right: 14px;
  }
}

/* Employer talent pool cards */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.candidate-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
}

.candidate-card-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.candidate-card-top .learner-avatar.large {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border: 4px solid #ffffff;
  outline: 3px solid rgba(242, 182, 50, 0.55);
  box-shadow: 0 10px 22px rgba(15, 35, 63, 0.14);
}

.candidate-card-top h4 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.candidate-meter {
  display: grid;
  gap: 9px;
}

.candidate-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.candidate-meter strong {
  font-size: 1.85rem;
  line-height: 1;
}

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

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

.candidate-facts div {
  min-height: 76px;
  padding: 12px;
}

.candidate-facts strong {
  font-size: 1rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.candidate-card-footer {
  margin-top: auto;
  justify-content: flex-end;
  gap: 12px;
}

.candidate-card-footer .employer-rag {
  margin-right: auto;
}

.priority-candidate-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 182, 50, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #0B1F4D, #17366c);
  color: #F2B632;
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .candidate-facts,
  .candidate-location-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .candidate-card-top,
  .candidate-facts,
  .candidate-location-stack {
    grid-template-columns: 1fr;
  }

  .candidate-card-footer {
    justify-content: stretch;
  }

  .candidate-card-footer .primary-action,
  .candidate-card-footer .employer-rag {
    width: 100%;
    margin-right: 0;
  }
}

/* Employer Talent Dashboard premium visual polish - CSS-only presentation layer */
.employer-talent-pipeline-page {
  gap: 26px;
  padding: clamp(10px, 1.8vw, 18px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(242, 182, 50, 0.12), transparent 28rem);
}

.employer-talent-pipeline-page .employer-dashboard-hero {
  border: 1px solid rgba(242, 182, 50, 0.22);
  box-shadow: 0 24px 52px rgba(11, 31, 77, 0.2);
}

.employer-talent-pipeline-page .employer-pipeline-nav {
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(174, 190, 208, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.06);
}

.employer-talent-pipeline-page .employer-pipeline-nav .primary-action,
.employer-talent-pipeline-page .employer-pipeline-nav .secondary-action {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 1000;
}

.employer-talent-pipeline-page .talent-pipeline-summary {
  gap: 16px;
}

.employer-talent-pipeline-page .talent-pipeline-summary article {
  position: relative;
  min-height: 148px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(174, 190, 208, 0.58);
  border-top: 0;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f7faff 70%, #fff9e8 100%);
  box-shadow: 0 18px 38px rgba(15, 35, 63, 0.1);
}

.employer-talent-pipeline-page .talent-pipeline-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), #ffe08a, var(--blue));
}

.employer-talent-pipeline-page .talent-pipeline-summary span {
  color: #17366c;
  letter-spacing: 0.045em;
}

.employer-talent-pipeline-page .talent-pipeline-summary strong {
  color: var(--navy);
  font-size: clamp(2.05rem, 3.1vw, 2.85rem);
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.employer-talent-pipeline-page .talent-pipeline-summary p {
  color: #5b6b82;
}

.employer-talent-pipeline-page .employer-filter-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(174, 190, 208, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.13), transparent 22rem);
  box-shadow: 0 22px 46px rgba(15, 35, 63, 0.12);
}

.employer-talent-pipeline-page .employer-filter-panel::before {
  content: "Employer search controls";
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(242, 182, 50, 0.5);
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.92);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.employer-talent-pipeline-page .employer-filter-grid {
  gap: 14px 16px;
}

.employer-talent-pipeline-page .employer-filter-grid label {
  gap: 8px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employer-talent-pipeline-page .employer-filter-grid input,
.employer-talent-pipeline-page .employer-filter-grid select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(11, 31, 77, 0.16);
  border-radius: 15px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(15, 35, 63, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.employer-talent-pipeline-page .employer-filter-grid input::placeholder {
  color: rgba(91, 107, 130, 0.72);
  font-weight: 750;
}

.employer-talent-pipeline-page .employer-filter-grid input:focus,
.employer-talent-pipeline-page .employer-filter-grid select:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow:
    0 0 0 4px rgba(242, 182, 50, 0.22),
    0 12px 24px rgba(15, 35, 63, 0.1);
}

.employer-talent-pipeline-page .quick-filter-row {
  gap: 10px;
  margin-top: 0;
  padding-top: 4px;
}

.employer-talent-pipeline-page .quick-filter-row .secondary-action {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 31, 77, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(15, 35, 63, 0.06);
}

.employer-talent-pipeline-page .quick-filter-row .secondary-action:hover,
.employer-talent-pipeline-page .quick-filter-row .secondary-action:focus-visible {
  border-color: rgba(242, 182, 50, 0.84);
  background: #fff8dc;
  box-shadow: 0 12px 24px rgba(15, 35, 63, 0.12);
  transform: translateY(-1px);
}

.employer-talent-pipeline-page .quick-filter-row .secondary-action.active-filter {
  border-color: #bd850e !important;
  background: linear-gradient(135deg, #f2b632, #ffe08a) !important;
  color: var(--navy) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 14px 26px rgba(174, 118, 0, 0.2);
}

.employer-talent-pipeline-page .active-filter-summary {
  width: fit-content;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(174, 190, 208, 0.48);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #17366c;
}

.employer-talent-pipeline-page .talent-pipeline-table-card {
  gap: 18px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(174, 190, 208, 0.6);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 22px 48px rgba(15, 35, 63, 0.11);
}

.employer-talent-pipeline-page .talent-pipeline-table-card > .panel-head {
  position: relative;
  padding: 18px 20px 18px 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 182, 50, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.78), rgba(255, 255, 255, 0.96));
}

.employer-talent-pipeline-page .talent-pipeline-table-card > .panel-head::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--gold);
}

.employer-talent-pipeline-page .talent-pipeline-table-card > .panel-head h4 {
  margin: 2px 0 5px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 1000;
}

.employer-talent-pipeline-page .talent-pipeline-table-card > .panel-head p:last-child {
  color: #5b6b82;
  font-weight: 800;
}

.employer-panel .professional-league-panel {
  border: 1px solid rgba(174, 190, 208, 0.6);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 22px 48px rgba(15, 35, 63, 0.11);
}

.employer-panel .professional-league-head {
  position: relative;
  overflow: hidden;
  border-color: rgba(242, 182, 50, 0.3);
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.84), rgba(255, 255, 255, 0.96));
}

.employer-panel .professional-league-head::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--gold);
}

.employer-panel .professional-league-head h4 {
  color: var(--navy);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 1000;
}

@media (max-width: 980px) {
  .employer-talent-pipeline-page .talent-pipeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employer-talent-pipeline-page .employer-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .employer-talent-pipeline-page {
    padding: 8px;
    border-radius: 20px;
  }

  .employer-talent-pipeline-page .talent-pipeline-summary {
    grid-template-columns: 1fr;
  }

  .employer-talent-pipeline-page .quick-filter-row .secondary-action {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .league-page-header {
    grid-template-columns: 1fr;
  }

  .league-row-card,
  .league-row-card.empty-position {
    grid-template-columns: 92px 108px minmax(0, 1fr);
  }

  .league-row-score {
    grid-column: 3;
  }

  .league-row-action {
    grid-column: 3;
    justify-self: start;
  }

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

  .league-podium-grid,
  .league-card-list {
    grid-template-columns: 1fr;
  }

  .podium-card .learner-avatar.large {
    width: 116px;
    height: 116px;
    min-width: 116px;
  }

  .professional-league-row {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 180px;
  }

  .professional-league-row .league-score,
  .professional-league-row .league-metrics,
  .professional-league-row .league-zone,
  .professional-league-row .secondary-action {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .learner-league-page {
    gap: 14px;
  }

  .league-page-header {
    padding: 18px;
  }

  .sports-league-table {
    min-width: 1040px;
  }

  .sports-league-table th,
  .sports-league-table td {
    padding: 12px 10px;
    font-size: 0.82rem;
  }

  .league-row-card,
  .league-row-card.empty-position {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }

  .league-row-rank {
    width: auto;
    min-width: 76px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .league-row-card > .learner-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
  }

  .league-row-score {
    grid-column: auto;
    width: 100%;
  }

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

  .league-row-action {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .league-card-top {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .league-card-top .league-readiness-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .league-card-score {
    grid-template-columns: 1fr;
  }

  .professional-league-card,
  .professional-league-row {
    grid-template-columns: 1fr;
  }

  .professional-league-row .league-score,
  .professional-league-row .league-metrics,
  .professional-league-row .league-zone,
  .professional-league-row .secondary-action {
    grid-column: auto;
  }

  .league-rank {
    width: 64px;
    height: 54px;
    border-radius: 16px;
  }

  .league-identity {
    align-items: flex-start;
  }

  .league-identity .learner-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
  }

  .professional-league-panel {
    padding: 16px;
  }

  .professional-league-head,
  .league-distribution {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .professional-league-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .professional-league-table,
  .professional-league-table thead,
  .professional-league-table tbody,
  .professional-league-table tr,
  .professional-league-table th,
  .professional-league-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .professional-league-table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .professional-league-table thead {
    display: none;
  }

  .professional-league-table-row {
    padding: 14px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 63, 0.06);
  }

  .professional-league-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    text-align: right;
  }

  .professional-league-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 1000;
    text-align: left;
    text-transform: uppercase;
  }

  .professional-league-table td:last-child {
    border-bottom: 0;
  }

  .league-table-learner {
    justify-content: flex-end;
    text-align: left;
  }

  .league-overall-cell {
    justify-items: end;
    min-width: 170px;
  }

  .league-distribution-bars {
    min-width: 0;
    width: 100%;
  }

  .league-distribution-bars article {
    grid-template-columns: 94px minmax(0, 1fr) 32px;
  }

  .league-quick-stats {
    grid-template-columns: 1fr;
  }
}

.premium-passport-page {
  max-width: 1280px;
  margin: 0 auto;
  gap: 22px;
  padding: 4px 0 30px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 42%);
}

.passport-brand-strip {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 22px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 75, 0.08);
}

.passport-brand-strip img {
  width: min(280px, 34vw);
  max-height: 72px;
  object-fit: contain;
}

.passport-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(11, 31, 77, 0.96), rgba(18, 64, 139, 0.94)),
    var(--navy);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(11, 31, 77, 0.28);
}

.passport-hero-photo {
  display: grid;
  place-items: center;
}

.passport-hero-photo .learner-avatar.large {
  width: 220px;
  height: 220px;
  min-width: 220px;
  border: 7px solid var(--gold);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 255, 255, 0.12);
  font-size: 2.3rem;
}

.passport-hero-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.passport-hero-main .eyebrow {
  color: var(--gold);
}

.passport-hero-main h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.passport-hero-main > strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.passport-identity-list,
.passport-hero-actions,
.passport-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.passport-identity-list span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.passport-hero-actions {
  display: grid;
}

.passport-hero-actions .primary-action,
.passport-hero-actions .secondary-action {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.passport-hero-actions .primary-action {
  background: var(--gold);
  color: var(--navy);
}

.passport-readiness-panel,
.passport-card {
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 35, 75, 0.08);
}

.passport-readiness-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.readiness-score-block {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--navy), #173f87);
  color: #ffffff;
}

.readiness-score-block span,
.readiness-score-block em,
.passport-section-heading .eyebrow,
.passport-snapshot-grid span,
.passport-behaviour-grid span,
.passport-evidence-card span,
.passport-check-grid span {
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-score-block span,
.readiness-score-block em {
  color: rgba(255, 255, 255, 0.78);
}

.readiness-score-block strong {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
}

.readiness-metric-list,
.passport-snapshot-grid,
.passport-behaviour-grid,
.passport-check-grid,
.passport-evidence-grid,
.milestone-list {
  display: grid;
  gap: 14px;
}

.readiness-metric-list {
  align-content: center;
}

.readiness-metric-list article {
  display: grid;
  gap: 9px;
}

.readiness-metric-list article > div:first-child,
.passport-section-heading,
.phase-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.readiness-metric-list span,
.passport-snapshot-grid span,
.passport-behaviour-grid span,
.passport-check-grid span,
.passport-evidence-card span {
  color: var(--muted);
}

.readiness-metric-list strong {
  color: var(--navy);
}

.passport-progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecf3;
}

.passport-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18a558, #56c27d);
}

.passport-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.passport-card > p {
  margin: 0;
  color: #40536a;
  font-size: 1.02rem;
  line-height: 1.7;
}

.passport-section-heading {
  align-items: end;
}

.passport-section-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.passport-section-heading .eyebrow {
  margin: 0 0 4px;
  color: var(--gold-dark);
}

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

.passport-snapshot-grid article,
.passport-behaviour-grid article,
.passport-check-grid article,
.milestone-list article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 14px;
  background: #f8fbff;
}

.passport-snapshot-grid strong,
.passport-behaviour-grid strong {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.passport-snapshot-grid em,
.passport-behaviour-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

.passport-evidence-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.passport-evidence-card h5 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.passport-evidence-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.evidence-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.evidence-card-meta strong,
.passport-muted-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.passport-testimonial {
  background: linear-gradient(145deg, #ffffff, #fffaf0);
}

.passport-testimonial blockquote {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.35;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tutor-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
}

.testimonial-author strong,
.testimonial-author span {
  display: block;
}

.testimonial-author strong {
  color: var(--navy);
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.passport-pill-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #def8e8;
  color: #0b6b35;
  font-size: 0.86rem;
  font-weight: 900;
}

.passport-pill-list.development span {
  background: #fff2c7;
  color: #8a5b00;
}

.passport-check-grid article em {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.passport-check-grid article em.green {
  background: #def8e8;
  color: #0b6b35;
}

.passport-check-grid article em.amber,
.passport-check-grid article em.neutral {
  background: #fff2c7;
  color: #8a5b00;
}

.passport-check-grid article em.red {
  background: #ffe0e0;
  color: #9b1c1c;
}

.milestone-list article {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.milestone-list span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

.milestone-list strong {
  color: var(--navy);
  font-size: 1rem;
}

@media (max-width: 1080px) {
  .passport-hero,
  .passport-readiness-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .passport-brand-strip,
  .passport-hero,
  .passport-two-column,
  .passport-snapshot-grid,
  .passport-behaviour-grid,
  .passport-check-grid,
  .passport-hero-actions {
    grid-template-columns: 1fr;
  }

  .passport-brand-strip img {
    width: min(240px, 100%);
  }

  .passport-hero {
    padding: 22px;
  }

  .passport-hero-photo .learner-avatar.large {
    width: 170px;
    height: 170px;
    min-width: 170px;
  }
}

/* End of day daily standard marking */
.daily-standard-page {
  display: grid;
  gap: 20px;
}

.daily-wizard-hero,
.daily-wizard-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.08);
}

.daily-wizard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #0B1F4D, #15366f);
  color: #ffffff;
}

.daily-wizard-hero h3,
.daily-wizard-hero p {
  margin: 0;
}

.daily-wizard-hero .eyebrow {
  color: var(--gold);
}

.daily-register-header {
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(216, 154, 19, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 8%, rgba(242, 182, 50, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow:
    0 16px 34px rgba(11, 31, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.daily-register-title-block {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.daily-register-step-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid rgba(216, 154, 19, 0.34);
  border-radius: 999px;
  background: #fff8e7;
  color: #9a6505;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.daily-register-header h4 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.daily-register-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.daily-register-meta-chips span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 154, 19, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(216, 154, 19, 0.18), rgba(216, 154, 19, 0) 42%) border-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)) padding-box;
  color: #4b5d76;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(216, 154, 19, 0.08),
    0 9px 18px rgba(11, 31, 77, 0.07);
}

.daily-register-meta-chips span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe28a, #d89a13);
  box-shadow: 0 0 0 3px rgba(216, 154, 19, 0.1);
}

.daily-register-meta-chips b {
  margin-right: 5px;
  color: #071b4d;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

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

.daily-step {
  display: flex;
  min-height: 64px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.daily-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf1f5;
  color: var(--navy);
}

.daily-step.active {
  border-color: var(--gold);
  background: #fff8df;
  color: var(--navy);
}

.daily-step.active span,
.daily-step.complete span {
  background: var(--gold);
  color: var(--navy);
}

.daily-step.complete {
  border-color: rgba(24, 165, 88, 0.28);
  background: #f0fbf5;
  color: #12633a;
}

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

.daily-select-grid label,
.daily-register-date-field,
.late-minutes-field,
.attendance-notes-field,
.daily-comment-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-select-grid input,
.daily-select-grid select,
.daily-register-date-field input,
.late-minutes-field input,
.attendance-notes-field input,
.daily-comment-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.daily-start-button {
  justify-self: start;
}

.daily-register-start-area {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.daily-register-date-field {
  min-width: 220px;
}

.attendance-register-list,
.daily-marking-queue {
  display: grid;
  gap: 20px;
}

.attendance-register-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(92px, 1fr)) repeat(2, minmax(92px, 1fr)) minmax(100px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%),
    #ffffff;
  box-shadow: 0 10px 22px rgba(11, 31, 77, 0.07);
}

.attendance-register-main {
  display: contents;
}

.attendance-button-group {
  display: contents;
}

.attendance-button {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  border: 2px solid rgba(245, 180, 27, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 1) 0%, rgba(255, 255, 255, 0.98) 78%),
    #ffffff;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 20px rgba(15, 35, 63, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.attendance-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #f8d36b, #f2b632);
  opacity: 0.9;
}

.attendance-button::after {
  content: none;
  display: none !important;
  width: 0;
  height: 0;
  border: 0;
  background: none;
}

.attendance-button strong {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.attendance-button:hover,
.attendance-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 182, 50, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 244, 207, 1), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 12px 24px rgba(15, 35, 63, 0.13);
  outline: 3px solid rgba(245, 180, 27, 0.18);
  outline-offset: 2px;
}

.attendance-button.active {
  border-color: #d79a05;
  color: var(--navy);
  background:
    linear-gradient(180deg, #fff0ba 0%, #ffe19a 100%),
    #ffe19a;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.52), inset 0 0 0 5px rgba(245, 180, 27, 0.22), 0 14px 28px rgba(15, 35, 63, 0.16);
}

.attendance-button.active::before {
  width: 7px;
  background: linear-gradient(180deg, #ffdf73, #b77b00);
  opacity: 1;
}

.attendance-button.active::after {
  content: none;
  display: none !important;
  width: 0;
  height: 0;
  border: 0;
  background: none;
}

.attendance-button.present.active {
  background: linear-gradient(180deg, #ebfff3, #cdefdc);
  color: #12633a;
}

.attendance-button.late.active {
  background: linear-gradient(180deg, #fff2bf, #ffdc84);
  color: #8a5a00;
}

.attendance-button.absent.active {
  background: linear-gradient(180deg, #fff0f0, #ffcaca);
  color: #9b1c1c;
}

.attendance-button.authorised-absence.active {
  background: linear-gradient(180deg, #f1f6ff, #d8e7ff);
  color: #173f8a;
}

.attendance-score-block {
  display: contents;
}

.attendance-score-summary {
  display: contents;
}

.attendance-score-item {
  display: grid;
  place-items: center;
  gap: 2px;
  height: 58px;
  min-width: 0;
  padding: 6px 5px;
  border: 2px solid rgba(245, 180, 27, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 16px rgba(15, 35, 63, 0.05);
}

.attendance-detail-drawer {
  min-width: 0;
  align-self: stretch;
}

.attendance-detail-drawer summary {
  display: grid;
  place-items: center;
  width: 100%;
  height: 58px;
  padding: 6px 8px;
  border: 2px solid rgba(245, 180, 27, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 236, 1), rgba(255, 255, 255, 0.96));
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 35, 63, 0.05);
}

.attendance-detail-drawer[open] {
  grid-column: 1 / -1;
}

.attendance-detail-drawer[open] summary {
  max-width: 180px;
  margin-left: auto;
}

.attendance-validation-panel {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(138, 100, 15, 0.16);
}

.attendance-validation-panel p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: rgba(11, 31, 77, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
}

.attendance-validation-panel p span {
  color: rgba(11, 31, 77, 0.58);
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.attendance-validation-panel p strong {
  color: var(--navy);
  font-size: inherit;
  font-weight: 1000;
  text-align: right;
}

.employment-readiness-preview-panel {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 31, 77, 0.14);
}

.employment-readiness-preview-panel h5,
.employment-readiness-preview-panel p {
  margin: 0;
}

.employment-readiness-preview-panel h5 {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.employment-readiness-preview-panel p,
.preview-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: rgba(11, 31, 77, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
}

.employment-readiness-preview-panel p span,
.preview-breakdown p span {
  color: rgba(11, 31, 77, 0.58);
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.employment-readiness-preview-panel p strong,
.preview-breakdown p strong {
  color: var(--navy);
  font-size: inherit;
  font-weight: 1000;
  text-align: right;
}

.employment-readiness-preview-panel .preview-warning {
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 249, 231, 0.9);
  color: #8a5a00;
  font-size: 0.6rem;
  font-weight: 900;
  text-align: left;
}

.professionalism-placeholder-panel {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.88);
}

.professionalism-placeholder-panel strong {
  color: var(--navy);
  font-size: 0.64rem;
  font-weight: 1000;
  line-height: 1.25;
}

.professionalism-placeholder-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 3px 8px;
  margin: 0;
  padding-left: 14px;
}

.professionalism-placeholder-panel li,
.professionalism-placeholder-panel p {
  margin: 0;
  color: rgba(11, 31, 77, 0.66);
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.2;
}

.attendance-score-block span {
  color: #8a640f;
  font-size: 0.52rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-score-block strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 1000;
}

.daily-register-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.attendance-success-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(24, 165, 88, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(240, 251, 245, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(11, 31, 77, 0.08);
}

.attendance-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(24, 165, 88, 0.22);
  border-radius: 999px;
  background: #dff8eb;
  color: #12633a;
  font-size: 1.55rem;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(24, 165, 88, 0.16);
}

.attendance-success-hero h4,
.attendance-success-hero p {
  margin: 0;
}

.attendance-success-hero h4 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 1000;
  line-height: 1.05;
}

.attendance-success-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: #4f6078;
  font-weight: 800;
}

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

.daily-review-summary.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-review-summary div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.daily-review-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-review-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.daily-register-footer .daily-review-summary.compact div {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(216, 154, 19, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 92% 0%, rgba(242, 182, 50, 0.16), transparent 6rem),
    linear-gradient(135deg, #123d73 0%, #071b4d 100%);
  box-shadow:
    0 14px 28px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(216, 154, 19, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.daily-register-footer .daily-review-summary.compact div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ffe28a, #d89a13);
  opacity: 0.9;
}

.daily-register-footer .daily-review-summary.compact div:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 182, 50, 0.9);
  box-shadow:
    0 18px 34px rgba(7, 27, 77, 0.24),
    0 0 0 3px rgba(216, 154, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(242, 182, 50, 0.24);
}

.daily-register-footer .daily-review-summary.compact span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.daily-register-footer .daily-review-summary.compact strong {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.attendance-save-summary {
  gap: 12px;
}

.attendance-save-summary div {
  display: grid;
  min-height: 112px;
  align-content: center;
  border-color: rgba(11, 31, 77, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(11, 31, 77, 0.06);
}

.attendance-save-summary span {
  color: #71809a;
  letter-spacing: 0.08em;
}

.attendance-save-summary strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 1000;
}

.attendance-save-summary .text-card {
  grid-column: span 2;
  justify-content: start;
}

.attendance-save-summary .text-card strong {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.2;
}

.daily-register-diagnostic {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.78rem;
  box-shadow: none;
}

.daily-register-diagnostic strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.daily-register-diagnostic p {
  margin: 4px 0 0;
  color: #5d6e86;
}

.attendance-save-actions {
  grid-template-columns: auto auto;
  justify-content: end;
  gap: 12px;
}

.attendance-save-actions .primary-action,
.attendance-save-actions .secondary-action {
  min-height: 50px;
  min-width: 210px;
}

.daily-marking-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.daily-marking-card.confirmed {
  border-color: rgba(24, 165, 88, 0.4);
  background: #f3fbf6;
}

.daily-marking-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.attendance-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf1f5;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.attendance-pill.present {
  background: #e8f8ef;
  color: #12633a;
}

.attendance-pill.late {
  background: #fff4cf;
  color: #7a5600;
}

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

.daily-grade-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

.daily-grade-row > span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.daily-grade-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-grade-button {
  min-height: 44px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.daily-grade-button.bronze.active {
  border-color: #c47a3c;
  background: #f6dcc6;
  color: #744014;
}

.daily-grade-button.silver.active {
  border-color: #b9c5d1;
  background: #eef2f6;
  color: #3e5165;
}

.daily-grade-button.gold.active {
  border-color: #e4b62d;
  background: #fff2bd;
  color: #7a5600;
}

.safety-concern-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-weight: 900;
}

.daily-comment-field textarea {
  min-height: 96px;
  resize: vertical;
}

.daily-card-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.success-panel {
  padding: 18px;
  border: 1px solid rgba(24, 165, 88, 0.28);
  border-radius: 16px;
  background: #f0fbf5;
  color: #12633a;
}

.daily-single-card,
.daily-cohort-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
}

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

.daily-standard-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-standard-fields input,
.daily-standard-fields select,
.daily-standard-fields textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.daily-standard-fields select {
  font-weight: 900;
}

.daily-standard-fields textarea {
  min-height: 92px;
  resize: vertical;
}

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

.daily-result-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  background: #f7f9fc;
}

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

.daily-result-card strong {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.daily-result-card p {
  margin: 0;
  color: var(--ink);
}

.daily-result-card.gold {
  border-left: 7px solid #F2B632;
  background: #fff9e8;
}

.daily-result-card.silver {
  border-left: 7px solid #b9c5d1;
  background: #f7f9fc;
}

.daily-result-card.bronze {
  border-left: 7px solid #c47a3c;
  background: #fff5ed;
}

.daily-result-card.not-assessed {
  border-left: 7px solid #d3dae2;
}

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

.daily-cohort-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.daily-cohort-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 180, 27, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(11, 31, 77, 0.05);
}

.attendance-register-row .daily-cohort-identity .learner-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-width: 2px;
  box-shadow: 0 8px 18px rgba(11, 31, 77, 0.1);
}

.daily-cohort-identity h4,
.daily-cohort-identity p {
  margin: 0;
}

.daily-learner-copy {
  min-width: 0;
}

.attendance-register-row .daily-cohort-identity h4 {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.attendance-register-row .daily-cohort-identity p {
  margin-top: 3px;
  color: #8a640f;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.daily-cohort-row .daily-standard-fields {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daily-cohort-row .daily-field-wide {
  grid-column: span 5;
}

@media (max-width: 1100px) {
  .daily-stepper,
  .daily-select-grid,
  .daily-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-save-summary .text-card {
    grid-column: span 1;
  }

  .attendance-register-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .attendance-register-row .daily-cohort-identity {
    grid-column: 1 / -1;
  }

  .attendance-button,
  .attendance-score-item,
  .attendance-detail-drawer summary {
    height: 54px;
    min-height: 54px;
  }

  .attendance-detail-drawer {
    grid-column: span 2;
  }

  .daily-standard-fields,
  .daily-cohort-row .daily-standard-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-field-wide,
  .daily-cohort-row .daily-field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .daily-wizard-hero,
  .daily-register-footer,
  .attendance-success-hero,
  .daily-marking-top,
  .daily-card-actions {
    grid-template-columns: 1fr;
  }

  .daily-stepper,
  .daily-select-grid,
  .daily-grade-grid,
  .daily-grade-buttons,
  .daily-review-summary,
  .daily-review-summary.compact {
    grid-template-columns: 1fr;
  }

  .attendance-button-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-register-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-register-row .daily-cohort-identity,
  .attendance-detail-drawer,
  .attendance-detail-drawer[open] {
    grid-column: 1 / -1;
  }

  .attendance-detail-drawer[open] summary {
    max-width: none;
    margin-left: 0;
  }

  .daily-register-start-area,
  .daily-register-date-field,
  .daily-register-start-area .primary-action {
    width: 100%;
  }

  .professionalism-placeholder-panel ul {
    grid-template-columns: 1fr;
  }

  .attendance-save-summary .text-card strong {
    font-size: 1rem;
  }

  .attendance-save-actions {
    justify-content: stretch;
  }

  .attendance-save-actions .primary-action,
  .attendance-save-actions .secondary-action {
    width: 100%;
    min-width: 0;
  }

  .daily-wizard-hero,
  .daily-wizard-panel {
    padding: 18px;
  }

  .daily-step {
    min-height: 54px;
  }

  .daily-standard-fields,
  .daily-cohort-row .daily-standard-fields {
    grid-template-columns: 1fr;
  }

  .daily-field-wide,
  .daily-cohort-row .daily-field-wide {
    grid-column: span 1;
  }
}

/* Learner lesson workbook full-width Safari layout fix */
#learnerPortalContent .lesson-list {
  display: grid;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

#learnerPortalContent .lesson-card {
  min-width: 0;
  width: 100%;
  min-height: 188px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #dbe3ef;
  border-left: 6px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    background 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

#learnerPortalContent .lesson-card:not(.lesson-locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#learnerPortalContent .lesson-card .lesson-summary {
  min-height: 188px;
  height: 100%;
  background: transparent;
}

#learnerPortalContent .lesson-card .day-pill {
  border: 0;
}

#learnerPortalContent .lesson-title {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#learnerPortalContent .lesson-card.open {
  grid-column: 1 / -1;
  width: 100%;
}

#learnerPortalContent .lesson-card.open .task-groups {
  display: grid;
  gap: 24px;
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
}

#learnerPortalContent .task-group {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1023px) {
  .learner-score-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  #learnerPortalContent .lesson-list,
  .passport-grid {
    grid-template-columns: 1fr;
  }

  .learner-home-card-head,
  .league-position-grid,
  .learner-score-metric-grid,
  .learner-menu-page {
    grid-template-columns: 1fr;
  }

  .learner-home-card-head {
    display: grid;
  }
}

.lesson-summary:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.lesson-card.lesson-completed {
  border-left-color: #16a34a;
}

.lesson-card.lesson-completed .lesson-score {
  background: #dcfce7;
  color: #166534;
}

.lesson-card.lesson-awaiting {
  border-left-color: #f59e0b;
}

.lesson-card.lesson-awaiting .lesson-score {
  background: #fef3c7;
  color: #92400e;
}

.lesson-card.lesson-current {
  border-left-color: #1d4ed8;
}

.lesson-card.lesson-current .lesson-score {
  background: #dbeafe;
  color: #1e40af;
}

.lesson-card.lesson-try-again {
  border-left-color: #f59e0b;
}

.lesson-card.lesson-try-again .lesson-score {
  background: #fff7e6;
  color: #92400e;
}

.lesson-card.lesson-locked {
  border-left-color: #94a3b8;
  background: #f8fafc;
  color: #64748b;
}

.lesson-card.lesson-locked .lesson-score {
  background: #e2e8f0;
  color: #475569;
}

#learnerPortalContent .lesson-heading:has(.theory-learning-hero) {
  display: block;
  max-width: 1280px;
  margin: 32px auto 28px;
}

#learnerPortalContent .lesson-heading:has(.practical-learning-hero) {
  display: block;
  max-width: 1280px;
  margin: 32px auto 28px;
}

#learnerPortalContent .lesson-list:has(.theory-progress-summary) {
  gap: 22px;
  align-items: stretch;
}

#learnerPortalContent .lesson-list:has(.practical-progress-summary) {
  gap: 22px;
  align-items: stretch;
}

.theory-back-dashboard {
  width: auto;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border-color: rgba(15, 35, 75, 0.14);
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.08);
  white-space: nowrap;
}

.practical-back-dashboard {
  position: relative;
  z-index: 3;
  width: auto;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border-color: rgba(15, 35, 75, 0.14);
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.08);
  white-space: nowrap;
}

.theory-learning-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 32px 44px 52px;
  border: 1px solid rgba(242, 182, 50, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(242, 182, 50, 0.08), transparent 28%),
    linear-gradient(135deg, #05142d 0%, #071a33 52%, #0f2f5f 100%);
  box-shadow: 0 28px 62px rgba(15, 35, 75, 0.22);
}

.theory-learning-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -35% 26% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.theory-hero-page-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.theory-hero-page-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.2vw, 2.05rem);
  line-height: 1.04;
  font-weight: 950;
}

.theory-hero-page-header span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 800;
}

.theory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.theory-hero-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(242, 182, 50, 0.72);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(5, 20, 45, 0.94), rgba(15, 47, 95, 0.88));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theory-hero-actions button:hover,
.theory-hero-actions button:focus-visible {
  border-color: #f2b632;
  background:
    linear-gradient(135deg, rgba(242, 182, 50, 0.14), rgba(242, 182, 50, 0.03)),
    linear-gradient(135deg, rgba(5, 20, 45, 0.98), rgba(15, 47, 95, 0.94));
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(242, 182, 50, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.practical-learning-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 40px 44px 46px;
  border: 1px solid rgba(242, 182, 50, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(242, 182, 50, 0.08), transparent 28%),
    linear-gradient(135deg, #061226 0%, #071a33 48%, #0f2f5f 100%);
  box-shadow: 0 28px 62px rgba(15, 35, 75, 0.22);
  isolation: isolate;
}

.practical-learning-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #061226 0%, rgba(6, 18, 38, 0.98) 35%, rgba(7, 26, 51, 0.78) 55%, rgba(7, 26, 51, 0.24) 76%, rgba(7, 26, 51, 0.04) 100%),
    linear-gradient(180deg, rgba(6, 18, 38, 0.08) 0%, rgba(6, 18, 38, 0.2) 62%, rgba(6, 18, 38, 0.48) 100%);
  pointer-events: none;
}

.theory-hero-content {
  position: static;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: 0;
  align-items: stretch;
  min-height: 390px;
}

.practical-hero-content {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: 0;
  align-items: center;
  min-height: 300px;
}

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

.theory-hero-text-panel {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 30px;
  min-width: 0;
  padding-right: 30px;
}

.practical-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.theory-phase-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4cf;
  color: #7a5600;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
}

.practical-phase-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4cf;
  color: #7a5600;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
}

#learnerPortalContent .lesson-heading .theory-hero-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.93;
  font-weight: 950;
}

#learnerPortalContent .lesson-heading .practical-hero-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 0.98;
  font-weight: 950;
}

#learnerPortalContent .lesson-heading .theory-hero-copy p:not(.theory-phase-label) {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 650;
}

#learnerPortalContent .lesson-heading .practical-hero-copy p:not(.practical-phase-label) {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 650;
}

.theory-curriculum-subtitle {
  display: block;
  margin: 14px 0 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 850;
}

.practical-curriculum-subtitle {
  display: block;
  margin: 10px 0 3px;
  color: #f2b632;
  font-size: 1.08rem;
  font-weight: 850;
}

.practical-hero-feature-panel {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 52%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 24px 24px 0;
  background: #071a33;
  box-shadow: none;
}

.practical-hero-feature-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #061226 0%, rgba(7, 26, 51, 0.86) 16%, rgba(7, 26, 51, 0.44) 44%, rgba(7, 26, 51, 0.05) 72%),
    linear-gradient(180deg, rgba(7, 26, 51, 0.06) 0%, rgba(7, 26, 51, 0.12) 54%, rgba(7, 26, 51, 0.46) 100%);
  pointer-events: none;
}

.practical-hero-feature-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 48% 42%;
}

.theory-hero-status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(7, 26, 51, 0.54);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.theory-hero-feature-panel {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 40%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 24px 24px 0;
  background: #071a33;
  box-shadow: none;
}

.theory-hero-feature-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #071a33 0%, rgba(7, 26, 51, 0.88) 18%, rgba(7, 26, 51, 0.42) 48%, rgba(7, 26, 51, 0.06) 72%),
    linear-gradient(180deg, rgba(7, 26, 51, 0.08) 0%, rgba(7, 26, 51, 0.16) 54%, rgba(7, 26, 51, 0.46) 100%);
  pointer-events: none;
}

.theory-hero-feature-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.practical-hero-status-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(7, 26, 51, 0.54);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.theory-hero-status-panel article {
  display: grid;
  gap: 5px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.theory-hero-status-panel article i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.theory-hero-status-panel article i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b632, #ffe39a);
  box-shadow: 0 0 14px rgba(242, 182, 50, 0.28);
}

.practical-hero-status-panel article {
  display: grid;
  gap: 5px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.theory-hero-status-panel article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.practical-hero-status-panel article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.theory-hero-status-panel span,
.theory-hero-status-panel em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.practical-hero-status-panel span,
.practical-hero-status-panel em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.theory-hero-status-panel strong {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.practical-hero-status-panel strong {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.theory-progress-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 8px 0 18px;
  padding: 24px;
  border: 1px solid rgba(242, 182, 50, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #071a33 0%, #0f2f5f 100%);
  box-shadow: 0 24px 54px rgba(15, 35, 75, 0.18);
}

.practical-progress-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 0 18px;
  padding: 26px;
  border: 1px solid rgba(242, 182, 50, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 14%, rgba(242, 182, 50, 0.08), transparent 24rem),
    linear-gradient(135deg, #061226 0%, #071a33 52%, #0f2f5f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 54px rgba(15, 35, 75, 0.2);
}

.theory-progress-summary article {
  display: grid;
  gap: 12px;
  padding: 20px 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 32, 62, 0.96), rgba(15, 47, 95, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.practical-progress-summary article {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(10, 32, 62, 0.96), rgba(15, 47, 95, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 3px solid #f2b632;
  box-shadow:
    inset 0 0 0 1px rgba(242, 182, 50, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.14);
}

.theory-progress-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.practical-progress-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theory-progress-summary strong {
  color: #ffffff;
  font-size: 2.35rem;
  line-height: 1;
}

.practical-progress-summary strong {
  color: #ffffff;
  font-size: 2.35rem;
  line-height: 1;
}

.theory-progress-meter {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px 2px 2px;
}

.practical-progress-meter {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px 2px 2px;
}

.theory-progress-meter div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.practical-progress-meter div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.theory-progress-meter div:first-child span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  text-transform: none;
}

.practical-progress-meter div:first-child span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  text-transform: none;
}

.theory-progress-meter div:first-child strong {
  font-size: 1rem;
}

.practical-progress-meter div:first-child strong {
  font-size: 1rem;
}

.theory-progress-track {
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.practical-progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.theory-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b632 0%, #ffffff 100%);
}

.practical-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b632 0%, #ffe28a 100%);
  box-shadow: 0 0 18px rgba(242, 182, 50, 0.28);
}

.theory-progress-meter p {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 800;
}

.practical-progress-meter p {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 800;
}

#learnerPortalContent .practical-lesson-card,
#learnerPortalContent .theory-lesson-card {
  min-height: 188px;
  height: 100%;
  transition: transform 250ms ease, background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

#learnerPortalContent .practical-lesson-card .lesson-summary,
#learnerPortalContent .theory-lesson-card .lesson-summary {
  min-height: 188px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  box-sizing: border-box;
}

#learnerPortalContent .practical-lesson-card .card-topline,
#learnerPortalContent .theory-lesson-card .card-topline {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#learnerPortalContent .practical-lesson-card .lesson-title,
#learnerPortalContent .theory-lesson-card .lesson-title {
  flex: 0 0 50px;
  min-height: 50px;
}

#learnerPortalContent .theory-lesson-card .lesson-outcome {
  display: block;
  min-height: 42px;
  color: #53627a;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
}

#learnerPortalContent .practical-lesson-card .evidence-list,
#learnerPortalContent .theory-lesson-card .evidence-list {
  flex: 1 1 auto;
  display: grid;
  align-content: end;
  gap: 6px;
  margin-top: 0;
  min-height: 58px;
}

#learnerPortalContent .practical-lesson-card .evidence-row,
#learnerPortalContent .theory-lesson-card .evidence-row {
  min-height: 0;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.76rem;
}

#learnerPortalContent .practical-lesson-card .day-pill,
#learnerPortalContent .practical-lesson-card .lesson-score,
#learnerPortalContent .theory-lesson-card .day-pill,
#learnerPortalContent .theory-lesson-card .lesson-score {
  min-height: 0;
  padding: 5px 8px;
  font-size: 0.72rem;
  line-height: 1.1;
}

#learnerPortalContent .practical-lesson-card:not(.lesson-locked):hover,
#learnerPortalContent .practical-lesson-card.lesson-locked:hover {
  transform: translateY(-3px);
  border-color: #c4d8ee;
  box-shadow: 0 18px 40px rgba(15, 35, 75, 0.12);
}

#learnerPortalContent .lesson-card.lesson-card--completed,
#learnerPortalContent .practical-lesson-card.lesson-completed,
#learnerPortalContent .theory-lesson-card.lesson-completed {
  background: linear-gradient(180deg, #f3fff5 0%, #ecfaef 100%);
  border-color: #c8ebd0;
  border-left-color: #16a34a;
  box-shadow: 0 8px 22px rgba(22, 101, 52, 0.08);
}

#learnerPortalContent .lesson-card--completed .lesson-status-badge,
#learnerPortalContent .lesson-card--completed .completed-badge,
#learnerPortalContent .practical-lesson-card.lesson-completed .lesson-score {
  background: #dff7e7;
  border: 1px solid #c8ebd0;
  color: #0f6b3a;
}

#learnerPortalContent .practical-lesson-card.lesson-current,
#learnerPortalContent .practical-lesson-card.lesson-awaiting,
#learnerPortalContent .practical-lesson-card.lesson-try-again {
  background: #fff8e6;
  border-color: #e5aa2d;
  border-left-color: #d9961f;
  box-shadow: 0 20px 44px rgba(217, 150, 31, 0.18), 0 0 0 4px rgba(242, 182, 50, 0.1);
}

#learnerPortalContent .practical-lesson-card.lesson-current .lesson-score,
#learnerPortalContent .practical-lesson-card.lesson-awaiting .lesson-score,
#learnerPortalContent .practical-lesson-card.lesson-try-again .lesson-score {
  background: #fff0c2;
  border: 1px solid rgba(217, 150, 31, 0.2);
  color: #7a5600;
}

#learnerPortalContent .practical-lesson-card.lesson-locked {
  background: #f7fbff;
  border-color: #e2eefb;
  border-left-color: #d7e6f7;
  color: #506175;
  box-shadow: 0 8px 22px rgba(15, 35, 75, 0.03);
}

#learnerPortalContent .practical-lesson-card.lesson-locked .lesson-score {
  background: #eaf3ff;
  border: 1px solid #d7e6f7;
  color: #506175;
}

#learnerPortalContent .theory-lesson-card.lesson-locked {
  background: #f7fbff;
  border-color: rgba(217, 174, 43, 0.72);
  border-left-color: rgba(217, 174, 43, 0.72);
  color: #506175;
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.08),
    0 12px 28px rgba(7, 27, 77, 0.07);
}

#learnerPortalContent .theory-lesson-card.lesson-current {
  background: #fff8e6;
  border-color: rgba(217, 174, 43, 0.95);
  border-left-color: rgba(217, 174, 43, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.12),
    0 22px 46px rgba(217, 150, 31, 0.18),
    0 0 0 4px rgba(242, 182, 50, 0.1);
  z-index: 1;
}

#learnerPortalContent .theory-lesson-card:not(.lesson-locked):hover,
#learnerPortalContent .theory-lesson-card.lesson-locked:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 174, 43, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.15),
    0 20px 42px rgba(7, 27, 77, 0.14);
}

#learnerPortalContent .theory-lesson-card.lesson-current .lesson-title {
  font-size: inherit;
  line-height: inherit;
}

#learnerPortalContent .theory-lesson-card.lesson-current .lesson-score {
  background: #fff0c2;
  color: #7a5600;
  border: 1px solid rgba(217, 150, 31, 0.2);
}

#learnerPortalContent .theory-lesson-card.lesson-completed .lesson-score {
  background: #dff7e7;
  border: 1px solid #c8ebd0;
  color: #0f6b3a;
}

#learnerPortalContent .theory-lesson-card.lesson-locked .lesson-score {
  background: #eaf3ff;
  border: 1px solid #d7e6f7;
  color: #506175;
}

.theory-open-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 9px 12px;
  border: 2px solid var(--tfe-button-gold-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 26px rgba(7, 27, 77, 0.2);
}

#learnerPortalContent .theory-lesson-card .theory-open-action {
  margin-top: auto;
}

#learnerPortalContent .learner-theory-phase-timeline {
  margin: 0 0 14px;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card {
  text-align: left;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.available {
  border-color: rgba(212, 175, 55, 0.42);
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.completed {
  background: linear-gradient(180deg, #f3fff5 0%, #ecfaef 100%);
  border-color: #c8ebd0;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.locked {
  opacity: 0.74;
  cursor: not-allowed;
}

#learnerPortalContent .learner-theory-lesson-map {
  margin-top: 14px;
}

.theory-lesson-detail {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.theory-content-lesson {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #d7e6f7;
  border-radius: 24px;
  background: #f7fbff;
  box-shadow: 0 22px 54px rgba(15, 35, 75, 0.1);
}

.theory-content-lesson-header,
.theory-content-card,
.theory-completion-card {
  border: 1px solid rgba(215, 230, 247, 0.82);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 35, 75, 0.07);
}

.theory-content-lesson-header {
  padding: 26px;
}

.theory-content-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4cf;
  color: #7a5600;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
}

.theory-content-lesson-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.theory-content-lesson-header p,
.theory-content-card p,
.theory-completion-card p {
  margin: 10px 0 0;
  color: #506175;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

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

.theory-content-card {
  padding: 22px;
}

.theory-content-card h4,
.theory-completion-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 920;
}

.theory-completion-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.theory-completion-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #fff8e6;
  border-color: rgba(242, 182, 50, 0.34);
}

.theory-knowledge-check-button {
  min-height: 44px;
  white-space: nowrap;
}

.theory-acknowledgement-card,
.theory-completion-success-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(215, 230, 247, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 35, 75, 0.09);
}

.theory-acknowledgement-card {
  border-left: 5px solid var(--gold);
}

.theory-acknowledgement-card h4,
.theory-completion-success-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.32rem;
  line-height: 1.15;
  font-weight: 950;
}

.theory-acknowledgement-card p,
.theory-completion-success-card p {
  margin: 10px 0 0;
  color: #506175;
  font-weight: 650;
  line-height: 1.6;
}

.theory-acknowledgement-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.45;
  cursor: pointer;
}

.theory-acknowledgement-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.theory-complete-lesson-button,
.theory-continue-next-button {
  min-height: 48px;
  justify-self: start;
  box-shadow: 0 14px 28px rgba(15, 35, 75, 0.18);
}

.theory-complete-lesson-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  filter: grayscale(0.25);
}

.theory-completion-success-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #f3fff7 0%, #ffffff 58%, #fff8e6 100%);
  border-color: rgba(46, 125, 80, 0.28);
  border-left: 5px solid #2e7d50;
}

.theory-two-lesson {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #d7e6f7;
  border-radius: 24px;
  background: #f7fbff;
  box-shadow: 0 22px 54px rgba(15, 35, 75, 0.1);
}

.theory-two-hero,
.theory-two-card {
  border: 1px solid rgba(215, 230, 247, 0.82);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 35, 75, 0.07);
}

.theory-two-hero {
  padding: 34px 30px;
  background: linear-gradient(135deg, var(--navy) 0%, #173b66 74%, #214f7c 100%);
  color: #ffffff;
  overflow: hidden;
}

.theory-two-hero h3 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.08rem, 4vw, 3.15rem);
  line-height: 1.02;
  font-weight: 950;
}

.theory-two-hero p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 760;
}

.theory-two-hero span {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
}

.theory-two-card {
  padding: 24px;
}

.theory-two-intro-card {
  border-color: rgba(242, 182, 50, 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 62%, #fff8e6 100%);
  box-shadow: 0 18px 40px rgba(15, 35, 75, 0.09);
}

.theory-two-card-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 950;
}

.theory-two-card-heading p:not(.theory-content-label),
.theory-two-card > p {
  margin: 9px 0 0;
  color: #506175;
  font-weight: 650;
  line-height: 1.6;
}

.theory-two-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.theory-two-list li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border: 1px solid rgba(215, 230, 247, 0.9);
  border-radius: 14px;
  background: #f7fbff;
  color: var(--navy);
  font-weight: 780;
  line-height: 1.45;
}

.theory-two-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.theory-video-frame {
  position: relative;
  width: 100%;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #071a2e;
  box-shadow: 0 20px 44px rgba(15, 35, 75, 0.16);
}

.theory-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #071a2e;
}

.theory-two-question-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.theory-two-question {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.theory-two-question legend {
  display: block;
  width: 100%;
  padding: 0 2px;
  color: var(--navy);
  font-weight: 930;
  line-height: 1.35;
}

.theory-two-options {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(215, 230, 247, 0.95);
  border-radius: 16px;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.05);
}

.theory-two-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(215, 230, 247, 0.95);
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 780;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theory-two-option:hover,
.theory-two-option.selected {
  border-color: rgba(242, 182, 50, 0.72);
  box-shadow: 0 10px 22px rgba(15, 35, 75, 0.08);
}

.theory-two-option:has(input:checked) {
  border-color: rgba(34, 145, 88, 0.42);
  background: #eaf8ec;
  box-shadow: 0 10px 22px rgba(34, 145, 88, 0.12);
}

.theory-two-option input {
  accent-color: var(--gold);
}

.theory-two-feedback {
  min-height: 22px;
  margin: 0;
  color: #506175;
  font-weight: 820;
}

.theory-two-feedback.correct {
  color: #2e7d50;
}

.theory-two-feedback.incorrect {
  color: #9a3412;
}

.theory-induction-check-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(215, 230, 247, 0.86);
  border-left: 5px solid var(--gold);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(242, 182, 50, 0.08), transparent 18rem),
    #ffffff;
  box-shadow: 0 18px 38px rgba(15, 35, 75, 0.09);
}

.theory-induction-check-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.theory-induction-check-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 950;
}

.theory-induction-check-head p {
  margin: 8px 0 0;
  color: #506175;
  font-weight: 700;
  line-height: 1.55;
}

.theory-induction-check-head .theory-induction-meta {
  width: fit-content;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff8e6;
  color: #8a6100;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theory-induction-check-head aside {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d, #0a2a66);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 35, 75, 0.18);
}

.theory-induction-check-head aside span,
.theory-induction-result span {
  color: #f7d774;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theory-induction-check-head aside strong {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 950;
}

.theory-induction-question-list {
  display: grid;
  gap: 0;
}

.theory-induction-question {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 12px 26px rgba(15, 35, 75, 0.06);
}

.theory-induction-question:last-child {
  margin-bottom: 0;
}

.theory-induction-question.is-correct {
  background: linear-gradient(180deg, #f5fff7, #ffffff);
}

.theory-induction-question.is-incorrect {
  background: linear-gradient(180deg, #fff8f1, #ffffff);
}

.theory-induction-question legend {
  display: block;
  width: 100%;
  padding: 0 2px;
  color: var(--navy);
  font-weight: 930;
  line-height: 1.35;
}

.theory-induction-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid #d9eafd;
  border-radius: 18px;
  background: #f4f9ff;
  box-shadow: 0 10px 24px rgba(15, 35, 75, 0.05);
}

.theory-induction-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 230, 247, 0.95);
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 35, 75, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theory-induction-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(242, 182, 50, 0.72);
  box-shadow: 0 12px 24px rgba(15, 35, 75, 0.09);
}

.theory-induction-option.selected {
  transform: translateY(-1px);
  background: #ecfdf3;
  border-color: #86d39a;
  color: var(--navy);
  box-shadow:
    0 0 0 1px rgba(22, 163, 74, 0.14),
    0 12px 24px rgba(15, 35, 75, 0.07);
}

.theory-induction-option.correct-answer {
  border-color: rgba(46, 125, 80, 0.34);
  background: #e9f9ef;
  color: #0f6b3a;
}

.theory-induction-option.incorrect-answer {
  border-color: rgba(154, 52, 18, 0.3);
  background: #fff0e5;
  color: #9a3412;
}

.theory-induction-option:disabled {
  cursor: default;
}

.theory-induction-feedback {
  margin: 0;
  font-weight: 850;
  line-height: 1.4;
}

.theory-induction-feedback.correct {
  color: #0f6b3a;
}

.theory-induction-feedback.incorrect {
  color: #9a3412;
}

.theory-induction-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-top: 4px;
}

.theory-induction-result {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 230, 247, 0.9);
  border-radius: 18px;
  background: #f8fbff;
}

.theory-induction-result strong {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 950;
}

.theory-induction-result p,
.theory-induction-result em {
  margin: 0;
  color: #506175;
  font-style: normal;
  font-weight: 760;
  line-height: 1.4;
}

.theory-induction-result b,
.theory-critical-review-flag span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theory-critical-review-flag {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(185, 28, 28, 0.28);
  border-left: 6px solid #dc2626;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.1);
}

.theory-critical-review-flag strong {
  color: #7f1d1d;
  font-size: 1.12rem;
  font-weight: 950;
}

.theory-critical-review-flag p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 800;
  line-height: 1.5;
}

.theory-induction-result.gold {
  background: #fff7d8;
  border-color: rgba(212, 175, 55, 0.4);
}

.theory-induction-result.silver {
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.36);
}

.theory-induction-result.bronze {
  background: #fff1df;
  border-color: rgba(180, 94, 24, 0.28);
}

.theory-induction-result.below-bronze {
  background: #fff7ed;
  border-color: rgba(154, 52, 18, 0.24);
}

.theory-two-complete-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff8e6;
  border-color: rgba(242, 182, 50, 0.34);
}

.theory-lesson-card .locked-message {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
  flex: 1 1 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
}

@media (max-width: 720px) {
  #learnerPortalContent .lesson-heading:has(.theory-learning-hero),
  #learnerPortalContent .lesson-heading:has(.practical-learning-hero),
  .practical-progress-summary,
  .theory-progress-summary {
    grid-template-columns: 1fr;
  }

  .practical-hero-content,
  .theory-hero-content {
    grid-template-columns: 1fr;
  }

  .practical-hero-content,
  .theory-hero-content {
    min-height: 0;
  }

  .theory-hero-page-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .theory-hero-actions {
    justify-content: stretch;
  }

  .theory-hero-actions button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .theory-hero-status-panel {
    grid-template-columns: 1fr;
  }

  .practical-back-dashboard,
  .theory-back-dashboard {
    width: 100%;
    justify-self: stretch;
  }

  .practical-learning-hero,
  .theory-learning-hero {
    min-height: 0;
    padding: 24px 20px 26px;
  }

  .theory-hero-text-panel {
    padding-right: 0;
  }

  .practical-hero-feature-panel,
  .theory-hero-feature-panel {
    position: relative;
    inset: auto;
    width: 100%;
    border-radius: 20px;
    margin-top: 24px;
    min-height: 280px;
  }

  .practical-hero-feature-panel {
    height: 280px;
  }

  .practical-hero-feature-panel::before,
  .theory-hero-feature-panel::before {
    background:
      linear-gradient(180deg, rgba(7, 26, 51, 0.04) 0%, rgba(7, 26, 51, 0.28) 58%, rgba(7, 26, 51, 0.74) 100%);
  }

  .practical-hero-feature-panel img,
  .theory-hero-feature-panel img {
    min-height: 280px;
  }

  .practical-hero-feature-panel img {
    height: 100%;
    min-height: 0;
  }

  #learnerPortalContent .practical-lesson-card,
  #learnerPortalContent .theory-lesson-card,
  #learnerPortalContent .practical-lesson-card .lesson-summary,
  #learnerPortalContent .theory-lesson-card .lesson-summary {
    min-height: 198px;
  }

  .theory-content-section-grid,
  .theory-completion-card,
  .theory-completion-success-card,
  .theory-two-complete-card,
  .theory-induction-check-head,
  .theory-induction-options,
  .theory-induction-actions {
    grid-template-columns: 1fr;
  }

  .theory-complete-lesson-button,
  .theory-continue-next-button {
    width: 100%;
    justify-self: stretch;
  }
}

.lesson-workbook-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.lesson-workbook-header {
  width: 100%;
}

.lesson-workbook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.lesson-workbook-left,
.lesson-workbook-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.lesson-workbook-left .workbook-section,
.lesson-workbook-right .workbook-section,
.lesson-workbook-right .workbook-signoff-card,
.lesson-workbook-right .workbook-assessment-card {
  width: 100%;
  box-sizing: border-box;
}

.evidence-required-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4cf;
  color: #7a5600;
  font-weight: 900;
}

.single-lesson-mode > .section-heading,
.single-lesson-mode > .learner-dashboard-grid,
.single-lesson-mode > .learner-portal-grid,
.single-lesson-mode > .lesson-heading {
  display: none;
}

#learnerPortalContent .rating-panel:empty,
#learnerPortalContent .readiness-panel:empty,
#learnerPortalContent .progress-panel:empty,
#learnerPortalContent .current-lesson-panel:empty,
#learnerPortalContent .action-panel:empty,
#learnerPortalContent .portal-record-panel:empty {
  display: none;
}

.premium-learner-portal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  width: 100%;
}

.premium-learner-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  align-self: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 35, 75, 0.08);
}

.premium-learner-sidebar button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  text-align: left;
}

.premium-learner-sidebar button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #eef4fb;
  color: var(--navy);
  font-size: 0.76rem;
}

.premium-learner-sidebar button.active,
.premium-learner-sidebar button:hover {
  border-color: rgba(242, 182, 50, 0.42);
  background: #fff8e6;
}

.premium-learner-sidebar button.active span {
  background: var(--gold);
}

.premium-learner-main,
.premium-dashboard-main,
.premium-dashboard-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.premium-learner-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(180px, 0.24fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(11, 31, 77, 0.96), rgba(20, 70, 150, 0.94)),
    var(--navy);
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(11, 31, 77, 0.24);
}

.premium-profile-photo .learner-photo-large,
.premium-profile-photo .learner-avatar.large {
  width: 170px;
  height: 170px;
  min-width: 170px;
  border: 6px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.premium-profile-main {
  display: grid;
  gap: 10px;
}

.premium-profile-main .eyebrow {
  color: var(--gold);
}

.premium-profile-main h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.premium-profile-main > strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.premium-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-profile-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.premium-header-actions {
  display: grid;
  gap: 10px;
}

.premium-header-actions .primary-action,
.premium-header-actions .secondary-action {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.premium-header-actions .primary-action {
  background: var(--gold);
  color: var(--navy);
}

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

.premium-kpi-card,
.premium-card {
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 75, 0.08);
}

.premium-kpi-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border-top: 5px solid #dbe4ef;
}

.premium-kpi-card.green {
  border-top-color: #18a558;
}

.premium-kpi-card.gold {
  border-top-color: var(--gold);
}

.premium-kpi-card.amber {
  border-top-color: #f0a91f;
}

.premium-kpi-card span,
.premium-section-head .eyebrow,
.employment-timeline strong,
.next-lesson-focus span,
.premium-breakdown-list span,
.league-list span,
.learner-feedback-content span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-kpi-card strong {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.premium-kpi-card p {
  margin: 0;
  color: #40536a;
  font-size: 0.9rem;
  line-height: 1.35;
}

.premium-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.premium-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.premium-section-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.employment-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.employment-timeline article {
  display: grid;
  gap: 8px;
  min-width: 120px;
  padding: 14px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 14px;
  background: #f1f4f8;
}

.employment-timeline article span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #cfd8e3;
  color: var(--navy);
  font-weight: 900;
}

.employment-timeline article.complete {
  background: #eefaf3;
}

.employment-timeline article.complete span {
  background: #18a558;
  color: #ffffff;
}

.employment-timeline article.current {
  background: #fff8e6;
  border-color: rgba(242, 182, 50, 0.55);
}

.employment-timeline article.current span {
  background: var(--gold);
}

.next-lesson-focus {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffaf0, #ffffff);
}

.next-lesson-focus strong {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.next-lesson-focus p,
.next-milestone-card p {
  margin: 0;
  color: #40536a;
  line-height: 1.5;
  font-weight: 800;
}

.premium-breakdown-list,
.league-list {
  display: grid;
  gap: 12px;
}

.premium-breakdown-list article {
  display: grid;
  gap: 8px;
}

.premium-breakdown-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.premium-breakdown-list strong {
  color: var(--navy);
}

.premium-progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecf3;
}

.premium-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18a558, #6fcf93);
}

.league-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fbff;
}

.league-list article.current {
  background: #fff8e6;
  outline: 2px solid rgba(242, 182, 50, 0.34);
}

.league-list strong {
  color: var(--navy);
}

.league-list em {
  color: #18a558;
  font-style: normal;
  font-weight: 900;
}

.learner-feedback-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.learner-feedback-content strong,
.learner-feedback-content span {
  display: block;
}

.learner-feedback-content strong {
  color: var(--navy);
}

.learner-feedback-content p {
  margin: 8px 0 0;
  color: #40536a;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .premium-learner-portal,
  .premium-learner-header,
  .premium-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .premium-learner-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .premium-learner-sidebar,
  .premium-kpi-grid,
  .premium-header-actions {
    grid-template-columns: 1fr;
  }

  .premium-learner-header {
    padding: 20px;
  }

  .premium-profile-photo .learner-photo-large,
  .premium-profile-photo .learner-avatar.large {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }
}

.single-lesson-mode #lessonList {
  display: block;
  max-width: none;
}

.focused-lesson-page {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.focused-lesson-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0B1F4D, #15366f);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 35, 63, 0.14);
}

.focused-lesson-topbar h3,
.focused-lesson-topbar p {
  margin: 0;
}

.focused-lesson-topbar .eyebrow {
  color: #F2B632;
}

.focused-lesson-page .task-group > h4 {
  display: none;
}

.focused-lesson-page .task-workbook {
  max-width: none;
  margin: 0;
}

.focused-lesson-page .lesson-workbook-page {
  display: grid;
  gap: 20px;
  max-width: 1080px;
}

.lesson-image-workbook {
  display: grid;
  gap: 24px;
  width: 100%;
}

.lesson-step-card,
.lesson-section-card {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
  box-sizing: border-box;
}

.lesson-step-card h3,
.lesson-step-card p,
.lesson-section-card h3,
.lesson-section-card p {
  margin: 0;
}

.lesson-step-card h3,
.lesson-section-card h3 {
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.lesson-step-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lesson-step-heading > span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lesson-step-meta strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.lesson-step-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #334257;
  font-size: 0.85rem;
  font-weight: 900;
}

.lesson-task-summary {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  background: #fff8df;
}

.lesson-task-summary strong {
  color: var(--navy);
}

.lesson-image-frame {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e1ec;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
}

.lesson-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}

.lesson-task-instructions {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid rgba(15, 35, 63, 0.1);
  border-radius: 24px;
  background: #f7f9fc;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.07);
}

.curriculum-preview-instructions {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.lesson-task-instructions > section {
  min-width: 0;
  border-radius: 20px;
}

.practical-instruction-overview {
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid rgba(13, 43, 107, 0.1);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 43, 107, 0.05);
}

.practical-instruction-process {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dfe6ef;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.07);
}

.practical-instruction-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.practical-overview-heading {
  margin-bottom: 10px;
}

.practical-overview-heading small {
  color: #9a6b0b;
}

.practical-instruction-heading small {
  display: block;
  margin-bottom: 3px;
  color: #69788d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practical-instruction-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.15;
}

.practical-instruction-description {
  max-width: 76ch;
  margin: 0;
  color: #2e4058;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.practical-process-heading {
  justify-content: space-between;
  margin-bottom: 22px;
}

.practical-process-heading small {
  color: #9a6b0b;
}

.practical-process-heading h4 {
  color: var(--navy);
}

.practical-process-heading p {
  margin: 6px 0 0;
  color: #69788d;
  font-size: 0.94rem;
  line-height: 1.5;
}

.practical-step-count {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #e6d18d;
  border-radius: 999px;
  background: #fffaf0;
  color: #75520c;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.practical-instruction-process ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: practical-step;
}

.practical-instruction-process li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 58px;
  position: relative;
  padding: 0 0 22px;
  background: transparent;
  counter-increment: practical-step;
}

.practical-instruction-process li:last-child {
  padding-bottom: 0;
}

.practical-instruction-process li:not(:last-child)::after {
  position: absolute;
  top: 42px;
  bottom: 4px;
  left: 18px;
  width: 2px;
  border-radius: 999px;
  background: #dce4ee;
  content: "";
}

.practical-instruction-process li::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e1b94f;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--navy);
  content: counter(practical-step, decimal-leading-zero);
  font-size: 0.76rem;
  font-weight: 900;
}

.practical-instruction-process li > span {
  max-width: 82ch;
  padding: 7px 0 18px;
  color: #2e4058;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .lesson-task-instructions {
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .practical-instruction-overview,
  .practical-instruction-process {
    padding: 18px;
    border-radius: 16px;
  }

  .practical-instruction-process li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 18px;
  }

  .practical-instruction-process li::before {
    width: 34px;
    height: 34px;
  }

  .practical-instruction-process li:not(:last-child)::after {
    top: 38px;
    left: 16px;
  }

  .practical-process-heading {
    align-items: flex-start;
  }

  .practical-step-count {
    white-space: normal;
  }
}

.lesson-image-placeholder,
.lesson-image-missing {
  width: 100%;
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #5b6778;
  font-weight: 900;
  text-align: center;
  background: #f6f8fb;
}

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

.lesson-guide-row {
  display: grid;
  grid-template-columns: 86px minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #f8fafc;
}

.lesson-guide-icon {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0B1F4D;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.lesson-guide-row h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-guide-row ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-guide-row li {
  position: relative;
  padding-left: 24px;
  color: #334257;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-guide-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #18A558;
  font-weight: 900;
}

.lesson-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.lesson-workbook-main,
.lesson-action-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.lesson-outcome-card,
.lesson-resource-card,
.lesson-action-panel {
  padding: 22px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.07);
}

.lesson-outcome-card h3,
.lesson-outcome-card p,
.lesson-resource-card h4,
.lesson-action-panel h4,
.lesson-action-panel p {
  margin: 0;
}

.lesson-outcome-card h3,
.lesson-resource-card h4,
.lesson-action-panel h4 {
  color: var(--navy);
}

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

.lesson-resource-card ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lesson-resource-card li {
  position: relative;
  padding-left: 24px;
  color: #334257;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-resource-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #18A558;
  font-weight: 900;
}

.lesson-upload-zone {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 2px dashed #b7c5d7;
  border-radius: 18px;
  background: #f7f9fc;
  text-align: center;
}

.upload-diagnostic-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  color: #071b4d;
  font-size: 12px;
}

html:not(.evidence-debug-enabled) .upload-diagnostic-panel {
  display: none !important;
}

.upload-diagnostic-panel summary {
  cursor: pointer;
  font-weight: 900;
}

.upload-diagnostic-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.upload-diagnostic-panel span {
  color: #64748b;
  font-weight: 800;
}

.upload-diagnostic-panel strong {
  color: #071b4d;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.lesson-upload-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.lesson-upload-card {
  position: relative;
  display: grid;
  min-height: 130px;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d8e1ec;
  border-radius: 18px;
  background: #ffffff;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 35, 63, 0.06);
}

button.lesson-upload-card {
  width: 100%;
  border: 1px solid #d8e1ec;
  font-family: inherit;
  text-align: center;
}

button.lesson-upload-card:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.lesson-upload-card::before {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff8df;
  color: var(--navy);
  font-size: 1.5rem;
}

.lesson-upload-card.photo::before {
  content: "📷";
}

.lesson-upload-card.video::before {
  content: "🎥";
}

.lesson-upload-card.document::before {
  content: "📄";
}

.lesson-upload-card span {
  color: #5b6778;
  font-size: 0.82rem;
  font-weight: 900;
}

.lesson-upload-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lesson-hidden-upload-input {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.submitted-evidence-panel {
  border-color: rgba(245, 158, 11, 0.34);
  background: #fffbeb;
}

.submitted-evidence-list {
  display: grid;
  gap: 12px;
}

.submitted-review-confirmation {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #ecfdf3;
  color: #166534;
}

.submitted-review-confirmation strong {
  font-size: 1rem;
  font-weight: 1000;
}

.submitted-review-confirmation p {
  margin: 0;
  color: #166534;
  font-weight: 800;
}

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

.submitted-review-facts div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7e6;
}

.submitted-review-facts span {
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.submitted-review-facts strong {
  color: #071b4d;
  font-size: 0.9rem;
}

.primary-action.submitted-review-button,
.primary-action.submitted-review-button:disabled {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
}

.uploaded-evidence-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
}

.panel-head.compact {
  margin: 0;
}

.evidence-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 14px;
}

.evidence-preview-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(5, 19, 50, 0.08);
}

.evidence-preview-media {
  display: flex;
  width: 100%;
  height: 160px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}

.evidence-preview-media img,
.evidence-preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-preview-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.evidence-preview-open img {
  transition: transform 0.18s ease;
}

.evidence-preview-open:hover img {
  transform: scale(1.03);
}

.evidence-media-large {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f8fafc;
}

.document-file-icon {
  display: grid;
  width: 74px;
  height: 88px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 1000;
}

.evidence-preview-body {
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.evidence-open-link {
  width: fit-content;
  min-height: 0;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.evidence-empty-state {
  margin: 0;
  border: 1px dashed rgba(11, 31, 77, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.evidence-file-name {
  margin-top: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.evidence-preview-body span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.status-badge.uploaded,
.status-badge.submitted {
  background: #dcfce7;
  color: #166534;
}

.status-badge.uploading {
  background: #dbeafe;
  color: #1e40af;
}

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

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

.evidence-upload-progress span {
  display: block;
  width: 65%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  animation: upload-progress-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes upload-progress-pulse {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(45%);
  }
}

.submitted-evidence-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.submitted-evidence-row.compact {
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(120px, 1fr));
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.submitted-evidence-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.submitted-evidence-row span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.submitted-evidence-row strong {
  overflow-wrap: anywhere;
  color: #071b4d;
  font-size: 0.86rem;
}

.submitted-status-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.submitted-status-timeline article {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
}

.submitted-status-timeline article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-weight: 1000;
}

.submitted-status-timeline strong {
  display: block;
  color: #071b4d;
  font-size: 0.86rem;
}

.submitted-status-timeline em {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.submitted-status-timeline .complete {
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.submitted-status-timeline .complete > span {
  background: #22c55e;
  color: #ffffff;
}

.submitted-status-timeline .awaiting {
  border-color: #fed7aa;
  background: #fff7e6;
}

.submitted-status-timeline .awaiting > span {
  background: #f59e0b;
  color: #1f2937;
}

.submitted-status-timeline .pending {
  background: #f8fafc;
}

.qr-marking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(216, 167, 44, 0.36);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.qr-marking-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.qr-code-frame {
  display: grid;
  place-items: center;
  min-width: 198px;
  min-height: 198px;
  padding: 9px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.qr-code-frame img {
  width: 180px;
  height: 180px;
}

.qr-fallback {
  max-width: 180px;
  margin: 0;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

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

.qr-details strong {
  color: var(--navy);
  font-size: 1rem;
}

.qr-details span,
.qr-details a {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
}

.mark-submission-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
  padding: 28px;
  background: rgba(7, 27, 77, 0.72);
}

.mark-submission-panel {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(216, 167, 44, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.mark-submission-panel.error {
  border-color: #fecaca;
}

.mark-submission-panel.warning {
  border-color: #fed7aa;
}

.try-again-reset-panel {
  max-width: 820px;
}

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

.try-again-choice-grid label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.try-again-choice-grid select {
  min-height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--navy);
  font-weight: 800;
}

.try-again-feedback-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-left: 6px solid #f59e0b;
  border-radius: 14px;
  background: #fff7e6;
  color: #92400e;
}

.try-again-feedback-card h4,
.try-again-feedback-card p {
  margin: 0;
}

.previous-attempt-feedback {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.mark-submission-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.mark-submission-facts div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #f8fafc;
}

.mark-submission-facts span,
.mark-submission-section h4 {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mark-submission-facts strong {
  color: var(--navy);
}

.mark-submission-section {
  display: grid;
  gap: 12px;
}

.mark-submission-section h4 {
  margin: 0;
}

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

.marking-criteria-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--navy);
  font-weight: 900;
}

.tutor-learner-search-section {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 77, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at 100% 0%, rgba(11, 31, 77, 0.07), transparent 16rem);
  box-shadow: 0 28px 62px rgba(15, 35, 75, 0.13), 0 10px 24px rgba(15, 23, 42, 0.05);
  margin-top: 26px;
}

.tutor-queue-overview .tutor-learner-search-section {
  margin-top: 0;
}

.tutor-learner-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(5, 19, 50, 0.07);
}

.tutor-learner-search-controls input {
  min-width: 0;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 20px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 22px rgba(15, 23, 42, 0.05);
}

.tutor-learner-search-controls input::placeholder {
  color: rgba(11, 31, 77, 0.45);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.tutor-learner-search-controls input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(242, 182, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.tutor-learner-search-controls .primary-action,
.tutor-learner-search-controls .secondary-action {
  min-height: 52px;
  border-radius: 18px;
  font-weight: 1000;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tutor-learner-search-controls .primary-action {
  border: 1px solid rgba(183, 121, 31, 0.45);
  background: linear-gradient(180deg, #ffd86b 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(183, 121, 31, 0.2);
}

.tutor-learner-search-controls .secondary-action {
  border: 1px solid rgba(11, 31, 77, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(5, 19, 50, 0.08);
}

.tutor-learner-search-controls .primary-action:hover,
.tutor-learner-search-controls .secondary-action:hover {
  border-color: rgba(242, 182, 50, 0.68);
  box-shadow: 0 15px 28px rgba(5, 19, 50, 0.13), 0 0 0 3px rgba(242, 182, 50, 0.15);
  transform: translateY(-1px);
}

.tutor-learner-search-controls .primary-action:active,
.tutor-learner-search-controls .secondary-action:active {
  transform: scale(0.98);
}

.tutor-search-action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(11, 31, 77, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.tutor-search-action-bar button {
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(242, 182, 50, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, #12306b 0%, #061842 100%);
  color: #ffffff;
  font-weight: 1000;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(6, 24, 66, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tutor-search-action-bar button:hover,
.tutor-search-action-bar button.active {
  border-color: rgba(242, 182, 50, 0.95);
  box-shadow: 0 18px 34px rgba(6, 24, 66, 0.22), 0 0 0 3px rgba(242, 182, 50, 0.16);
  transform: translateY(-1px);
}

.tutor-search-action-bar button.active {
  background: linear-gradient(180deg, #0f4c8a 0%, #061842 100%);
}

.tutor-search-choice-empty {
  padding: 18px;
  border: 1px dashed rgba(11, 31, 77, 0.2);
  border-radius: 18px;
  background: #ffffff;
}

.tutor-search-choice-empty p {
  margin: 0;
  color: rgba(11, 31, 77, 0.72);
  font-weight: 900;
  text-align: center;
}

.learner-marking-record-card,
.tutor-lesson-review-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: #f8fafc;
}

.tutor-learner-lesson-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.tutor-learner-lesson-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  box-sizing: border-box;
  border: 1px solid #dbe3ef;
  border-left: 6px solid #94a3b8;
  border-radius: 14px;
  background: #ffffff;
}

.tutor-learner-lesson-row.awaiting-tutor-review {
  border-left-color: #f0ad00;
  background: #fff8e8;
}

.mark-card--saved {
  position: relative;
  background: #e8f7ee;
  border: 2px solid #22c55e;
  border-left-width: 6px;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.mark-card--saved::before {
  content: "Updated";
  position: absolute;
  left: 14px;
  top: -12px;
  display: inline-block;
  background: #22c55e;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.tutor-learner-lesson-row.completed {
  border-left-color: #2ca44f;
  background: #edf8f0;
}

.tutor-learner-lesson-row.requires-more-evidence,
.tutor-learner-lesson-row.not-yet-competent,
.tutor-learner-lesson-row.try-again-required {
  border-left-color: #d93025;
  background: #fff0f0;
}

.tutor-learner-lesson-row.evidence-uploaded,
.tutor-learner-lesson-row.open {
  border-left-color: #2563eb;
  background: #eef5ff;
}

.tutor-learner-lesson-row.locked {
  border-left-color: #bfc6d1;
  background: #f5f6f8;
}

.tutor-learner-lesson-row.mark-card--saved {
  background: #e8f7ee;
  border-color: #22c55e;
  border-left-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.tutor-learner-lesson-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.tutor-learner-lesson-row span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tutor-learner-lesson-row strong {
  min-width: 0;
  color: var(--navy);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.lesson-row-actions {
  display: flex !important;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  align-content: center !important;
}

.lesson-row-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

.tutor-progress-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.tutor-progress-summary-bar article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-left: 5px solid #94a3b8;
  border-radius: 14px;
  background: #ffffff;
}

.tutor-progress-summary-bar article.completed {
  border-left-color: #2ca44f;
  background: #edf8f0;
}

.tutor-progress-summary-bar article.awaiting {
  border-left-color: #f0ad00;
  background: #fff8e8;
}

.tutor-progress-summary-bar article.current {
  border-left-color: #2563eb;
  background: #eef5ff;
}

.tutor-progress-summary-bar article.locked {
  border-left-color: #bfc6d1;
  background: #f5f6f8;
}

.tutor-progress-summary-bar article.try-again {
  border-left-color: #d93025;
  background: #fff0f0;
}

.tutor-progress-summary-bar span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tutor-progress-summary-bar strong {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.tutor-review-modal-panel {
  width: 100%;
  max-width: min(1180px, 100%);
  box-sizing: border-box;
}

.criteria-standards-grid,
.tutor-evidence-viewer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.criteria-standards-grid article,
.tutor-evidence-viewer-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.criteria-standards-grid article.bronze {
  border-left: 5px solid #b45309;
}

.criteria-standards-grid article.silver {
  border-left: 5px solid #64748b;
}

.criteria-standards-grid article.gold {
  border-left: 5px solid #d8a72c;
}

.criteria-standards-grid h4,
.criteria-standards-grid ul,
.criteria-safety-list {
  margin: 0;
}

.readonly-criteria {
  opacity: 0.82;
}

.tutor-evidence-viewer-card .evidence-media,
.tutor-evidence-viewer-card img,
.tutor-evidence-viewer-card video {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.file-preview-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
}

.tutor-evidence-viewer-card div {
  display: grid;
  gap: 4px;
}

.tutor-evidence-viewer-card span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.tutor-audit-timeline {
  display: grid;
  gap: 10px;
}

.tutor-audit-timeline article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  box-sizing: border-box;
  border: 1px solid #dbe3ef;
  border-left: 5px solid #2563eb;
  border-radius: 14px;
  background: #ffffff;
}

.tutor-audit-timeline span,
.tutor-audit-timeline em {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
}

.tutor-audit-timeline p {
  margin: 4px 0;
  color: var(--navy);
}

.warning-panel {
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7e6;
  color: #92400e;
}

.warning-panel p {
  margin: 4px 0 0;
}

.lesson-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.lesson-check-item {
  display: grid;
  gap: 8px;
  min-height: 94px;
  align-content: center;
  padding: 14px;
  border: 1px solid #d8e1ec;
  border-radius: 16px;
  background: #f8fafc;
  color: #5b6778;
  font-weight: 900;
}

.lesson-check-item span {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 1000;
}

.lesson-check-item.complete {
  border-color: rgba(24, 165, 88, 0.35);
  background: #e8f8ef;
  color: #12633a;
}

.lesson-progress-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.lesson-progress-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  font-weight: 1000;
}

.lesson-step-progress {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #dde6f0;
}

.lesson-step-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18A558, #67c985);
}

.lesson-review-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.lesson-review-step {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d8e1ec;
  background: #f2f5f8;
  color: #5b6778;
  font-weight: 900;
}

.lesson-review-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #d8e1ec;
  color: var(--navy);
  font-weight: 1000;
}

.lesson-review-step.active,
.lesson-review-step.complete {
  border-color: rgba(27, 107, 196, 0.25);
  background: #ecfdf3;
  color: #166534;
}

.lesson-review-step.complete {
  border-color: #bbf7d0;
}

.lesson-review-step.complete span {
  background: #22c55e;
  color: #ffffff;
}

.lesson-review-step.awaiting {
  border-color: rgba(242, 182, 50, 0.45);
  background: #fff8df;
  color: #7a5600;
}

.lesson-review-step.approved {
  border-color: rgba(24, 165, 88, 0.35);
  background: #e8f8ef;
  color: #12633a;
}

.lesson-approved-section {
  border-color: rgba(242, 182, 50, 0.55);
  background: linear-gradient(135deg, #fff8df, #ffffff);
}

.lesson-approved-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: #0B1F4D;
  color: #ffffff;
}

.lesson-approved-banner > span {
  font-size: 2.2rem;
}

.lesson-approved-banner h3 {
  color: #ffffff;
}

/* Tutor Progress & Intervention */
.progress-intervention-page,
.intervention-profile-page {
  display: grid;
  gap: 22px;
  width: 100%;
}

.progress-intervention-hero,
.intervention-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0B1F4D, #173B75);
  color: #ffffff;
}

.progress-intervention-hero h3,
.progress-intervention-hero p,
.intervention-profile-hero h3,
.intervention-profile-hero p {
  margin: 0;
}

.progress-intervention-hero .eyebrow,
.intervention-profile-hero .eyebrow {
  color: #F2B632;
}

.intervention-profile-hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.intervention-summary-grid,
.weekly-report-grid,
.intervention-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.intervention-summary-grid article,
.weekly-report-grid article,
.intervention-profile-grid article,
.intervention-detail-card,
.guidance-template-card,
.record-intervention-card,
.intervention-history-card,
.intervention-list-panel,
.weekly-report-card {
  padding: 18px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.07);
}

.intervention-summary-grid span,
.weekly-report-grid span,
.intervention-profile-grid span {
  display: block;
  color: #5b6778;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intervention-summary-grid strong,
.weekly-report-grid strong,
.intervention-profile-grid strong {
  color: #0B1F4D;
  font-size: 1.55rem;
}

.intervention-summary-grid .green {
  border-color: rgba(24, 165, 88, 0.35);
  background: #e8f8ef;
}

.intervention-summary-grid .amber {
  border-color: rgba(242, 182, 50, 0.45);
  background: #fff8df;
}

.intervention-summary-grid .red {
  border-color: rgba(211, 47, 47, 0.25);
  background: #fff0f0;
}

.intervention-summary-grid .blue {
  border-color: rgba(27, 107, 196, 0.25);
  background: #eef6ff;
}

.intervention-list-panel {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.intervention-list-head,
.intervention-learner-row > button {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 92px minmax(140px, 1fr) 80px minmax(220px, 1.4fr) 130px 120px minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 1060px;
}

.intervention-list-head {
  color: #5b6778;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intervention-learner-row > button {
  width: 100%;
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #ffffff;
  color: #334257;
  text-align: left;
  cursor: pointer;
}

.intervention-learner-row.green > button {
  border-left: 8px solid #18A558;
}

.intervention-learner-row.amber > button {
  border-left: 8px solid #F2B632;
}

.intervention-learner-row.red > button {
  border-left: 8px solid #d32f2f;
}

.intervention-learner-row.blue > button {
  border-left: 8px solid #1b6bc4;
}

.intervention-status-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 1000;
}

.intervention-status-badge.green {
  background: #18A558;
}

.intervention-status-badge.amber {
  background: #F2B632;
  color: #0B1F4D;
}

.intervention-status-badge.red {
  background: #d32f2f;
}

.intervention-status-badge.blue {
  background: #1b6bc4;
}

.utc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.utc-status-badge.green {
  background: #dcfce7;
  color: #166534;
}

.utc-status-badge.amber {
  background: #fff7e6;
  color: #92400e;
}

.utc-status-badge.redamber {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #f97316;
}

.utc-status-badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.school-dashboard-shell,
.school-cohort-dashboard {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: 22px;
  background: #f8fafc;
}

#employerView.school-view-active > .section-heading {
  display: none;
}

#employerView.employer-dashboard-active > .section-heading {
  display: none;
}

.school-cohort-dashboard .dashboard-section {
  margin-bottom: 0;
  max-width: 100%;
  min-width: 0;
}

.school-cohort-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #071b4d, #041236);
  border-bottom: 3px solid #d9a21b;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 27, 77, 0.14);
}

.school-hero-card {
  position: relative;
  min-height: 360px;
  border: 2px solid #d4af37;
  background: #071b4d;
  box-shadow:
    0 18px 42px rgba(3, 18, 58, 0.24),
    0 8px 18px rgba(212, 175, 55, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.28);
}

.school-hero-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), #d4af37, rgba(212, 175, 55, 0.25));
  z-index: 3;
}

.school-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 18, 58, 0.92) 0%,
    rgba(3, 18, 58, 0.76) 45%,
    rgba(3, 18, 58, 0.35) 100%
  );
  z-index: 1;
}

.school-hero-card__image {
  position: absolute;
  inset: 0;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center center;
  transform: scale(0.94);
  transform-origin: center center;
  z-index: 0;
}

.school-hero-card > *:not(.school-hero-card__image) {
  position: relative;
  z-index: 2;
}

.school-cohort-hero h3,
.school-cohort-hero p {
  margin: 0;
}

.school-cohort-hero h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.school-cohort-hero .eyebrow {
  color: #f5b41b;
}

.school-cohort-hero .partner-logo-card {
  width: fit-content;
  max-width: 178px;
  height: auto;
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 2px solid #d4af37;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(4, 18, 54, 0.26);
}

.school-cohort-hero .partner-logo {
  width: 100%;
  max-width: 154px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  padding: 0;
}

.school-dashboard-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  width: 100%;
}

.school-dashboard-title {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.school-hero-card .school-dashboard-title h3,
.school-hero-card .school-dashboard-title p {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(3, 18, 58, 0.46);
}

.school-hero-card .school-partnership-badge {
  background: rgba(7, 27, 77, 0.78);
  border: 1.5px solid #d4af37;
  color: #f7d774;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.parent-carer-school-card-dashboard {
  gap: 16px;
}

.parent-portal-frame {
  display: grid;
  gap: 16px;
}

.parent-portal-header {
  position: sticky;
  top: 12px;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px 16px 12px 20px;
  overflow: hidden;
  border: 1px solid rgba(174, 190, 208, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 44px rgba(7, 27, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
}

.parent-portal-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #071b4d 0%, #0f4c8a 52%, #f2b632 100%);
}

.parent-portal-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.parent-portal-brand img {
  width: clamp(150px, 19vw, 220px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.parent-portal-brand span {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(7, 27, 77, 0.14);
}

.parent-portal-brand strong {
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parent-portal-brand small {
  color: #60708a;
  font-size: 0.76rem;
  font-weight: 780;
}

.parent-portal-logout {
  min-width: 126px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(242, 182, 50, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #071b4d 0%, #0f3b70 100%);
  color: #ffffff;
  box-shadow:
    0 12px 24px rgba(7, 27, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.parent-portal-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parent-portal-logout:hover,
.parent-portal-logout:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0b2a63 0%, #145493 100%);
  box-shadow:
    0 16px 30px rgba(7, 27, 77, 0.26),
    0 0 0 4px rgba(242, 182, 50, 0.16);
}

.parent-portal-logout:focus-visible {
  outline: 3px solid rgba(242, 182, 50, 0.68);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .parent-portal-header {
    top: 8px;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .parent-portal-brand img {
    width: min(45vw, 168px);
    height: 44px;
  }

  .parent-portal-brand span {
    display: none;
  }

  .parent-portal-logout {
    min-width: 108px;
    min-height: 42px;
    padding: 9px 14px;
  }
}

.parent-carer-hero {
  padding: 30px 34px;
  border-bottom-color: #f2b632;
  box-shadow:
    0 18px 42px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.parent-carer-hero .school-dashboard-title h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.parent-dashboard-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 900;
}

.parent-dashboard-meta-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.parent-dashboard-login-status {
  gap: 8px;
}

.parent-dashboard-login-status i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.parent-community-hub-cta {
  width: 164px;
  min-height: 146px;
  flex: 0 0 164px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  border: 2px solid rgba(242, 182, 50, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 182, 50, 0.2), transparent 6.5rem),
    linear-gradient(180deg, #123d73 0%, #061f4d 100%);
  color: #ffffff;
  text-align: left;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.2),
    0 0 0 5px rgba(242, 182, 50, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.parent-community-hub-cta small {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.16);
  border: 1px solid rgba(242, 182, 50, 0.42);
  color: #f8d779;
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-community-hub-cta strong {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.parent-community-hub-cta span {
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.1;
}

.parent-community-hub-cta:hover,
.parent-community-hub-cta:focus-visible {
  border-color: #f7d774;
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 182, 50, 0.26), transparent 6.5rem),
    linear-gradient(180deg, #174a86 0%, #082b61 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(247, 215, 116, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.parent-community-hub-cta:active {
  transform: translateY(0);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(242, 182, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.school-hero-actions {
  width: 164px;
  flex: 0 0 164px;
  display: grid;
  gap: 12px;
  margin-left: auto;
}

.school-community-hub-button {
  margin-left: auto;
  border-color: #d4af37;
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 182, 50, 0.2), transparent 6.5rem),
    linear-gradient(180deg, rgba(10, 42, 102, 0.92), rgba(7, 27, 77, 0.96));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.school-community-hub-button:hover,
.school-community-hub-button:focus-visible {
  border-color: #f7d774;
  background:
    radial-gradient(circle at 80% 10%, rgba(242, 182, 50, 0.24), transparent 6.5rem),
    linear-gradient(180deg, rgba(10, 42, 102, 0.96), rgba(7, 27, 77, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(247, 215, 116, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.school-community-hub-button:focus-visible {
  outline: 3px solid rgba(255, 215, 106, 0.78);
  outline-offset: 4px;
}

.school-hero-actions .school-community-hub-button {
  width: 100%;
  flex: 0 0 auto;
  margin-left: 0;
}

.school-hero-logout {
  width: 100%;
  min-height: 48px;
  border: 2px solid #d4af37;
  border-radius: 28px;
  background: linear-gradient(180deg, #0a2a66 0%, #071b4d 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 8px 20px rgba(3, 18, 58, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.school-hero-logout:hover,
.school-hero-logout:focus-visible {
  background: #d4af37;
  color: #071b4d;
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(3, 18, 58, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  outline: none;
}

.school-cohort-intelligence-button {
  padding-inline: 0.78rem;
  line-height: 1.15;
}

.parent-community-hub-view {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(216, 154, 19, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 182, 50, 0.13), transparent 13rem),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  box-shadow:
    0 20px 48px rgba(7, 27, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.parent-community-hub-view > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.parent-community-hub-view > header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.12);
  border: 1px solid rgba(216, 154, 19, 0.34);
  color: #94640a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-community-hub-view h3 {
  margin: 0 0 7px;
  color: #071b4d;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.04;
}

.parent-community-hub-view p {
  margin: 0;
  color: #475569;
  font-weight: 800;
  line-height: 1.55;
}

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

.parent-community-hub-grid article {
  padding: 18px;
  border: 1px solid rgba(15, 76, 138, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.parent-community-hub-grid article span {
  display: block;
  margin-bottom: 8px;
  color: #94640a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-community-hub-grid article strong {
  display: block;
  margin-bottom: 8px;
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.parent-community-back-button {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(216, 154, 19, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #071b4d;
  font-size: 0.86rem;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parent-community-back-button::before {
  content: "<";
  margin-right: 8px;
  color: #d89a13;
  font-weight: 1000;
}

.parent-community-back-button:hover,
.parent-community-back-button:focus-visible {
  border-color: #f2b632;
  box-shadow: 0 14px 26px rgba(7, 27, 77, 0.12), 0 0 0 4px rgba(216, 154, 19, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.parent-community-newsletter-hero {
  position: relative;
  min-height: clamp(440px, 46vw, 520px);
  overflow: hidden;
  border: 2px solid rgba(216, 154, 19, 0.48);
  border-radius: 30px;
  background: #071b4d;
  box-shadow:
    0 26px 62px rgba(7, 27, 77, 0.2),
    0 0 0 6px rgba(216, 154, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.parent-community-newsletter-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 54, 0.86) 0%, rgba(7, 27, 77, 0.58) 42%, rgba(7, 27, 77, 0.18) 78%),
    linear-gradient(180deg, rgba(4, 18, 54, 0.1) 0%, rgba(4, 18, 54, 0.34) 100%);
  pointer-events: none;
  z-index: 1;
}

.parent-community-hero-image {
  position: absolute;
  inset: 0;
  background: #071b4d;
}

.parent-community-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.parent-community-hero-copy {
  position: relative;
  z-index: 2;
  min-height: clamp(440px, 46vw, 520px);
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(28px, 4vw, 46px);
  color: #ffffff;
}

.parent-community-hero-copy span,
.parent-community-section > header span,
.parent-community-editorial-card > span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(216, 154, 19, 0.42);
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.13);
  color: #f7d77a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.parent-community-hero-copy h3 {
  margin: 0;
  max-width: 10ch;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.parent-community-hero-copy p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.5;
}

.parent-community-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.parent-community-hero-status em {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.parent-community-editorial-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(15, 76, 138, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(216, 154, 19, 0.1), transparent 12rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 42px rgba(7, 27, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.parent-community-editorial-card > span,
.parent-community-section > header span {
  color: #94640a;
  background: rgba(216, 154, 19, 0.1);
}

.parent-community-editorial-card p {
  max-width: 74rem;
  color: #19345f;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 850;
  line-height: 1.68;
}

.parent-community-section {
  display: grid;
  gap: 16px;
}

.parent-community-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.parent-community-section h4 {
  margin: 8px 0 0;
  color: #071b4d;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.parent-community-learning-grid,
.parent-community-success-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.parent-community-learning-grid article,
.parent-community-success-grid article,
.parent-community-coming-up article {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 76, 138, 0.12);
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.parent-community-learning-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.parent-community-learning-grid i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #071b4d, #123d73);
  color: #f7d77a;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 22px rgba(7, 27, 77, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.parent-community-learning-grid strong {
  color: #071b4d;
  font-size: 1.04rem;
  font-weight: 1000;
  line-height: 1.15;
}

.parent-community-learning-grid p {
  color: #516173;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.55;
}

.parent-community-matters {
  border-left: 5px solid #d89a13;
}

.parent-community-success-grid article {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.parent-community-success-grid article.gold {
  border-color: rgba(216, 154, 19, 0.36);
  background:
    radial-gradient(circle at 90% 0%, rgba(216, 154, 19, 0.16), transparent 8rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.parent-community-success-grid article.silver {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.parent-community-success-grid article.blue {
  border-color: rgba(15, 76, 138, 0.18);
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}

.parent-community-success-grid span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.12);
  color: #94640a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-community-success-grid strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
}

.parent-community-coming-up > div {
  display: grid;
  gap: 10px;
}

.parent-community-coming-up article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
}

.parent-community-coming-up article span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #071b4d;
  color: #f7d77a;
  font-weight: 1000;
}

.parent-community-coming-up article strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.parent-community-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.parent-community-empty-posts {
  padding: 22px;
  border: 1px dashed rgba(15, 76, 138, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: #475569;
  font-weight: 900;
}

.admin-community-manager {
  display: grid;
  gap: 20px;
}

.admin-community-manager > header {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(216, 154, 19, 0.46);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 0%, rgba(216, 154, 19, 0.24), transparent 15rem),
    radial-gradient(circle at 8% 110%, rgba(33, 103, 178, 0.34), transparent 18rem),
    linear-gradient(135deg, #071b4d 0%, #0b2d66 52%, #123d73 100%);
  box-shadow:
    0 22px 54px rgba(7, 27, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(216, 154, 19, 0.24);
}

.admin-community-manager > header::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%);
}

.admin-community-manager > header > * {
  position: relative;
  z-index: 1;
}

.admin-community-manager > header .eyebrow {
  color: #f7d77a;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.admin-community-manager > header h3 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.admin-community-manager > header p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  line-height: 1.55;
}

.admin-community-manager > header .admin-back-button {
  border: 1px solid rgba(216, 154, 19, 0.58);
  background: rgba(255, 255, 255, 0.96);
  color: #071b4d;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-community-manager > header .admin-back-button:hover,
.admin-community-manager > header .admin-back-button:focus-visible {
  border-color: #f7d77a;
  background: #ffffff;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(216, 154, 19, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  outline: none;
}

.admin-community-manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.admin-community-form-card,
.admin-community-preview-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(15, 76, 138, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 42px rgba(7, 27, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.admin-community-warning {
  padding: 12px 14px;
  border: 1px solid rgba(216, 154, 19, 0.26);
  border-radius: 16px;
  background: rgba(216, 154, 19, 0.09);
  color: #6f4a06;
  font-weight: 950;
  line-height: 1.45;
}

.admin-community-form-card .setup-grid {
  gap: 11px;
}

.admin-community-field,
.community-field-card {
  position: relative;
  gap: 8px;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid rgba(221, 170, 36, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #fffcf5 100%);
  color: #071b4d;
  box-shadow: 0 9px 22px rgba(7, 27, 77, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-community-field:hover,
.community-field-card:hover,
.community-upload-card:hover {
  border-color: rgba(221, 170, 36, 0.56);
  box-shadow: 0 12px 28px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.admin-community-field small,
.community-upload-card small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-community-field input:not([type="checkbox"]),
.admin-community-field select,
.admin-community-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 42px 11px 13px;
  border: 1px solid rgba(221, 170, 36, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #071b4d;
  box-shadow: inset 0 1px 2px rgba(7, 27, 77, 0.045);
  font-weight: 850;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-community-field textarea {
  min-height: 78px;
  resize: vertical;
}

.admin-community-note-field textarea {
  min-height: 112px;
}

.admin-community-field input:not([type="checkbox"]):focus,
.admin-community-field select:focus,
.admin-community-field textarea:focus {
  border-color: rgba(216, 154, 19, 0.58);
  box-shadow: 0 0 0 4px rgba(216, 154, 19, 0.13), inset 0 1px 2px rgba(7, 27, 77, 0.05);
}

.admin-community-field.is-complete,
.community-field-card.is-complete,
.community-upload-card.is-complete {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-community-field.is-complete::after,
.community-upload-card.is-complete::after {
  content: "✓";
  position: absolute;
  right: 24px;
  bottom: 26px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.24);
  font-size: 0.75rem;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.admin-community-field.is-complete input:not([type="checkbox"]),
.admin-community-field.is-complete select,
.admin-community-field.is-complete textarea {
  border-color: #86efac;
  background: rgba(240, 253, 244, 0.86);
  color: #071b4d;
}

.admin-community-headline-field,
.community-field-card--headline {
  min-height: 136px;
  border-color: rgba(221, 170, 36, 0.52);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  box-shadow: 0 14px 32px rgba(7, 27, 77, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.admin-community-headline-field input:not([type="checkbox"]) {
  min-height: 92px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-color: rgba(221, 170, 36, 0.48);
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  font-weight: 1000;
}

.admin-community-headline-field.is-complete input:not([type="checkbox"]) {
  background: #f0fdf4;
}

.admin-community-field.consent-row {
  align-items: center;
  min-height: 92px;
  padding: 14px 48px 14px 14px;
  border-color: rgba(221, 170, 36, 0.35);
}

.admin-community-field.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
}

.admin-community-field.consent-row.is-complete::after {
  right: 16px;
  bottom: 50%;
  transform: translateY(50%);
}

.admin-community-consent-bar {
  min-height: 56px;
  padding: 10px 52px 10px 14px;
  border-color: rgba(221, 170, 36, 0.28);
  background: linear-gradient(180deg, #fffdf8 0%, #fffcf5 100%);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-community-consent-bar.is-complete {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.admin-community-consent-bar.is-complete::before {
  content: "Consent confirmed";
  margin-left: auto;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-community-ai-badge {
  justify-self: start;
  padding: 9px 13px;
  border: 1px solid rgba(216, 154, 19, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7df 0%, #ffffff 100%);
  color: #6f4a06;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-community-upload {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 14px;
  border: 1px dashed rgba(221, 170, 36, 0.52);
  border-radius: 20px;
  background: #fffcf7;
  box-shadow: 0 9px 20px rgba(7, 27, 77, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-community-upload:hover {
  border-color: rgba(221, 170, 36, 0.72);
  background: #fffaf0;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.06), 0 0 0 4px rgba(221, 170, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.admin-community-upload span,
.admin-community-preview-panel > .eyebrow {
  color: #94640a;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-community-upload img {
  width: 100%;
  height: 300px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  border: 2px solid rgba(216, 154, 19, 0.28);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.12);
}

.admin-community-upload .community-upload-prompt {
  min-height: 112px;
  display: grid;
  gap: 8px;
  place-items: center;
  align-content: center;
  padding: 24px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(221, 170, 36, 0.34);
  background: rgba(255, 255, 255, 0.58);
  color: #071b4d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.community-upload-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 170, 36, 0.42);
  border-radius: 999px;
  background: #ffffff;
  color: #071b4d;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.community-upload-heading {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.2;
}

.community-upload-support {
  max-width: 32rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.4;
}

.community-upload-button {
  margin-top: 4px;
  padding: 8px 16px;
  border: 2px solid #d89a13;
  border-radius: 999px;
  background: linear-gradient(135deg, #123d73 0%, #071d49 100%);
  color: #ffffff !important;
  box-shadow:
    0 10px 20px rgba(7, 29, 73, 0.2),
    0 0 0 3px rgba(216, 154, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-community-upload:hover .community-upload-button {
  border-color: #f0b429;
  background: linear-gradient(135deg, #174a86 0%, #09265d 100%);
  box-shadow:
    0 14px 26px rgba(7, 29, 73, 0.24),
    0 0 0 5px rgba(216, 154, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.admin-community-upload:active .community-upload-button {
  box-shadow:
    0 7px 14px rgba(7, 29, 73, 0.18),
    0 0 0 3px rgba(216, 154, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(0);
}

.admin-community-upload:focus-within .community-upload-button {
  border-color: #f7d77a;
  box-shadow:
    0 10px 20px rgba(7, 29, 73, 0.2),
    0 0 0 4px rgba(216, 154, 19, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.community-upload-card.is-complete .community-upload-prompt {
  background: #f0fdf4;
  border-color: #86efac;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 76, 138, 0.06);
}

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

.admin-community-actions :is(.primary-action, .secondary-action):not(:disabled) {
  border-color: #d89a13;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #123d73 0%, #071b4d 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.22),
    0 12px 26px rgba(7, 27, 77, 0.18),
    0 0 0 1px rgba(216, 154, 19, 0.12);
}

.admin-community-actions :is(.primary-action, .secondary-action):not(:disabled):hover {
  border-color: #f0b429;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 170, 0.28),
    0 16px 32px rgba(7, 27, 77, 0.22),
    0 0 0 4px rgba(216, 154, 19, 0.1);
}

.admin-community-status {
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px;
  font-weight: 950;
}

.admin-community-status.success {
  background: #ecfdf5;
  color: #047857;
}

.admin-community-status.error {
  background: #fff7ed;
  color: #c2410c;
}

.admin-community-status.warning {
  border: 1px solid rgba(216, 154, 19, 0.24);
  background: #fff8e7;
  color: #8a5a05;
}

.admin-community-preview-panel h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.25rem;
}

.admin-community-preview-card {
  overflow: hidden;
  border: 1px solid rgba(216, 154, 19, 0.24);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.1);
}

.admin-community-preview-image {
  height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #071b4d, #123d73);
  color: #f7d77a;
  font-weight: 1000;
}

.admin-community-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-community-preview-card > div:last-child {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.admin-community-preview-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.12);
  color: #94640a;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-community-preview-card h4 {
  margin: 0;
  color: #071b4d;
}

.admin-community-preview-card p,
.admin-community-preview-card small {
  color: #475569;
  font-weight: 780;
  line-height: 1.55;
}

.admin-community-preview-card em {
  color: #94640a;
  font-style: normal;
  font-weight: 950;
}

.admin-community-recent-posts {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 76, 138, 0.1);
}

.admin-community-recent-posts h4 {
  margin: 0;
  color: #071b4d;
}

.admin-community-recent-posts > div:last-child {
  display: grid;
  gap: 8px;
}

.admin-community-recent-posts article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(15, 76, 138, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-community-recent-posts article span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.1);
  color: #94640a;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-community-recent-posts article strong {
  color: #071b4d;
  font-weight: 1000;
}

.admin-community-recent-posts article small,
.admin-community-empty {
  color: #64748b;
  font-weight: 850;
}

.parent-community-latest .parent-community-post-grid {
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.parent-community-latest .parent-community-empty-posts {
  display: grid;
  gap: 10px;
  min-height: 180px;
  place-items: center;
  border: 1px solid rgba(216, 154, 19, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 154, 19, 0.1), transparent 12rem),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  color: #071b4d;
  box-shadow: 0 22px 50px rgba(7, 27, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  text-align: center;
}

.community-news-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 32px;
  gap: 22px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid #bfdbfe;
  border-radius: 28px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(191, 219, 254, 0.95), rgba(216, 154, 19, 0.7)) border-box;
  box-shadow:
    0 24px 58px rgba(7, 27, 77, 0.13),
    0 0 0 2px rgba(216, 154, 19, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.parent-community-latest,
.parent-community-latest .parent-community-post-grid,
.community-news-card,
.community-news-card * {
  box-sizing: border-box;
}

.parent-community-latest {
  width: 100%;
  overflow-x: hidden;
}

.community-news-card img {
  max-width: 100%;
}

.community-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(216, 154, 19, 0.12), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(191, 219, 254, 0.26), transparent 18rem);
  pointer-events: none;
}

.community-news-card > * {
  position: relative;
  z-index: 1;
}

.community-news-card__ribbon {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(216, 154, 19, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #0b2c6b 0%, #061b49 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-news-card__ribbon span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(244, 179, 33, 0.54);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4b321;
  font-size: 0.58rem;
}

.community-news-card :is(h5, h6, p, span, strong, small, time, b) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.community-news-layout,
.community-news-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin-top: 22px;
}

.community-news-card__visual,
.community-news-card__article {
  min-width: 0;
  overflow-wrap: anywhere;
}

.community-news-card__visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.community-news-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: 0 18px 34px rgba(7, 27, 77, 0.12), inset 0 0 0 2px rgba(216, 154, 19, 0.14);
}

.community-news-card__media.has-image-error::after {
  content: "No community image uploaded yet";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #071b4d;
  font-weight: 1000;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(216, 154, 19, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
}

.community-news-card__image,
.community-news-card__image-empty {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-news-card__image {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #f8fbff;
}

.community-news-card__image-empty {
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(216, 154, 19, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  color: #071b4d;
  text-align: center;
}

.community-news-card__empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 154, 19, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #071b4d;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-size: 1.4rem;
  line-height: 1;
}

.community-news-card__image-empty strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.community-news-card__image-empty small {
  max-width: 24rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.45;
}

.community-news-card__gallery {
  display: grid;
  gap: 10px;
}

.community-news-card__gallery strong,
.community-news-card__highlights h6,
.community-news-card__support h6,
.community-news-card__recognition span {
  margin: 0;
  color: #7c5208;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-news-card__gallery div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.community-news-card__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08);
}

.community-news-card__article {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 32px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.community-news-card__article time {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.community-news-card__category {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(216, 154, 19, 0.4);
  border-radius: 999px;
  background: rgba(216, 154, 19, 0.12);
  color: #8a5a05;
  font-size: 0.69rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.community-news-card h5 {
  margin: 0;
  color: #061b49;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 1000;
  line-height: 1.08;
}

.community-news-card__caption {
  margin: 0;
  color: #334155;
  font-size: clamp(0.96rem, 1vw, 1.06rem);
  font-weight: 700;
  line-height: 1.65;
}

.community-news-card__divider {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d89a13 0%, rgba(216, 154, 19, 0.18) 65%, transparent 100%);
}

.community-news-card__highlights {
  display: grid;
  gap: 10px;
}

.community-news-card__highlights div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.92);
}

.community-news-card__highlights span {
  min-width: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 900;
}

.community-news-card__highlights strong {
  min-width: 0;
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 1000;
  text-align: right;
}

.community-news-card__support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin-top: 22px;
}

.community-news-card__support section,
.community-news-card__recognition {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(216, 154, 19, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(216, 154, 19, 0.54) 0 4px, transparent 4px),
    linear-gradient(180deg, #fff8e7 0%, #ffffff 100%);
  box-shadow: 0 14px 28px rgba(7, 27, 77, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.community-news-card__support p,
.community-news-card__recognition p {
  margin: 0;
  color: #475569;
  font-weight: 700;
  line-height: 1.62;
}

.community-news-card__recognition {
  margin-top: 16px;
  background:
    linear-gradient(90deg, rgba(216, 154, 19, 0.64) 0 4px, transparent 4px),
    linear-gradient(180deg, #fff7df 0%, #ffffff 100%);
}

.community-news-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid rgba(216, 154, 19, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, #0b2c6b 0%, #061b49 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(7, 27, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-top: 16px;
}

.community-news-card__footer strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-news-card__footer small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.community-news-card__footer b {
  padding: 5px 9px;
  border: 1px solid rgba(216, 154, 19, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4b321;
  font-size: 0.76rem;
  font-weight: 1000;
}

.parent-community-latest .community-news-card:first-child {
  grid-column: auto;
}

.admin-community-recent-posts .community-news-card {
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
}

.admin-community-recent-posts .community-news-card__main,
.community-news-card--admin .community-news-card__main {
  grid-template-columns: 1fr;
}

.admin-community-recent-posts .community-news-card__support,
.community-news-card--admin .community-news-card__support {
  grid-template-columns: 1fr;
}

.admin-community-recent-posts .community-news-card__media {
  aspect-ratio: 16 / 10;
}

.parent-support-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216, 154, 19, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 154, 19, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.94));
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.parent-support-action-button {
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border: 2px solid #d89a13;
  border-radius: 18px;
  background: linear-gradient(180deg, #123d73 0%, #08285a 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.15;
  text-align: center;
  box-shadow:
    0 14px 26px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.parent-support-action-button:hover,
.parent-support-action-button:focus-visible {
  border-color: #f2b632;
  background: linear-gradient(180deg, #17477f 0%, #092f66 100%);
  box-shadow:
    0 18px 32px rgba(7, 27, 77, 0.22),
    0 0 0 4px rgba(216, 154, 19, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.parent-support-action-button:active {
  transform: translateY(0);
  box-shadow:
    0 10px 18px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.parent-support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 27, 77, 0.58);
  backdrop-filter: blur(8px);
  overflow: auto;
}

.parent-support-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(216, 154, 19, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(242, 182, 50, 0.13), transparent 14rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 28px 70px rgba(7, 27, 77, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.parent-support-modal-wide {
  width: min(1180px, 100%);
}

.parent-support-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(7, 27, 77, 0.08);
}

.parent-support-modal > header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(216, 154, 19, 0.32);
  border-radius: 999px;
  background: #fff8e7;
  color: #9a6505;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-support-modal h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.parent-support-modal-body {
  padding: 24px;
}

.parent-support-summary-text {
  margin: 0;
  color: #243451;
  font-size: 1.04rem;
  font-weight: 780;
  line-height: 1.72;
}

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

.parent-support-option-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(216, 154, 19, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  color: #071b4d;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(7, 27, 77, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parent-support-option-card:hover,
.parent-support-option-card:focus-visible {
  border-color: #d89a13;
  box-shadow: 0 18px 34px rgba(7, 27, 77, 0.13), 0 0 0 4px rgba(216, 154, 19, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.parent-support-option-card span,
.parent-support-mini-metrics span,
.parent-attendance-row-list span {
  color: #5a6781;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.parent-support-option-card strong {
  color: #071b4d;
  font-size: 1rem;
}

.parent-attendance-history {
  display: grid;
  gap: 18px;
}

.parent-support-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parent-support-mini-metrics article,
.parent-attendance-row-list article,
.parent-support-empty {
  padding: 16px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.parent-support-mini-metrics article {
  display: grid;
  gap: 6px;
}

.parent-support-mini-metrics strong {
  color: #071b4d;
  font-size: 1.35rem;
}

.parent-attendance-history p,
.parent-support-empty {
  margin: 0;
  color: #4e5f78;
  font-weight: 780;
  line-height: 1.55;
}

.parent-attendance-row-list {
  display: grid;
  gap: 10px;
}

.parent-attendance-row-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(90px, 0.7fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
}

.parent-attendance-row-list strong {
  color: #071b4d;
  font-weight: 1000;
}

.parent-attendance-row-list em {
  color: #52637a;
  font-style: normal;
  font-weight: 760;
}

.parent-support-live-cv .live-cv-page {
  margin: 0;
}

.parent-linked-learner-panel {
  margin-top: 0;
}

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

.parent-learner-insight-card {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-left: 6px solid #d89a13;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 18px 42px rgba(7, 27, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.parent-learner-insight-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(7, 27, 77, 0.78), rgba(216, 154, 19, 0.72));
  opacity: 0.54;
}

.parent-learner-insight-card span {
  display: block;
  color: #071b4d;
  font-size: 0.84rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-learner-insight-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.parent-learner-insight-card li {
  position: relative;
  padding-left: 18px;
  color: #263b5e;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.48;
}

.parent-learner-insight-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d89a13;
  box-shadow: 0 0 0 3px rgba(216, 154, 19, 0.14);
}

.parent-learner-insight-card.positive {
  border-color: rgba(22, 163, 74, 0.2);
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.parent-learner-insight-card.development {
  border-color: rgba(245, 158, 11, 0.24);
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.parent-learner-insight-card.support {
  border-color: rgba(248, 113, 113, 0.22);
  border-left-color: #f87171;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
}

.parent-learner-insight-card.next {
  border-color: rgba(59, 130, 246, 0.2);
  border-left-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.parent-learner-insight-card.positive li::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14); }
.parent-learner-insight-card.development li::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14); }
.parent-learner-insight-card.support li::before { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14); }
.parent-learner-insight-card.next li::before { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }

.parent-excellence-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(142, 155, 176, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 235, 0.34) 32%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 91% 7%, rgba(216, 154, 19, 0.145), transparent 14rem),
    radial-gradient(circle at 8% 96%, rgba(80, 105, 137, 0.12), transparent 17rem),
    linear-gradient(180deg, #ffffff 0%, #fffefb 46%, #f8fbff 100%);
  box-shadow:
    0 26px 62px rgba(7, 27, 77, 0.105),
    0 1px 0 rgba(216, 154, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(7, 27, 77, 0.025);
  overflow: hidden;
}

.parent-excellence-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 55%),
    linear-gradient(90deg, #061640 0%, #113b70 44%, #c78308 78%, #e0ad3d 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 7px 20px rgba(199, 131, 8, 0.15);
}

.parent-excellence-card header {
  position: relative;
  z-index: 1;
}

.parent-excellence-card header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(199, 131, 8, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf1, #fff4dc);
  color: #7c5208;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(126, 83, 7, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.parent-excellence-card h3 {
  margin: 0;
  color: #061640;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 1000;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.parent-excellence-card header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #475a75;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.58;
}

.parent-excellence-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.parent-excellence-badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(126, 145, 170, 0.15);
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfdff, #ffffff);
  box-shadow:
    0 11px 28px rgba(7, 27, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(7, 27, 77, 0.018);
  transition: transform 205ms ease, border-color 205ms ease, box-shadow 205ms ease, background 205ms ease;
}

.parent-excellence-badge:hover,
.parent-excellence-badge:focus-within {
  transform: translateY(-2px);
  border-color: rgba(199, 131, 8, 0.34);
  box-shadow:
    0 18px 40px rgba(7, 27, 77, 0.095),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(7, 27, 77, 0.02);
}

.parent-excellence-badge:focus-within {
  outline: 2px solid rgba(216, 154, 19, 0.34);
  outline-offset: 3px;
}

.parent-excellence-badge i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 24%, #ffffff, #e9f2ff 58%, #dbe8f7);
  color: #071b4d;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 1000;
  box-shadow:
    0 8px 18px rgba(7, 27, 77, 0.08),
    inset 0 0 0 1px rgba(7, 27, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 190ms ease, transform 190ms ease;
}

.parent-excellence-badge:hover i,
.parent-excellence-badge:focus-within i {
  box-shadow:
    0 10px 22px rgba(7, 27, 77, 0.12),
    0 0 0 4px rgba(216, 154, 19, 0.1),
    inset 0 0 0 1px rgba(7, 27, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.parent-excellence-badge strong,
.parent-excellence-badge span,
.parent-excellence-badge p {
  display: block;
  min-width: 0;
}

.parent-excellence-badge strong {
  color: #061640;
  font-size: 1.02rem;
  font-weight: 1000;
  letter-spacing: -0.005em;
  line-height: 1.22;
}

.parent-excellence-badge span {
  margin-top: 4px;
  color: #8d620b;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.parent-excellence-badge p {
  margin: 10px 0 0;
  color: #4c5d77;
  font-size: 0.92rem;
  font-weight: 690;
  line-height: 1.52;
}

.parent-excellence-badge.gold {
  border-color: rgba(190, 124, 8, 0.42);
  background:
    radial-gradient(circle at 13% 0%, rgba(216, 154, 19, 0.15), transparent 9.5rem),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 249, 229, 0.54) 42%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), transparent 36%),
    linear-gradient(145deg, #fff6e1 0%, #fffdf5 47%, #ffffff 100%);
  box-shadow:
    0 16px 38px rgba(126, 83, 7, 0.115),
    0 1px 0 rgba(216, 154, 19, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(126, 83, 7, 0.05);
}

.parent-excellence-badge.gold:hover,
.parent-excellence-badge.gold:focus-within {
  border-color: rgba(190, 124, 8, 0.58);
  box-shadow:
    0 22px 46px rgba(126, 83, 7, 0.145),
    0 0 0 3px rgba(216, 154, 19, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.parent-excellence-badge.gold i {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92) 0 9%, transparent 10%),
    radial-gradient(circle at 32% 24%, #fffbe7 0%, #f7d978 43%, #d69d1e 70%, #ad6d05 100%);
  color: #5f3c03;
  box-shadow:
    0 11px 24px rgba(216, 154, 19, 0.24),
    0 0 0 5px rgba(216, 154, 19, 0.075),
    inset 0 0 0 1px rgba(116, 74, 4, 0.24),
    inset 0 0 0 4px rgba(255, 247, 215, 0.16),
    inset 0 2px 1px rgba(255, 255, 255, 0.72),
    inset 0 -2px 3px rgba(99, 61, 3, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.parent-excellence-badge.gold span {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(190, 124, 8, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 48%),
    linear-gradient(180deg, rgba(255, 248, 221, 0.96), rgba(255, 239, 184, 0.76));
  color: #805507;
  box-shadow:
    0 2px 5px rgba(126, 83, 7, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.parent-excellence-badge.silver {
  border-color: rgba(126, 145, 170, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #f6f9fd 0%, #ffffff 56%, #eef3f8 100%);
  box-shadow:
    0 12px 30px rgba(51, 65, 85, 0.058),
    inset 0 1px 0 rgba(255, 255, 255, 0.97),
    inset 0 -1px 0 rgba(51, 65, 85, 0.025);
}

.parent-excellence-badge.silver i {
  background: radial-gradient(circle at 32% 22%, #ffffff, #eef3f9 52%, #d9e2ed 100%);
  color: #071b4d;
  box-shadow:
    0 8px 18px rgba(51, 65, 85, 0.085),
    inset 0 0 0 1px rgba(71, 85, 105, 0.12),
    inset 0 2px 1px rgba(255, 255, 255, 0.94),
    inset 0 -2px 3px rgba(51, 65, 85, 0.045);
}

.parent-excellence-badge.silver span {
  color: #6f5b2b;
}

@media (prefers-reduced-motion: reduce) {
  .parent-excellence-badge,
  .parent-excellence-badge i {
    transition: none;
  }

  .parent-excellence-badge:hover,
  .parent-excellence-badge:focus-within {
    transform: none;
  }
}

.parent-excellence-badge.positive {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.parent-excellence-badge.positive i {
  background: #dcfce7;
  color: #166534;
}

.parent-excellence-empty {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px dashed rgba(216, 154, 19, 0.38);
  border-radius: 20px;
  background: rgba(255, 248, 231, 0.72);
  color: #40516d;
  font-size: 1rem;
  font-weight: 820;
}

.parent-today-tfe-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 182, 50, 0.12), transparent 13rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 22px 52px rgba(7, 27, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.parent-today-tfe-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #071b4d, #0f4c8a 48%, #f2b632);
}

.parent-today-tfe-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.parent-today-tfe-kicker,
.parent-today-tfe-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-today-tfe-kicker {
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(216, 154, 19, 0.28);
  background: #fff8e7;
  color: #9a6505;
}

.parent-today-tfe-status {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(15, 76, 138, 0.18);
  background: #eef6ff;
  color: #0b3f78;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.parent-today-tfe-card h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.parent-today-tfe-card p {
  max-width: 1060px;
  margin: 0;
  color: #2f405d;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 760;
  line-height: 1.68;
}

.parent-today-evidence {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(126, 145, 170, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(216, 154, 19, 0.12), transparent 15rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow:
    0 20px 48px rgba(7, 27, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.parent-today-evidence header h3,
.parent-today-evidence header p {
  margin: 0;
}

.parent-today-evidence header h3 {
  color: #071b4d;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 1000;
  line-height: 1.08;
}

.parent-today-evidence header p {
  margin-top: 6px;
  color: #52637a;
  font-size: 0.98rem;
  font-weight: 780;
  line-height: 1.45;
}

.parent-today-evidence-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(216, 154, 19, 0.42);
  border-radius: 20px;
  background: #f8fbff;
  box-shadow:
    0 24px 56px rgba(7, 27, 77, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.parent-today-evidence-photo img {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  object-fit: cover;
  background: #ffffff;
}

.parent-today-evidence-photo figcaption {
  position: absolute;
  inset: 16px 16px auto auto;
}

.parent-today-evidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(7, 27, 77, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.parent-today-evidence-badge.gold {
  border-color: rgba(216, 154, 19, 0.52);
  background: linear-gradient(180deg, rgba(255, 249, 226, 0.94), rgba(255, 239, 184, 0.86));
  color: #805507;
}

.parent-today-evidence-badge.silver {
  border-color: rgba(126, 145, 170, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 243, 250, 0.88));
  color: #334155;
}

.parent-today-evidence-badge.bronze {
  border-color: rgba(146, 64, 14, 0.32);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.94), rgba(254, 215, 170, 0.82));
  color: #7c2d12;
}

.parent-today-evidence-badge.awaiting {
  border-color: rgba(15, 76, 138, 0.24);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.86));
  color: #0b3f78;
}

.parent-today-evidence-caption {
  margin: 0;
  color: #52637a;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.4;
}

.parent-today-evidence-empty {
  padding: 20px;
  border: 1px dashed rgba(216, 154, 19, 0.36);
  border-radius: 20px;
  background: rgba(255, 248, 231, 0.68);
}

.parent-today-evidence-empty strong,
.parent-today-evidence-empty p {
  display: block;
  margin: 0;
}

.parent-today-evidence-empty strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.parent-today-evidence-empty p {
  margin-top: 6px;
  color: #52637a;
  font-weight: 760;
  line-height: 1.45;
}

.parent-certificates-showcase {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 182, 50, 0.14), transparent 15rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 24px 58px rgba(7, 27, 77, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.parent-certificates-showcase > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(7, 27, 77, 0.08);
}

.parent-certificates-showcase > header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 999px;
  background: #fff8e7;
  color: #a66a00;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-certificates-showcase h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.parent-certificates-showcase p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #536173;
  font-weight: 780;
  line-height: 1.55;
}

.parent-certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.parent-certificate-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  min-height: 254px;
  padding: 16px;
  border: 1px solid rgba(7, 27, 77, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(242, 182, 50, 0.16), transparent 9rem);
  color: #071b4d;
  text-align: left;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.parent-certificate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #071b4d, #f2b632);
}

.parent-certificate-card:hover,
.parent-certificate-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(242, 182, 50, 0.7);
  box-shadow: 0 22px 46px rgba(7, 27, 77, 0.14), 0 0 0 4px rgba(242, 182, 50, 0.1);
  outline: none;
}

.parent-certificate-thumb {
  display: grid;
  place-items: center;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7, 27, 77, 0.96), rgba(11, 44, 107, 0.94)),
    radial-gradient(circle at top right, rgba(242, 182, 50, 0.22), transparent 8rem);
}

.parent-certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-certificate-thumb strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(242, 182, 50, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd76a;
  font-size: 0.95rem;
  font-weight: 1000;
}

.parent-certificate-status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parent-certificate-card > strong {
  color: #071b4d;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.18;
}

.parent-certificate-card em,
.parent-certificate-card small {
  color: #64748b;
  font-style: normal;
  font-weight: 820;
  line-height: 1.28;
}

.parent-certificate-card small {
  margin-top: auto;
  color: #a66a00;
}

.parent-certificates-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 22px;
  border: 1px dashed rgba(7, 27, 77, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  text-align: center;
}

.parent-certificates-empty span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff8e7;
  color: #a66a00;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.08);
}

.parent-certificates-empty strong {
  color: #071b4d;
  font-size: 1.14rem;
  font-weight: 1000;
}

.parent-certificate-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 54, 0.66);
}

.parent-certificate-modal {
  width: min(1160px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 28px;
  background: #f8fbff;
  box-shadow: 0 30px 90px rgba(4, 18, 54, 0.36);
}

.parent-certificate-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.parent-certificate-modal > header [data-parent-certificate-close] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  border-color: rgba(216, 154, 19, 0.52);
  background: linear-gradient(180deg, #123d73 0%, #071b4d 100%);
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(7, 27, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.parent-certificate-modal > header [data-parent-certificate-close]:hover,
.parent-certificate-modal > header [data-parent-certificate-close]:focus-visible {
  border-color: rgba(216, 154, 19, 0.72);
  box-shadow:
    0 12px 26px rgba(7, 27, 77, 0.18),
    0 0 0 3px rgba(216, 154, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.parent-certificate-modal h3,
.parent-certificate-modal p {
  margin: 0;
}

.parent-certificate-modal h3 {
  color: #071b4d;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.parent-certificate-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 22px;
}

.parent-certificate-preview-sheet {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 560px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(7, 27, 77, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(242, 182, 50, 0.18), transparent 16rem),
    linear-gradient(135deg, #ffffff, #f9fbff);
  text-align: center;
  box-shadow:
    0 22px 54px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.parent-certificate-preview-sheet.has-image {
  padding: 18px;
  background: #ffffff;
}

.parent-certificate-preview-sheet.has-pdf {
  padding: 18px;
  background: #ffffff;
}

.parent-certificate-generated-fallback {
  display: grid;
  width: 100%;
}

.parent-certificate-preview-sheet.has-image .parent-certificate-generated-fallback {
  opacity: 0;
}

.parent-certificate-preview-sheet.has-image.image-failed .parent-certificate-generated-fallback {
  opacity: 1;
}

.parent-certificate-preview-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 27, 77, 0.12);
}

.parent-certificate-preview-pdf {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 27, 77, 0.12);
}

.parent-certificate-pdf-fallback {
  display: grid;
  width: 100%;
  gap: 14px;
  justify-items: center;
}

.parent-certificate-preview-sheet.has-pdf .parent-certificate-pdf-fallback {
  opacity: 0;
  pointer-events: none;
}

.parent-certificate-preview-sheet.has-pdf:has(.parent-certificate-preview-pdf:not([src])) .parent-certificate-pdf-fallback {
  opacity: 1;
  pointer-events: auto;
}

.parent-certificate-generated-border {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 500px;
  align-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 42px);
  border: 8px solid #071b4d;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.95) 0 8px, transparent 8px calc(100% - 8px), rgba(242, 182, 50, 0.95) calc(100% - 8px)),
    linear-gradient(180deg, rgba(242, 182, 50, 0.95) 0 8px, transparent 8px calc(100% - 8px), rgba(242, 182, 50, 0.95) calc(100% - 8px)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(242, 182, 50, 0.36);
}

.parent-certificate-generated-border::before {
  content: "TFE";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(7, 27, 77, 0.035);
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 1000;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.parent-certificate-generated-header,
.parent-certificate-generated-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.parent-certificate-generated-header span,
.parent-certificate-generated-comment span,
.parent-certificate-generated-footer span {
  display: block;
  color: #a66a00;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-certificate-generated-header strong,
.parent-certificate-generated-footer strong {
  display: block;
  margin-top: 4px;
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 1000;
}

.parent-certificate-generated-header mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid #f2b632;
  border-radius: 999px;
  background: #071b4d;
  color: #ffffff;
  font-weight: 1000;
  box-shadow: 0 16px 30px rgba(7, 27, 77, 0.2);
}

.parent-certificate-generated-main {
  position: relative;
  z-index: 1;
}

.parent-certificate-generated-main p {
  margin: 0;
  color: #a66a00;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-certificate-generated-main h4 {
  margin: 12px auto 18px;
  max-width: 780px;
  color: #071b4d;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

.parent-certificate-generated-main span {
  display: block;
  color: #64748b;
  font-weight: 900;
}

.parent-certificate-generated-main strong {
  display: block;
  margin-top: 6px;
  color: #071b4d;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 1000;
  line-height: 1.02;
}

.parent-certificate-generated-main em,
.parent-certificate-generated-main small {
  display: block;
  margin-top: 10px;
  color: #334155;
  font-style: normal;
  font-weight: 900;
}

.parent-certificate-generated-comment {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.86);
}

.parent-certificate-generated-comment p {
  margin: 6px 0 0;
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.45;
}

.parent-certificate-preview-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(248, 251, 255, 0.28));
}

.parent-certificate-preview-detail article {
  padding: 17px 18px;
  border: 1px solid rgba(126, 145, 170, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(216, 154, 19, 0.16), transparent 5px),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 48%, #f8fbff 100%);
  box-shadow:
    0 12px 28px rgba(7, 27, 77, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(7, 27, 77, 0.018);
}

.parent-certificate-preview-detail span {
  display: block;
  color: #51627b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.parent-certificate-preview-detail strong,
.parent-certificate-preview-detail p {
  display: block;
  margin-top: 9px;
  color: #061640;
  font-weight: 920;
  line-height: 1.44;
}

.parent-certificate-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.parent-certificate-print-page .parent-certificate-preview-pdf,
.parent-certificate-print-page .parent-certificate-preview-image {
  position: static;
  width: 100%;
  height: auto;
  min-height: 80vh;
}

.journey-employment-card {
  min-width: 0;
  width: 100%;
}

.journey-employment-frame {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(7, 27, 77, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at top right, rgba(242, 182, 50, 0.16), transparent 19rem);
  box-shadow:
    0 24px 58px rgba(7, 27, 77, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.journey-employment-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #071b4d, #f2b632, #1b5d89);
}

.journey-employment-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #071b4d, #0b2c6b);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 27, 77, 0.2);
}

.journey-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(242, 182, 50, 0.48);
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.14);
  color: #ffd76a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-employment-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.journey-employment-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.journey-progress-meter {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.journey-progress-meter strong {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.journey-progress-meter span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 900;
}

.journey-progress-meter div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.journey-progress-meter i {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: #f2b632;
}

.journey-employment-body {
  display: grid;
  grid-template-columns: minmax(112px, 0.16fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.journey-figure {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  border: 1px solid rgba(242, 182, 50, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(242, 182, 50, 0.2), transparent 50%),
    #071b4d;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.journey-figure span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f2b632;
  box-shadow: 0 16px 34px rgba(242, 182, 50, 0.22);
}

.journey-figure strong {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 1000;
}

.journey-figure em {
  color: #ffd76a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.journey-pathway-wrap {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.journey-pathway-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #071b4d, #16a34a, #f59e0b, #7c3aed, #1b5d89);
  opacity: 0.22;
}

.journey-pathway-line i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #f2b632;
  box-shadow: 0 0 0 6px rgba(242, 182, 50, 0.18), 0 10px 20px rgba(7, 27, 77, 0.16);
}

.journey-phase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.journey-phase-card {
  min-width: 0;
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 20px;
  background: #ffffff;
  color: #071b4d;
  text-align: left;
  box-shadow: 0 14px 28px rgba(7, 27, 77, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.journey-phase-card:hover,
.journey-phase-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(7, 27, 77, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
}

.journey-phase-card.is-selected,
.journey-phase-card.current-phase {
  border-color: rgba(242, 182, 50, 0.72);
  box-shadow: 0 20px 38px rgba(7, 27, 77, 0.14), 0 0 0 4px rgba(242, 182, 50, 0.12);
}

.journey-phase-card.upcoming {
  opacity: 0.68;
}

.journey-phase-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
}

.journey-phase-card.phase-1 .journey-phase-icon { background: #071b4d; }
.journey-phase-card.phase-2 .journey-phase-icon { background: #16a34a; }
.journey-phase-card.phase-3 .journey-phase-icon { background: #f59e0b; }
.journey-phase-card.phase-4 .journey-phase-icon { background: #7c3aed; }
.journey-phase-card.phase-5 .journey-phase-icon { background: #1b5d89; }

.journey-phase-number,
.journey-phase-card em,
.journey-phase-card small {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-phase-card strong {
  color: #071b4d;
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1.16;
}

.journey-phase-card small {
  width: fit-content;
  margin-top: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #071b4d;
}

.journey-phase-card.completed small { background: #ecfdf5; color: #166534; }
.journey-phase-card.current-phase small { background: #fff7e0; color: #8a5b00; }

.journey-phase-detail {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-left: 6px solid #f2b632;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.07);
}

.journey-phase-detail span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-phase-detail strong {
  color: #071b4d;
  font-size: 1.12rem;
  font-weight: 1000;
}

.journey-phase-detail p,
.journey-phase-detail em {
  margin: 0;
  color: #475569;
  font-style: normal;
  font-weight: 800;
  line-height: 1.42;
}

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

.journey-insight-row article {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(7, 27, 77, 0.09);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.06);
}

.journey-insight-row span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey-insight-row strong {
  display: block;
  margin-top: 7px;
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.22;
}

.journey-insight-row p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.35;
}

.journey-road-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(7, 27, 77, 0.13);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.97)),
    radial-gradient(circle at 84% 12%, rgba(242, 182, 50, 0.16), transparent 18rem);
  box-shadow:
    0 28px 66px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.journey-road-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #071b4d, #f2b632, #16a34a, #1b5d89);
}

.journey-road-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(245px, 0.31fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.journey-left-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 24%, rgba(242, 182, 50, 0.2), transparent 11rem),
    radial-gradient(circle at 90% 82%, rgba(45, 119, 255, 0.18), transparent 13rem),
    linear-gradient(155deg, #071b4d 0%, #0b2c6b 62%, #061336 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 42px rgba(7, 27, 77, 0.18);
}

.journey-left-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -32px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.12);
}

.journey-left-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.journey-left-panel p {
  position: relative;
  z-index: 1;
  max-width: 25ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  line-height: 1.42;
}

.journey-learner-figure {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(72%, 190px);
  aspect-ratio: 0.76;
  margin: 8px 0 0;
}

.journey-learner-figure span {
  position: absolute;
  bottom: 0;
  width: 78%;
  height: 62%;
  border-radius: 42% 42% 18% 18%;
  background: linear-gradient(180deg, #f2b632, #d99714);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.journey-learner-figure strong {
  position: absolute;
  top: 7%;
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: #ffffff;
  color: #071b4d;
  font-size: 2rem;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.2);
}

.journey-progress-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: start;
  width: 150px;
  height: 150px;
  margin-top: auto;
  padding: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #071b4d 56%, transparent 57%),
    conic-gradient(#f2b632 var(--journey-progress), rgba(255, 255, 255, 0.18) 0);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: center;
}

.journey-progress-ring strong {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.journey-progress-ring span,
.journey-progress-ring small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.2;
  text-transform: uppercase;
}

.journey-progress-ring small {
  max-width: 11ch;
  color: #ffd76a;
  font-size: 0.62rem;
}

.journey-road-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.85), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 80% 16%, rgba(27, 93, 137, 0.14), transparent 14rem),
    radial-gradient(circle at 22% 84%, rgba(242, 182, 50, 0.16), transparent 12rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.journey-road-stage::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background-image:
    linear-gradient(rgba(7, 27, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 77, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 88%);
}

.journey-road-svg {
  position: absolute;
  inset: 32px 16px 58px;
  width: calc(100% - 32px);
  height: calc(100% - 90px);
  overflow: visible;
}

.journey-road-shadow,
.journey-road-base,
.journey-road-progress,
.journey-road-dash {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-road-shadow {
  stroke: rgba(7, 27, 77, 0.14);
  stroke-width: 76;
  transform: translateY(12px);
}

.journey-road-base {
  stroke: #172034;
  stroke-width: 62;
}

.journey-road-progress {
  stroke: #f2b632;
  stroke-width: 66;
  opacity: 0.82;
}

.journey-road-dash {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 5;
  stroke-dasharray: 18 18;
}

.journey-total-badge {
  position: absolute;
  z-index: 4;
  right: clamp(14px, 2vw, 28px);
  top: clamp(14px, 2vw, 26px);
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 5px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c948, #d99714);
  color: #071b4d;
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  text-align: center;
}

.journey-total-badge strong {
  max-width: 5.6ch;
  font-size: 1.05rem;
  font-weight: 1000;
  line-height: 0.98;
}

.journey-total-badge span {
  color: rgba(7, 27, 77, 0.72);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.journey-phase-marker {
  position: absolute;
  display: grid;
  justify-items: center;
  width: clamp(112px, 13vw, 150px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #071b4d;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, 0);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.journey-phase-marker:hover,
.journey-phase-marker:focus-visible,
.journey-phase-marker.is-selected {
  transform: translate(-50%, -5px);
  filter: drop-shadow(0 14px 24px rgba(7, 27, 77, 0.18));
  outline: none;
}

.journey-phase-marker.upcoming {
  opacity: 0.72;
}

.journey-marker-number,
.journey-marker-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.journey-marker-number {
  width: 58px;
  height: 58px;
  border: 4px solid #ffffff;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.22);
}

.journey-marker-icon {
  width: 38px;
  height: 38px;
  margin-top: -5px;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 1000;
  box-shadow: 0 10px 18px rgba(7, 27, 77, 0.16);
}

.journey-marker-connector {
  width: 3px;
  height: 34px;
  margin: 2px 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 27, 77, 0.28), rgba(7, 27, 77, 0.04));
}

.journey-phase-marker.phase-1 .journey-marker-number,
.journey-phase-marker.phase-1 .journey-marker-icon { background: #071b4d; }
.journey-phase-marker.phase-2 .journey-marker-number,
.journey-phase-marker.phase-2 .journey-marker-icon { background: #16a34a; }
.journey-phase-marker.phase-3 .journey-marker-number,
.journey-phase-marker.phase-3 .journey-marker-icon { background: #f59e0b; }
.journey-phase-marker.phase-4 .journey-marker-number,
.journey-phase-marker.phase-4 .journey-marker-icon { background: #7c3aed; }
.journey-phase-marker.phase-5 .journey-marker-number,
.journey-phase-marker.phase-5 .journey-marker-icon { background: #1b5d89; }

.journey-phase-marker strong {
  margin-top: 4px;
  color: #071b4d;
  font-size: 0.86rem;
  font-weight: 1000;
  line-height: 1.08;
}

.journey-phase-marker em {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.journey-phase-marker small {
  width: fit-content;
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #071b4d;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(7, 27, 77, 0.08);
}

.journey-phase-marker.completed small { color: #166534; background: #ecfdf5; }
.journey-phase-marker.current-phase small { color: #8a5b00; background: #fff7e0; border-color: rgba(242, 182, 50, 0.36); }

.journey-progress-pin {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%);
  border: 4px solid #ffffff;
  border-radius: 999px 999px 999px 2px;
  background: #f2b632;
  box-shadow: 0 0 0 7px rgba(242, 182, 50, 0.2), 0 16px 30px rgba(7, 27, 77, 0.2);
  rotate: -45deg;
}

.journey-progress-pin::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #071b4d;
}

.journey-progress-pin span {
  position: absolute;
  left: 30px;
  top: -12px;
  min-width: 86px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #071b4d;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  rotate: 45deg;
  box-shadow: 0 10px 20px rgba(7, 27, 77, 0.16);
}

.journey-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.journey-insight-strip article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.journey-insight-strip span,
.journey-phase-detail span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey-insight-strip strong {
  display: block;
  margin-top: 7px;
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.2;
}

.journey-insight-strip p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.35;
}

.journey-insight-strip article i {
  display: block;
  height: 6px;
  max-width: 100%;
  margin-top: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2b632, #16a34a);
}

.journey-value-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(242, 182, 50, 0.24);
  border-radius: 22px;
  background: linear-gradient(135deg, #071b4d, #0b2c6b);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.14);
}

.journey-value-strip strong,
.journey-value-strip span {
  display: block;
}

.journey-value-strip strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 1000;
}

.journey-value-strip span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 820;
}

.journey-value-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-value-strip li {
  padding: 7px 10px;
  border: 1px solid rgba(242, 182, 50, 0.4);
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.12);
  color: #ffd76a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-road-card {
  gap: clamp(22px, 3vw, 32px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(7, 27, 77, 0.09);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 10%, rgba(242, 182, 50, 0.08), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 26px 70px rgba(7, 27, 77, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.journey-road-card::before {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #f2b632 18%, #f2b632 82%, transparent 100%);
}

.journey-premium-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.journey-title-block {
  min-width: 0;
}

.journey-title-block h3 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.journey-title-block p {
  margin: 12px 0 0;
  color: #61708a;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 740;
}

.journey-kicker {
  margin-bottom: 14px;
  border-color: rgba(242, 182, 50, 0.34);
  background: #fff8e7;
  color: #a66a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.journey-header-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 34px rgba(7, 27, 77, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.journey-header-status > div:last-child {
  display: grid;
  gap: 5px;
}

.journey-header-status > div:last-child > span,
.journey-learner-panel span,
.journey-insight-strip em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-header-status > div:last-child > strong,
.journey-learner-panel strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 920;
  line-height: 1.18;
}

.journey-readiness-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-progress-ring {
  width: 108px;
  height: 108px;
  margin: 0;
  background:
    radial-gradient(circle, #ffffff 55%, transparent 56%),
    conic-gradient(#f2b632 var(--journey-progress), #e8edf5 0);
  box-shadow: inset 0 0 0 1px rgba(7, 27, 77, 0.06), 0 14px 30px rgba(7, 27, 77, 0.08);
  animation: journeyRingIn 0.8s ease both;
}

.journey-progress-ring strong {
  color: #071b4d;
  font-size: 1.55rem;
  font-weight: 920;
}

.journey-progress-ring span,
.journey-progress-ring small {
  color: #64748b;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.journey-road-hero {
  display: grid;
  grid-template-columns: minmax(184px, 0.2fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.journey-learner-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 182, 50, 0.1), transparent 11rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 34px rgba(7, 27, 77, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.journey-learner-panel small:not(.journey-readiness-badge) {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.25;
}

.journey-pathway-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.journey-road-stage {
  min-height: 338px;
  overflow: visible;
  border: 1px solid rgba(7, 27, 77, 0.07);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(242, 182, 50, 0.08), transparent 12rem),
    linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.journey-road-stage::before {
  opacity: 0.55;
  background-size: 42px 42px;
}

.journey-road-svg {
  inset: 42px 18px 58px;
  width: calc(100% - 36px);
  height: calc(100% - 98px);
  animation: journeyRoadReveal 0.8s ease both;
}

.journey-road-base {
  stroke: #dbe3ee;
  stroke-width: 22;
}

.journey-road-progress {
  stroke: #f2b632;
  stroke-width: 24;
  filter: drop-shadow(0 8px 16px rgba(242, 182, 50, 0.18));
}

.journey-road-shadow,
.journey-road-dash {
  display: none;
}

.journey-total-badge {
  right: 18px;
  top: 18px;
  width: 76px;
  height: 76px;
  border-width: 3px;
  background: #fff8e7;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.journey-total-badge strong {
  max-width: none;
  color: #071b4d;
  font-size: 1.3rem;
}

.journey-total-badge span {
  color: #a66a00;
  font-size: 0.58rem;
}

.journey-phase-marker {
  width: 112px;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.journey-phase-marker:hover,
.journey-phase-marker:focus-visible,
.journey-phase-marker.is-selected {
  transform: translate(-50%, calc(-50% - 4px));
}

.journey-marker-number {
  width: 42px;
  height: 42px;
  border-width: 3px;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(7, 27, 77, 0.16);
}

.journey-marker-icon {
  width: 30px;
  height: 30px;
  border-width: 2px;
  font-size: 0.56rem;
}

.journey-marker-label {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(7, 27, 77, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(7, 27, 77, 0.07);
}

.journey-marker-label strong {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1;
}

.journey-marker-label em {
  margin: 0;
  color: #64748b;
  font-size: 0.56rem;
}

.journey-phase-marker > strong,
.journey-phase-marker > em,
.journey-phase-marker > small,
.journey-marker-connector {
  display: none;
}

.journey-progress-pin {
  width: 30px;
  height: 30px;
  border-width: 3px;
  box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.28), 0 16px 30px rgba(7, 27, 77, 0.15);
  animation: journeyPinPulse 2.4s ease-in-out infinite;
}

.journey-progress-pin span {
  left: 25px;
  top: -14px;
  padding: 6px 10px;
  background: #ffffff;
  color: #071b4d;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.12);
}

.journey-phase-panel-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.journey-phase-panel {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #071b4d;
  text-align: left;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.journey-phase-panel:hover,
.journey-phase-panel:focus-visible,
.journey-phase-panel.is-selected {
  transform: translateY(-3px);
  border-color: rgba(242, 182, 50, 0.45);
  box-shadow: 0 18px 34px rgba(7, 27, 77, 0.1), 0 0 0 4px rgba(242, 182, 50, 0.09);
  outline: none;
}

.journey-phase-panel.upcoming {
  opacity: 0.68;
}

.journey-phase-panel span {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey-phase-panel strong {
  color: #071b4d;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.16;
}

.journey-phase-panel em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
}

.journey-phase-panel small {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #071b4d;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-phase-panel.completed small { color: #166534; background: #ecfdf5; }
.journey-phase-panel.current-phase small { color: #8a5b00; background: #fff7e0; }

.journey-phase-detail {
  padding: 18px 20px;
  border: 1px solid rgba(7, 27, 77, 0.07);
  border-left: 4px solid #f2b632;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 30px rgba(7, 27, 77, 0.06);
}

.journey-insight-strip {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 27, 77, 0.07);
}

.journey-insight-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 0;
  border-right: 1px solid rgba(7, 27, 77, 0.07);
  border-radius: 0;
  box-shadow: none;
}

.journey-insight-strip article:last-child {
  border-right: 0;
}

.journey-insight-strip article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff8e7;
  color: #a66a00;
  font-size: 0.78rem;
}

.journey-insight-strip strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.journey-value-strip {
  padding: 20px 22px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, #f2b632 0 3px, transparent 3px),
    linear-gradient(135deg, #071b4d, #0b2c6b);
  box-shadow: 0 18px 40px rgba(7, 27, 77, 0.15);
}

.journey-value-strip strong {
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0;
}

.journey-value-strip li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.journey-value-strip li span {
  margin: 0;
  color: #ffd76a;
}

.journey-road-card {
  padding: clamp(28px, 4.4vw, 52px);
}

.journey-premium-header {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.journey-title-block h3 {
  max-width: 12ch;
}

.journey-progress-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(7, 27, 77, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 27, 77, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.journey-progress-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid rgba(7, 27, 77, 0.07);
}

.journey-progress-strip article:last-child {
  border-right: 0;
}

.journey-progress-strip span,
.journey-progress-strip em {
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.journey-progress-strip strong {
  color: #071b4d;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 900;
  line-height: 1.15;
}

.journey-progress-strip i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.journey-progress-strip b {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b632, #16a34a);
}

.journey-road-hero {
  grid-template-columns: 1fr;
}

.journey-pathway-column {
  gap: 22px;
}

.journey-road-stage {
  min-height: clamp(500px, 52vw, 640px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(242, 182, 50, 0.12), transparent 13rem),
    radial-gradient(circle at 12% 88%, rgba(7, 27, 77, 0.08), transparent 15rem),
    linear-gradient(180deg, #f8fbff, #ffffff);
}

.journey-road-svg {
  inset: 62px 26px 78px;
  width: calc(100% - 52px);
  height: calc(100% - 128px);
}

.journey-road-base {
  stroke: #dce4ef;
  stroke-width: 32;
}

.journey-road-progress {
  stroke: url("#journeyRoadGradient");
  stroke-width: 34;
}

.journey-road-centre {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16 18;
}

.journey-phase-marker {
  width: clamp(132px, 12vw, 176px);
}

.journey-marker-number {
  width: 58px;
  height: 58px;
  font-size: 1.18rem;
}

.journey-marker-icon {
  width: 38px;
  height: 38px;
  font-size: 0.66rem;
}

.journey-marker-label {
  max-width: 176px;
  padding: 8px 10px;
}

.journey-marker-label strong {
  font-size: 0.78rem;
  line-height: 1.08;
}

.journey-marker-label em {
  font-size: 0.62rem;
}

.journey-milestone-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.journey-milestone {
  position: absolute;
  bottom: 30px;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(130px, 12vw);
  transform: translateX(-50%);
  text-align: center;
}

.journey-milestone i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #071b4d;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(7, 27, 77, 0.1);
}

.journey-milestone.completed i {
  background: #ecfdf5;
  color: #166534;
}

.journey-milestone em {
  color: #64748b;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.15;
}

.journey-progress-pin {
  width: 38px;
  height: 38px;
  z-index: 7;
}

.journey-progress-pin span {
  left: 30px;
  top: -20px;
  display: grid;
  gap: 2px;
  min-width: 124px;
}

.journey-progress-pin span em {
  color: #64748b;
  font-size: 0.56rem;
  font-style: normal;
}

.journey-total-badge {
  right: 24px;
  top: 24px;
  width: 70px;
  height: 70px;
}

.journey-phase-panel ul,
.journey-expanded-grid ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.journey-phase-panel li,
.journey-expanded-grid li {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.2;
}

.journey-phase-panel li::before,
.journey-expanded-grid li::before {
  content: "✓";
  margin-right: 6px;
  color: #16a34a;
  font-weight: 1000;
}

.journey-phase-panel-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.journey-phase-panel {
  gap: 8px;
  min-height: 230px;
  padding: 18px;
  border-radius: 22px;
}

.journey-phase-panel strong {
  font-size: 0.98rem;
}

.journey-phase-panel p {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 790;
  line-height: 1.3;
}

.journey-phase-panel small {
  margin-top: auto;
}

.journey-expanded-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.journey-expanded-grid div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(7, 27, 77, 0.07);
  border-radius: 16px;
  background: #ffffff;
}

.journey-expanded-grid em {
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-expanded-grid p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.34;
}

.journey-day-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(7, 27, 77, 0.07);
  border-radius: 22px;
  background: #ffffff;
}

.journey-day-timeline span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
}

.journey-day-timeline span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
}

.journey-day-timeline .completed {
  background: #fff8e7;
  color: #071b4d;
}

@keyframes journeyPinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.28), 0 16px 30px rgba(7, 27, 77, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(242, 182, 50, 0), 0 16px 30px rgba(7, 27, 77, 0.15); }
}

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

@keyframes journeyRingIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .journey-progress-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-progress-strip article:nth-child(3n) {
    border-right: 0;
  }

  .journey-road-stage {
    min-height: 440px;
  }

  .journey-phase-marker {
    width: 112px;
  }

  .journey-marker-label {
    display: none;
  }

  .journey-milestone em {
    display: none;
  }

  .journey-phase-panel-row,
  .journey-expanded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .journey-road-card {
    padding: 22px;
    border-radius: 26px;
  }

  .journey-title-block h3 {
    max-width: none;
  }

  .journey-progress-strip,
  .journey-phase-panel-row,
  .journey-expanded-grid,
  .journey-day-timeline {
    grid-template-columns: 1fr;
  }

  .journey-progress-strip article,
  .journey-insight-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(7, 27, 77, 0.07);
  }

  .journey-progress-strip article:last-child,
  .journey-insight-strip article:last-child {
    border-bottom: 0;
  }

  .journey-day-timeline span:not(:last-child)::after {
    display: none;
  }

}

.school-partnership-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 162, 27, 0.14);
  border: 1px solid rgba(217, 162, 27, 0.42);
  color: #d9a21b;
  font-size: 0.75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-dashboard-build-marker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5b41b;
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.partner-logo-card {
  width: 150px;
  height: 110px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.partner-logo {
  width: 140px;
  height: 100px;
  object-fit: contain;
  padding: 8px;
}

.partner-logo-fallback {
  display: grid;
  place-items: center;
  width: 140px;
  height: 100px;
  background: #ffffff;
  color: #071b4d;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  font-size: 1.35rem;
  font-weight: 1000;
}

.school-summary-grid,
.school-access-badges {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.school-access-badges span {
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(245, 180, 27, 0.4);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-access-badges em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-access-badges strong {
  color: #f5b41b;
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-identity-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: stretch;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.school-identity-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.school-identity-main h3,
.school-identity-main p {
  margin: 0;
}

.school-identity-main h3 {
  margin: 4px 0 7px;
  color: #071b4d;
  font-size: 1.45rem;
  line-height: 1.15;
}

.school-identity-main p:not(.eyebrow) {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.school-identity-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.school-identity-stats article {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 15px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #f5b41b;
}

.school-identity-stats span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.school-identity-stats strong {
  color: #071b4d;
  font-size: 1.25rem;
  line-height: 1.1;
}

.school-dashboard-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
  overflow-wrap: anywhere;
}

.school-cohort-panel,
.school-linked-cohort-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.school-learner-search-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 11px;
  margin-top: 20px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 24px;
  background: linear-gradient(180deg, #0a2a66 0%, #123b86 100%);
  box-shadow: 0 18px 42px rgba(7, 27, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.school-learner-search {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 9px;
  position: relative;
}

.school-cohort-filter {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 9px;
  position: relative;
}

.school-cohort-filter__label {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.28);
}

.school-cohort-filter::after {
  content: "⌄";
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: 1000;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.school-cohort-filter__select {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  appearance: none;
  border: 2px solid #d4af37;
  border-radius: 22px;
  background: #ffffff;
  color: #0a2a66;
  padding: 16px 56px 16px 22px;
  font-size: 1.08rem;
  font-weight: 700;
  outline: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-cohort-filter:hover::after {
  color: #f5d76e;
  transform: translateY(-1px);
}

.school-cohort-filter__select:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(212, 175, 55, 0.28);
}

.school-cohort-filter__select:focus {
  border-color: #f5d76e;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.school-learner-search span {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.28);
}

.school-learner-search::after {
  content: "⌕";
  position: absolute;
  left: 20px;
  bottom: 17px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: 1000;
  pointer-events: none;
}

.school-learner-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  border: 2px solid #d4af37;
  border-radius: 22px;
  background: #ffffff;
  color: #0a2a66;
  padding: 16px 22px 16px 56px;
  font-size: 1.08rem;
  font-weight: 900;
  outline: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-learner-search input::placeholder {
  color: #8a96b2;
  font-size: 1.05rem;
  font-weight: 850;
}

.school-learner-search:hover::after {
  color: #f5d76e;
}

.school-learner-search input:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(212, 175, 55, 0.28);
}

.school-learner-search input:focus {
  border-color: #f5d76e;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.school-learner-search-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 950;
}

.school-cohort-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.school-executive-kpi {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.school-executive-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #94a3b8;
}

.school-executive-kpi.blue {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.school-executive-kpi.blue::before { background: #2563eb; }

.school-executive-kpi.green {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #bbf7d0;
}

.school-executive-kpi.green::before { background: #16a34a; }

.school-executive-kpi.amber {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fde68a;
}

.school-executive-kpi.amber::before { background: #f59e0b; }

.school-executive-kpi.neutral {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: #e2e8f0;
}

.school-executive-kpi.is-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.school-executive-kpi.is-clickable:hover,
.school-executive-kpi.is-clickable:focus {
  transform: translateY(-3px);
  border-color: rgba(217, 162, 27, 0.5);
  box-shadow: 0 22px 44px rgba(7, 27, 77, 0.12);
  outline: none;
}

.school-achievements-panel {
  margin-top: 18px;
}

.school-achievement-card {
  cursor: default;
}

.school-achievement-card:hover {
  transform: none;
}

.school-achievement-card .award-reason strong {
  color: #071b4d;
}

.school-achievement-empty {
  cursor: default;
}

.award-certificate-unavailable {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 900;
}

.school-certificate-error {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  box-shadow: 0 12px 24px rgba(153, 27, 27, 0.08);
}

.school-certificate-error strong {
  color: #7f1d1d;
  font-weight: 1000;
}

.school-certificate-error span {
  font-weight: 850;
}

.school-kpi-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  font-size: 1rem;
}

.school-executive-kpi span {
  display: block;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.school-executive-kpi strong {
  display: block;
  margin-top: 8px;
  color: #071b4d;
  font-size: 2.35rem;
  font-weight: 1000;
  line-height: 0.95;
}

.school-executive-kpi em {
  display: block;
  margin-top: 9px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.school-learner-row-list {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.school-cohort-photo-preparation {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  min-height: 330px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(7, 27, 77, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, #f4f8fc 0%, #ffffff 55%, #fff8e5 100%);
  box-shadow: 0 24px 64px rgba(7, 27, 77, 0.12);
}

.school-cohort-photo-preparation h4 {
  margin: 7px 0 10px;
  color: #071b4d;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 1000;
  line-height: 1.04;
}

.school-cohort-photo-preparation p:last-child {
  max-width: 560px;
  margin: 0;
  color: #64748b;
  font-weight: 800;
  line-height: 1.55;
}

.school-cohort-photo-preparation__visual {
  display: grid;
  gap: 13px;
}

.school-cohort-photo-preparation__visual > span {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 20px 13px;
  gap: 9px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(207, 217, 232, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.school-cohort-photo-preparation__visual i,
.school-cohort-photo-preparation__visual b,
.school-cohort-photo-preparation__visual em {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(100deg, #e8eef5 20%, #f9fbfd 42%, #e8eef5 64%);
  background-size: 240% 100%;
  animation: school-profile-preparation 1.35s ease-in-out infinite;
}

.school-cohort-photo-preparation__visual i {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(242, 189, 43, 0.42);
  border-radius: 50%;
}

.school-cohort-photo-preparation__visual b { width: 72%; height: 16px; }
.school-cohort-photo-preparation__visual em { width: 48%; height: 11px; }

@keyframes school-profile-preparation {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 760px) {
  .school-cohort-photo-preparation {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-cohort-photo-preparation__visual i,
  .school-cohort-photo-preparation__visual b,
  .school-cohort-photo-preparation__visual em { animation: none; }
}

.school-learner-row-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.9fr);
  align-items: stretch;
  gap: 24px;
  padding: 26px;
  border: 1px solid #cfd9e8;
  border-radius: 30px;
  background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 54%, #fff8e5 100%);
  box-shadow: 0 24px 64px rgba(7, 27, 77, 0.16);
  overflow-wrap: anywhere;
}

.school-learner-profile-section {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding: 22px 18px;
  border: 1px solid rgba(242, 189, 43, 0.42);
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(242, 189, 43, 0.18), transparent 42%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 34px rgba(7, 27, 77, 0.08);
}

.school-learner-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.school-learner-main-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.school-learner-photo-wrap {
  width: clamp(220px, 18vw, 290px);
  height: clamp(220px, 18vw, 290px);
  min-width: clamp(220px, 18vw, 290px);
}

.school-learner-photo-wrap .learner-avatar.school-profile {
  width: 100%;
  height: 100%;
  min-width: 100%;
  border: 5px solid #f2bd2b;
  box-shadow: 0 24px 52px rgba(7, 27, 77, 0.22);
  font-size: 2.4rem;
}

.school-learner-photo-shell {
  position: relative;
  isolation: isolate;
}

.school-learner-photo-shell > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-learner-photo-fallback {
  position: relative;
  z-index: 0;
}

.school-learner-card-identity {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.school-learner-row-card span {
  display: block;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: none;
}

.school-learner-row-card strong {
  display: block;
  color: #071b4d;
  font-size: 2.05rem;
  font-weight: 1000;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.school-learner-card-identity small {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.school-learner-card-identity em {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.school-ilp-button {
  margin-top: 0;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(242, 182, 50, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, #061845 0%, #0d2f6f 52%, #1b5d89 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  box-shadow:
    0 12px 26px rgba(7, 27, 77, 0.18),
    0 0 0 3px rgba(242, 189, 43, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.school-ilp-button::before {
  content: none;
}

.school-ilp-button:hover,
.school-ilp-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #0a2358 0%, #123a78 54%, #206aa7 100%);
  box-shadow:
    0 16px 34px rgba(7, 27, 77, 0.23),
    0 0 0 4px rgba(242, 189, 43, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: none;
}

.school-ilp-button:active {
  transform: translateY(0) scale(0.99);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #061640 0%, #0b2c6b 60%, #174b91 100%);
  box-shadow:
    0 8px 18px rgba(7, 27, 77, 0.18),
    0 0 0 3px rgba(242, 189, 43, 0.12),
    inset 0 2px 5px rgba(7, 27, 77, 0.12);
}

.school-intelligence-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border: 1.5px solid rgba(242, 182, 50, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, #061845 0%, #0d2f6f 52%, #1b5d89 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 26px rgba(7, 27, 77, 0.18),
    0 0 0 3px rgba(242, 189, 43, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.school-intelligence-button::before {
  content: none;
}

.school-intelligence-button:hover,
.school-intelligence-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #0a2358 0%, #123a78 54%, #206aa7 100%);
  box-shadow:
    0 16px 34px rgba(7, 27, 77, 0.23),
    0 0 0 4px rgba(242, 182, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.school-intelligence-button:active {
  transform: translateY(0) scale(0.99);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #061640 0%, #0b2c6b 60%, #174b91 100%);
  box-shadow:
    0 8px 18px rgba(7, 27, 77, 0.18),
    0 0 0 3px rgba(242, 189, 43, 0.12),
    inset 0 2px 5px rgba(7, 27, 77, 0.12);
}

.school-card-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.school-card-action-row .school-intelligence-button {
  margin-top: 0;
}

.school-intelligence-helper {
  display: block;
  width: min(180px, 100%);
  margin-top: 5px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
}

.school-ilp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(7, 27, 77, 0.62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.school-ilp-modal {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  overflow-y: auto;
  border: 1px solid rgba(242, 189, 43, 0.42);
  border-radius: 30px;
  background: #f3f6fb;
  box-shadow: 0 30px 90px rgba(7, 27, 77, 0.34);
}

.school-ilp-close {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(242, 189, 43, 0.78);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe38a 0%, #f2bd2b 100%);
  color: #071b4d;
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(242, 189, 43, 0.24);
  cursor: pointer;
}

/* Premium school ILP dashboard: visual-only modal content for the existing View ILP action. */
.school-ilp-dashboard {
  min-width: 0;
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 30px);
}

.school-ilp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(242, 189, 43, 0.22), transparent 34%),
    linear-gradient(135deg, #071b4d 0%, #123f7a 100%);
  box-shadow: 0 24px 60px rgba(7, 27, 77, 0.22);
  color: #ffffff;
}

.school-ilp-hero-profile {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.school-ilp-hero-profile .learner-avatar,
.school-ilp-hero-profile .learner-photo {
  width: 126px;
  height: 126px;
  min-width: 126px;
  border: 5px solid #f2bd2b;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.school-ilp-hero .eyebrow {
  color: #f2bd2b;
}

.school-ilp-demo-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 4px 0 8px;
  padding: 5px 10px;
  border: 1px solid rgba(242, 189, 43, 0.52);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.16);
  color: #ffe38a;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.school-ilp-hero h3 {
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
}

.school-ilp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-ilp-hero-meta span,
.school-ilp-hero-action span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
}

.school-ilp-hero-action {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.school-ilp-hero-action span.green {
  border-color: rgba(134, 239, 172, 0.48);
  background: rgba(22, 163, 74, 0.24);
}

.school-ilp-hero-action span.amber {
  border-color: rgba(253, 230, 138, 0.62);
  background: rgba(245, 158, 11, 0.24);
}

.school-ilp-hero-action span.red {
  border-color: rgba(254, 202, 202, 0.58);
  background: rgba(220, 38, 38, 0.22);
}

.school-ilp-dashboard-section,
.school-ilp-chart-card,
.school-ilp-readiness-card {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid #d7e0ed;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(7, 27, 77, 0.1);
}

.school-ilp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.school-ilp-section-head h4 {
  margin: 4px 0 0;
  color: #071b4d;
  font-size: clamp(1.28rem, 2vw, 1.68rem);
}

.school-ilp-section-head > span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(242, 189, 43, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e5 0%, #ffe8a3 100%);
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(242, 189, 43, 0.16);
}

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

.school-ilp-metric-card {
  min-width: 0;
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #94a3b8;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.school-ilp-metric-card.above,
.school-ilp-chart-row.above {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.school-ilp-metric-card.on,
.school-ilp-chart-row.on {
  border-left-color: #f2bd2b;
  background: linear-gradient(135deg, #fff8e5 0%, #ffffff 100%);
}

.school-ilp-metric-card.below,
.school-ilp-chart-row.below {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.school-ilp-metric-card.concern,
.school-ilp-chart-row.concern {
  border-left-color: #fca5a5;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.school-ilp-metric-card.awaiting,
.school-ilp-chart-row.awaiting {
  border-left-color: #94a3b8;
}

.school-ilp-metric-card.awaiting,
.school-ilp-chart-row.awaiting {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-color: #d7e0ed;
}

.school-ilp-metric-card.awaiting .school-ilp-metric-head strong,
.school-ilp-chart-row.awaiting strong {
  color: #64748b;
  font-size: 1rem;
}

.school-ilp-metric-card.awaiting .school-ilp-progress-track b,
.school-ilp-chart-row.awaiting .school-ilp-chart-bar b {
  background: repeating-linear-gradient(
    45deg,
    #cbd5e1 0,
    #cbd5e1 8px,
    #e2e8f0 8px,
    #e2e8f0 16px
  );
}

.school-ilp-metric-head,
.school-ilp-metric-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.school-ilp-metric-head span {
  color: #071b4d;
  font-size: 0.9rem;
  font-weight: 1000;
}

.school-ilp-metric-head strong {
  color: #071b4d;
  font-size: 1.25rem;
  font-weight: 1000;
  white-space: nowrap;
}

.school-ilp-metric-foot em,
.school-ilp-metric-foot small {
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.school-ilp-progress-track,
.school-ilp-chart-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.school-ilp-progress-track {
  overflow: hidden;
}

.school-ilp-chart-bar {
  overflow: visible;
}

.school-ilp-progress-track b,
.school-ilp-chart-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2bd2b 0%, #16a34a 100%);
}

.school-ilp-progress-track .expected-line,
.school-ilp-chart-bar .expected-line {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 75%;
  z-index: 2;
  width: 4px;
  border-radius: 999px;
  background: #071b4d;
  box-shadow:
    0 0 0 2px #f2bd2b,
    0 0 0 5px rgba(7, 27, 77, 0.12);
  opacity: 1;
}

.school-ilp-chart-bar::after {
  content: "75% expected";
  position: absolute;
  left: 75%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  background: #071b4d;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 1000;
  white-space: nowrap;
}

.school-ilp-chart-row:not(:first-child) .school-ilp-chart-bar::after {
  display: none;
}

.school-ilp-chart {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.school-ilp-chart-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.5fr) minmax(76px, auto);
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #94a3b8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.04);
}

.school-ilp-chart-row span,
.school-ilp-chart-row strong {
  color: #071b4d;
  font-weight: 1000;
}

.school-ilp-unit-section {
  background:
    radial-gradient(circle at top right, rgba(242, 189, 43, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.96);
}

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

.school-ilp-unit-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7e0ed;
  border-left: 6px solid #94a3b8;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.06);
}

.school-ilp-unit-card.above {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.school-ilp-unit-card.on {
  border-left-color: #f2bd2b;
  background: linear-gradient(135deg, #fff8e5 0%, #ffffff 100%);
}

.school-ilp-unit-card.below {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.school-ilp-unit-card.concern {
  border-left-color: #fca5a5;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.school-ilp-unit-card.awaiting {
  border-color: #d7e0ed;
  border-left-color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.school-ilp-unit-card.awaiting .school-ilp-progress-track b {
  background: repeating-linear-gradient(
    45deg,
    #cbd5e1 0,
    #cbd5e1 8px,
    #e2e8f0 8px,
    #e2e8f0 16px
  );
}

.qualification-mapping-dashboard {
  display: grid;
  gap: 18px;
}

.qualification-mapping-dashboard .school-ilp-section-head {
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-bottom: 4px solid #d4a017;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(212, 160, 23, 0.2), transparent 34%),
    linear-gradient(135deg, #061842 0%, #08265d 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(6, 24, 66, 0.16);
}

.qualification-mapping-dashboard .school-ilp-section-head h4,
.qualification-mapping-dashboard .school-ilp-section-head p {
  color: #ffffff;
}

.qualification-mapping-dashboard .school-ilp-section-head .eyebrow {
  color: #ffe9a8;
}

.qualification-mapping-dashboard .school-ilp-section-head > div > p:not(.eyebrow) {
  margin: 6px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
  line-height: 1.45;
}

.qualification-mapping-dashboard .school-ilp-section-head > span {
  border-color: rgba(212, 160, 23, 0.82);
  background: rgba(255, 255, 255, 0.12);
  color: #ffe9a8;
  box-shadow: none;
}

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

.qualification-mapping-summary article {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(212, 160, 23, 0.46);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(6, 24, 66, 0.08);
}

.qualification-mapping-summary span,
.qualification-unit-detail span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qualification-mapping-summary strong {
  display: block;
  margin-top: 6px;
  color: #061842;
  font-size: 1.35rem;
  font-weight: 1000;
}

.qualification-unit-card {
  overflow: hidden;
  padding: 0;
}

.qualification-unit-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto) 28px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.qualification-unit-card summary::-webkit-details-marker {
  display: none;
}

.qualification-unit-card summary::after {
  content: "+";
  display: inline-grid;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 999px;
  background: #061842;
  color: #ffe9a8;
  font-size: 1rem;
  font-weight: 1000;
}

.qualification-unit-card[open] summary::after {
  content: "−";
}

.qualification-unit-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.qualification-unit-status strong {
  color: #061842;
  font-size: 1.32rem;
  font-weight: 1000;
  line-height: 1;
}

.qualification-unit-status em {
  color: #475569;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  text-align: right;
}

.qualification-unit-card .school-ilp-progress-track {
  margin: 0 16px 14px;
}

.qualification-unit-card .school-ilp-unit-meta {
  padding: 0 16px 16px;
}

.qualification-unit-card.green {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.qualification-unit-card.amber {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.qualification-unit-card.red {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.qualification-unit-card.neutral {
  border-color: #d7e0ed;
  border-left-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.qualification-unit-card.green .school-ilp-progress-track b {
  background: linear-gradient(90deg, #0f8a2b, #16a34a);
}

.qualification-unit-card.amber .school-ilp-progress-track b {
  background: linear-gradient(90deg, #d4a017, #f59e0b);
}

.qualification-unit-card.red .school-ilp-progress-track b {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.qualification-unit-card.neutral .school-ilp-progress-track b {
  background: repeating-linear-gradient(
    45deg,
    #93c5fd 0,
    #93c5fd 8px,
    #bfdbfe 8px,
    #bfdbfe 16px
  );
}

.qualification-unit-detail {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.qualification-unit-detail article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(6, 24, 66, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.qualification-unit-detail p {
  margin: 5px 0 0;
  color: #061842;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.45;
}

.qualification-unit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.qualification-evidence-explorer {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(212, 160, 23, 0.12), transparent 30%),
    #f8fbff;
}

.qualification-evidence-head {
  padding: 18px;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-bottom: 4px solid #d4a017;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(212, 160, 23, 0.2), transparent 34%),
    linear-gradient(135deg, #061842 0%, #08265d 100%);
  box-shadow: 0 18px 42px rgba(6, 24, 66, 0.16);
}

.qualification-evidence-head h4,
.qualification-evidence-head p {
  color: #ffffff;
}

.qualification-evidence-head .eyebrow {
  color: #ffe9a8;
}

.qualification-evidence-head > div > p:not(.eyebrow) {
  margin: 6px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
  line-height: 1.45;
}

.qualification-evidence-head > span {
  border-color: rgba(212, 160, 23, 0.82);
  background: rgba(255, 255, 255, 0.12);
  color: #ffe9a8;
  box-shadow: none;
}

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

.qualification-evidence-unit-card {
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
}

.qualification-evidence-unit-card.active {
  border-color: rgba(212, 160, 23, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(212, 160, 23, 0.26),
    0 22px 52px rgba(6, 24, 66, 0.18);
}

.qualification-evidence-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.qualification-evidence-card-header span {
  color: #ffe9a8;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qualification-evidence-card-header h5 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 1000;
  line-height: 1.25;
}

.qualification-evidence-ring {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--qualification-ring, conic-gradient(#d4a017 0deg, #e8edf5 0deg));
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.55), 0 10px 22px rgba(2, 6, 23, 0.22);
}

.qualification-evidence-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 54px;
  height: 54px;
  border-radius: inherit;
  background: #ffffff;
}

.qualification-evidence-ring strong {
  position: relative;
  grid-area: 1 / 1;
  color: #061842;
  font-weight: 1000;
}

.qualification-evidence-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.qualification-evidence-card-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.qualification-evidence-card-body div {
  min-width: 0;
}

.qualification-evidence-card-body dt {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qualification-evidence-card-body dd {
  margin: 4px 0 0;
  color: #061842;
  font-size: 0.95rem;
  font-weight: 1000;
}

.qualification-evidence-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.qualification-evidence-trail {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(212, 160, 23, 0.42);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(6, 24, 66, 0.1);
}

.qualification-evidence-trail.is-open {
  animation: qualificationEvidenceReveal 260ms ease both;
}

@keyframes qualificationEvidenceReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qualification-evidence-trail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.34);
}

.qualification-evidence-trail-head h4 {
  margin: 4px 0 0;
  color: #061842;
  font-size: 1.18rem;
  font-weight: 1000;
}

.qualification-evidence-trail-head > span {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8e5;
  color: #061842;
  font-size: 0.76rem;
  font-weight: 1000;
}

.qualification-evidence-trail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.qualification-evidence-trail-actions > span {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8e5;
  color: #061842;
  font-size: 0.76rem;
  font-weight: 1000;
}

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

.qualification-evidence-item-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e0ed;
  border-left: 5px solid #93c5fd;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.06);
}

.qualification-evidence-item-card.complete {
  border-left-color: #16a34a;
}

.qualification-evidence-item-card.is-complete {
  border-color: rgba(22, 163, 74, 0.2);
  border-left-color: #16a34a;
  background: linear-gradient(180deg, rgba(237, 252, 242, 0.85), rgba(248, 255, 250, 0.95));
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.08);
}

.qualification-evidence-item-card.awaiting-review {
  border-left-color: #d4a017;
}

.qualification-evidence-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qualification-evidence-item-top span,
.qualification-evidence-item-top em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #061842;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qualification-evidence-item-top em {
  margin-left: auto;
  background: #fff8e5;
}

.qualification-evidence-item-top strong,
.qualification-evidence-item-card h5 {
  color: #061842;
  font-weight: 1000;
}

.qualification-evidence-item-card h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.qualification-evidence-item-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qualification-evidence-item-meta div,
.qualification-evidence-mapping-line {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(6, 24, 66, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.qualification-evidence-item-meta span,
.qualification-evidence-mapping-line span,
.qualification-evidence-detail-grid span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qualification-evidence-item-meta strong,
.qualification-evidence-mapping-line strong {
  display: block;
  margin-top: 4px;
  color: #061842;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1.35;
}

.qualification-evidence-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qualification-evidence-type-row span {
  padding: 5px 8px;
  border: 1px solid rgba(212, 160, 23, 0.42);
  border-radius: 999px;
  background: #ffffff;
  color: #061842;
  font-size: 0.66rem;
  font-weight: 1000;
}

.qualification-evidence-empty-state {
  padding: 18px;
  border: 1px dashed rgba(6, 24, 66, 0.22);
  border-radius: 16px;
  background: #f8fafc;
}

.qualification-evidence-empty-state h5 {
  margin: 4px 0 0;
  color: #061842;
  font-size: 1rem;
  font-weight: 1000;
}

.qualification-evidence-outstanding {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(6, 24, 66, 0.1);
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
}

.qualification-evidence-outstanding summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  color: #061842;
  font-size: 0.86rem;
  font-weight: 1000;
  list-style: none;
}

.qualification-evidence-outstanding summary::-webkit-details-marker {
  display: none;
}

.qualification-evidence-outstanding summary span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.qualification-evidence-outstanding .qualification-evidence-item-grid {
  padding: 0 14px 14px;
}

.qualification-evidence-item-card.not-contributing {
  opacity: 0.86;
  border-left-color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.qualification-evidence-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.52);
}

.qualification-evidence-drawer-panel {
  width: min(920px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
}

.qualification-evidence-drawer-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #061842 0%, #08265d 100%);
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.qualification-evidence-drawer-panel header h4,
.qualification-evidence-drawer-panel header span {
  color: #ffffff;
}

.qualification-evidence-drawer-panel header h4 {
  margin: 4px 0;
  font-size: 1.2rem;
  font-weight: 1000;
}

.qualification-evidence-drawer-panel header .eyebrow {
  color: #ffe9a8;
}

.qualification-evidence-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qualification-evidence-detail-grid article {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.qualification-evidence-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: #061842;
  font-weight: 1000;
}

.qualification-evidence-drawer-panel section {
  display: grid;
  gap: 10px;
}

.qualification-evidence-drawer-panel h5 {
  margin: 0;
  color: #061842;
  font-size: 0.92rem;
  font-weight: 1000;
}

.qualification-evidence-drawer-panel p {
  margin: 0;
  color: #34455f;
  font-weight: 800;
  line-height: 1.5;
}

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

.qualification-evidence-file {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(212, 160, 23, 0.46);
  border-radius: 14px;
  background: #fff;
  color: #061842;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(6, 24, 66, 0.06);
}

.qualification-evidence-file span,
.qualification-evidence-file {
  font-weight: 950;
}

.qualification-evidence-file strong {
  overflow-wrap: anywhere;
}

.qualification-evidence-file.unavailable {
  border-color: #d7e0ed;
  color: #475569;
}

.qualification-evidence-file em,
.qualification-evidence-file-note {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.learner-submission-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.learner-submission-viewer-section {
  padding: 14px;
  border: 1px solid rgba(6, 24, 66, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 24, 66, 0.06);
}

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

.learner-submission-asset {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #061842;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(6, 24, 66, 0.08);
}

.learner-submission-asset span,
.learner-submission-record-grid span {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learner-submission-asset strong,
.learner-submission-record-grid strong {
  color: #061842;
  font-weight: 1000;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.learner-submission-asset p,
.learner-submission-asset em {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.45;
}

.learner-submission-asset.media img,
.learner-submission-asset.media video {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  background: #eef2f7;
}

.learner-submission-asset.unavailable {
  border-color: #d7e0ed;
  background: #f8fafc;
}

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

.learner-submission-record-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.learner-submission-outcome-grid,
.competency-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.learner-submission-outcome-grid article,
.competency-checklist-grid article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.learner-submission-outcome-grid article.complete {
  border-color: rgba(15, 138, 43, 0.34);
  background: #ecfdf3;
}

.learner-submission-outcome-grid article.awaiting {
  border-color: rgba(217, 119, 6, 0.34);
  background: #fff7ed;
}

.learner-submission-outcome-grid article.not-met {
  border-color: rgba(185, 28, 28, 0.26);
  background: #fff1f2;
}

.learner-submission-outcome-grid span,
.competency-checklist-grid span:first-child {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learner-submission-outcome-grid strong {
  color: #061842;
  font-weight: 1000;
  line-height: 1.3;
}

.competency-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
}

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

.competency-status.not-recorded {
  background: #eef2f7;
  color: #475569;
}

.competency-status.not-met {
  background: #fee2e2;
  color: #991b1b;
}

.tutor-assessment-summary p {
  padding: 12px;
  border-left: 4px solid #d4a017;
  border-radius: 12px;
  background: #f8fafc;
}

.learner-submission-audit-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learner-submission-audit-list li {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(90px, 0.7fr) minmax(70px, 0.5fr) minmax(120px, 0.9fr) minmax(0, 2fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.learner-submission-audit-list .audit-action {
  color: #061842;
  font-size: 0.78rem;
  font-weight: 1000;
}

.learner-submission-audit-list strong,
.learner-submission-audit-list em,
.learner-submission-audit-list small {
  color: #475569;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.learner-submission-audit-list p {
  margin: 0;
  color: #34455f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .learner-submission-viewer-actions,
  .learner-submission-asset-grid,
  .learner-submission-record-grid,
  .learner-submission-outcome-grid,
  .competency-checklist-grid {
    grid-template-columns: 1fr;
  }

  .learner-submission-viewer-actions {
    display: grid;
    justify-content: stretch;
  }

  .learner-submission-audit-list li {
    grid-template-columns: 1fr;
  }
}

.qualification-evidence-drawer-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualification-evidence-drawer-panel li {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.qualification-evidence-drawer-panel li strong,
.qualification-evidence-drawer-panel li span,
.qualification-evidence-drawer-panel li em {
  display: block;
  color: #061842;
  font-style: normal;
  font-weight: 900;
}

/* Qualification Evidence unit cards: visual-only alignment with ILP Programme Journey phase cards. */
.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-unit-grid {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-unit-card.tfe-premium-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: 128px 1fr;
  min-width: 0;
  border-color: rgba(212, 160, 23, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-unit-card.tfe-premium-card.active {
  transform: translateY(-2px);
  border-color: rgba(212, 160, 23, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(212, 160, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 50px rgba(6, 24, 66, 0.18);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-header.tfe-premium-card__header {
  position: relative;
  min-height: 128px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 14px 12px 44px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-header > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-header span {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid rgba(212, 160, 23, 0.94);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.16);
  color: #ffe9a8;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.09em;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-header h5 {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1.14;
  letter-spacing: 0.012em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.36);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-ring {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  box-shadow:
    0 0 0 8px #ffffff,
    inset 0 0 0 1px rgba(212, 160, 23, 0.55),
    0 12px 24px rgba(2, 6, 23, 0.2);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-ring::before {
  width: 64px;
  height: 64px;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-ring strong {
  font-size: 1rem;
  line-height: 1;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-content: stretch;
  padding: 56px 12px 14px;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dl div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 8px;
  border: 1px solid rgba(6, 24, 66, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dl div:nth-child(3) {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 7px 11px;
  border-color: rgba(212, 160, 23, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e5 0%, #ffe8a3 100%);
  box-shadow: 0 8px 18px rgba(242, 189, 43, 0.12);
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dt {
  color: #52627a;
  font-size: 0.58rem;
  line-height: 1.1;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dd {
  margin: 0;
  color: #061842;
  font-size: 0.84rem;
  line-height: 1.14;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-body dl div:nth-child(3) dd {
  font-size: 0.72rem;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-actions {
  align-self: end;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.live-ilp-dashboard .qualification-evidence-explorer .qualification-evidence-card-actions .school-ilp-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  justify-content: center;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: 0.72rem;
  line-height: 1.16;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 900px) {
  .qualification-mapping-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qualification-evidence-unit-grid,
  .qualification-evidence-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qualification-evidence-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .qualification-mapping-dashboard .school-ilp-section-head,
  .qualification-unit-card summary,
  .qualification-evidence-head,
  .qualification-evidence-trail-head,
  .qualification-evidence-drawer-panel header {
    grid-template-columns: 1fr;
  }

  .qualification-mapping-summary,
  .qualification-mapping-dashboard .school-ilp-unit-grid,
  .qualification-evidence-unit-grid,
  .qualification-evidence-item-grid,
  .qualification-evidence-item-meta,
  .qualification-evidence-detail-grid,
  .qualification-evidence-file-list {
    grid-template-columns: 1fr;
  }

  .qualification-unit-status {
    justify-items: start;
  }

  .qualification-evidence-trail-head,
  .qualification-evidence-drawer-panel header {
    display: grid;
  }

  .qualification-unit-card summary::after {
    grid-column: 1;
    grid-row: auto;
  }
}

.school-ilp-unit-head {
  display: grid;
  gap: 5px;
}

.school-ilp-unit-head span {
  color: #8a5d00;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.school-ilp-unit-head strong {
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.25;
}

.school-ilp-unit-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.school-ilp-unit-meta span,
.school-ilp-unit-meta em,
.school-ilp-unit-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
}

.school-ilp-unit-meta span {
  background: #071b4d;
  color: #ffffff;
}

.school-ilp-unit-meta em {
  background: #fff8e5;
  color: #8a5d00;
}

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

.school-ilp-summary-grid > article,
.school-ilp-insight-grid > article,
.school-ilp-strength-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.school-ilp-summary-grid > article span,
.school-ilp-insight-grid > article span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-ilp-summary-grid > article strong,
.school-ilp-insight-grid > article strong {
  display: block;
  margin-top: 7px;
  color: #071b4d;
  font-size: 1rem;
  line-height: 1.35;
}

.school-ilp-readiness-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
  border-left: 8px solid #f2bd2b;
}

.school-ilp-readiness-card.green {
  border-left-color: #16a34a;
}

.school-ilp-readiness-card.amber {
  border-left-color: #f59e0b;
}

.school-ilp-readiness-card.awaiting {
  border-left-color: #94a3b8;
}

.school-ilp-readiness-card h4 {
  margin: 4px 0 8px;
  color: #071b4d;
}

.school-ilp-readiness-card strong {
  display: block;
  color: #071b4d;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
}

.school-ilp-readiness-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff8e5;
  color: #8a5d00;
  font-weight: 1000;
}

.school-ilp-readiness-card p,
.school-ilp-strength-card p,
.school-ilp-strength-card li {
  color: #334155;
  font-weight: 850;
  line-height: 1.5;
}

.school-ilp-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px 30px 0 0;
  background: linear-gradient(135deg, #071b4d 0%, #123f7a 100%);
  color: #ffffff;
}

.school-ilp-header .learner-avatar,
.school-ilp-header .learner-photo {
  width: 112px;
  height: 112px;
  min-width: 112px;
  border: 4px solid #f2bd2b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.school-ilp-header .eyebrow {
  color: #f2bd2b;
}

.school-ilp-header h3 {
  margin: 4px 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.school-ilp-header p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.school-ilp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.school-ilp-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-left: 6px solid #f2bd2b;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(7, 27, 77, 0.08);
}

.school-ilp-card-wide {
  grid-column: 1 / -1;
}

.school-ilp-card h4 {
  margin: 0 0 14px;
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.school-ilp-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.school-ilp-card dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.school-ilp-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.school-ilp-card dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-ilp-card dd {
  margin: 0;
  color: #071b4d;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.school-ilp-card p,
.school-ilp-card li {
  color: #334155;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.5;
}

.school-ilp-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.school-learner-progress-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.school-report-intelligence {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.school-report-summary,
.school-report-section,
.school-report-judgement {
  border: 1px solid rgba(49, 111, 177, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 66%, #fff9eb 100%);
  box-shadow: 0 18px 38px rgba(11, 31, 77, 0.08);
}

.school-report-summary,
.school-report-judgement {
  padding: 22px;
}

.school-report-summary h4 {
  margin: 0 0 10px;
  color: #071b4d;
  font-size: 1.28rem;
  font-weight: 1000;
}

.school-report-summary p:not(.eyebrow),
.school-report-judgement p:not(.eyebrow),
.school-report-evidence p {
  margin: 0;
  max-width: 96ch;
  color: #334155;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.62;
}

.school-report-section {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.school-report-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.school-report-section-head h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.08rem;
  font-weight: 1000;
}

.school-report-section-head > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 167, 44, 0.14);
  color: #071b4d;
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-report-journey-grid,
.school-report-metric-grid,
.school-report-evidence-grid,
.school-report-action-grid {
  display: grid;
  gap: 12px;
}

.school-report-journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.school-report-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.school-report-evidence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.school-report-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.school-report-journey-grid article,
.school-report-metric,
.school-report-evidence-grid span,
.school-report-action-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(49, 111, 177, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(11, 31, 77, 0.055);
}

.school-report-journey-grid article {
  display: grid;
  gap: 5px;
}

.school-report-journey-grid span,
.school-report-evidence-grid small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-report-journey-grid small {
  color: #7b8798;
  font-size: 0.72rem;
  font-weight: 850;
}

.school-report-journey-grid strong,
.school-report-evidence-grid strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 1000;
}

.school-report-journey-grid em {
  justify-self: start;
  margin-top: 3px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(49, 111, 177, 0.1);
  color: #071b4d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
}

.school-report-metric {
  display: grid;
  gap: 9px;
}

.school-report-metric.above { background: #f2fbf5; border-color: rgba(27, 128, 82, 0.2); }
.school-report-metric.on { background: #f5f9ff; border-color: rgba(49, 111, 177, 0.18); }
.school-report-metric.below { background: #fff9ec; border-color: rgba(216, 167, 44, 0.22); }
.school-report-metric.concern { background: #fff3f1; border-color: rgba(190, 71, 71, 0.18); }

.school-report-metric-head,
.school-report-metric-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.school-report-metric-head span {
  color: #071b4d;
  font-size: 0.88rem;
  font-weight: 1000;
}

.school-report-metric-head strong {
  color: #071b4d;
  font-size: 1.12rem;
  font-weight: 1000;
}

.school-report-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.school-report-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #316fb1 0%, #f2bd2b 100%);
}

.school-report-bar i {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  border-radius: 999px;
  background: #071b4d;
  opacity: 0.72;
  z-index: 2;
}

.school-report-metric-foot em,
.school-report-metric-foot small {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.school-report-action-grid article {
  display: grid;
  gap: 8px;
}

.school-report-action-grid strong {
  color: #071b4d;
  font-size: 0.98rem;
  font-weight: 1000;
  line-height: 1.3;
}

.school-report-action-grid p {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .school-report-journey-grid,
  .school-report-metric-grid,
  .school-report-evidence-grid,
  .school-report-action-grid {
    grid-template-columns: 1fr;
  }

  .school-report-section-head,
  .school-report-metric-head,
  .school-report-metric-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

.school-panel-title {
  color: #b68000;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.school-progress-meta-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.school-journey-panel {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #94a3b8;
}

.school-journey-panel.green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}

.school-journey-panel.amber {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

.school-journey-panel.red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
}

.school-journey-panel.muted,
.school-journey-panel.neutral {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-left-color: #94a3b8;
}

.school-journey-panel.green span,
.school-journey-panel.green strong {
  color: #166534;
}

.school-journey-panel.amber span,
.school-journey-panel.amber strong {
  color: #92400e;
}

.school-journey-panel.red span,
.school-journey-panel.red strong {
  color: #991b1b;
}

.school-journey-panel span {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-journey-panel strong {
  display: block;
  margin-top: 4px;
  color: #071b4d;
  font-size: 0.96rem;
  line-height: 1.25;
}

.school-learner-outcome-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.school-learner-info-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.2fr);
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.school-learner-brief {
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid rgba(49, 111, 177, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
  box-shadow:
    0 9px 22px rgba(7, 27, 77, 0.052),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.school-learner-brief h4 {
  margin: 0 0 8px;
  color: #071b4d;
  font-size: 0.88rem;
  font-weight: 1000;
}

.school-learner-brief p {
  margin: 0;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.52;
}

.school-rag-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.school-rag-metric {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 17px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow:
    0 8px 18px rgba(7, 27, 77, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.school-rag-metric span {
  display: block;
  color: #64748b;
  font-size: clamp(0.54rem, 0.58vw, 0.62rem);
  font-weight: 1000;
  letter-spacing: 0.012em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.school-rag-metric strong {
  display: block;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 1000;
  line-height: 1.18;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.school-rag-metric.green {
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  border-color: #b8eccd;
}

.school-rag-metric.amber,
.school-rag-metric.gold,
.school-rag-metric.bronze {
  background: linear-gradient(180deg, #fffdf4, #fffbeb);
  border-color: #f6dd86;
}

.school-rag-metric.red {
  background: linear-gradient(180deg, #fff7f7, #fef2f2);
  border-color: #f7c1c1;
}

.school-rag-metric.muted,
.school-rag-metric.neutral {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #d8e2ee;
}

.school-learner-info-panel .school-employment-feature {
  min-height: 100%;
}

.school-learner-supporting-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.school-employment-feature,
.school-outcome-indicator,
.school-outcome-note {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.school-outcome-indicator {
  border-left: 5px solid #f2bd2b;
}

.school-employment-feature {
  padding: 18px;
  border: 1px solid #bbf7d0;
  border-left: 7px solid #16a34a;
  border-radius: 22px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.12);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.school-employment-feature span {
  display: block;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.school-employment-feature strong {
  display: block;
  margin-top: 6px;
  color: #064e3b;
  font-size: 1.72rem;
  font-weight: 1000;
  line-height: 1;
}

.school-employment-feature em {
  display: block;
  margin-top: 8px;
  color: #166534;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
}

.school-employment-feature.very-well,
.school-employment-feature.positive {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.12);
}

.school-employment-feature.very-well span,
.school-employment-feature.very-well em,
.school-employment-feature.positive span,
.school-employment-feature.positive em { color: #166534; }
.school-employment-feature.very-well strong,
.school-employment-feature.positive strong { color: #064e3b; }

.school-employment-feature.progressing,
.school-employment-feature.progress {
  border-color: #fde68a;
  border-left-color: #d89a13;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(216, 154, 19, 0.12);
}

.school-employment-feature.progressing span,
.school-employment-feature.progressing em,
.school-employment-feature.progress span,
.school-employment-feature.progress em { color: #92400e; }
.school-employment-feature.progressing strong,
.school-employment-feature.progress strong { color: #78350f; }

.school-employment-feature.concern {
  border-color: #fed7aa;
  border-left-color: #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.12);
}

.school-employment-feature.concern span,
.school-employment-feature.concern em { color: #9a3412; }
.school-employment-feature.concern strong { color: #7c2d12; }

.school-employment-feature.amber {
  border-color: #fde68a;
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.12);
}

.school-employment-feature.amber span,
.school-employment-feature.amber em { color: #92400e; }
.school-employment-feature.amber strong { color: #78350f; }

.school-employment-feature.red {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.1);
}

.school-employment-feature.red span,
.school-employment-feature.red em { color: #991b1b; }
.school-employment-feature.red strong { color: #7f1d1d; }

.school-employment-feature.muted {
  border-color: #e2e8f0;
  border-left-color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: none;
}

.school-employment-feature.muted span,
.school-employment-feature.muted em { color: #64748b; }
.school-employment-feature.muted strong { color: #334155; }

.school-outcome-indicator span,
.school-outcome-note span {
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-outcome-indicator strong,
.school-outcome-note strong {
  display: block;
  margin-top: 4px;
  color: #071b4d;
  font-size: 0.96rem;
  line-height: 1.25;
}

.school-outcome-indicator.green { background: #ecfdf5; border-color: #bbf7d0; border-left-color: #16a34a; }
.school-outcome-indicator.gold { background: #fffbeb; border-color: #fde68a; border-left-color: #f2bd2b; }
.school-outcome-indicator.amber { background: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b; }
.school-outcome-indicator.red { background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; }
.school-outcome-indicator.bronze { background: #fff7ed; border-color: #fed7aa; border-left-color: #b45309; }
.school-outcome-indicator.muted { background: #f8fafc; border-color: #e2e8f0; border-left-color: #94a3b8; }

.school-outcome-note.green { background: #ecfdf5; border-color: #bbf7d0; }
.school-outcome-note.amber { background: #fffbeb; border-color: #fde68a; }
.school-outcome-note.red { background: #fef2f2; border-color: #fecaca; }
.school-outcome-note.muted { background: #f8fafc; border-color: #e2e8f0; }

.school-profile-metric {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.school-profile-metric span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-profile-metric strong {
  margin-top: 3px;
  font-size: 0.96rem;
}

.school-profile-metric i {
  display: block;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.school-profile-metric i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.school-profile-metric.green i b { background: #16a34a; }
.school-profile-metric.amber i b { background: #f59e0b; }
.school-profile-metric.red i b { background: #dc2626; }
.school-profile-metric.blue i b { background: #2563eb; }

.school-profile-metric.status {
  display: grid;
  align-content: center;
}

.school-profile-metric.status.green { background: #ecfdf5; border-color: #bbf7d0; }
.school-profile-metric.status.amber { background: #fffbeb; border-color: #fde68a; }
.school-profile-metric.status.red { background: #fef2f2; border-color: #fecaca; }
.school-profile-metric.status.muted,
.school-profile-metric.status.neutral { background: #f8fafc; border-color: #e2e8f0; }
.school-profile-metric.muted i b { background: #94a3b8; }

.school-status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: normal;
}

.school-status-chip.green {
  background: #dcfce7;
  color: #166534;
}

.school-status-chip.amber {
  background: #fef3c7;
  color: #92400e;
}

.school-status-chip.red {
  background: #fee2e2;
  color: #991b1b;
}

.school-status-chip.blue {
  background: #dbeafe;
  color: #1e3a8a;
}

.school-status-chip.neutral {
  background: #f1f5f9;
  color: #475569;
}

.school-status-chip.muted {
  background: #f1f5f9;
  color: #64748b;
}

.school-empty-diagnostic {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  background: #fffbeb;
  color: #071b4d;
  overflow-wrap: anywhere;
}

.school-diagnostic-panel {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-diagnostic-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #071b4d;
  padding: 9px 14px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.school-diagnostic-toggle span {
  color: #64748b;
  font-size: 0.78rem;
}

.school-diagnostic-content {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
}

.school-source-diagnostic-panel,
.school-match-audit-panel {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  overflow-wrap: anywhere;
}

.school-match-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.school-match-audit-head h4,
.school-match-audit-head p {
  margin: 0;
}

.school-match-audit-head h4 {
  color: #071b4d;
}

.school-match-audit-head strong {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff7e0;
  color: #7a4f01;
  padding: 8px 12px;
  font-weight: 1000;
}

.school-linked-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.school-linked-values-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.school-linked-values-grid span,
.school-match-audit-row span:first-child {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.school-linked-values-grid strong {
  color: #071b4d;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.school-match-audit-table {
  display: grid;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
}

.school-match-audit-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(130px, 1fr) minmax(80px, 0.7fr) repeat(3, minmax(140px, 1fr)) minmax(70px, 0.5fr) minmax(170px, 1.2fr);
  gap: 8px;
  align-items: center;
  min-width: 980px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.school-match-audit-row.head {
  background: #071b4d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.school-match-audit-row.matched {
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
}

.school-match-audit-row.not-matched {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fffbeb;
}

.school-dashboard-section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 0 2px;
}

.school-dashboard-section-title h3,
.school-dashboard-section-title p {
  margin: 0;
}

.school-dashboard-section-title h3 {
  margin-top: 4px;
  color: #071b4d;
  font-size: 1.25rem;
}

.school-readiness-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.school-readiness-panel article {
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #071b4d;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.school-readiness-panel article.gold { border-left-color: #f5b41b; }
.school-readiness-panel article.green { border-left-color: #16a34a; }
.school-readiness-panel article.blue { border-left-color: #2563eb; }

.school-readiness-panel span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-readiness-panel strong {
  display: block;
  margin: 8px 0 6px;
  color: #071b4d;
  font-size: 2rem;
  line-height: 1;
}

.school-readiness-panel p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
  line-height: 1.4;
}

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

.school-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #071b4d;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.school-kpi-card.green { border-left-color: #15803d; }
.school-kpi-card.amber { border-left-color: #b45309; }
.school-kpi-card.red { border-left-color: #b91c1c; }
.school-kpi-card.blue { border-left-color: #1d4ed8; }
.school-kpi-card.gold { border-left-color: #d9a21b; }

.school-kpi-card > span {
  align-self: flex-start;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-kpi-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.school-kpi-card strong {
  display: block;
  margin-top: 4px;
  color: #071b4d;
  font-size: 2rem;
  line-height: 1;
}

.school-kpi-card em {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.school-executive-summary,
.school-awards-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.school-executive-summary h4,
.school-executive-summary p,
.school-awards-section h4,
.school-awards-section p {
  margin: 0;
}

.school-executive-summary h4,
.school-awards-section h4 {
  margin-top: 5px;
  color: #071b4d;
  font-size: 1.12rem;
  line-height: 1.4;
}

.school-executive-summary p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.school-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.school-section-head > span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7e0;
  color: #7a4f01;
  border: 1px solid #eab308;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.award-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #d9a21b;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 162, 27, 0.58);
  box-shadow: 0 16px 34px rgba(217, 162, 27, 0.18);
}

.award-card-medal {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7e0;
  color: #7a4f01;
  border: 1px solid #eab308;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.award-card h5 {
  margin: 0 0 8px;
  color: #071b4d;
  font-size: 1rem;
}

.award-card strong {
  display: block;
  color: #071b4d;
}

.award-card p {
  margin: 8px 0;
  color: #475569;
  line-height: 1.45;
}

.award-card small {
  color: #64748b;
  font-weight: 800;
}

.award-certificate-link {
  margin-top: 12px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #071b4d;
  background: #ffffff;
  color: #071b4d;
  font-weight: 900;
  cursor: pointer;
}

.award-certificate-link:hover {
  background: #071b4d;
  color: #ffffff;
}

.school-summary-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.school-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 1000;
}

.school-summary-chip.green { background: #dcfce7; color: #166534; }
.school-summary-chip.amber { background: #fef3c7; color: #92400e; }
.school-summary-chip.red { background: #fee2e2; color: #991b1b; }
.school-summary-chip.blue { background: #dbeafe; color: #1e40af; }
.school-summary-chip.gold { background: #fef3c7; color: #713f12; border: 1px solid #f5b41b; }

.school-phase-progress-card,
.school-actions-panel,
.school-risk-summary {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.school-large-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 14px;
}

.school-large-progress-head h4,
.school-actions-panel h4,
.school-risk-summary h4 {
  margin: 0;
  color: #071b4d;
}

.school-large-progress-head strong {
  color: #071b4d;
  font-size: 2.5rem;
  line-height: 1;
}

.school-large-progress-track {
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.school-large-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5b41b, #16a34a);
}

.school-mini-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.school-action-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.school-action-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #071b4d;
  font-weight: 800;
}

.school-risk-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.school-risk-summary p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.4;
}

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

.school-risk-grid article {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.school-risk-grid article.green { border-left: 5px solid #16a34a; }
.school-risk-grid article.amber { border-left: 5px solid #f59e0b; }
.school-risk-grid article.red { border-left: 5px solid #dc2626; }
.school-risk-grid article.blue { border-left: 5px solid #60a5fa; }

.school-risk-grid span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-risk-grid strong {
  display: block;
  margin-top: 6px;
  color: #071b4d;
  font-size: 1.25rem;
}

.school-learner-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: 24px;
}

.school-learner-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #071b4d;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.school-learner-card.green { border-top-color: #16a34a; }
.school-learner-card.amber { border-top-color: #f59e0b; }
.school-learner-card.red,
.school-learner-card.redamber { border-top-color: #dc2626; }
.school-learner-card.blue { border-top-color: #60a5fa; }
.school-learner-card.gold { border-top-color: #f5b41b; }

.school-learner-top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  position: relative;
}

.school-learner-top .learner-avatar,
.school-learner-top .learner-photo,
.school-snapshot-head .learner-avatar,
.school-snapshot-head .learner-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #071b4d;
  object-fit: cover;
  background: #eef2ff;
  color: #071b4d;
  font-weight: 1000;
}

.school-learner-top .learner-avatar,
.school-learner-top .learner-photo {
  width: 84px;
  height: 84px;
  border-width: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.school-learner-top h4 {
  margin: 0 0 4px;
  color: #071b4d;
  font-size: 1.15rem;
}

.school-learner-top p {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.school-rag-badge {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-rag-badge.green { background: #dcfce7; color: #166534; }
.school-rag-badge.amber { background: #fef3c7; color: #92400e; }
.school-rag-badge.red,
.school-rag-badge.redamber { background: #fee2e2; color: #991b1b; }
.school-rag-badge.blue { background: #dbeafe; color: #1e40af; }
.school-rag-badge.gold { background: #fef3c7; color: #713f12; border: 1px solid #f5b41b; }

.award-badge {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7e0;
  color: #7a4f01;
  border: 1px solid #eab308;
}

.award-badge span {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.award-badge strong {
  font-size: 0.88rem;
}

.school-card-metrics {
  display: grid;
  gap: 12px;
}

.school-phase-journey {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 1000;
}

.school-phase-journey .active {
  color: #071b4d;
}

.school-metric-bar {
  display: grid;
  gap: 6px;
}

.school-metric-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 900;
}

.school-progress-track {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.school-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #071b4d;
}

.school-metric-bar.green .school-progress-track i { background: #16a34a; }
.school-metric-bar.amber .school-progress-track i { background: #f59e0b; }
.school-metric-bar.red .school-progress-track i { background: #dc2626; }

.school-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.school-status-chip em {
  color: inherit;
  font-style: normal;
  opacity: 0.72;
}

.school-status-chip.green { background: #dcfce7; color: #166534; }
.school-status-chip.amber { background: #fef3c7; color: #92400e; }
.school-status-chip.red { background: #fee2e2; color: #991b1b; }
.school-status-chip.blue { background: #dbeafe; color: #1e40af; }
.school-status-chip.muted { background: #f1f5f9; color: #64748b; }

.school-tutor-note {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.school-tutor-note span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-tutor-note p {
  margin: 6px 0 0;
  color: #071b4d;
  font-weight: 800;
  line-height: 1.4;
}

.school-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.school-card-actions button {
  flex: 1 1 150px;
  min-height: 38px;
  border-color: #071b4d;
  color: #071b4d;
  background: #ffffff;
  font-size: 0.82rem;
}

.school-card-actions button:hover {
  background: #071b4d;
  color: #ffffff;
}

.snapshot-awards-list {
  display: grid;
  gap: 10px;
}

.snapshot-awards-list article {
  padding: 12px;
  border-radius: 12px;
  background: #fff7e0;
  border: 1px solid #eab308;
}

.snapshot-awards-list strong,
.snapshot-awards-list span {
  color: #7a4f01;
}

.snapshot-awards-list p {
  margin: 5px 0;
}

.certificate-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 54, 0.68);
}

.certificate-preview-modal {
  width: min(1080px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(4, 18, 54, 0.36);
}

.certificate-preview-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.certificate-preview-modal > header h3,
.certificate-preview-modal > header p {
  margin: 0;
}

.certificate-preview-modal > header h3 {
  color: #071b4d;
}

.certificate-preview-modal > header button,
.modal-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #071b4d;
  background: #ffffff;
  color: #071b4d;
  font-weight: 900;
  cursor: pointer;
}

.certificate-preview-modal > header button:hover,
.modal-actions button:hover {
  background: #071b4d;
  color: #ffffff;
}

.certificate-preview {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 1.414 / 1;
  margin: 0 auto;
  background: #ffffff;
  border: 8px solid #071b4d;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.certificate-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px solid #d9a21b;
  border-radius: 8px;
  pointer-events: none;
}

.certificate-preview-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.certificate-preview-top,
.certificate-preview-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.certificate-preview-logo,
.certificate-preview-medal {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  color: #071b4d;
  font-weight: 1000;
  text-transform: uppercase;
}

.certificate-preview-medal {
  border-color: #d9a21b;
  background: #fff7e0;
  color: #7a4f01;
}

.certificate-standard {
  margin: 14px 0 0;
  color: #d9a21b;
  text-align: center;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.certificate-title {
  font-size: 42px;
  font-weight: 900;
  color: #071b4d;
  text-transform: uppercase;
  text-align: center;
  margin: 12px 0 10px;
}

.certificate-presented-label {
  margin: 6px 0;
  text-align: center;
  color: #475569;
  font-weight: 800;
}

.certificate-name {
  font-size: 52px;
  font-weight: 900;
  color: #071b4d;
  text-align: center;
  margin: 10px 0 6px;
  line-height: 1;
}

.certificate-meta-line {
  margin: 0 0 10px;
  text-align: center;
  color: #64748b;
  font-weight: 900;
}

.certificate-award {
  font-size: 30px;
  font-weight: 800;
  color: #d9a21b;
  text-align: center;
  margin: 4px 0 10px;
}

.certificate-recognition,
.certificate-reason {
  font-size: 18px;
  color: #334155;
  text-align: center;
  max-width: 760px;
  margin: 8px auto;
}

.certificate-preview-footer {
  margin-top: auto;
}

.certificate-preview-footer > div {
  min-width: 220px;
  text-align: center;
}

.certificate-preview-footer span {
  display: block;
  height: 1px;
  margin: 0 0 8px;
  background: #071b4d;
}

.certificate-preview-footer strong,
.certificate-preview-footer small {
  display: block;
  color: #071b4d;
}

.certificate-footer-line {
  margin: 14px 0 0;
  color: #071b4d;
  text-align: center;
  font-weight: 1000;
}

.uploaded-certificate-preview {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.school-snapshot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 54, 0.62);
}

.school-snapshot-modal {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(4, 18, 54, 0.35);
}

.school-snapshot-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #071b4d;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.school-snapshot-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 92px;
}

.school-snapshot-head h3 {
  margin: 4px 0;
  color: #071b4d;
}

.school-snapshot-head p {
  margin: 0;
}

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

.school-snapshot-grid article {
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.school-snapshot-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.school-snapshot-grid strong {
  display: block;
  margin-top: 4px;
  color: #071b4d;
  font-size: 1.25rem;
}

.school-snapshot-copy h4 {
  margin: 16px 0 5px;
  color: #071b4d;
}

.school-snapshot-copy p {
  margin: 0;
  color: #334155;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .school-cohort-hero {
    grid-template-columns: 1fr;
  }

  .school-identity-panel,
  .school-readiness-panel {
    grid-template-columns: 1fr;
  }

  .school-identity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-dashboard-header {
    align-items: center;
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .school-dashboard-title {
    text-align: center;
  }

  .school-cohort-hero .partner-logo-card {
    width: fit-content;
    max-width: min(178px, 100%);
    height: auto;
  }

  .school-cohort-hero .partner-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 154px;
  }

  .school-learner-search-panel,
  .school-cohort-filter,
  .school-learner-search {
    width: 100%;
  }

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

  .school-executive-kpi {
    min-height: 132px;
  }

  .school-learner-row-card {
    grid-template-columns: 1fr;
  }

  .school-learner-main-head {
    grid-template-columns: 1fr;
  }

  .journey-employment-header,
  .journey-employment-body {
    grid-template-columns: 1fr;
  }

  .journey-figure {
    min-height: 136px;
  }

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

  .journey-pathway-line {
    display: none;
  }

  .journey-insight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-road-hero {
    grid-template-columns: 1fr;
  }

  .journey-premium-header {
    grid-template-columns: 1fr;
  }

  .journey-header-status {
    max-width: 420px;
  }

  .journey-learner-panel {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .journey-road-stage {
    min-height: 380px;
  }

  .journey-phase-marker {
    width: clamp(92px, 16vw, 118px);
  }

  .journey-phase-panel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-value-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-value-strip ul {
    justify-content: flex-start;
  }

  .school-learner-info-panel {
    grid-template-columns: 1fr;
  }

  .school-learner-supporting-grid,
  .school-rag-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-learner-row-card {
    align-items: stretch;
  }

  .school-learner-profile-section {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
  }

  .school-learner-photo-wrap {
    width: clamp(220px, 54vw, 280px);
    height: clamp(220px, 54vw, 280px);
    min-width: clamp(220px, 54vw, 280px);
  }

  .school-progress-meta-grid {
    grid-template-columns: 1fr;
  }

  .school-summary-grid,
  .school-access-badges {
    grid-template-columns: 1fr;
  }

  .school-progress-actions,
  .school-risk-summary {
    grid-template-columns: 1fr;
  }

  .school-risk-grid,
  .school-mini-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .school-ilp-grid {
    grid-template-columns: 1fr;
  }

  .school-ilp-card-wide {
    grid-column: auto;
  }

  .school-ilp-hero,
  .school-ilp-readiness-card {
    grid-template-columns: 1fr;
  }

  .school-ilp-hero-action {
    justify-items: start;
  }

  .school-ilp-metric-grid,
  .school-ilp-unit-grid,
  .school-ilp-summary-grid,
  .school-ilp-insight-grid {
    grid-template-columns: 1fr;
  }

  .school-ilp-chart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .school-cohort-summary-strip {
    grid-template-columns: 1fr;
  }

  .school-learner-supporting-grid {
    grid-template-columns: 1fr;
  }

  .school-rag-strip,
  .school-card-action-row,
  .journey-phase-grid,
  .journey-insight-row,
  .journey-insight-strip {
    grid-template-columns: 1fr;
  }

  .journey-employment-frame,
  .journey-employment-header {
    border-radius: 24px;
  }

  .journey-road-card,
  .journey-learner-panel,
  .journey-road-stage {
    border-radius: 24px;
  }

  .journey-phase-card {
    min-height: 0;
  }

  .journey-premium-header,
  .journey-header-status,
  .journey-learner-panel,
  .journey-phase-panel-row {
    grid-template-columns: 1fr;
  }

  .journey-title-block h3 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .journey-header-status {
    max-width: none;
  }

  .journey-progress-ring {
    width: 108px;
    height: 108px;
  }

  .journey-road-stage {
    display: none;
  }

  .journey-road-svg,
  .journey-progress-pin,
  .journey-total-badge {
    display: none;
  }

  .journey-marker-layer {
    position: relative;
    display: grid;
    gap: 12px;
  }

  .journey-phase-marker {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 124px;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 12px;
    justify-items: start;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(7, 27, 77, 0.08);
    border-radius: 18px;
    background: #ffffff;
    text-align: left;
    transform: none;
    box-shadow: 0 10px 22px rgba(7, 27, 77, 0.07);
  }

  .journey-phase-marker:hover,
  .journey-phase-marker:focus-visible,
  .journey-phase-marker.is-selected {
    transform: translateY(-2px);
  }

  .journey-marker-number,
  .journey-marker-icon {
    grid-row: 1 / span 4;
  }

  .journey-marker-connector {
    display: none;
  }

  .journey-phase-marker strong,
  .journey-phase-marker em,
  .journey-phase-marker small {
    grid-column: 3;
  }

  .school-executive-kpi {
    min-height: 116px;
  }

  .school-learner-row-card {
    padding: 18px;
    border-radius: 24px;
  }

  .school-learner-photo-wrap {
    width: min(78vw, 260px);
    height: min(78vw, 260px);
    min-width: min(78vw, 260px);
  }

  .school-learner-row-card strong {
    font-size: 1.62rem;
  }

  .school-learner-card-grid {
    grid-template-columns: 1fr;
  }

  .school-ilp-modal-overlay {
    padding: 12px;
    place-items: start center;
  }

  .school-ilp-modal {
    border-radius: 22px;
  }

  .school-ilp-close {
    position: static;
    justify-self: end;
    margin: 12px 12px 0 0;
  }

  .school-ilp-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 18px;
    border-radius: 0;
  }

  .school-ilp-hero {
    padding: 20px;
  }

  .school-ilp-hero-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .school-ilp-hero-action {
    justify-items: stretch;
  }

  .school-ilp-hero-action .school-ilp-close {
    width: 100%;
  }

  .school-ilp-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .school-identity-main {
    flex-direction: column;
    text-align: center;
  }

  .school-identity-stats {
    grid-template-columns: 1fr;
  }

  .school-risk-grid,
  .school-mini-progress-grid {
    grid-template-columns: 1fr;
  }
}

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

.guidance-grid article {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.guidance-grid span {
  display: block;
  margin-bottom: 8px;
  color: #0B1F4D;
  font-weight: 1000;
  text-transform: uppercase;
}

.record-intervention-form label {
  display: grid;
  gap: 7px;
  color: #0B1F4D;
  font-weight: 900;
}

.record-intervention-form input,
.record-intervention-form select,
.record-intervention-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.record-intervention-form textarea {
  min-height: 92px;
  resize: vertical;
}

.record-intervention-form .form-wide {
  grid-column: 1 / -1;
}

.intervention-save-button {
  min-width: min(260px, 100%);
}

.intervention-save-button.is-saving {
  opacity: 0.75;
  cursor: wait;
}

.intervention-save-button.is-saved {
  background: #18A558;
  border-color: #18A558;
  color: #ffffff;
}

.intervention-save-button.is-failed {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
}

.intervention-save-button.has-unsaved-changes {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.intervention-save-feedback {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 900;
}

.intervention-save-feedback.success {
  color: #137a3f;
}

.intervention-save-feedback.error {
  color: #b42318;
}

.intervention-save-feedback.unsaved {
  color: #9b6b00;
}

.elite-intervention-page {
  max-width: 1280px;
  margin: 0 auto;
}

.elite-intervention-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  padding: 30px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  box-shadow: 0 20px 44px rgba(11, 31, 77, 0.18);
}

.elite-intervention-hero.amber {
  background: linear-gradient(135deg, #0B1F4D 0%, #173B75 70%, #8a6209 100%);
}

.elite-intervention-hero.red {
  background: linear-gradient(135deg, #0B1F4D 0%, #173B75 62%, #8f1f1f 100%);
}

.elite-learner-lockup {
  display: flex;
  gap: 18px;
  align-items: center;
}

.elite-learner-lockup .learner-avatar.large {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border: 4px solid #ffffff;
  outline: 3px solid #F2B632;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.elite-intervention-hero h3 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.elite-intervention-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.elite-intervention-meta > span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.elite-intervention-meta strong {
  color: #ffffff;
  font-size: 1.12rem;
}

.elite-intervention-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stage-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.elite-summary-strip article {
  min-height: 132px;
  border-top: 5px solid #d8e1ec;
}

.elite-summary-strip article.amber {
  border-top-color: #F2B632;
  background: #fff8df;
}

.elite-summary-strip article.red {
  border-top-color: #d32f2f;
  background: #fff0f0;
}

.elite-summary-strip article.blue {
  border-top-color: #1b6bc4;
  background: #eef6ff;
}

.elite-summary-strip article.green {
  border-top-color: #18A558;
  background: #e8f8ef;
}

.elite-summary-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.intervention-pathway-card,
.next-step-panel,
.intervention-action-panel {
  padding: 20px;
  border: 1px solid rgba(15, 35, 63, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 63, 0.07);
}

.intervention-pathway {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.intervention-pathway article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f7f9fc;
  color: #64748b;
  text-align: center;
}

.intervention-pathway article::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  color: #94a3b8;
  font-weight: 1000;
  transform: translateY(-50%);
}

.intervention-pathway article:last-child::after {
  display: none;
}

.intervention-pathway span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0B1F4D;
  font-weight: 1000;
}

.intervention-pathway strong {
  color: inherit;
  font-size: 0.84rem;
}

.intervention-pathway article.complete {
  border-color: rgba(24, 165, 88, 0.28);
  background: #e8f8ef;
  color: #137a3f;
}

.intervention-pathway article.complete span {
  background: #18A558;
  color: #ffffff;
}

.intervention-pathway article.active {
  border-color: rgba(242, 182, 50, 0.65);
  background: linear-gradient(135deg, #F2B632, #ffe08a);
  color: #0B1F4D;
  box-shadow: 0 12px 24px rgba(242, 182, 50, 0.24);
}

.intervention-pathway article.active span {
  background: #0B1F4D;
  color: #ffffff;
}

.intervention-evidence-timeline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.intervention-evidence-timeline article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-left: 5px solid #F2B632;
  border-radius: 16px;
  background: #fbfdff;
}

.intervention-evidence-timeline span {
  color: #0B1F4D;
  font-weight: 1000;
}

.intervention-evidence-timeline strong {
  color: #0B1F4D;
}

.intervention-evidence-timeline p,
.intervention-evidence-timeline small {
  margin: 0;
  color: #526172;
  line-height: 1.4;
}

.elite-guidance-card {
  padding: 22px;
  border: 1px solid rgba(242, 182, 50, 0.32);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.08);
}

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

.elite-guidance-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 154px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 77, 0.08);
}

.elite-guidance-grid .why-card,
.elite-guidance-grid .script-card {
  grid-column: span 2;
}

.elite-guidance-grid span {
  color: #0B1F4D;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.elite-guidance-grid p,
.elite-guidance-grid li,
.elite-guidance-grid blockquote {
  margin: 0;
  color: #334257;
  line-height: 1.48;
}

.elite-guidance-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.elite-guidance-grid blockquote {
  padding: 14px 16px;
  border-left: 5px solid #F2B632;
  border-radius: 12px;
  background: #fff8df;
  font-size: 1rem;
  font-weight: 700;
}

.next-step-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.next-step-panel h4,
.next-step-panel p {
  margin: 0;
}

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

.next-step-grid article {
  padding: 16px;
  border-radius: 16px;
}

.next-step-grid article.green {
  background: #e8f8ef;
  border: 1px solid rgba(24, 165, 88, 0.25);
}

.next-step-grid article.red {
  background: #fff0f0;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.next-step-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #0B1F4D;
}

.intervention-action-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
  gap: 18px;
  align-items: center;
  border-left: 8px solid #F2B632;
}

.intervention-action-panel.overdue {
  border-left-color: #d32f2f;
  background: #fff8f8;
}

.intervention-action-panel h4,
.intervention-action-panel p {
  margin: 0;
}

.intervention-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.intervention-action-buttons a {
  text-decoration: none;
}

.intervention-score-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.intervention-score-head,
.intervention-score-table article {
  display: grid;
  grid-template-columns: 90px minmax(220px, 1.2fr) 96px 96px 116px 104px minmax(190px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 980px;
}

.intervention-score-head {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.intervention-score-table article {
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fbfdff;
}

.intervention-score-table strong,
.intervention-score-table p {
  margin: 0;
  color: #334257;
}

.score-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0B1F4D;
  font-size: 0.74rem;
  font-weight: 1000;
}

.score-badge.gold {
  background: #fff2bd;
  color: #7a5600;
}

.score-badge.silver {
  background: #eef2f6;
  color: #3e5165;
}

.score-badge.bronze,
.score-badge.late {
  background: #fff0f0;
  color: #9f1d1d;
}

.score-badge.on-time {
  background: #e8f8ef;
  color: #137a3f;
}

.management-dashboard-page {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.management-title {
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0B1F4D, #142d66);
  color: #ffffff;
}

.management-title h4,
.management-title p {
  margin: 0;
}

.management-title h4 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.management-title .eyebrow {
  color: var(--gold);
}

.management-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

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

.management-workflow-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.08);
}

.management-workflow-strip span {
  grid-row: span 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 1000;
}

.management-workflow-strip strong {
  color: var(--navy);
  font-size: 1rem;
}

.management-workflow-strip p {
  margin: 0;
  color: #53627a;
  font-weight: 800;
}

.management-summary-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  background: #ffffff;
  color: var(--navy);
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.08);
  cursor: pointer;
}

.management-summary-card span {
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.management-summary-card strong {
  font-size: 2.2rem;
  line-height: 1;
}

.management-summary-card small {
  color: #53627a;
  font-weight: 800;
  line-height: 1.35;
}

.management-summary-card.green { border-left: 7px solid #18A558; }
.management-summary-card.amber,
.management-summary-card.support { border-left: 7px solid var(--gold); }
.management-summary-card.notice,
.management-summary-card.meeting,
.management-summary-card.failed,
.management-summary-card.review,
.management-summary-card.overdue { border-left: 7px solid #dc4c4c; }
.management-summary-card.incident { border-left: 7px solid #b91c1c; }
.management-summary-card.high { border-left: 7px solid #8b1111; }
.management-summary-card.marking { border-left: 7px solid #2478d4; }
.management-summary-card.safeguarding { border-left: 7px solid #6c1b72; }

.management-summary-card.active {
  background: var(--gold);
  border-color: rgba(242, 182, 50, 0.75);
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.2), 0 12px 30px rgba(15, 35, 63, 0.08);
}

.create-admin-tool-card,
.create-admin-account-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dfe7f1;
  border-left: 7px solid var(--gold);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.08);
}

.create-admin-tool-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.create-admin-tool-card h4,
.create-admin-tool-card p {
  margin: 0;
}

.create-admin-tool-card h4 {
  color: var(--navy);
  font-size: 1.35rem;
}

.create-admin-tool-card p {
  color: #53627a;
  font-weight: 800;
}

.create-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2px;
}

.create-admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.create-admin-form-grid input,
.create-admin-form-grid select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.create-tutor-photo-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
  margin: 4px 0 8px;
  padding: 24px;
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 13rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 18px 40px rgba(15, 35, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.create-tutor-photo-preview {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  min-width: 132px;
  overflow: hidden;
  border: 5px solid #f2b632;
  border-radius: 999px;
  background: linear-gradient(135deg, #071b4d 0%, #12306b 100%);
  color: #f8d45c;
  font-size: 2.35rem;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow:
    0 20px 38px rgba(7, 27, 77, 0.2),
    0 0 0 8px rgba(242, 182, 50, 0.12);
}

.create-tutor-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-tutor-photo-panel h5,
.create-tutor-photo-panel p,
.create-tutor-photo-panel small {
  margin: 0;
}

.create-tutor-photo-panel h5 {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 1000;
  line-height: 1.15;
}

.create-tutor-photo-panel p,
.create-tutor-photo-panel small {
  color: #53627a;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

.create-tutor-photo-panel > div:last-child {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: center;
}

.create-tutor-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.create-tutor-photo-actions .secondary-action {
  display: inline-flex;
  width: auto;
  min-width: 128px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.create-tutor-photo-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.management-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.management-filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 900;
}

.management-filter-panel select {
  min-height: 42px;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  padding: 8px 10px;
}

.cohort-intelligence-centre {
  max-width: 1360px;
}

.cohort-intelligence-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.16), transparent 17rem),
    linear-gradient(135deg, #071b4d 0%, #123b86 100%);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(7, 27, 77, 0.2);
}

.cohort-intelligence-hero h4,
.cohort-intelligence-hero p {
  margin: 0;
}

.cohort-intelligence-hero h4 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.cohort-intelligence-hero .eyebrow {
  color: var(--gold);
}

.cohort-intelligence-hero p:not(.eyebrow) {
  color: #d7e3ee;
  font-weight: 800;
}

.cohort-intelligence-controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.cohort-intelligence-controls label {
  display: grid;
  gap: 7px;
  color: #f2d77d;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.cohort-intelligence-controls select {
  min-height: 44px;
  border: 2px solid rgba(242, 182, 50, 0.75);
  border-radius: 14px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
}

.executive-intelligence-report {
  display: block;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1.5px solid rgba(217, 174, 43, 0.85);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 175, 55, 0.14), transparent 16rem),
    linear-gradient(135deg, #041235 0%, #071b4d 52%, #0a2a66 100%);
  color: #f8fbff;
  box-shadow:
    0 24px 54px rgba(6, 26, 73, 0.24),
    0 0 0 1px rgba(212, 175, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.executive-intelligence-header {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 44px);
  align-items: center;
}

.executive-logo-column {
  display: grid;
  place-items: center start;
}

.partner-logo-tile {
  display: grid;
  width: fit-content;
  max-width: 210px;
  min-width: 178px;
  min-height: 96px;
  place-items: center;
  padding: 8px 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.partner-logo-tile img {
  display: block;
  width: 100%;
  max-width: 188px;
  max-height: 82px;
  object-fit: contain;
}

.executive-logo-tile {
  width: 170px;
  height: 170px;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  border: 2px solid #d9ae2b;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 16px 34px rgba(6, 26, 73, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.executive-logo-tile img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.executive-briefing-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.executive-briefing-copy p {
  margin: 0;
  color: #d4af37;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.executive-briefing-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 1000;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.executive-briefing-copy span {
  display: block;
  color: #c9d6e8;
  font-size: 0.96rem;
  font-weight: 780;
}

.executive-briefing-copy strong {
  display: block;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(1.14rem, 1.9vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.26;
}

.executive-briefing-copy em {
  display: block;
  color: #dbe7f7;
  font-size: 1rem;
  font-style: normal;
  font-weight: 760;
}

.risk-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.risk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  background: #fff8e8;
  color: #765600;
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
}

.cohort-intelligence-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.cohort-intelligence-kpi {
  width: 100%;
  border-width: 1px;
  text-align: left;
  cursor: pointer;
}

.cohort-intelligence-kpi.active {
  outline: 3px solid rgba(242, 182, 50, 0.36);
  border-color: var(--gold);
}

.cohort-performance-pillars {
  display: grid;
  gap: 20px;
}

.cohort-pillar-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cohort-pillar-status-bar__item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 2.25rem 1.15rem 1rem;
  border: 1.5px solid rgba(217, 174, 43, 0.85);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(135deg, #061a49 0%, #0b2b66 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(6, 26, 73, 0.2);
}

.cohort-pillar-status-bar__item::before {
  content: attr(data-status-label);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
  color: #061a49;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.cohort-pillar-status-bar__item--success::before {
  background: linear-gradient(90deg, #8ce6a4 0%, #56c271 100%);
}

.cohort-pillar-status-bar__item--warning::before {
  background: linear-gradient(90deg, #ffd79a 0%, #f5a623 100%);
}

.cohort-pillar-status-bar__item--danger::before {
  background: linear-gradient(90deg, #f7a3a3 0%, #e05656 100%);
}

.cohort-pillar-status-bar__item--neutral::before {
  background: linear-gradient(90deg, #bfdbfe 0%, #93c5fd 100%);
}

.cohort-pillar-status-bar__item strong,
.cohort-pillar-status-bar__item span,
.cohort-pillar-status-bar__item em,
.cohort-pillar-status-bar__item small,
.cohort-pillar-status-bar__item time {
  display: block;
}

.cohort-pillar-status-bar__pillar {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.15;
  font-weight: 900;
}

.cohort-pillar-status-bar__eyebrow {
  margin: 0 0 0.2rem;
  color: #d9ae2b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cohort-pillar-status-bar__meta,
.cohort-pillar-status-bar__updated {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.28;
  font-weight: 800;
}

.cohort-pillar-status-bar__updated {
  color: rgba(255, 255, 255, 0.68);
}

.cohort-performance-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cohort-performance-pillar-card {
  display: grid;
  gap: 24px;
  align-content: space-between;
  min-width: 0;
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-top: 5px solid rgba(212, 175, 55, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 12rem),
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.14), transparent 10rem),
    linear-gradient(145deg, #0b3275 0%, #071b4d 58%, #041235 100%);
  color: #ffffff;
  box-shadow:
    0 26px 56px rgba(3, 18, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cohort-performance-pillar-card.awaiting-evidence {
  border-color: rgba(147, 197, 253, 0.72);
  border-top-color: #93c5fd;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 12rem),
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.16), transparent 10rem),
    linear-gradient(145deg, #12366f 0%, #0b2454 58%, #061842 100%);
}

.cohort-performance-pillar-card__top {
  display: grid;
  gap: 14px;
}

.cohort-performance-pillar-card h5,
.cohort-performance-pillar-card p {
  margin: 0;
}

.cohort-performance-pillar-card h5 {
  color: #ffffff;
  font-size: clamp(1.22rem, 1.8vw, 1.58rem);
  font-weight: 1000;
  line-height: 1.1;
}

.cohort-performance-pillar-card p {
  color: #dbe7f7;
  font-weight: 620;
  line-height: 1.58;
}

.pillar-rag {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pillar-rag.green {
  background: rgba(22, 163, 74, 0.2);
  color: #d1fae5;
}

.pillar-rag.amber {
  background: rgba(212, 175, 55, 0.2);
  color: #f7d774;
}

.pillar-rag.red {
  background: rgba(220, 38, 38, 0.18);
  color: #fee2e2;
}

.pillar-rag.data-developing {
  border: 1px dashed rgba(212, 175, 55, 0.48);
  color: #f7d774;
}

.pillar-rag.awaiting-evidence {
  background: rgba(147, 197, 253, 0.18);
  color: #dbeafe;
}

.cohort-performance-pillar-card__route {
  display: grid;
  gap: 8px;
}

.cohort-performance-pillar-card__route span {
  color: #d4af37;
  font-size: 0.64rem;
  font-weight: 880;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cohort-performance-pillar-card__route {
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  color: #c9d6e8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cohort-performance-pillar-card .primary-action {
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.88);
  background: #d4af37;
  color: #071b4d;
  font-weight: 1000;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cohort-performance-pillar-card .primary-action:hover,
.cohort-performance-pillar-card .primary-action:focus-visible {
  transform: translateY(-1px);
  border-color: #f7d774;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(247, 215, 116, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cohort-pillar-placeholder {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.14), transparent 14rem),
    linear-gradient(135deg, #071b4d 0%, #0a2a66 100%);
  color: #ffffff;
  box-shadow: 0 24px 58px rgba(7, 27, 77, 0.22);
}

.cohort-pillar-placeholder h4,
.cohort-pillar-placeholder p {
  margin: 0;
}

.cohort-pillar-placeholder h4 {
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.cohort-pillar-placeholder p {
  color: #dbe7f7;
  font-weight: 800;
}

.cohort-pillar-placeholder__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cohort-pillar-placeholder__summary strong {
  color: #ffffff;
}

.theory-knowledge-view {
  gap: 22px;
}

.theory-knowledge-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 30px;
  background:
    radial-gradient(circle at 94% 8%, rgba(212, 175, 55, 0.16), transparent 14rem),
    linear-gradient(135deg, #041235 0%, #071b4d 48%, #0a2a66 100%);
  color: #ffffff;
  box-shadow:
    0 30px 72px rgba(3, 18, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theory-knowledge-hero h4,
.theory-knowledge-hero p,
.theory-knowledge-hero dl {
  margin: 0;
}

.theory-knowledge-hero h4 {
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.theory-knowledge-hero p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 14px;
  color: #dbe7f7;
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.5;
}

.theory-knowledge-hero strong,
.theory-knowledge-hero span {
  display: block;
}

.theory-knowledge-identity-row {
  margin-top: 0;
}

.theory-knowledge-identity {
  min-width: 0;
}

.theory-knowledge-identity strong {
  color: #f7d774;
  font-size: 1rem;
  font-weight: 900;
}

.theory-knowledge-identity span {
  margin-top: 3px;
  color: #c9d6e8;
  font-weight: 760;
}

.theory-cohort-status-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 20px;
  color: #071b4d;
  box-shadow:
    0 16px 30px rgba(3, 18, 58, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theory-hero__status-inline {
  max-width: 300px;
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.theory-cohort-status-card.success {
  background: linear-gradient(180deg, #f1fff4 0%, #e4f7ea 100%);
  border-color: rgba(48, 128, 78, 0.28);
}

.theory-cohort-status-card.warning {
  background: linear-gradient(180deg, #fff8eb 0%, #fff0d6 100%);
  border-color: rgba(196, 126, 31, 0.3);
}

.theory-cohort-status-card.danger {
  background: linear-gradient(180deg, #fff2f2 0%, #ffe2e2 100%);
  border-color: rgba(181, 60, 60, 0.3);
}

.theory-cohort-status-card span {
  color: #a77a1a;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theory-cohort-status-card strong {
  color: #071b4d;
  font-size: clamp(1.1rem, 1.9vw, 1.38rem);
  font-weight: 1000;
  line-height: 1.05;
}

.theory-cohort-status-card em,
.theory-cohort-status-card small {
  color: #335172;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
}

.theory-cohort-status-card small {
  color: #64748b;
  font-size: 0.7rem;
}

.theory-knowledge-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.theory-knowledge-hero dl div,
.theory-lesson-detail-panel article,
.theory-detail-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.theory-knowledge-hero dl div {
  min-height: 135px;
  align-content: start;
  padding: 1.05rem 1.15rem;
}

.theory-knowledge-hero dt,
.theory-lesson-detail-panel article span,
.theory-detail-grid span,
.theory-evidence-chain span {
  color: #d4af37;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theory-knowledge-hero dd,
.theory-lesson-detail-panel article strong,
.theory-detail-grid strong,
.theory-evidence-chain strong {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 920;
  line-height: 1.18;
}

.theory-knowledge-hero dd {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.theory-knowledge-view .theory-knowledge-hero dl div {
  border: 2px solid var(--tfe-button-gold-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    inset 0 0 22px rgba(255, 220, 128, 0.08),
    0 18px 36px rgba(7, 27, 77, 0.24),
    0 2px 0 rgba(216, 154, 19, 0.28);
}

.theory-knowledge-view .theory-knowledge-hero dt {
  color: #f7d774;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.theory-knowledge-view .theory-knowledge-hero dd {
  color: #ffffff;
  font-size: clamp(1.2rem, 1.55vw, 1.48rem);
  line-height: 1.15;
  overflow-wrap: normal;
  text-wrap: balance;
}

.theory-knowledge-view .theory-knowledge-hero dl div:nth-of-type(2) dd {
  font-size: clamp(1rem, 1.24vw, 1.16rem);
  line-height: 1.22;
}

.theory-knowledge-school-action {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
}

.theory-knowledge-view .theory-knowledge-hero dl .theory-knowledge-school-action {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.school-cohort-ilp-overview-button {
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  border: 1.5px solid #d4af37;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #071b4d;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 169, 0.35),
    0 16px 34px rgba(3, 18, 58, 0.26);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.school-cohort-ilp-overview-button:hover,
.school-cohort-ilp-overview-button:focus-visible {
  transform: translateY(-1px);
  border-color: #f7d774;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 169, 0.5),
    0 20px 42px rgba(3, 18, 58, 0.32),
    0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

.cohort-ilp-overview {
  display: grid;
  gap: 20px;
}

.cohort-ilp-overview-header {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 24px;
  background: linear-gradient(135deg, #071b4d 0%, #0a2a66 100%);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(3, 18, 58, 0.22);
}

.cohort-ilp-overview-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #d4af37 0%, #f5d76e 52%, #d4af37 100%);
}

.cohort-ilp-overview-header > div {
  position: relative;
  z-index: 1;
}

.cohort-ilp-overview-header h4,
.cohort-ilp-overview-header p {
  margin: 0;
}

.cohort-ilp-overview-header h4 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.cohort-ilp-overview-header p:not(.eyebrow) {
  color: #dbe7f7;
  font-weight: 780;
  line-height: 1.48;
}

.cohort-ilp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  box-shadow: 0 16px 38px rgba(7, 27, 77, 0.1);
}

.cohort-ilp-summary-grid article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-top: 4px solid #d4af37;
  border-radius: 16px;
  background: #ffffff;
}

.cohort-ilp-summary-grid span,
.cohort-ilp-learner-card span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cohort-ilp-summary-grid strong {
  color: #071b4d;
  font-size: 1.1rem;
  line-height: 1.15;
}

.cohort-ilp-overview .school-learner-search-panel {
  position: relative;
  overflow: hidden;
  gap: 14px;
  margin: 0;
  padding: clamp(18px, 2.4vw, 24px);
  border-color: rgba(212, 175, 55, 0.62);
  border-radius: 24px;
  background: linear-gradient(135deg, #061842 0%, #0a2a66 100%);
  box-shadow:
    0 20px 46px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cohort-ilp-overview .school-learner-search-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d4af37 0%, #f5d76e 52%, #d4af37 100%);
}

.cohort-ilp-overview .school-cohort-filter__label,
.cohort-ilp-overview .school-learner-search span {
  color: #ffffff;
}

.cohort-ilp-overview .school-cohort-filter__select,
.cohort-ilp-overview .school-learner-search input {
  border-color: #d4af37;
  background: #ffffff;
  color: #061842;
}

.cohort-ilp-overview .school-cohort-filter__select:focus,
.cohort-ilp-overview .school-learner-search input:focus {
  border-color: #f5d76e;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.cohort-ilp-overview .school-learner-search-count {
  color: rgba(255, 255, 255, 0.88);
}

.cohort-ilp-learner-list {
  display: grid;
  gap: 13px;
}

.cohort-ilp-learner-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(130px, 0.75fr) minmax(100px, 0.55fr) minmax(140px, 0.7fr) minmax(260px, 1.25fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-left: 7px solid #94a3b8;
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: 0 14px 32px rgba(7, 27, 77, 0.08);
}

.cohort-ilp-learner-card.at-risk {
  border-left-color: #dc4c4c;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.cohort-ilp-learner-card.monitoring {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.cohort-ilp-learner-card.on-track {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.cohort-ilp-learner-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cohort-ilp-learner-card strong {
  color: #071b4d;
  font-size: 0.95rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.cohort-ilp-learner-main strong {
  font-size: 1.05rem;
}

.cohort-ilp-status-cell {
  justify-items: start;
}

.cohort-ilp-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.cohort-ilp-action {
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid #d4af37;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #071b4d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.18), inset 0 1px 0 rgba(255, 236, 169, 0.32);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cohort-ilp-action.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    #123b86;
  box-shadow: 0 10px 20px rgba(7, 27, 77, 0.14), inset 0 1px 0 rgba(255, 236, 169, 0.24);
}

.cohort-ilp-action.secondary.at-risk,
.cohort-ilp-action.secondary.monitoring {
  background:
    linear-gradient(180deg, rgba(255, 236, 169, 0.16), rgba(255, 255, 255, 0)),
    #071b4d;
  border-color: #f7d774;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.22), 0 0 0 2px rgba(212, 175, 55, 0.14);
}

.cohort-ilp-action:hover,
.cohort-ilp-action:focus-visible {
  transform: translateY(-1px);
  border-color: #f7d774;
  box-shadow: 0 18px 34px rgba(7, 27, 77, 0.24), 0 0 0 3px rgba(212, 175, 55, 0.24);
  outline: none;
}

.cohort-ilp-action.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    #071b4d;
}

.cohort-ilp-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 1000;
}

.cohort-ilp-status-badge.at-risk {
  background: #ffe1e6;
  color: #9e1c1c;
}

.cohort-ilp-status-badge.monitoring {
  background: #ffedd5;
  color: #914b00;
}

.cohort-ilp-status-badge.on-track {
  background: #dcfce7;
  color: #0b6b35;
}

.cohort-ilp-status-cell small {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.cohort-ilp-support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(7, 27, 77, 0.62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.cohort-ilp-support-modal {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  box-shadow: 0 30px 90px rgba(7, 27, 77, 0.34);
}

.cohort-ilp-support-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #071b4d 0%, #123b86 100%);
  color: #ffffff;
}

.cohort-ilp-support-modal h4,
.cohort-ilp-support-modal p {
  margin: 0;
}

.cohort-ilp-support-modal h4 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.cohort-ilp-support-modal header span {
  color: #dbe7f7;
  font-weight: 850;
}

.cohort-ilp-modal-close {
  min-height: 40px;
  padding: 9px 15px;
  border: 1.5px solid #d4af37;
  border-radius: 14px;
  background: #071b4d;
  color: #ffffff;
  font-weight: 1000;
  cursor: pointer;
}

.cohort-ilp-modal-close:hover,
.cohort-ilp-modal-close:focus-visible {
  border-color: #f7d774;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.24);
  outline: none;
}

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

.cohort-ilp-support-body article,
.cohort-ilp-support-empty {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.cohort-ilp-support-wide {
  grid-column: 1 / -1;
}

.cohort-ilp-support-body span,
.cohort-ilp-support-empty span {
  color: #94640a;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cohort-ilp-support-body strong {
  color: #071b4d;
  line-height: 1.25;
}

.cohort-ilp-support-body ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-weight: 820;
  line-height: 1.42;
}

.cohort-ilp-support-body p,
.cohort-ilp-support-empty p,
.cohort-ilp-support-empty small {
  color: #475569;
  font-weight: 820;
  line-height: 1.45;
}

.cohort-ilp-support-empty {
  border-color: rgba(212, 175, 55, 0.34);
  background: #fffaf0;
}

.theory-knowledge-current-lesson {
  max-width: 560px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.theory-phase-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.theory-phase-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-radius: 20px;
  background: #ffffff;
  color: #071b4d;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(7, 27, 77, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theory-phase-card:hover,
.theory-phase-card:focus-visible,
.theory-phase-card.active {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 20px 42px rgba(7, 27, 77, 0.14);
}

.theory-phase-card.active {
  outline: 3px solid rgba(212, 175, 55, 0.34);
  outline-offset: 3px;
}

.theory-phase-card.current {
  background: linear-gradient(145deg, #0a2a66 0%, #071b4d 100%);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.8);
}

.theory-phase-card.completed {
  background: linear-gradient(145deg, #f1fff4 0%, #e8f8ec 100%);
  border-color: rgba(25, 135, 84, 0.28);
}

.theory-phase-card span,
.theory-phase-card em,
.theory-phase-card small {
  color: inherit;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  opacity: 0.78;
}

.theory-phase-card strong {
  color: inherit;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.15;
}

.theory-phase-card em {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: #8a6100;
  opacity: 1;
}

.theory-phase-card.current em {
  color: #f7d774;
}

.theory-lesson-map,
.theory-lesson-detail-panel,
.theory-support-panel,
.theory-evidence-chain {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(7, 27, 77, 0.08);
}

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

.theory-lesson-tile {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(10, 42, 102, 0.12);
  border-radius: 20px;
  background: #f8fbff;
  color: #071b4d;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theory-lesson-tile:hover,
.theory-lesson-tile:focus-visible,
.theory-lesson-tile.active {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.12);
}

.theory-lesson-tile strong,
.theory-lesson-tile h5,
.theory-lesson-tile p,
.theory-lesson-tile small,
.theory-lesson-tile em {
  margin: 0;
}

.theory-lesson-tile h5 {
  color: #071b4d;
  font-size: 1.08rem;
  font-weight: 1000;
}

.theory-lesson-tile p {
  color: #53627a;
  font-weight: 680;
  line-height: 1.45;
}

.theory-lesson-tile small,
.theory-lesson-tile em {
  color: #65748a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.theory-status-badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #174ea6;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theory-status-badge.completed { background: #def8e8; color: #0b6b35; }
.theory-status-badge.current { background: #fff2c7; color: #8a5b00; }
.theory-status-badge.overdue { background: #ffe1e1; color: #9e1c1c; }

.theory-lesson-detail-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.08), transparent 12rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.theory-lesson-evidence-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.08), transparent 12rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 48px rgba(7, 27, 77, 0.1);
}

.theory-lesson-evidence-panel header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.theory-lesson-evidence-panel h4,
.theory-lesson-evidence-panel p {
  margin: 0;
}

.theory-lesson-evidence-panel h4 {
  color: #071b4d;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 1000;
}

.theory-lesson-evidence-panel header p:not(.eyebrow) {
  color: #53627a;
  font-weight: 720;
  line-height: 1.5;
}

.theory-lesson-evidence-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theory-lesson-evidence-meta article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 42, 102, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.06);
}

.theory-lesson-evidence-meta span {
  color: #d4af37;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theory-lesson-evidence-meta strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 920;
}

.theory-evidence-learner-grid {
  display: grid;
  gap: 10px;
}

.theory-evidence-learner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(10, 42, 102, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.07);
}

.theory-evidence-learner-row strong,
.theory-evidence-learner-row span {
  display: block;
}

.theory-evidence-learner-row strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 920;
}

.theory-evidence-learner-row span {
  color: #53627a;
  font-size: 0.82rem;
  font-weight: 760;
}

.theory-standard-badge {
  display: inline-flex;
  min-width: 104px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theory-standard-badge.bronze {
  background: #fff1df;
  color: #8a4b12;
}

.theory-standard-badge.silver {
  background: #eef2f6;
  color: #475569;
}

.theory-standard-badge.gold {
  background: #fff6cf;
  color: #846108;
}

.theory-standard-badge.not-marked {
  background: #f1f5f9;
  color: #64748b;
}

.theory-marked-evidence-panel {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding: clamp(20px, 3vw, 28px);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.09), transparent 13rem),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 20px 44px rgba(7, 27, 77, 0.1);
}

.theory-marked-evidence-panel header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.theory-marked-evidence-panel h4,
.theory-marked-evidence-panel p {
  margin: 0;
}

.theory-marked-evidence-panel h4 {
  color: #071b4d;
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: 1000;
}

.theory-marked-evidence-panel header p:not(.eyebrow) {
  color: #53627a;
  font-weight: 760;
  line-height: 1.45;
}

.theory-marked-evidence-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theory-marked-evidence-facts.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.theory-marked-evidence-facts article,
.theory-marked-evidence-card,
.theory-marked-evidence-files {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid rgba(10, 42, 102, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.07);
}

.theory-marked-evidence-facts span,
.theory-marked-evidence-card span,
.theory-marked-evidence-files span {
  color: #d4af37;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theory-marked-evidence-facts strong,
.theory-marked-evidence-card strong {
  color: #071b4d;
  font-size: 1rem;
  font-weight: 920;
}

.theory-marked-evidence-card p,
.theory-marked-evidence-files p {
  color: #53627a;
  font-weight: 720;
  line-height: 1.55;
}

.theory-marked-evidence-content {
  display: grid;
  gap: 14px;
}

.theory-marked-evidence-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 14px;
}

.theory-marked-evidence-files .evidence-preview-grid {
  margin-top: 4px;
}

.theory-marked-evidence-empty {
  border: 1px dashed rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
}

.theory-submitted-quiz-card {
  gap: 14px;
  border-color: rgba(10, 42, 102, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.theory-submitted-quiz-list {
  display: grid;
  gap: 12px;
}

.theory-submitted-quiz-question {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(10, 42, 102, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.theory-submitted-quiz-question.correct {
  border-color: rgba(22, 101, 52, 0.24);
  background: linear-gradient(180deg, #f1fff4, #ffffff);
}

.theory-submitted-quiz-question.incorrect {
  border-color: rgba(185, 28, 28, 0.22);
  background: linear-gradient(180deg, #fff5f5, #ffffff);
}

.theory-submitted-quiz-question strong,
.theory-submitted-quiz-question p {
  margin: 0;
}

.theory-submitted-quiz-question p {
  color: #334257;
  font-weight: 730;
  line-height: 1.45;
}

.theory-quiz-result-badge {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #071b4d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theory-quiz-result-badge.correct {
  background: #dcfce7;
  color: #166534;
}

.theory-quiz-result-badge.incorrect {
  background: #fee2e2;
  color: #991b1b;
}

.theory-quiz-result-badge.reviewed {
  background: #eef2ff;
  color: #0a2a66;
}

.theory-evidence-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.theory-evidence-diagnostic-grid span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 42, 102, 0.05);
}

.theory-evidence-diagnostic-grid small {
  color: #9a6f00;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theory-evidence-diagnostic-grid strong {
  color: #071b4d;
  overflow-wrap: anywhere;
}

.theory-lesson-detail-panel h4,
.theory-lesson-detail-panel p {
  margin: 0;
}

.theory-lesson-detail-panel h4 {
  color: #071b4d;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 1000;
}

.theory-lesson-detail-panel > p {
  color: #53627a;
  font-weight: 690;
  line-height: 1.55;
}

.theory-lesson-detail-panel article,
.theory-detail-grid article {
  background: #ffffff;
}

.theory-lesson-detail-panel article strong,
.theory-detail-grid strong,
.theory-evidence-chain strong {
  color: #071b4d;
}

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

.theory-data-note {
  padding: 14px 16px;
  border: 1px dashed rgba(212, 175, 55, 0.52);
  border-radius: 16px;
  background: #fff9e9;
  color: #765600;
  font-weight: 780;
}

.theory-observation-list {
  display: grid;
  gap: 10px;
}

.theory-observation-list p {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef4ff;
}

.theory-observation-list strong {
  color: #071b4d;
}

.theory-observation-list span {
  color: #53627a;
  font-weight: 680;
}

.theory-evidence-chain {
  background: linear-gradient(135deg, #071b4d 0%, #0a2a66 100%);
}

.theory-evidence-chain strong {
  color: #ffffff;
}

.cohort-intelligence-section,
.cohort-intelligence-area-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(215, 227, 241, 0.9);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(11, 31, 77, 0.09);
}

.cohort-evidence-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.cohort-evidence-map article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  background: #ffffff;
}

.cohort-evidence-map span,
.cohort-intelligence-learner-row span {
  color: #b98208;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.cohort-evidence-map strong,
.cohort-intelligence-learner-row strong {
  color: var(--navy);
  font-weight: 1000;
}

.cohort-evidence-map p {
  margin: 0;
  color: #53627a;
  font-weight: 800;
  line-height: 1.4;
}

.cohort-intelligence-area-list {
  display: grid;
  gap: 10px;
}

.cohort-intelligence-learner-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) repeat(4, minmax(110px, 0.45fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.07);
}

.cohort-intelligence-learner-row > div {
  display: grid;
  gap: 3px;
}

.cohort-risk {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef8f1;
  color: #0f6f50;
}

.cohort-risk.amber {
  background: #fff6e4;
  color: #8a6100;
}

.cohort-risk.red {
  background: #fff0f1;
  color: #9f2f2f;
}

@media (max-width: 900px) {
  .cohort-intelligence-hero,
  .cohort-intelligence-learner-row {
    grid-template-columns: 1fr;
  }

  .executive-intelligence-header,
  .theory-knowledge-hero,
  .theory-knowledge-identity-row,
  .theory-knowledge-hero dl,
  .cohort-ilp-summary-grid,
  .cohort-ilp-learner-card,
  .theory-phase-timeline,
  .theory-lesson-grid,
  .theory-lesson-evidence-meta,
  .theory-marked-evidence-facts,
  .theory-marked-evidence-review-grid,
  .theory-detail-grid,
  .cohort-pillar-status-bar,
  .cohort-performance-pillars__grid {
    grid-template-columns: 1fr;
  }

  .theory-phase-timeline {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .theory-phase-card {
    min-width: 230px;
    scroll-snap-align: start;
  }

  .theory-lesson-evidence-panel header,
  .theory-marked-evidence-panel header,
  .theory-evidence-learner-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .theory-lesson-evidence-panel header,
  .theory-marked-evidence-panel header {
    flex-direction: column;
  }

  .theory-standard-badge {
    width: fit-content;
  }

  .cohort-ilp-learner-card {
    align-items: start;
  }

  .cohort-ilp-card-actions,
  .cohort-ilp-support-body {
    grid-template-columns: 1fr;
  }

  .cohort-ilp-status-cell {
    justify-items: start;
  }

  .executive-intelligence-report {
    padding: 24px;
    border-radius: 26px;
  }

  .executive-logo-column {
    place-items: center;
  }

  .executive-logo-tile {
    width: min(100%, 170px);
    height: min(170px, 58vw);
    justify-self: center;
  }

  .cohort-performance-pillar-card {
    min-height: 0;
  }

  .partner-logo-tile {
    max-width: 220px;
    min-width: 190px;
    min-height: 104px;
  }

  .cohort-intelligence-learner-row {
    align-items: stretch;
  }
}

.management-search-panel {
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: end;
}

.management-search-panel label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.management-search-panel input {
  min-height: 56px;
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--navy);
  background: #fbfdff;
}

.management-search-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: #53627a;
  font-weight: 900;
}

.primary-action.is-saved,
.secondary-action.is-saved {
  border-color: #18A558 !important;
  background: #18A558 !important;
  color: #ffffff !important;
}

.management-search-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f1c7c7;
  border-radius: 12px;
  background: #fff4f4;
  color: #9e1c1c;
  font-weight: 900;
}

.management-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.management-quick-filters button:not(.secondary-action) {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
}

.management-actions-today,
.management-risk-overview,
.management-case-panel,
.record-management-action-card,
.management-escalation-module,
.support-plan-card,
.management-history-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.07);
}

.management-escalation-module {
  border-color: #ffd0d0;
  border-left: 8px solid #b42318;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.escalation-head {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B1F4D 0%, #17366f 100%);
  color: #ffffff;
}

.escalation-head h4,
.escalation-head p {
  color: #ffffff;
}

.escalation-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.escalation-section h5 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0;
}

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

.management-check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--navy);
  font-weight: 850;
}

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

.escalation-textarea-label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.escalation-textarea-label textarea,
.management-escalation-module textarea {
  min-height: 92px;
}

.management-escalation-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.management-escalation-timeline article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fafc;
}

.management-escalation-timeline article span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #dfe7f1;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 1000;
}

.management-escalation-timeline article strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.25;
}

.management-escalation-timeline article.complete {
  border-color: rgba(24, 165, 88, 0.36);
  background: #effbf3;
}

.management-escalation-timeline article.complete span {
  background: #18A558;
  color: #ffffff;
}

.management-escalation-timeline article.pending {
  opacity: 0.72;
}

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

.signature-grid label {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--navy);
  font-weight: 900;
}

.management-escalation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.management-escalation-actions .management-save-feedback {
  flex: 1 1 100%;
}

.elite-escalation-panel {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.elite-escalation-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0B1F4D 0%, #172f64 100%);
  color: #ffffff;
  border-bottom: 5px solid var(--gold);
}

.elite-escalation-title h2,
.elite-escalation-title p {
  margin: 0;
  color: #ffffff;
}

.elite-escalation-title h2 {
  margin-bottom: 6px;
  font-size: clamp(1.7rem, 2.5vw, 2.55rem);
}

.elite-escalation-status {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.elite-escalation-status span {
  display: block;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 1000;
}

.elite-section h5 {
  padding-bottom: 10px;
  border-bottom: 1px solid #e5ebf4;
  font-size: 1.08rem;
}

.elite-overview-grid,
.notice-meta-grid,
.escalation-contact-grid,
.evidence-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.elite-overview-grid article,
.notice-meta-grid article,
.evidence-status-grid article,
.escalation-contact-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.elite-overview-grid span,
.notice-meta-grid span,
.escalation-contact-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.elite-overview-grid strong,
.notice-meta-grid strong,
.evidence-status-grid strong,
.escalation-contact-card strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.elite-escalation-timeline {
  display: grid;
  gap: 12px;
}

.elite-escalation-timeline article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #e1e8f0;
  border-left: 8px solid #d8e1ec;
  border-radius: 16px;
  background: #ffffff;
}

.elite-escalation-timeline article span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--navy);
  font-weight: 1000;
}

.elite-escalation-timeline article strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}

.elite-escalation-timeline article small {
  display: block;
  margin: 3px 0 8px;
  color: var(--muted);
  font-weight: 900;
}

.elite-escalation-timeline article p {
  margin: 5px 0 0;
  color: #334155;
}

.elite-escalation-timeline article.light-orange { border-left-color: #f2b632; background: #fffaf0; }
.elite-escalation-timeline article.amber { border-left-color: #f59f00; background: #fff7e8; }
.elite-escalation-timeline article.red-amber { border-left-color: #ef7d22; background: #fff1e8; }
.elite-escalation-timeline article.red { border-left-color: #b42318; background: #fff2f2; }

.evidence-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.evidence-status-badge.complete { background: #def8e8; color: #0b6b35; }
.evidence-status-badge.required { background: #fff2c7; color: #8a5b00; }
.evidence-status-badge.incomplete { background: #ffe1e1; color: #9e1c1c; }
.evidence-status-badge.pending { background: #e8f1ff; color: #174ea6; }

.escalation-contact-card small {
  color: #64748b;
  font-weight: 900;
}

.escalation-contact-card p {
  margin: 0;
  color: #334155;
}

.notice-card {
  border-color: #f2d27a;
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.notice-card > p {
  margin: 0;
  color: #334155;
}

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

.notice-columns article {
  padding: 15px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.notice-columns h6 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.9rem;
}

.notice-columns p {
  margin: 6px 0;
  color: #334155;
}

.notice-columns p::before {
  content: "• ";
  color: var(--gold);
  font-weight: 1000;
}

@media (max-width: 1180px) {
  .management-decision-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1100px) {
  .management-escalation-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .elite-escalation-title,
  .notice-columns {
    grid-template-columns: 1fr;
  }

  .elite-escalation-status {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .management-escalation-timeline,
  .management-check-grid,
  .signature-grid,
  .elite-overview-grid,
  .notice-meta-grid,
  .escalation-contact-grid,
  .evidence-status-grid {
    grid-template-columns: 1fr;
  }

  .elite-escalation-timeline article {
    grid-template-columns: 1fr;
  }
}

.management-action-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.management-action-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-left: 7px solid #d8e1ec;
  border-radius: 16px;
  background: #fbfdff;
}

.management-action-card.amber { border-left-color: var(--gold); background: #fffaf0; }
.management-action-card.support { border-left-color: #f59f00; background: #fff8ea; }
.management-action-card.review { border-left-color: #dc4c4c; background: #fff2f2; }
.management-action-card.high { border-left-color: #8b1111; background: #fff0f0; }

.management-action-card span,
.management-risk-row span,
.management-case-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.management-action-card strong,
.management-risk-row strong,
.management-case-grid strong {
  color: var(--navy);
}

.management-action-learner,
.management-risk-identity,
.management-form-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.management-action-learner > div,
.management-risk-identity > div,
.management-form-identity > div {
  min-width: 0;
}

.management-action-learner p,
.management-form-identity p {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.management-risk-identity .learner-avatar.large,
.management-action-learner .learner-avatar.large,
.management-form-identity .learner-avatar.large {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border: 4px solid #ffffff;
  outline: 3px solid rgba(242, 182, 50, 0.58);
  box-shadow: 0 12px 24px rgba(15, 35, 63, 0.14);
  object-fit: cover;
}

.management-action-learner .learner-avatar.large,
.management-form-identity .learner-avatar.large {
  width: 72px;
  height: 72px;
  min-width: 72px;
}

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

.management-decision-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.08);
}

.management-decision-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.management-decision-table th,
.management-decision-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #edf2f7;
  color: var(--navy);
  text-align: left;
  vertical-align: middle;
}

.management-decision-table th {
  position: sticky;
  top: 0;
  background: #f6f8fb;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  z-index: 1;
}

.management-decision-table tbody tr.notice td { background: #fff8ea; }
.management-decision-table tbody tr.failed td,
.management-decision-table tbody tr.overdue td { background: #fff3f3; }
.management-decision-table tbody tr.safeguarding td { background: #f8effa; }

.management-table-learner {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
}

.management-table-learner .learner-avatar.small {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.primary-action.compact,
.secondary-action.compact {
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

.learner-management-profile {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.08);
}

.management-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0B1F4D, #183a78);
  color: #ffffff;
}

.management-profile-hero h3,
.management-profile-hero p {
  margin: 0;
  color: #ffffff;
}

.management-profile-hero .learner-avatar.large {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border: 4px solid #ffffff;
  outline: 3px solid var(--gold);
}

.management-quick-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.08);
}

.quick-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0B1F4D, #183a78);
  color: #ffffff;
}

.quick-card-header h3,
.quick-card-header p {
  margin: 0;
  color: #ffffff;
}

.quick-card-header .learner-avatar.large {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border: 4px solid #ffffff;
  outline: 3px solid var(--gold);
}

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

.management-decision-answer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.management-decision-answer-grid article {
  display: grid;
  gap: 6px;
  min-height: 136px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e4ebf3;
  border-top: 7px solid #18A558;
  border-radius: 16px;
  background: #f0fbf5;
}

.management-decision-answer-grid article.amber {
  border-top-color: var(--gold);
  background: #fff8e8;
}

.management-decision-answer-grid article.monitor {
  border-top-color: #f59e0b;
  background: #fff7ed;
}

.management-decision-answer-grid article.red {
  border-top-color: #dc4c4c;
  background: #fff2f2;
}

.management-decision-answer-grid article.critical {
  border-top-color: #5c0711;
  background: #fff0f0;
}

.management-decision-answer-grid span {
  color: #58677d;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.management-decision-answer-grid strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.management-decision-answer-grid article.green strong {
  color: #0b6b35;
}

.management-decision-answer-grid article.amber strong {
  color: #8a5b00;
}

.management-decision-answer-grid article.monitor strong {
  color: #9a5a00;
}

.management-decision-answer-grid article.red strong {
  color: #9e1c1c;
}

.management-decision-answer-grid article.critical strong {
  color: #5c0711;
}

.management-decision-answer-grid p {
  margin: 0;
  color: #44546c;
  font-weight: 800;
  line-height: 1.35;
}

/* Management Dashboard premium polish - visual only */
.management-dashboard-page {
  padding: clamp(6px, 1vw, 14px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 182, 50, 0.12), transparent 28rem),
    radial-gradient(circle at 100% 12%, rgba(11, 31, 77, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(247, 250, 255, 0.72), rgba(255, 255, 255, 0));
}

.management-dashboard-page > .management-title {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(242, 182, 50, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 182, 50, 0.24), transparent 18rem),
    radial-gradient(circle at 10% 0%, rgba(49, 111, 184, 0.26), transparent 24rem),
    linear-gradient(135deg, #06163c 0%, #0b1f4d 50%, #173a78 100%);
  box-shadow:
    0 30px 72px rgba(7, 27, 77, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.management-dashboard-page > .management-title::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.9), transparent 42%) top left / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%);
}

.management-dashboard-page > .management-title > * {
  position: relative;
  z-index: 1;
}

.management-dashboard-page > .management-title h4 {
  font-size: clamp(2.15rem, 4vw, 4.15rem);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.management-dashboard-page > .management-title .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(242, 182, 50, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8d45c;
}

.management-dashboard-page .management-summary-card {
  position: relative;
  min-height: 146px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(215, 227, 241, 0.8);
  border-left: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.1), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.99));
  box-shadow:
    0 22px 48px rgba(11, 31, 77, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.management-dashboard-page .management-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, #dc4c4c, #8b1111);
}

.management-dashboard-page .management-summary-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 31, 77, 0.08);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 182, 50, 0.16), rgba(255, 255, 255, 0.72));
}

.management-dashboard-page .management-summary-card:hover,
.management-dashboard-page .management-summary-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.38);
  box-shadow:
    0 30px 60px rgba(11, 31, 77, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.management-dashboard-page .management-summary-card span {
  max-width: calc(100% - 42px);
  color: #071b4d;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.management-dashboard-page .management-summary-card strong {
  color: #0b1f4d;
  font-size: clamp(2.55rem, 4vw, 3.8rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #ffffff;
}

.management-dashboard-page .management-summary-card small {
  color: #536781;
  font-size: 0.84rem;
  font-weight: 850;
}

.management-dashboard-page .management-summary-card.incident::before,
.management-dashboard-page .management-summary-card.notice::before,
.management-dashboard-page .management-summary-card.meeting::before,
.management-dashboard-page .management-summary-card.failed::before,
.management-dashboard-page .management-summary-card.overdue::before {
  background: linear-gradient(180deg, #ef4444, #991b1b);
}

.management-dashboard-page .management-summary-card.safeguarding::before {
  background: linear-gradient(180deg, #9d4edd, #5b1570);
}

.management-dashboard-page .management-summary-card.active {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.32), transparent 12rem),
    linear-gradient(135deg, #f8d45c, #f2b632);
  box-shadow:
    0 0 0 4px rgba(242, 182, 50, 0.2),
    0 28px 56px rgba(154, 106, 0, 0.16);
}

.management-dashboard-page .management-filter-panel.management-search-panel {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(215, 227, 241, 0.82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.09), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 22px 52px rgba(11, 31, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.management-dashboard-page .management-search-panel label {
  color: #071b4d;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.management-dashboard-page .management-search-panel input {
  min-height: 60px;
  border: 1px solid rgba(174, 190, 208, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(11, 31, 77, 0.06);
  font-weight: 850;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.management-dashboard-page .management-search-panel input:focus {
  border-color: #f2b632;
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(242, 182, 50, 0.18),
    0 16px 30px rgba(11, 31, 77, 0.11);
  transform: translateY(-1px);
}

.management-dashboard-page .management-search-actions {
  color: #536781;
}

.management-dashboard-page .management-search-actions .primary-action,
.management-dashboard-page .management-quick-filters .secondary-action {
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(11, 31, 77, 0.1);
}

.management-dashboard-page .management-risk-overview {
  border: 1px solid rgba(215, 227, 241, 0.82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 31, 77, 0.05), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow:
    0 24px 58px rgba(11, 31, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.management-dashboard-page .management-risk-overview > .panel-head {
  padding: 18px 20px;
  border: 1px solid rgba(242, 182, 50, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.92), rgba(255, 255, 255, 0.92));
}

.management-dashboard-page .management-risk-overview > .panel-head h4 {
  color: #071b4d;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.management-dashboard-page .management-decision-table-wrap {
  border: 1px solid rgba(215, 227, 241, 0.82);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 18px 40px rgba(11, 31, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.management-dashboard-page .management-decision-table th {
  background:
    linear-gradient(180deg, #f8fbff, #eef4fb);
  color: #071b4d;
  letter-spacing: 0.07em;
}

.management-dashboard-page .management-decision-table td {
  border-bottom-color: rgba(226, 232, 240, 0.86);
  color: #26374d;
  font-weight: 760;
}

.management-dashboard-page .management-decision-table tbody tr:hover td {
  background: #fffaf0;
}

.management-dashboard-page .management-decision-table .empty-state {
  margin: 10px;
  border: 1px solid rgba(242, 182, 50, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.12), transparent 16rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(11, 31, 77, 0.08);
}

.quick-card-field-grid,
.quick-summary-tiles,
.risk-rating-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.quick-card-field-grid div,
.quick-summary-tiles article,
.risk-rating-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  background: #fbfdff;
}

.quick-summary-tiles article {
  border-left: 5px solid var(--gold);
  background: #fffaf0;
}

.risk-rating-tiles {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.risk-rating-tile {
  min-height: 132px;
  align-content: start;
  border-left: 7px solid #18A558;
}

.risk-rating-tile.green {
  border-left-color: #18A558;
  background: #f0fbf5;
}

.risk-rating-tile.amber {
  border-left-color: var(--gold);
  background: #fff8e8;
}

.risk-rating-tile.monitor {
  border-left-color: #f59e0b;
  background: #fff7ed;
}

.risk-rating-tile.red {
  border-left-color: #dc4c4c;
  background: #fff2f2;
}

.risk-rating-tile.critical {
  border-left-color: #5c0711;
  background: #fff0f0;
}

.risk-rating-tile.critical strong {
  color: #5c0711;
}

.risk-rating-tile.red strong {
  color: #9e1c1c;
}

.risk-rating-tile.amber strong {
  color: #8a5b00;
}

.risk-rating-tile.monitor strong {
  color: #9a5a00;
}

.risk-rating-tile.green strong {
  color: #0b6b35;
}

.quick-card-field-grid span,
.quick-summary-tiles span,
.risk-rating-tile span,
.quick-mini-timeline span {
  color: #58677d;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.quick-card-field-grid strong,
.quick-summary-tiles strong,
.risk-rating-tile strong,
.quick-mini-timeline strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.quick-summary-tiles p,
.risk-rating-tile p {
  margin: 0;
  color: #44546c;
  font-weight: 800;
}

.quick-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 1000;
  text-transform: uppercase;
}

.quick-section-heading::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.quick-mini-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f6f8fb;
}

.quick-mini-timeline article {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 16px;
}

.quick-mini-timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.quick-card-actions {
  justify-content: flex-end;
}

.management-report-preview {
  display: grid;
  gap: 16px;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
  padding: 24px;
  justify-items: center;
  align-content: start;
  background: rgba(11, 31, 77, 0.82);
}

.management-report-toolbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  width: min(100%, 900px);
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 35, 63, 0.22);
}

.management-report-error-banner {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #f1b5b5;
  border-left: 6px solid #dc4c4c;
  border-radius: 10px;
  background: #fff2f2;
  color: #9e1c1c;
  font-weight: 900;
}

.management-report-document {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  padding: 16mm 16mm 18mm;
  border: 1px solid #dfe7f1;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 22px 60px rgba(15, 35, 63, 0.16);
  overflow: hidden;
  counter-reset: page;
}

.management-report-watermark {
  position: fixed;
  inset: 42% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  width: 170mm;
  color: rgba(220, 76, 76, 0.08);
  font-size: 2.8rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
}

.management-report-header,
.management-report-section,
.management-report-footer {
  position: relative;
  z-index: 1;
}

.management-report-header {
  display: grid;
  grid-template-columns: 38mm minmax(0, 1fr) 46mm;
  gap: 12mm;
  align-items: center;
  padding-bottom: 7mm;
  border-bottom: 2px solid var(--gold);
}

.management-report-header img {
  width: 34mm;
  height: auto;
  object-fit: contain;
}

.management-report-header h1,
.management-report-header p {
  margin: 0;
}

.management-report-header h1 {
  color: var(--navy);
  font-size: 1.75rem;
}

.management-report-meta {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  background: #f7f9fc;
}

.management-report-meta span,
.report-grid span,
.management-report-footer,
.report-timeline span {
  color: #58677d;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.management-report-meta strong,
.report-grid strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.management-report-section {
  padding: 7mm 0 4mm;
  border-bottom: 1px solid #e4ebf3;
  break-inside: avoid;
  page-break-inside: avoid;
}

.management-report-section h3 {
  margin: 0 0 4mm;
  color: var(--navy);
  font-size: 1.05rem;
}

.management-report-section h3::after {
  content: "";
  display: block;
  width: 34mm;
  height: 2px;
  margin-top: 2mm;
  background: var(--gold);
}

.management-report-section p,
.management-report-section li {
  color: #26364d;
  line-height: 1.45;
}

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

.report-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e4ebf3;
  border-radius: 9px;
  background: #fbfdff;
}

.report-timeline {
  display: grid;
  gap: 8px;
}

.report-timeline article {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  background: #fbfdff;
}

.report-timeline strong {
  color: var(--navy);
}

.report-muted,
.report-restricted {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fc;
  color: #58677d;
}

.report-restricted {
  border: 1px solid #f1c7c7;
  background: #fff4f4;
  color: #9e1c1c;
  font-weight: 900;
}

.report-signatures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8mm;
}

.report-signatures div {
  display: grid;
  gap: 5px;
  min-height: 24mm;
  align-content: end;
}

.report-signatures span {
  display: block;
  height: 1px;
  background: #0B1F4D;
}

.report-signatures small {
  color: #58677d;
}

.management-report-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6mm;
}

.management-report-footer span:last-child::after {
  content: counter(page);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body:has(.management-report-document) {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body:has(.management-report-document) .topbar,
  body:has(.management-report-document) .session-strip,
  body:has(.management-report-document) .management-dashboard-page > *:not(.management-report-preview),
  body:has(.management-report-document) .management-report-toolbar,
  body:has(.management-report-document) .no-print {
    display: none !important;
    visibility: hidden !important;
  }

  body:has(.management-report-document) .app-shell,
  body:has(.management-report-document) main,
  body:has(.management-report-document) #adminRecordPanels,
  body:has(.management-report-document) .management-dashboard-page,
  body:has(.management-report-document) .management-report-preview {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .management-report-document {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .management-report-document::after {
    content: "Page " counter(page);
    position: fixed;
    right: 0;
    bottom: -7mm;
    color: #58677d;
    font-size: 8pt;
    font-weight: 800;
  }

  .management-report-header {
    grid-template-columns: 34mm minmax(0, 1fr) 42mm !important;
    gap: 8mm !important;
    padding-bottom: 5mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .management-report-header img {
    width: 30mm !important;
  }

  .management-report-header h1 {
    font-size: 18pt !important;
  }

  .management-report-section {
    padding: 5mm 0 3mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .management-report-section h3 {
    font-size: 12pt !important;
  }

  .management-report-section p,
  .management-report-section li,
  .report-grid strong,
  .report-timeline strong {
    font-size: 9pt !important;
  }

  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .report-grid div,
  .report-timeline article {
    padding: 6px !important;
  }

  .report-signatures {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .management-report-watermark {
    position: fixed !important;
    top: 45% !important;
    left: 50% !important;
    color: rgba(220, 76, 76, 0.08) !important;
  }
}

.management-risk-table {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.management-risk-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-left: 7px solid #d8e1ec;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.management-risk-row.green,
.management-risk-row.monitoring { border-left-color: #18A558; }
.management-risk-row.amber { border-left-color: var(--gold); background: #fffaf0; }
.management-risk-row.support { border-left-color: #f59f00; background: #fff8ea; }
.management-risk-row.review { border-left-color: #dc4c4c; background: #fff2f2; }
.management-risk-row.high { border-left-color: #8b1111; background: #fff0f0; }

.management-risk-top,
.management-risk-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.management-risk-top strong {
  display: block;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  overflow-wrap: anywhere;
}

.management-risk-top span,
.management-risk-bottom p,
.management-risk-bottom strong {
  overflow-wrap: anywhere;
}

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

.management-stage-badge {
  display: inline-flex !important;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--navy) !important;
}

.management-risk-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.management-risk-metrics div,
.management-risk-bottom > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.management-risk-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.management-risk-bottom {
  align-items: stretch;
}

.management-risk-bottom .management-card-actions {
  align-content: center;
  justify-content: flex-end;
}

.management-risk-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.management-risk-badge.green,
.management-risk-badge.monitoring { background: #def8e8; color: #0b6b35; }
.management-risk-badge.amber,
.management-risk-badge.light_amber,
.management-risk-badge.support { background: #fff2c7; color: #8a5b00; }
.management-risk-badge.orange,
.management-risk-badge.support_plan { background: #ffe3bf; color: #914b00; }
.management-risk-badge.review,
.management-risk-badge.red { background: #ffe1e1; color: #9e1c1c; }
.management-risk-badge.high,
.management-risk-badge.withdrawal { background: #2a0d12; color: #ffffff; }
.management-risk-badge.safeguarding { background: #6c1b72; color: #ffffff; }

.management-case-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  background: #f8fafc;
}

.management-case-hero .learner-avatar.large {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border: 4px solid #ffffff;
  outline: 3px solid var(--gold);
  object-fit: cover;
}

.management-case-hero h3,
.management-case-hero p {
  margin: 0;
}

.management-case-grid,
.management-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.management-case-grid article,
.management-detail-grid article {
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.management-save-button.is-saved,
.support-plan-card .secondary-action.is-saved {
  background: #18A558;
  border-color: #18A558;
  color: #ffffff;
}

.management-save-button.is-failed {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
}

.management-save-feedback {
  min-height: 20px;
  margin: 0;
  font-weight: 900;
}

.management-save-feedback.success {
  color: #137a3f;
}

.management-save-feedback.error {
  color: #b42318;
}

.achievement-recognition-section {
  display: grid;
  gap: 18px;
}

.recognition-title {
  background: linear-gradient(135deg, #0B1F4D, #185a48);
}

.recognition-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.recognition-summary-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-left: 7px solid var(--gold);
  border-radius: 18px;
  background: #ffffff;
  color: var(--navy);
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.08);
}

.recognition-summary-card span {
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.recognition-summary-card strong {
  font-size: 2.1rem;
}

.recognition-summary-card.green { border-left-color: #18A558; }
.recognition-summary-card.blue { border-left-color: #2478d4; }
.recognition-summary-card.purple { border-left-color: #6c1b72; }
.recognition-summary-card.platinum { border-left-color: #111827; }

.recognition-summary-card.active {
  background: #fff8df;
  border-color: rgba(242, 182, 50, 0.75);
  box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.2), 0 12px 30px rgba(15, 35, 63, 0.08);
}

.recognition-list-panel,
.recognition-case-panel,
.record-recognition-action-card,
.recognition-history-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 63, 0.07);
}

.recognition-learner-list {
  display: grid;
  gap: 16px;
}

.recognition-learner-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-left: 7px solid var(--gold);
  border-radius: 18px;
  background: #ffffff;
}

.recognition-learner-card.platinum { border-left-color: #111827; background: #f8fafc; }
.recognition-learner-card.gold { border-left-color: var(--gold); background: #fffaf0; }
.recognition-learner-card.silver { border-left-color: #b9c5d1; background: #f8fafc; }
.recognition-learner-card.bronze { border-left-color: #c47a3c; background: #fff8f0; }

.award-certificate-wrap {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  padding: 24px 12px 42px;
  background: #eef3f8;
  overflow-x: auto;
  overflow-y: visible;
  box-sizing: border-box;
}

.award-certificate-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 4px;
}

.award-certificate-toolbar .secondary-action:first-child {
  margin-right: auto;
}

.award-certificate-toolbar .secondary-action,
.award-certificate-toolbar .primary-action {
  flex: 0 1 auto;
  min-width: max-content;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 760px) {
  .award-certificate-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0;
  }

  .award-certificate-toolbar .secondary-action:first-child {
    margin-right: 0;
  }

  .award-certificate-toolbar .secondary-action,
  .award-certificate-toolbar .primary-action {
    width: 100%;
    min-width: 0;
  }
}

.certificate-print-area {
  display: grid;
  place-items: center;
  width: 1123px;
  min-width: 1123px;
  max-width: none;
  height: auto;
  aspect-ratio: 1123 / 794;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
}

.award-certificate-page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  width: 281mm;
  height: 194mm;
  min-width: 281mm;
  min-height: 194mm;
  margin: 0 auto;
  overflow: hidden;
  padding: 18mm 18mm 15mm;
  box-sizing: border-box;
  border: 6px solid #0B1F4D;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #F2B632, #fff4c8, #0B1F4D) border-box;
  box-shadow: 0 28px 70px rgba(11, 31, 77, 0.18);
}

.award-certificate-page::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid rgba(242, 182, 50, 0.72);
  border-radius: 14px;
  pointer-events: none;
}

.award-certificate-page::after {
  content: "";
  position: absolute;
  inset: 28% 24%;
  background: url("./public/assets/tfe-logo.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.certificate-corner {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 0;
  border: 2px solid rgba(242, 182, 50, 0.42);
  background: transparent;
  pointer-events: none;
}

.certificate-corner.top-left {
  top: 18px;
  left: 18px;
  border-right: 0;
  border-bottom: 0;
}

.certificate-corner.bottom-right {
  right: 18px;
  bottom: 18px;
  border-left: 0;
  border-top: 0;
}

.certificate-header,
.certificate-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.certificate-logo-lockup {
  display: grid;
  align-items: center;
  min-height: 66px;
}

.certificate-logo-lockup img {
  width: 245px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.certificate-logo-fallback {
  display: none;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.certificate-header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  justify-content: flex-end;
  color: var(--navy);
}

.certificate-header span,
.certificate-footer small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.certificate-header strong,
.certificate-footer strong {
  display: block;
  color: var(--navy);
  font-weight: 1000;
}

.certificate-body {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.certificate-kicker {
  margin: 0;
  color: #9b7410;
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.certificate-body h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  font-weight: 800;
}

.certificate-body h2 {
  margin: 5px 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 5.2vw, 4.35rem);
  line-height: 1;
}

.certificate-learner-meta {
  margin: 0;
  color: #526172;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.certificate-body h3 {
  margin: 0;
  color: #9b7410;
  font-size: clamp(1.32rem, 2.4vw, 1.95rem);
}

.certificate-ribbon {
  width: fit-content;
  min-width: 260px;
  margin: 4px auto;
  padding: 8px 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0B1F4D, #17366c);
  color: #F2B632;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(11, 31, 77, 0.12);
}

.certificate-wording,
.certificate-area {
  margin: 0;
  color: #34435c;
  font-size: 0.96rem;
}

.certificate-area {
  color: #526172;
  font-weight: 800;
}

.certificate-evidence {
  width: min(100%, 760px);
  margin-top: 10px;
  padding: 12px 18px 10px;
  border-top: 2px solid rgba(242, 182, 50, 0.5);
  border-bottom: 2px solid rgba(242, 182, 50, 0.5);
  background: rgba(255, 252, 244, 0.72);
}

.certificate-evidence strong {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.certificate-evidence p {
  margin: 6px 0;
  color: #27364d;
  line-height: 1.35;
}

.certificate-evidence ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.certificate-evidence li {
  padding: 5px 9px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  border-radius: 7px;
  background: rgba(255, 246, 216, 0.74);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 900;
}

.certificate-footer {
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  z-index: 2;
  min-height: 58px;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 31, 77, 0.16);
}

.certificate-footer > div:last-child {
  text-align: right;
}

.certificate-signature span {
  display: block;
  width: min(100%, 300px);
  height: 1px;
  margin-bottom: 9px;
  background: var(--navy);
}

.certificate-signature.centre {
  text-align: center;
}

.certificate-signature.centre span {
  margin-inline: auto;
}

.certificate-seal {
  position: absolute;
  right: 32mm;
  bottom: 34mm;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 3px solid #c99618;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d9, #f4d476);
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(156, 116, 16, 0.18);
}

.certificate-seal span {
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1;
}

.certificate-seal strong {
  max-width: 66px;
  font-size: 0.54rem;
  font-weight: 1000;
  line-height: 1.05;
}

.certificate-save-feedback {
  width: min(100%, 1180px);
  margin: 0 auto;
  font-weight: 1000;
}

.certificate-save-feedback.success {
  color: var(--good);
}

.certificate-save-feedback.error {
  color: var(--bad);
}

/* Award certificate layout rebuild: fixed A4 landscape page with all content contained. */
.certificate-print-area {
  width: 1123px;
  min-width: 1123px;
  max-width: none;
  height: auto;
  aspect-ratio: 1123 / 794;
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
}

.award-certificate-page.certificate-page {
  position: relative;
  display: block;
  width: 297mm;
  height: 210mm;
  min-width: 297mm;
  min-height: 210mm;
  max-width: 297mm;
  max-height: 210mm;
  margin: 0 auto;
  padding: 10mm;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(11, 31, 77, 0.18);
}

.award-certificate-page.certificate-page::before,
.award-certificate-page.certificate-page::after {
  display: none;
}

.certificate-inner {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 10mm;
  box-sizing: border-box;
  overflow: hidden;
  border: 6px solid #071d49;
  border-radius: 12px;
  background: #ffffff;
}

.certificate-inner::before {
  content: "";
  position: absolute;
  inset: 4mm;
  z-index: 0;
  border: 1.5px solid rgba(242, 182, 50, 0.74);
  border-radius: 7px;
  pointer-events: none;
}

.certificate-inner::after {
  content: "";
  position: absolute;
  inset: 52mm 80mm 50mm;
  z-index: 0;
  background: url("./public/assets/tfe-logo.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.certificate-inner > * {
  position: relative;
  z-index: 1;
}

.certificate-corner {
  position: absolute;
  z-index: 2;
  width: 35mm;
  height: 35mm;
  border: 1.5px solid rgba(242, 182, 50, 0.58);
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.certificate-corner.top-left {
  top: 4mm;
  left: 4mm;
  border-right: 0;
  border-bottom: 0;
}

.certificate-corner.bottom-right {
  right: 4mm;
  bottom: 4mm;
  border-left: 0;
  border-top: 0;
}

.certificate-header {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14mm;
  min-height: 20mm;
}

.certificate-logo-lockup {
  display: block;
  min-height: 0;
}

.certificate-logo-lockup img,
.certificate-logo {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.certificate-logo-fallback {
  display: none;
  color: #0B1F4D;
  font-size: 0.88rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.certificate-meta,
.certificate-header > div.certificate-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  justify-items: end;
  align-items: baseline;
  color: #0B1F4D;
  text-align: right;
}

.certificate-meta span,
.certificate-header span,
.certificate-footer small {
  display: block;
  color: #617084;
  font-size: 0.64rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-meta strong,
.certificate-header strong,
.certificate-footer strong {
  display: block;
  color: #0B1F4D;
  font-size: 0.78rem;
  font-weight: 1000;
}

.certificate-main,
.certificate-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1mm 22mm 3mm;
  text-align: center;
  gap: 2.2mm;
}

.certificate-kicker,
.certificate-title {
  margin: 0;
  color: #9b7410;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.certificate-presented,
.certificate-body h1 {
  margin: 0;
  color: #0B1F4D;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}

.certificate-learner-name,
.certificate-body h2 {
  max-width: 225mm;
  margin: 0 0 8px;
  color: #0B1F4D;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.certificate-learner-meta {
  margin: 0;
  color: #526172;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-wording,
.certificate-area {
  margin: 0;
  color: #34435c;
  font-size: 0.92rem;
  line-height: 1.25;
}

.certificate-area {
  color: #526172;
  font-weight: 800;
}

.certificate-award-title,
.certificate-body h3 {
  max-width: 215mm;
  margin: 6px 0;
  color: #9b7410;
  font-size: 30px;
  line-height: 1.1;
}

.certificate-ribbon {
  width: fit-content;
  min-width: 62mm;
  margin: 6px auto;
  padding: 8px 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0B1F4D, #17366c);
  color: #F2B632;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(11, 31, 77, 0.13);
}

.certificate-evidence,
.certificate-summary {
  width: min(75%, 190mm);
  max-height: 29mm;
  margin: 10px 0 0;
  padding: 10px 18px;
  overflow: hidden;
  border-top: 1.5px solid rgba(242, 182, 50, 0.58);
  border-bottom: 1.5px solid rgba(242, 182, 50, 0.58);
  background: rgba(255, 252, 244, 0.76);
}

.certificate-evidence strong {
  color: #0B1F4D;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.certificate-evidence p {
  margin: 1.5mm 0;
  color: #27364d;
  font-size: 0.84rem;
  line-height: 1.25;
}

.certificate-evidence ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5mm;
  margin: 1.5mm 0 0;
  padding: 0;
  list-style: none;
}

.certificate-evidence li {
  display: block;
  min-height: 6mm;
  padding: 1.3mm 2.5mm;
  border: 1px solid rgba(242, 182, 50, 0.32);
  border-radius: 4px;
  background: rgba(255, 246, 216, 0.82);
  color: #0B1F4D;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
}

.certificate-seal {
  position: absolute;
  right: 18mm;
  bottom: 39mm;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2.5px solid #c99618;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d9, #f4d476);
  color: #0B1F4D;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(156, 116, 16, 0.16);
}

.certificate-seal span {
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1;
}

.certificate-seal strong {
  max-width: 52px;
  font-size: 0.45rem;
  font-weight: 1000;
  line-height: 1.05;
}

.certificate-footer {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
  min-height: 20mm;
  padding-top: 8px;
  border-top: 1px solid rgba(11, 31, 77, 0.16);
}

.certificate-footer > div:last-child {
  text-align: right;
}

.certificate-signature span {
  display: block;
  width: min(100%, 70mm);
  height: 1px;
  margin-bottom: 2.5mm;
  background: #0B1F4D;
}

.certificate-signature.centre {
  text-align: center;
}

.certificate-signature.centre span {
  margin-inline: auto;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  html,
  body {
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body * {
    display: none !important;
  }

  #certificate-print-root,
  #certificate-print-root * {
    display: block !important;
    visibility: visible !important;
  }

  #certificate-print-root {
    position: fixed !important;
    inset: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  #certificate-print-root .certificate-page {
    page: certificate;
    display: block !important;
    width: 297mm !important;
    height: 210mm !important;
    min-width: 297mm !important;
    min-height: 210mm !important;
    max-width: 297mm !important;
    max-height: 210mm !important;
    margin: 0 !important;
    padding: 10mm !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #certificate-print-root .certificate-content {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #certificate-print-root .certificate-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10mm !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 6px solid #071d49 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
  }

  #certificate-print-root .certificate-inner::before,
  #certificate-print-root .certificate-inner::after,
  #certificate-print-root .certificate-corner,
  #certificate-print-root .certificate-seal {
    display: block !important;
  }

  #certificate-print-root .certificate-header {
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  #certificate-print-root .certificate-logo,
  #certificate-print-root .certificate-logo-lockup img {
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
  }

  #certificate-print-root .certificate-meta {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  #certificate-print-root .certificate-main,
  #certificate-print-root .certificate-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 1mm 22mm 3mm !important;
  }

  #certificate-print-root .certificate-learner-name,
  #certificate-print-root .certificate-body h2 {
    font-size: 42pt !important;
    line-height: 1 !important;
  }

  #certificate-print-root .certificate-award-title,
  #certificate-print-root .certificate-body h3 {
    font-size: 18pt !important;
  }

  #certificate-print-root .certificate-ribbon {
    display: block !important;
  }

  #certificate-print-root .certificate-evidence,
  #certificate-print-root .certificate-summary {
    width: 75% !important;
    max-height: 29mm !important;
    overflow: hidden !important;
  }

  #certificate-print-root .certificate-evidence ul {
    display: flex !important;
  }

  #certificate-print-root .certificate-evidence li {
    display: block !important;
  }

  #certificate-print-root .certificate-seal {
    display: grid !important;
    right: 18mm !important;
    bottom: 39mm !important;
    width: 70px !important;
    height: 70px !important;
  }

  #certificate-print-root .certificate-footer {
    display: grid !important;
    flex-shrink: 0 !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: end !important;
    min-height: 21mm !important;
  }

  .no-print,
  button,
  nav,
  header:not(.certificate-header),
  footer:not(.certificate-footer),
  .app-header,
  .dashboard-controls,
  .login-panel {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Clean fixed-grid A4 landscape certificate template. */
.certificate-preview-modal {
  width: min(96vw, 1240px);
  max-height: 94vh;
}

.certificate-modal-body {
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 28px;
  background: #f5f7fb;
}

.certificate-scale-wrap {
  transform-origin: top center;
}

.certificate-shell {
  width: 1123px;
  height: 794px;
  max-width: none;
  background: #ffffff;
  border: 7px solid #071B4D;
  border-radius: 14px;
  padding: 18px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: #071B4D;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 70px rgba(7, 27, 77, 0.18);
}

.certificate-shell .certificate-inner {
  width: 100%;
  height: 100%;
  border: 2px solid #D9A21B;
  border-radius: 8px;
  padding: 36px 44px 30px;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-rows: 90px 390px 120px 95px;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
}

.certificate-shell .certificate-inner::before,
.certificate-shell .certificate-inner::after {
  display: none;
}

.certificate-shell .certificate-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.045;
  font-size: 160px;
  font-weight: 900;
  color: #071B4D;
  pointer-events: none;
  z-index: 0;
}

.certificate-shell .certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  min-height: 0;
}

.certificate-shell .certificate-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.certificate-shell .certificate-brand img {
  width: 160px;
  height: 62px;
  object-fit: contain;
}

.certificate-shell .certificate-brand span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 7px;
  color: #475569;
  white-space: nowrap;
  text-transform: uppercase;
}

.certificate-shell .certificate-meta {
  display: block;
  text-align: right;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 900;
  color: #334155;
  letter-spacing: 1px;
  white-space: nowrap;
  text-transform: uppercase;
}

.certificate-shell .certificate-main {
  text-align: center;
  align-self: start;
  padding: 22px 82px 0;
  z-index: 2;
  min-height: 0;
}

.certificate-shell .certificate-kicker {
  color: #A47708;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.certificate-shell .certificate-presented {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.certificate-shell .certificate-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  color: #071B4D;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.certificate-shell .certificate-learner-meta {
  color: #64748B;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.certificate-shell .certificate-awarded {
  color: #334155;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}

.certificate-shell .certificate-award-title {
  color: #A47708;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.certificate-shell .certificate-standard {
  display: inline-block;
  background: #071B4D;
  color: #F5B41B;
  padding: 13px 48px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.certificate-shell .certificate-reason {
  color: #475569;
  font-size: 20px;
  font-weight: 700;
}

.certificate-shell .certificate-summary {
  width: 72%;
  max-height: none;
  margin: 0 auto;
  align-self: center;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF7E8 100%);
  border-top: 2px solid #D9A21B;
  border-bottom: 2px solid #D9A21B;
  padding: 20px 24px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  overflow: hidden;
}

.certificate-shell .summary-title {
  color: #071B4D;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.certificate-shell .certificate-summary p {
  margin: 0;
  color: #334155;
  font-size: 18px;
}

.certificate-shell .summary-pill {
  display: inline-block;
  margin-top: 14px;
  border: 1px solid #D9A21B;
  border-radius: 6px;
  padding: 8px 20px;
  color: #071B4D;
  background: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.certificate-shell .certificate-seal {
  position: absolute;
  right: 68px;
  bottom: 150px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid #D9A21B;
  background: #FFF7E0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #071B4D;
  font-weight: 900;
  z-index: 3;
}

.certificate-shell .certificate-seal div {
  font-size: 28px;
  line-height: 1;
}

.certificate-shell .certificate-seal span {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.certificate-shell .certificate-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  border-top: 1px solid #CBD5E1;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 42px;
  align-items: end;
  z-index: 2;
  min-height: 0;
}

.certificate-shell .signature-block {
  text-align: left;
}

.certificate-shell .signature-block.centre {
  text-align: center;
}

.certificate-shell .signature-line {
  width: 260px;
  max-width: 100%;
  border-top: 2px solid #071B4D;
  margin-bottom: 12px;
}

.certificate-shell .signature-block.centre .signature-line {
  margin-left: auto;
  margin-right: auto;
}

.certificate-shell .signature-block strong {
  display: block;
  color: #071B4D;
  font-size: 17px;
  font-weight: 900;
}

.certificate-shell .signature-block span {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.certificate-shell .certificate-ref-bottom {
  text-align: right;
}

.certificate-shell .certificate-ref-bottom span {
  display: block;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.certificate-shell .certificate-ref-bottom strong {
  display: block;
  color: #071B4D;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
}

@media (max-width: 1200px) {
  .certificate-scale-wrap {
    transform: scale(0.82);
  }

  .certificate-modal-body {
    min-height: 700px;
  }
}

@media (max-width: 900px) {
  .certificate-scale-wrap {
    transform: scale(0.68);
  }

  .certificate-modal-body {
    min-height: 560px;
    justify-content: flex-start;
  }
}

.recognition-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.recognition-main .learner-avatar.large {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border: 4px solid #ffffff;
  outline: 3px solid var(--gold);
  object-fit: cover;
}

.recognition-main h4,
.recognition-main p {
  margin: 0;
}

.recognition-level {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff2bd;
  color: #7a5600;
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.recognition-level.platinum {
  background: #111827;
  color: #ffffff;
}

.recognition-level.gold {
  background: #fff2bd;
  color: #7a5600;
}

.recognition-level.silver {
  background: #eef2f6;
  color: #3e5165;
}

.recognition-level.bronze {
  background: #fff1e4;
  color: #8a4f1d;
}

.recognition-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.recognition-metrics span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.recognition-metrics b {
  color: var(--navy);
  font-size: 1.05rem;
}

.recognition-save-button.is-saved {
  background: #18A558;
  border-color: #18A558;
  color: #ffffff;
}

.recognition-save-button.is-failed {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
}

.recognition-save-button.has-unsaved-changes {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.recognition-save-feedback {
  min-height: 20px;
  margin: 0;
  font-weight: 900;
}

.recognition-save-feedback.success {
  color: #137a3f;
}

.recognition-save-feedback.error {
  color: #b42318;
}

.recognition-save-feedback.unsaved {
  color: #9b6b00;
}

@media (max-width: 1100px) {
  .recognition-learner-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .management-dashboard-page,
  .management-actions-today,
  .management-risk-overview,
  .management-case-panel {
    padding: 14px;
  }

  .management-workflow-strip,
  .management-decision-answer-grid {
    grid-template-columns: 1fr;
  }

  .create-admin-tool-card,
  .create-admin-form-grid,
  .create-tutor-photo-panel {
    grid-template-columns: 1fr;
  }

  .create-tutor-photo-panel {
    justify-items: center;
    gap: 18px;
    padding: 22px 18px;
    text-align: center;
  }

  .create-tutor-photo-preview {
    justify-self: center;
    width: 118px;
    height: 118px;
    min-width: 118px;
  }

  .create-tutor-photo-actions {
    justify-content: center;
  }

  .create-tutor-photo-actions .secondary-action {
    min-width: min(150px, 100%);
  }

  .management-search-panel,
  .management-profile-hero,
  .quick-card-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .management-search-actions {
    justify-items: start;
  }

  .quick-card-badges,
  .quick-card-actions {
    justify-content: flex-start;
  }

  .management-case-hero,
  .management-risk-top,
  .management-risk-bottom {
    grid-template-columns: 1fr;
  }

  .management-risk-badges,
  .management-risk-bottom .management-card-actions {
    justify-content: flex-start;
  }

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

  .recognition-main {
    align-items: flex-start;
  }

  .management-action-learner,
  .management-risk-identity,
  .management-form-identity {
    align-items: flex-start;
  }

  .management-risk-identity .learner-avatar.large,
  .management-action-learner .learner-avatar.large,
  .management-form-identity .learner-avatar.large {
    width: 68px;
    height: 68px;
    min-width: 68px;
  }
}

.recent-score-list,
.intervention-history-list {
  display: grid;
  gap: 10px;
}

.recent-score-list article,
.intervention-history-list article {
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .progress-intervention-hero,
  .intervention-profile-hero,
  .guidance-grid,
  .record-intervention-form {
    grid-template-columns: 1fr;
  }

  .tutor-learner-search-controls,
  .tutor-search-action-bar,
  .tutor-learner-lesson-row,
  .tutor-progress-summary-bar,
  .criteria-standards-grid,
  .tutor-evidence-viewer-grid,
  .tutor-audit-timeline article,
  .try-again-choice-grid {
    grid-template-columns: 1fr;
  }
}

.lesson-upload-zone strong,
.lesson-upload-zone p {
  margin: 0;
}

.lesson-upload-button {
  position: relative;
  justify-self: center;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.lesson-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lesson-signoff-request {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf2;
}

.workbook-progress-steps .needs-action {
  background: #fff4cf;
  color: #7a5600;
}

.workbook-progress-steps .needs-action span {
  background: #F2B632;
  color: #0B1F4D;
}

@media (min-width: 1024px) {
  #learnerPortalContent .lesson-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lesson-workbook-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
    gap: 24px;
    align-items: start;
  }

  .lesson-workbook-right {
    position: static;
  }

  .lesson-workbook-left .workbook-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-workbook-right .workbook-progress-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .phase-progress-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .phase-progress-head > strong {
    justify-self: start;
  }

  .focused-lesson-page,
  .focused-lesson-topbar {
    padding: 14px;
  }

  .focused-lesson-topbar {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .lesson-list,
  #learnerPortalContent .lesson-card.open .task-groups,
  .lesson-workbook-grid,
  .lesson-workflow-grid,
  .lesson-resource-grid,
  .lesson-workbook-left .workbook-checklist,
  .lesson-workbook-right .workbook-progress-steps {
    grid-template-columns: 1fr;
  }

  .lesson-workbook-page {
    padding: 14px;
  }

  #learnerPortalContent .lesson-card.open .task-groups {
    padding: 12px;
  }
}

/* Clean professional ILP review document */
.tutor-ilp-page {
  max-width: 1180px;
  margin: 0 auto;
}

.clean-ilp-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 35, 63, 0.08);
}

.clean-ilp-header h3 {
  margin: 4px 0;
  color: #0B1F4D;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.clean-ilp-header p {
  margin: 0;
  color: var(--muted);
}

.clean-ilp-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.clean-ilp-picker {
  display: flex;
  justify-content: flex-end;
}

.clean-learner-banner {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr) minmax(230px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0B1F4D, #173B75);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 35, 63, 0.16);
}

.ilp-learner-header {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0B1F4D, #183E7A);
  box-sizing: border-box;
  overflow: visible;
}

.ilp-learner-header > *,
.ilp-learner-identity,
.ilp-learner-details,
.ilp-learner-status {
  min-width: 0;
}

.ilp-learner-name {
  max-width: 100%;
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  overflow: visible;
}

.clean-learner-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.clean-learner-identity .learner-avatar.large {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border: 5px solid #F2B632;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 5px #ffffff;
}

.clean-learner-identity h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.ilp-learner-identity {
  grid-template-columns: 1fr;
  justify-items: start;
}

.ilp-learner-identity .learner-avatar.large {
  margin-bottom: 12px;
}

.clean-learner-identity p,
.clean-learner-identity span {
  display: block;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.clean-learner-details {
  display: grid;
  gap: 10px;
}

.clean-learner-details div,
.clean-learner-status div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.clean-learner-details span,
.clean-learner-status span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clean-learner-details strong,
.clean-learner-status strong {
  color: #ffffff;
  line-height: 1.25;
}

.clean-learner-status {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.clean-learner-status .rag-badge {
  justify-self: start;
}

.evidence-required-panel,
.signed-lock-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #fff9e8;
  border: 1px solid rgba(242, 182, 50, 0.45);
}

.evidence-required-panel h4,
.signed-lock-panel h4 {
  margin: 0;
  color: #0B1F4D;
}

.evidence-required-panel p,
.signed-lock-panel p {
  margin: 0;
  color: var(--ink);
}

.signed-lock-panel {
  background: rgba(24, 165, 88, 0.08);
  border-color: rgba(24, 165, 88, 0.28);
}

.grade-picker button:disabled,
.comment-label textarea:disabled,
.comment-label input:disabled,
.signoff-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ilp-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-left: 8px solid #18A558;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.08);
}

.ilp-status-panel.amber {
  border-left-color: #F2B632;
}

.ilp-status-panel.red {
  border-left-color: #C0392B;
}

.ilp-status-panel h4 {
  margin: 4px 0 8px;
  color: #0B1F4D;
  font-size: 1.5rem;
}

.ilp-status-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

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

.clean-progress-grid .ilp-progress-card {
  min-height: 170px;
  align-content: space-between;
  border: 1px solid rgba(11, 31, 77, 0.06);
  background: #ffffff;
}

.clean-progress-grid .ilp-progress-card.green {
  border-top: 5px solid #18A558;
}

.clean-progress-grid .ilp-progress-card.amber {
  border-top: 5px solid #F2B632;
}

.clean-progress-grid .ilp-progress-card.red {
  border-top: 5px solid #C0392B;
}

.clean-progress-grid .ilp-progress-card.neutral {
  border-top: 5px solid #94a3b8;
}

.clean-progress-grid .ilp-progress-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.ilp-phase-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ilp-phase-journey article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 180px;
  padding: 18px;
  border-radius: 18px;
  background: #eef2f6;
  color: var(--muted);
}

.ilp-phase-journey article.progress {
  background: linear-gradient(145deg, #F2B632, #ffe08a);
  color: #0B1F4D;
  box-shadow: 0 14px 30px rgba(242, 182, 50, 0.22);
}

.ilp-phase-journey article.complete {
  background: rgba(24, 165, 88, 0.12);
  color: #106f3c;
}

.phase-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0B1F4D;
  font-weight: 900;
}

.ilp-phase-journey article span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ilp-phase-journey article strong {
  color: inherit;
}

.clean-phase-metrics {
  display: grid;
  gap: 6px;
}

.clean-phase-metrics span {
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-transform: none;
}

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

.outstanding-action-grid article {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9fc;
}

.outstanding-action-grid article.needs-action {
  border-left: 5px solid #F2B632;
  background: #fff9e8;
}

.outstanding-action-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.outstanding-action-grid strong {
  color: #0B1F4D;
  font-size: 1.6rem;
}

.outstanding-action-grid p {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

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

.review-notes-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-notes-grid textarea,
.review-notes-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.review-notes-grid textarea {
  min-height: 132px;
  resize: vertical;
}

.review-notes-grid label:nth-child(-n + 3) {
  grid-column: span 1;
}

@media (max-width: 1100px) {
  .clean-learner-banner,
  .clean-ilp-header {
    grid-template-columns: 1fr;
  }

  .ilp-learner-header {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  }

  .ilp-learner-status {
    grid-column: 1 / -1;
  }

  .clean-ilp-header-actions,
  .clean-ilp-picker {
    justify-content: flex-start;
  }

  .clean-progress-grid,
  .ilp-phase-journey,
  .outstanding-action-grid,
  .tutor-review-notes .review-notes-grid,
  .elite-intervention-hero,
  .next-step-panel,
  .intervention-action-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .elite-guidance-grid .why-card,
  .elite-guidance-grid .script-card {
    grid-column: span 1;
  }

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

@media (max-width: 680px) {
  .clean-learner-identity,
  .clean-learner-details div,
  .clean-learner-status div,
  .ilp-status-panel,
  .clean-progress-grid,
  .ilp-phase-journey,
  .outstanding-action-grid,
  .tutor-review-notes .review-notes-grid,
  .elite-intervention-hero,
  .elite-summary-strip,
  .intervention-pathway,
  .elite-guidance-grid,
  .next-step-panel,
  .next-step-grid,
  .intervention-action-panel {
    grid-template-columns: 1fr;
  }

  .clean-learner-banner,
  .clean-ilp-header,
  .ilp-status-panel,
  .elite-intervention-hero {
    padding: 18px;
  }

  .ilp-learner-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .elite-learner-lockup,
  .elite-intervention-meta {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .elite-intervention-meta div,
  .intervention-action-buttons {
    justify-content: flex-start;
  }

  .intervention-pathway article::after {
    display: none;
  }

  .intervention-evidence-timeline article {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body:has(.management-report-document) * {
    visibility: hidden !important;
  }

  body:has(.management-report-document) .management-report-preview,
  body:has(.management-report-document) .management-report-preview * {
    visibility: visible !important;
  }

  body:has(.management-report-document) .management-report-toolbar,
  body:has(.management-report-document) .management-report-toolbar * {
    display: none !important;
    visibility: hidden !important;
  }

  body:has(.management-report-document) .management-report-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

body:has(.management-report-document) .management-report-document {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #0B1F4D !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.management-report-document {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  padding: 10mm;
}

.management-report-header {
  grid-template-columns: 34mm minmax(0, 1fr) 45mm;
  gap: 8mm;
  padding-bottom: 4mm;
}

.management-report-header img {
  width: 31mm;
}

.management-report-header h1 {
  font-size: 1.15rem;
}

.management-report-meta {
  gap: 2px;
  padding: 6px 8px;
}

.report-identity-banner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18mm minmax(0, 1fr) 42mm;
  gap: 4mm;
  align-items: center;
  margin-top: 4mm;
  padding: 5mm;
  border-radius: 10px;
  border-left: 5px solid var(--gold);
  background: var(--navy);
  color: #ffffff;
}

.report-identity-banner .avatar,
.report-identity-banner .learner-avatar {
  width: 16mm;
  height: 16mm;
}

.report-identity-banner h2,
.report-identity-banner p {
  margin: 0;
}

.report-identity-banner h2 {
  font-size: 1.25rem;
  color: #ffffff;
}

.report-identity-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-status-stack {
  display: grid;
  gap: 5px;
}

.report-status-pill,
.report-risk-pill {
  display: block;
  padding: 5px 7px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.report-risk-pill.monitor {
  background: #fff7ed;
  color: #9a5a00;
}

.report-risk-pill.amber {
  background: #fff3c4;
  color: #7a4b00;
}

.report-risk-pill.red {
  background: #ffe1e1;
  color: #9e1c1c;
}

.report-risk-pill.critical {
  background: #ffe1e1;
  color: #9e1c1c;
}

.report-decision-row,
.report-metric-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 4mm;
}

.report-decision-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-metric-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-decision-row article,
.report-metric-row article {
  display: grid;
  gap: 3px;
  min-height: 25mm;
  align-content: start;
  padding: 7px;
  border: 1px solid #e3ebf5;
  border-top: 5px solid #18A558;
  border-radius: 8px;
  background: #f0fbf5;
}

.report-decision-row article.monitor,
.report-metric-row article.monitor {
  border-top-color: #f59e0b;
  background: #fff7ed;
}

.report-decision-row article.amber,
.report-metric-row article.amber {
  border-top-color: var(--gold);
  background: #fff8e8;
}

.report-decision-row article.red,
.report-metric-row article.red,
.report-decision-row article.critical,
.report-metric-row article.critical {
  border-top-color: #dc4c4c;
  background: #fff2f2;
}

.report-decision-row span,
.report-metric-row span,
.report-panel h3,
.report-summary-box h3,
.report-recommendation span {
  color: #58677d;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-decision-row strong,
.report-metric-row strong {
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.1;
}

.report-decision-row p,
.report-metric-row p {
  margin: 0;
  color: #3b4d65;
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1.2;
}

.report-two-column {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4mm;
  margin-top: 4mm;
}

.report-panel,
.report-summary-box,
.report-recommendation {
  position: relative;
  z-index: 1;
  border: 1px solid #e3ebf5;
  border-radius: 9px;
  background: #fbfdff;
}

.report-panel {
  padding: 8px;
}

.report-panel h3,
.report-summary-box h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.report-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.report-panel th,
.report-panel td {
  padding: 4px 3px;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
  vertical-align: top;
}

.report-panel th {
  width: 47%;
  color: #58677d;
  font-weight: 1000;
}

.report-strip {
  display: grid;
  gap: 4px;
}

.report-strip article {
  display: grid;
  gap: 1px;
  padding: 4px 0 4px 8px;
  border-left: 3px solid var(--gold);
}

.report-strip span {
  color: #58677d;
  font-size: 0.57rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.report-strip strong {
  color: var(--navy);
  font-size: 0.68rem;
  line-height: 1.15;
}

.report-summary-box {
  margin-top: 4mm;
  padding: 8px 10px;
}

.report-summary-box p {
  margin: 0;
  color: #26364d;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.report-recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3mm;
  padding: 8px 10px;
  border-left: 5px solid var(--gold);
  background: #fffaf0;
}

.report-recommendation strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.report-signatures.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12mm;
  padding-top: 6mm;
}

.report-signatures.compact div {
  min-height: 15mm;
}

.report-signatures.compact strong,
.report-signatures.compact small {
  font-size: 0.68rem;
}

.management-report-footer {
  position: absolute;
  right: 10mm;
  bottom: 7mm;
  left: 10mm;
  padding-top: 0;
  border-top: 1px solid #e3ebf5;
  font-size: 0.62rem;
}

.management-report-footer span:last-child::after,
.management-report-document::after {
  content: none !important;
}

.curriculum-management-page {
  display: grid;
  gap: 20px;
}

.curriculum-title {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #071b4d, #0f2d64);
  color: #ffffff;
  border-bottom: 4px solid var(--gold);
}

.curriculum-title h4,
.curriculum-title p,
.curriculum-title .eyebrow {
  color: #ffffff;
}

.lesson-builder-entry-page {
  width: 100%;
  max-width: none;
}

.lesson-builder-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1180px;
}

.lesson-builder-choice-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(214, 164, 44, 0.6);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #071b4d 0%, #102e66 100%);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.18),
    0 0 0 3px rgba(214, 164, 44, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 0 rgba(214, 164, 44, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lesson-builder-choice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d6a42c, #f2bd2b, #ffe18a);
}

.lesson-builder-choice-card:hover,
.lesson-builder-choice-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.22),
    0 0 0 4px rgba(214, 164, 44, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(214, 164, 44, 0.42);
}

.lesson-builder-choice-card span,
.lesson-builder-choice-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lesson-builder-choice-card span {
  font-size: 0.76rem;
}

.lesson-builder-choice-card strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.lesson-builder-choice-card small {
  max-width: 36rem;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: none;
}

.lesson-builder-placeholder {
  padding: 28px;
}

.curriculum-admin-nav,
.curriculum-phase-nav {
  display: grid;
  gap: 12px;
}

.curriculum-admin-nav {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.curriculum-admin-nav span {
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
}

.curriculum-phase-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.curriculum-phase-nav button {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.curriculum-phase-nav button.active {
  border-color: var(--gold);
  background: #fff8e3;
  box-shadow: 0 0 0 3px rgba(214, 164, 44, 0.16);
}

.curriculum-phase-nav span,
.curriculum-phase-nav small,
.curriculum-lesson-button span,
.curriculum-lesson-button small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.curriculum-phase-nav strong,
.curriculum-lesson-button strong {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.2;
}

.curriculum-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.curriculum-lesson-list,
.curriculum-builder-main,
.curriculum-editor-card,
.curriculum-learner-preview {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.curriculum-lesson-list {
  position: sticky;
  top: 14px;
  overflow: hidden;
}

.curriculum-list-head,
.curriculum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #e7eef8;
}

.curriculum-lessons-scroll {
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow: auto;
  padding: 12px;
}

.curriculum-lesson-button {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.curriculum-lesson-button.active {
  border-left-color: var(--gold);
  background: #fff8e3;
}

.theory-lesson-builder-page .curriculum-lesson-button.theory-builder-lesson-card--published {
  padding-bottom: 34px;
  border-color: rgba(22, 163, 74, 0.34);
  border-left-color: #16a34a;
  background:
    linear-gradient(180deg, rgba(237, 252, 242, 0.92), rgba(248, 255, 250, 0.98)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.08), 0 8px 20px rgba(15, 23, 42, 0.05);
}

.theory-lesson-builder-page .curriculum-lesson-button.theory-builder-lesson-card--published.active {
  border-color: rgba(214, 164, 44, 0.72);
  border-left-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 248, 227, 0.94), rgba(240, 253, 244, 0.98)),
    #ffffff;
  box-shadow: 0 0 0 3px rgba(214, 164, 44, 0.16), inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.theory-builder-lesson-published-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 8px;
  border: 1px solid rgba(22, 101, 52, 0.24);
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 12px rgba(22, 101, 52, 0.1);
}

.curriculum-lesson-button.archived {
  opacity: 0.62;
  background: #f8fafc;
}

.curriculum-builder-main {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
  overflow: hidden;
}

.curriculum-toolbar-actions,
.curriculum-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.curriculum-save-message {
  margin: 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 900;
}

.curriculum-save-message.success {
  background: #e8f7ec;
  color: #166534;
  border: 1px solid #4caf50;
}

.curriculum-save-message.error {
  background: #fff0f0;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.curriculum-editor-card,
.curriculum-learner-preview {
  margin: 0 18px;
  padding: 18px;
}

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

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

.curriculum-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--navy);
  font-weight: 900;
}

.curriculum-field textarea {
  min-height: 120px;
  resize: vertical;
}

.theory-tutor-engine-panel {
  display: grid;
  gap: 18px;
}

.theory-outcome-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #4caf50;
  border-radius: 999px;
  background: #e8f7ec;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.theory-outcome-status.draft {
  border-color: #d6a42c;
  background: #fff8e3;
  color: #7a4b00;
}

.theory-outcome-learning-outcome {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(214, 164, 44, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf5, #ffffff);
  color: var(--navy);
}

.theory-outcome-learning-outcome span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.theory-outcome-learning-outcome strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.45;
}

.theory-learning-outcome-helper {
  margin: 8px 0 0;
  color: #52627a;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.55;
}

.theory-outcome-dev-debug {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(214, 164, 44, 0.8);
  border-radius: 10px;
  background: #fff8e3;
  color: #7a4b00;
  font-size: 0.78rem;
  font-weight: 800;
}

.theory-outcome-dev-debug strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.theory-outcome-actions,
.theory-outcome-footer-actions,
.theory-outcome-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theory-outcome-actions,
.theory-outcome-footer-actions {
  justify-content: flex-end;
}

.theory-outcome-footer-actions .primary-action.is-published,
.theory-outcome-footer-actions .primary-action.is-published:disabled {
  border-color: #16a34a;
  background: linear-gradient(180deg, #178a4f 0%, #0f6f42 100%);
  color: #ffffff;
  cursor: default;
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(22, 101, 52, 0.2);
}

.theory-outcome-published-message {
  justify-self: end;
  margin: -8px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(22, 163, 74, 0.38);
  border-radius: 999px;
  background: #e8f7ec;
  color: #166534;
  font-size: 0.88rem;
  font-weight: 950;
}

.theory-outcome-question-list {
  display: grid;
  gap: 16px;
}

.theory-outcome-approval-summary {
  display: grid;
  gap: 7px;
  padding: 15px 16px;
  border: 1px solid #dbe3ef;
  border-left: 5px solid #d6a42c;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--navy);
}

.theory-outcome-approval-summary.complete {
  border-color: #4caf50;
  border-left-color: #16a34a;
  background: linear-gradient(180deg, #edfdf2, #f8fffa);
}

.theory-outcome-approval-summary span,
.theory-question-approved-badge,
.theory-question-review-badge {
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.theory-outcome-approval-summary strong {
  color: var(--navy);
  font-size: 1.2rem;
}

.theory-outcome-approval-summary p {
  margin: 0;
  color: #526176;
  font-weight: 800;
}

.theory-outcome-question-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.theory-outcome-question-card.is-approved {
  border-color: rgba(22, 163, 74, 0.48);
  border-left-color: #16a34a;
  background: linear-gradient(180deg, rgba(237, 252, 242, 0.85), rgba(248, 255, 250, 0.95));
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.1);
}

.theory-outcome-question-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.theory-outcome-question-head h5 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.theory-question-approved-badge,
.theory-question-review-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
}

.theory-question-approved-badge {
  border: 1px solid #4caf50;
  background: #e8f7ec;
  color: #166534;
}

.theory-question-review-badge {
  border: 1px solid #f0c36a;
  background: #fff8e3;
  color: #7a4b00;
}

.theory-outcome-answer-grid,
.theory-outcome-question-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theory-outcome-question-card select.form-control {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 850;
}

.secondary-action.compact.danger {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fff7f7;
}

.theory-outcome-empty {
  padding: 22px;
}

.curriculum-image-manager {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.curriculum-guide-image-card {
  display: grid;
  gap: 18px;
}

.curriculum-guide-image-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
}

.curriculum-guide-upload {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 340px;
  padding: 28px;
  border: 2px dashed rgba(214, 164, 44, 0.75);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 77, 0.05);
}

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

.curriculum-guide-upload strong {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 1000;
}

.curriculum-guide-upload span {
  max-width: 25rem;
  color: #526176;
  font-weight: 800;
  line-height: 1.45;
}

.curriculum-guide-upload em {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%);
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(7, 27, 66, 0.18);
}

.curriculum-guide-preview-panel {
  display: grid;
  gap: 10px;
}

.curriculum-guide-image-preview {
  min-height: 340px;
}

.curriculum-image-preview,
.curriculum-preview-placeholder {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
}

.curriculum-image-preview img,
.curriculum-preview-image {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
}

.curriculum-gallery-list,
.curriculum-signoff-options,
.curriculum-toggle-grid,
.curriculum-resource-picker {
  display: grid;
  gap: 10px;
}

.curriculum-gallery-list span,
.curriculum-signoff-options span {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--navy);
  font-weight: 900;
}

.curriculum-resource-actions {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.curriculum-resource-actions input {
  flex: 1 1 260px;
}

.curriculum-resource-picker label,
.curriculum-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
}

.curriculum-resource-picker label span {
  display: grid;
  gap: 3px;
}

.curriculum-resource-picker small {
  color: #64748b;
  font-size: 0.72rem;
}

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

.curriculum-version-list {
  display: grid;
  gap: 10px;
}

.curriculum-version-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.curriculum-learner-preview {
  border-color: var(--gold);
  background: #fffdf7;
}

.admin-lesson-viewer-page {
  display: grid;
  gap: 20px;
}

.admin-lesson-viewer-title {
  border: 1px solid rgba(242, 189, 43, 0.42);
  border-left: 6px solid #f2bd2b;
  background: linear-gradient(135deg, #071b4d 0%, #0d2b6b 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(7, 27, 77, 0.16);
}

.admin-lesson-viewer-title h4,
.admin-lesson-viewer-title p,
.admin-lesson-viewer-title .eyebrow {
  color: #fff;
}

.admin-lesson-viewer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-lesson-viewer-tabs button {
  min-height: 76px;
  border: 2px solid rgba(242, 189, 43, 0.92);
  border-radius: 20px;
  background: linear-gradient(135deg, #071b4d 0%, #123575 100%);
  color: #fff;
  font-weight: 950;
  font-size: 1rem;
  box-shadow:
    0 16px 32px rgba(7, 27, 77, 0.18),
    0 0 0 4px rgba(242, 189, 43, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 0 rgba(242, 189, 43, 0.42);
}

.admin-lesson-viewer-tabs button.active {
  background: linear-gradient(135deg, #f2bd2b 0%, #ffe18a 100%);
  color: #071b4d;
  border-color: rgba(7, 27, 77, 0.18);
  box-shadow:
    0 16px 32px rgba(7, 27, 77, 0.16),
    0 0 0 4px rgba(242, 189, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(7, 27, 77, 0.16);
}

.admin-lesson-viewer-empty,
.admin-lesson-builder-link {
  padding: 22px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 27, 77, 0.08);
}

.admin-lesson-viewer-empty p {
  margin: 0;
  color: #526176;
  font-weight: 750;
}

.admin-lesson-viewer-list {
  display: grid;
  gap: 16px;
}

.admin-lesson-viewer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-lesson-viewer-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: 20px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-top: 4px solid #f2bd2b;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 27, 77, 0.09);
}

.admin-lesson-viewer-card h4 {
  margin: 0;
  color: #071b4d;
  font-size: 1.05rem;
  line-height: 1.25;
}

.admin-lesson-viewer-card p {
  margin: 6px 0 0;
  color: #526176;
  font-weight: 700;
}

.admin-lesson-viewer-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-lesson-viewer-card dl div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: #f7faff;
}

.admin-lesson-viewer-card dt {
  color: #526176;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-lesson-viewer-card dd {
  margin: 3px 0 0;
  color: #071b4d;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-lesson-preview-page {
  gap: 16px;
}

.admin-lesson-preview-frame {
  border-radius: 24px;
  background: #eef4fb;
}

.admin-lesson-preview-frame[inert] {
  cursor: default;
}

.curriculum-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.curriculum-preview-grid article {
  padding: 14px;
  border: 1px solid #e7eef8;
  border-radius: 12px;
  background: #ffffff;
}

.curriculum-preview-grid h5 {
  margin: 0 0 8px;
  color: var(--navy);
}

@media (max-width: 1100px) {
  .curriculum-phase-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curriculum-workspace,
  .curriculum-image-manager,
  .curriculum-guide-image-layout {
    grid-template-columns: 1fr;
  }

  .curriculum-lesson-list {
    position: static;
  }
}

@media (max-width: 720px) {
  .lesson-builder-choice-grid,
  .admin-lesson-viewer-tabs,
  .admin-lesson-viewer-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .curriculum-phase-nav,
  .curriculum-form-grid,
  .curriculum-form-grid.compact,
  .curriculum-toggle-grid,
  .curriculum-preview-grid,
  .theory-outcome-answer-grid,
  .theory-outcome-question-meta {
    grid-template-columns: 1fr;
  }

  .curriculum-toolbar,
  .curriculum-list-head,
  .theory-outcome-question-head {
    flex-direction: column;
  }

  .curriculum-toolbar-actions,
  .theory-outcome-actions,
  .theory-outcome-footer-actions {
    justify-content: flex-start;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body:has(.management-report-document) * {
    visibility: hidden !important;
  }

  body:has(.management-report-document) .management-report-preview,
  body:has(.management-report-document) .management-report-preview * {
    visibility: visible !important;
  }

  body:has(.management-report-document) .management-report-toolbar,
  body:has(.management-report-document) .management-report-toolbar *,
  body:has(.management-report-document) .no-print {
    display: none !important;
    visibility: hidden !important;
  }

  body:has(.management-report-document) .management-report-preview {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body:has(.management-report-document) .management-report-document {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 10mm !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #ffffff !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body * {
    visibility: hidden !important;
  }

  .management-report-print-area,
  .management-report-print-area * {
    visibility: visible !important;
  }

  .management-report-preview {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .management-report-print-area {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 10mm !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print,
  .no-print *,
  .management-report-toolbar,
  .management-report-toolbar * {
    display: none !important;
    visibility: hidden !important;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  body:has(.certificate-preview) *,
  body:has(.uploaded-certificate-preview) * {
    visibility: hidden !important;
  }

  body:has(.certificate-preview) .certificate-modal-overlay,
  body:has(.certificate-preview) .certificate-preview-modal,
  body:has(.certificate-preview) .certificate-preview,
  body:has(.certificate-preview) .certificate-preview *,
  body:has(.uploaded-certificate-preview) .certificate-modal-overlay,
  body:has(.uploaded-certificate-preview) .certificate-preview-modal,
  body:has(.uploaded-certificate-preview) .uploaded-certificate-preview {
    visibility: visible !important;
  }

  body:has(.certificate-preview) .certificate-modal-overlay,
  body:has(.uploaded-certificate-preview) .certificate-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body:has(.certificate-preview) .certificate-preview-modal,
  body:has(.uploaded-certificate-preview) .certificate-preview-modal {
    display: block !important;
    width: 297mm !important;
    max-width: none !important;
    height: 210mm !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8mm !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:has(.certificate-preview) .certificate-preview {
    width: 281mm !important;
    max-width: none !important;
    min-height: 194mm !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body:has(.uploaded-certificate-preview) .uploaded-certificate-preview {
    width: 281mm !important;
    max-width: none !important;
    max-height: 194mm !important;
    object-fit: contain !important;
    box-shadow: none !important;
  }

  body:has(.certificate-preview) .certificate-preview-modal > header,
  body:has(.certificate-preview) .modal-actions,
  body:has(.uploaded-certificate-preview) .certificate-preview-modal > header,
  body:has(.uploaded-certificate-preview) .modal-actions {
    display: none !important;
    visibility: hidden !important;
  }
}

.certificate-shell {
  width: 1123px;
  height: 794px;
  max-width: 100%;
  background: #ffffff;
  border: 8px solid #071B4D;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #071B4D;
  box-shadow: 0 28px 70px rgba(7, 27, 77, 0.2);
}

.certificate-shell .certificate-inner {
  width: 100%;
  height: 100%;
  border: 2px solid #D9A21B;
  border-radius: 8px;
  padding: 34px 42px;
  box-sizing: border-box;
  position: relative;
  display: block;
  overflow: hidden;
  background: #ffffff;
}

.certificate-shell .certificate-inner::before,
.certificate-shell .certificate-inner::after {
  display: none;
}

.certificate-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.045;
  font-size: 160px;
  font-weight: 900;
  color: #071B4D;
  pointer-events: none;
}

.certificate-shell .certificate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.certificate-shell .certificate-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.certificate-shell .certificate-brand img {
  width: 145px;
  height: auto;
  object-fit: contain;
}

.certificate-shell .certificate-brand-text {
  letter-spacing: 5px;
  font-weight: 900;
  color: #475569;
  font-size: 14px;
  text-transform: uppercase;
}

.certificate-shell .certificate-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: #071B4D;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.35;
  text-transform: uppercase;
}

.certificate-shell .certificate-body {
  text-align: center;
  margin-top: 54px;
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 92px;
}

.certificate-shell .certificate-heading {
  color: #A47708;
  letter-spacing: 12px;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.certificate-shell .presented-to {
  font-size: 28px;
  color: #071B4D;
  font-weight: 800;
  margin: 0;
}

.certificate-shell .learner-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 900;
  color: #071B4D;
  margin: 18px 0 12px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.certificate-shell .learner-meta {
  font-size: 18px;
  color: #64748B;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0;
}

.certificate-shell .awarded-text {
  margin: 24px 0 0;
  font-size: 22px;
  color: #334155;
  font-weight: 700;
}

.certificate-shell .award-title {
  margin: 16px 0 0;
  color: #A47708;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.certificate-shell .award-standard-pill {
  margin: 18px auto;
  display: inline-block;
  background: #071B4D;
  color: #F5B41B;
  padding: 14px 52px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.certificate-shell .recognition-box {
  margin: 30px auto 0;
  width: 76%;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF7E0 100%);
  border-top: 2px solid #D9A21B;
  border-bottom: 2px solid #D9A21B;
  padding: 18px 24px;
}

.certificate-shell .recognition-title {
  color: #071B4D;
  font-weight: 900;
  letter-spacing: 5px;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0;
}

.certificate-shell .recognition-summary {
  margin: 12px 0 0;
  font-size: 18px;
  color: #334155;
}

.certificate-shell .recognition-pill {
  display: inline-block;
  margin-top: 14px;
  border: 1px solid #D9A21B;
  color: #071B4D;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 900;
  background: #FFFDF7;
}

.certificate-shell .award-seal {
  position: absolute;
  right: 58px;
  bottom: 150px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid #D9A21B;
  background: #FFF7E0;
  color: #071B4D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  z-index: 3;
}

.certificate-shell .award-seal .seal-main {
  font-size: 28px;
  line-height: 1;
}

.certificate-shell .award-seal .seal-sub {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.15;
}

.certificate-shell .certificate-footer {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 28px;
  border-top: 1px solid #CBD5E1;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  min-height: 0;
  z-index: 2;
}

.certificate-shell .signature-block {
  text-align: left;
}

.certificate-shell .signature-block-centre {
  text-align: center;
}

.certificate-shell .signature-line {
  border-top: 2px solid #071B4D;
  width: 290px;
  max-width: 100%;
  margin-bottom: 12px;
}

.certificate-shell .signature-block-centre .signature-line {
  margin-inline: auto;
}

.certificate-shell .signature-name {
  color: #071B4D;
  font-weight: 900;
  font-size: 17px;
}

.certificate-shell .signature-role {
  color: #475569;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.certificate-shell .certificate-reference-bottom {
  text-align: right;
  color: #071B4D;
  font-weight: 900;
  letter-spacing: 2px;
}

.certificate-shell .certificate-reference-bottom span,
.certificate-shell .certificate-reference-bottom strong {
  display: block;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  body:has(.certificate-shell) * {
    visibility: hidden !important;
  }

  body:has(.certificate-shell) .certificate-modal-overlay,
  body:has(.certificate-shell) .certificate-preview-modal,
  body:has(.certificate-shell) .certificate-shell,
  body:has(.certificate-shell) .certificate-shell *,
  #certificate-print-root,
  #certificate-print-root * {
    display: revert !important;
    visibility: visible !important;
  }

  body:has(.certificate-shell) .certificate-modal-overlay,
  body:has(.certificate-shell) .certificate-preview-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body:has(.certificate-shell) .certificate-shell,
  #certificate-print-root .certificate-shell {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1123px !important;
    height: 794px !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-header,
  #certificate-print-root .certificate-shell .certificate-header,
  body:has(.certificate-shell) .certificate-shell .certificate-brand,
  #certificate-print-root .certificate-shell .certificate-brand {
    display: flex !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-inner,
  #certificate-print-root .certificate-shell .certificate-inner {
    display: grid !important;
    grid-template-rows: 90px 390px 120px 95px !important;
    padding: 36px 44px 30px !important;
    border: 2px solid #D9A21B !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-meta,
  #certificate-print-root .certificate-shell .certificate-meta,
  body:has(.certificate-shell) .certificate-shell .certificate-footer,
  #certificate-print-root .certificate-shell .certificate-footer {
    display: grid !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-main,
  #certificate-print-root .certificate-shell .certificate-main,
  body:has(.certificate-shell) .certificate-shell .certificate-summary,
  #certificate-print-root .certificate-shell .certificate-summary {
    display: block !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-seal,
  #certificate-print-root .certificate-shell .certificate-seal {
    display: flex !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-standard,
  #certificate-print-root .certificate-shell .certificate-standard,
  body:has(.certificate-shell) .certificate-shell .summary-pill,
  #certificate-print-root .certificate-shell .summary-pill {
    display: inline-block !important;
  }

  body:has(.certificate-shell) .certificate-preview-modal > header,
  body:has(.certificate-shell) .modal-actions {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Final certificate layout override: fixed A4 structure with safe vertical section spacing. */
.certificate-shell .certificate-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 28px 42px 24px !important;
  border: 2px solid #D9A21B !important;
  overflow: visible !important;
}

.certificate-shell .certificate-header {
  display: flex !important;
  position: relative !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 28px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  z-index: 2 !important;
}

.certificate-shell .certificate-meta {
  display: grid !important;
  gap: 8px !important;
  max-width: 340px !important;
  text-align: right !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  letter-spacing: 0.8px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.certificate-shell .certificate-main {
  display: block !important;
  align-self: start !important;
  flex: 0 1 auto !important;
  width: 100% !important;
  padding: 6px 88px 0 !important;
  text-align: center !important;
  z-index: 2 !important;
}

.certificate-shell .certificate-kicker {
  margin-bottom: 10px !important;
}

.certificate-shell .certificate-presented {
  margin-bottom: 7px !important;
}

.certificate-shell .certificate-name {
  font-size: 62px !important;
  margin-bottom: 9px !important;
}

.certificate-shell .certificate-learner-meta {
  margin-bottom: 14px !important;
}

.certificate-shell .certificate-awarded {
  margin-bottom: 8px !important;
}

.certificate-shell .certificate-award-title {
  font-size: 34px !important;
  margin-bottom: 10px !important;
}

.certificate-shell .certificate-standard {
  display: inline-block !important;
  margin-bottom: 10px !important;
  padding: 10px 42px !important;
  position: relative !important;
  z-index: 3 !important;
}

.certificate-shell .certificate-reason {
  font-size: 18px !important;
}

.certificate-shell .certificate-summary {
  display: block !important;
  position: relative !important;
  width: 72% !important;
  margin: 0 auto !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  max-height: none !important;
  padding: 13px 22px !important;
  overflow: visible !important;
  z-index: 2 !important;
}

.certificate-shell .summary-title {
  margin-bottom: 6px !important;
}

.certificate-shell .certificate-summary p {
  font-size: 16px !important;
}

.certificate-shell .summary-pill {
  margin-top: 8px !important;
  padding: 6px 18px !important;
}

.certificate-shell .certificate-seal {
  position: absolute !important;
  right: 62px !important;
  bottom: 132px !important;
  display: flex !important;
  width: 96px !important;
  height: 96px !important;
  z-index: 3 !important;
}

.certificate-shell .certificate-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 32px !important;
  align-items: end !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid #CBD5E1 !important;
  z-index: 2 !important;
}

.certificate-shell .signature-line {
  margin-bottom: 8px !important;
}

.certificate-shell .signature-block strong,
.certificate-shell .signature-block span,
.certificate-shell .certificate-ref-bottom span,
.certificate-shell .certificate-ref-bottom strong {
  line-height: 1.18 !important;
}

.certificate-shell .certificate-ref-bottom strong {
  overflow-wrap: anywhere;
}

@media print {
  body:has(.certificate-shell) .certificate-shell .certificate-inner,
  #certificate-print-root .certificate-shell .certificate-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 28px 42px 24px !important;
    overflow: visible !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-meta,
  #certificate-print-root .certificate-shell .certificate-meta {
    display: grid !important;
    gap: 8px !important;
    max-width: 340px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-main,
  #certificate-print-root .certificate-shell .certificate-main {
    padding: 6px 88px 0 !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-summary,
  #certificate-print-root .certificate-shell .certificate-summary {
    padding: 13px 22px !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-seal,
  #certificate-print-root .certificate-shell .certificate-seal {
    right: 62px !important;
    bottom: 132px !important;
    width: 96px !important;
    height: 96px !important;
  }

  body:has(.certificate-shell) .certificate-shell .certificate-footer,
  #certificate-print-root .certificate-shell .certificate-footer {
    gap: 32px !important;
    padding-top: 16px !important;
  }

  body:has(.certificate-shell) .certificate-shell .signature-line,
  #certificate-print-root .certificate-shell .signature-line {
    margin-bottom: 8px !important;
  }
}

/* School / Partner executive dashboard middle section. */
.cohort-position-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #f5b41b;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.cohort-position-card h3,
.cohort-position-card p {
  margin: 0;
}

.cohort-position-card h3 {
  margin-top: 5px;
  color: #071b4d;
  font-size: 1.24rem;
}

.cohort-position-card p:not(.eyebrow) {
  margin-top: 8px;
  color: #475569;
  line-height: 1.55;
  font-weight: 700;
}

.position-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.position-chips .chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #071b4d;
  font-size: 0.78rem;
  font-weight: 1000;
}

.position-chips .chip.green { border-color: #bbf7d0; background: #ecfdf3; color: #166534; }
.position-chips .chip.gold { border-color: #f5b41b; background: #fff7e0; color: #7a4f01; }
.position-chips .chip.amber { border-color: #fed7aa; background: #fff7e6; color: #92400e; }
.position-chips .chip.blue { border-color: #bfdbfe; background: #eef6ff; color: #1e40af; }

.executive-kpi-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0;
}

.kpi-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.kpi-group h4 {
  margin: 0 0 14px;
  color: #071b4d;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 900;
}

.kpi-mini-grid {
  display: grid;
  gap: 12px;
}

.executive-kpi-card {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #071b4d;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.executive-kpi-card .kpi-label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.executive-kpi-card strong {
  display: block;
  color: #071b4d;
  font-size: 34px;
  line-height: 1.1;
  margin: 4px 0;
}

.executive-kpi-card small {
  color: #475569;
  font-weight: 700;
}

.executive-kpi-card.green { border-left-color: #15803d; }
.executive-kpi-card.amber { border-left-color: #b45309; }
.executive-kpi-card.red { border-left-color: #b91c1c; }
.executive-kpi-card.blue { border-left-color: #1d4ed8; }
.executive-kpi-card.gold { border-left-color: #d9a21b; }
.executive-kpi-card.navy { border-left-color: #071b4d; }

.school-priority-card {
  border-left: 5px solid #f5b41b;
}

.school-priority-card h3 {
  margin: 4px 0 0;
  color: #071b4d;
  font-size: 1.24rem;
}

.school-priority-card .school-action-list li {
  position: relative;
  padding-left: 36px;
  background: #fbfdff;
}

.school-priority-card .school-action-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b41b;
}

.awards-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.awards-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.awards-header .eyebrow {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.awards-header h3 {
  margin: 4px 0;
  color: #071b4d;
  font-size: 22px;
}

.awards-header p {
  margin: 0;
  color: #475569;
}

.awards-count-badge {
  border: 1px solid #d9a21b;
  background: #fff7e0;
  color: #7a4f01;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  white-space: nowrap;
}

.awards-section .awards-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}

.award-card.premium {
  border: 1px solid #e2e8f0;
  border-top: 4px solid #d9a21b;
  border-left: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.award-card.premium:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 162, 27, 0.55);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.award-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.award-card-header .learner-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 2px solid #d9a21b;
  background: #fff7e0;
  color: #071b4d;
  font-size: 0.9rem;
}

.award-card.premium h4 {
  margin: 0;
  color: #071b4d;
  font-size: 17px;
}

.award-card-header p {
  margin: 3px 0 0;
  color: #071b4d;
  font-weight: 900;
}

.award-reason {
  color: #475569;
  line-height: 1.45;
  margin: 12px 0;
}

.award-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.award-meta span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.award-card.premium .award-certificate-link {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .executive-kpi-groups,
  .cohort-position-card {
    grid-template-columns: 1fr;
  }

  .position-chips {
    justify-content: flex-start;
  }
}

.tutor-signoff-layout:has(.report-incident-panel) .tutor-workspace-nav {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: #071b4d;
  box-shadow: 0 18px 44px rgba(4, 18, 54, 0.18);
}

.tutor-signoff-layout:has(.report-incident-panel) .tutor-workspace-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.tutor-signoff-layout:has(.report-incident-panel) .tutor-workspace-nav button.active {
  border-color: #f5b41b;
  background: #f5b41b;
  color: #071b4d;
}

.report-incident-panel {
  min-height: 100vh;
  background: #f4f7fb;
}

.report-incident-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 24px;
}

.incident-warning-banner {
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #061b46 0%, #0d3c87 100%);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(4, 18, 54, 0.24);
}

.incident-warning-banner .eyebrow {
  margin: 0;
  color: #f5b41b;
  letter-spacing: 0.22em;
}

.incident-warning-banner h1 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.incident-warning-banner p:not(.eyebrow) {
  max-width: 860px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.6;
}

.incident-form-card,
.incident-log-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.incident-submit-message {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 900;
}

.incident-submit-message.success {
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}

.incident-submit-message.urgent,
.incident-submit-message.error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

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

.incident-field {
  display: grid;
  gap: 8px;
}

.incident-field.full-width,
.incident-declaration.full-width,
.incident-submit-row.full-width {
  grid-column: 1 / -1;
}

.incident-field label,
.incident-declaration {
  color: #071b4d;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.incident-field input,
.incident-field select,
.incident-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.incident-field input,
.incident-field select {
  min-height: 52px;
  padding: 0 14px;
}

.incident-field textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.incident-field input:focus,
.incident-field select:focus,
.incident-field textarea:focus {
  border-color: #f5b41b;
  outline: none;
  box-shadow: 0 0 0 4px rgba(245, 180, 27, 0.16);
}

.incident-error {
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.incident-risk-card {
  min-height: 64px;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.incident-risk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.incident-risk-card--low { border-color: #86efac; background: #ecfdf3; color: #166534; }
.incident-risk-card--medium { border-color: #fde68a; background: #fff7e6; color: #92400e; }
.incident-risk-card--high { border-color: #fed7aa; background: #fff1e8; color: #9a3412; }
.incident-risk-card--critical { border-color: #fecaca; background: #fff1f2; color: #991b1b; }

.incident-risk-card--selected {
  box-shadow: 0 0 0 4px rgba(245, 180, 27, 0.25), 0 16px 30px rgba(15, 23, 42, 0.12);
  border-color: #071b4d;
}

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

.incident-toggle-button {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-weight: 1000;
  cursor: pointer;
}

.incident-toggle-button.active {
  border-color: #f5b41b;
  background: #071b4d;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 180, 27, 0.14);
}

.incident-follow-up-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.incident-check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fafc;
  color: #071b4d;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.incident-check-option input,
.incident-declaration input {
  width: 18px;
  height: 18px;
  accent-color: #071b4d;
}

.incident-upload-panel {
  padding: 18px;
  border: 2px dashed #cbd5e1;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.incident-upload-panel input[type="file"] {
  padding: 14px;
  border-style: dashed;
  background: #ffffff;
}

.incident-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.incident-evidence-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 900;
}

.incident-declaration {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #f8fafc;
}

.incident-submit-row {
  display: flex;
  justify-content: flex-end;
}

.incident-submit-button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #f5b41b;
  color: #071b4d;
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(245, 180, 27, 0.22);
  cursor: pointer;
}

@media (max-width: 760px) {
  .report-incident-shell {
    padding: 20px 14px;
  }

  .incident-warning-banner,
  .incident-form-card,
  .incident-log-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .incident-form-grid,
  .incident-risk-options {
    grid-template-columns: 1fr;
  }
}

/* Admin learner slot list: full-width horizontal rows */
body:has(#adminView:not(.hidden)) .app-shell {
  width: min(100%, 1500px);
}

#adminView .admin-record-panels {
  width: 100%;
}

#adminView .cohort-slot-overview {
  width: 100%;
  max-width: none;
  padding: 24px;
}

#adminView .cohort-slot-summary,
#adminView .live-setup-panel {
  width: 100%;
}

#adminView .cohort-slot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
  width: 100%;
}

#adminView .cohort-slot-card,
#adminView .cohort-slot-card.assigned,
#adminView .assigned-slot-card,
#adminView .cohort-slot-card.available {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-height: 108px;
  padding: 18px 20px;
  border-radius: 18px;
}

#adminView .assigned-slot-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

#adminView .assigned-slot-photo .learner-avatar.large {
  width: 76px;
  height: 76px;
}

#adminView .assigned-slot-main {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(190px, 1.1fr) minmax(260px, 1.4fr) auto minmax(210px, auto);
  gap: 16px;
  align-items: center;
}

#adminView .assigned-slot-main h5,
#adminView .assigned-slot-main .slot-card-top,
#adminView .assigned-slot-main .assigned-slot-meta,
#adminView .assigned-slot-main .slot-status,
#adminView .assigned-slot-main .assigned-slot-actions {
  margin: 0;
}

#adminView .assigned-slot-main .slot-card-top {
  display: grid;
  justify-content: start;
  gap: 6px;
}

#adminView .assigned-slot-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

#adminView .cohort-slot-card.available {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(220px, 1.4fr) auto minmax(220px, auto);
  gap: 18px;
  align-items: center;
}

#adminView .cohort-slot-card.available .slot-card-top,
#adminView .cohort-slot-card.available h5,
#adminView .cohort-slot-card.available .slot-status,
#adminView .cohort-slot-card.available button {
  margin: 0;
}

#adminView .cohort-slot-card.available button {
  justify-self: end;
  min-width: 210px;
}

@media (max-width: 1100px) {
  #adminView .assigned-slot-main,
  #adminView .cohort-slot-card.available {
    grid-template-columns: 1fr;
  }

  #adminView .assigned-slot-actions,
  #adminView .cohort-slot-card.available button {
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 720px) {
  #adminView .assigned-slot-profile {
    grid-template-columns: 1fr;
  }
}

/* Final override: Admin > Create real learner records full-width row layout */
#adminView .cohort-slot-overview {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

#adminView .live-setup-panel,
#adminView .cohort-slot-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

#adminView .cohort-slot-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

#adminView .cohort-slot-card,
#adminView .cohort-slot-card.assigned,
#adminView .cohort-slot-card.available,
#adminView .assigned-slot-card {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 104px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#adminView .cohort-slot-card.assigned,
#adminView .assigned-slot-card {
  align-items: center !important;
}

#adminView .assigned-slot-profile {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#adminView .assigned-slot-photo .learner-avatar.large {
  width: 72px !important;
  height: 72px !important;
}

#adminView .assigned-slot-main {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#adminView .assigned-slot-main .slot-card-top {
  display: grid !important;
  gap: 4px !important;
  flex: 0 0 125px !important;
  min-width: 105px !important;
}

#adminView .assigned-slot-main h5 {
  flex: 1 1 220px !important;
  min-width: 160px !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
}

#adminView .assigned-slot-meta {
  flex: 1 1 280px !important;
  min-width: 220px !important;
}

#adminView .assigned-slot-main .slot-status {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

#adminView .assigned-slot-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

#adminView .cohort-slot-card.available {
  align-items: center !important;
  gap: 20px !important;
}

#adminView .cohort-slot-card.available .slot-card-top {
  flex: 0 0 170px !important;
}

#adminView .cohort-slot-card.available h5 {
  flex: 1 1 auto !important;
  margin: 0 !important;
}

#adminView .cohort-slot-card.available .slot-status {
  flex: 0 0 auto !important;
}

#adminView .cohort-slot-card.available button {
  flex: 0 0 220px !important;
  margin-left: auto !important;
}

@media (max-width: 980px) {
  #adminView .live-setup-panel,
  #adminView .cohort-slot-summary,
  #adminView .assigned-slot-profile,
  #adminView .assigned-slot-main,
  #adminView .cohort-slot-card.available {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #adminView .assigned-slot-main .slot-card-top,
  #adminView .assigned-slot-main h5,
  #adminView .assigned-slot-meta,
  #adminView .cohort-slot-card.available .slot-card-top,
  #adminView .cohort-slot-card.available h5,
  #adminView .cohort-slot-card.available button {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #adminView .assigned-slot-actions,
  #adminView .cohort-slot-card.available button {
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
}

#adminView .admin-cohort-debug-panel {
  width: 100%;
  margin: 18px 0;
  padding: 18px;
  border: 2px solid #f5b41b;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 10px 24px rgba(7, 27, 77, 0.08);
}

#adminView .admin-debug-warning {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

#adminView .debug-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#adminView .admin-debug-conflicts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #f5b41b;
  border-radius: 14px;
  background: #ffffff;
}

#adminView .admin-debug-conflicts h5 {
  margin: 0;
  color: #071b4d;
  font-size: 15px;
}

#adminView .admin-debug-conflict-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
}

#adminView .admin-debug-conflict-row strong,
#adminView .admin-debug-conflict-row span,
#adminView .admin-debug-conflict-row small {
  color: #071b4d;
  font-weight: 800;
}

#adminView .admin-debug-conflict-row small {
  color: #64748b;
}

#adminView .admin-debug-table-wrap {
  width: 100%;
  overflow-x: auto;
}

#adminView .admin-debug-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
}

#adminView .admin-debug-table th,
#adminView .admin-debug-table td {
  padding: 10px;
  border: 1px solid #dbe3ef;
  text-align: left;
  vertical-align: top;
  color: #071b4d;
  word-break: normal;
}

#adminView .admin-debug-table th {
  background: #071b4d;
  color: #ffffff;
  font-weight: 900;
}

#adminView .admin-debug-table tr.not-allocated td {
  background: #fff1f2;
}

#adminView .admin-debug-table tr.allocated td {
  background: #ecfdf3;
}

.lesson-persistence-diagnostic {
  border: 1px dashed #f5b41b;
  background: #fffaf0;
}

html:not(.evidence-debug-enabled) .lesson-step-card.lesson-persistence-diagnostic {
  display: none !important;
}

html:not(.mark-debug-enabled) .tutor-mark-save-diagnostic {
  display: none !important;
}

.lesson-persistence-diagnostic .mark-submission-facts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.supabase-debug-output {
  margin: 14px 0 0;
  max-height: 220px;
  overflow: auto;
  border-radius: 12px;
  background: #071b4d;
  color: #ffffff;
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Employer Talent Dashboard second-pass premium upgrade - visual CSS only */
#employerView:not(.hidden) {
  padding: clamp(12px, 2vw, 20px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 182, 50, 0.18), transparent 22rem),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 48%, #ffffff 100%);
}

#employerView:not(.hidden) .section-heading {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(174, 190, 208, 0.56);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.08);
}

#employerView:not(.hidden) .employer-talent-pipeline-page {
  gap: 32px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid rgba(174, 190, 208, 0.5);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 252, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(27, 93, 137, 0.12), transparent 26rem);
  box-shadow: 0 28px 70px rgba(11, 31, 77, 0.13);
}

#employerView:not(.hidden) .employer-filter-panel {
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(11, 31, 77, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(180deg, #0b1f4d 0 76px, #ffffff 76px, #f8fbff 100%);
  box-shadow:
    0 30px 70px rgba(11, 31, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

#employerView:not(.hidden) .employer-filter-panel::before {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 182, 50, 0.64);
  background: linear-gradient(135deg, #f2b632, #ffe38f);
  color: #071b4d;
  box-shadow: 0 14px 28px rgba(242, 182, 50, 0.2);
}

#employerView:not(.hidden) .employer-filter-panel::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: -8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2b632, #ffe08a, rgba(255, 255, 255, 0));
}

#employerView:not(.hidden) .employer-filter-grid {
  gap: 18px 20px;
  padding-top: 2px;
}

#employerView:not(.hidden) .employer-filter-grid label {
  gap: 9px;
  color: #0b1f4d;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#employerView:not(.hidden) .employer-filter-grid input,
#employerView:not(.hidden) .employer-filter-grid select {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 31, 77, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #071b4d;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(174, 190, 208, 0.18),
    0 12px 24px rgba(15, 35, 63, 0.07);
}

#employerView:not(.hidden) .employer-filter-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0b1f4d 50%),
    linear-gradient(135deg, #0b1f4d 50%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

#employerView:not(.hidden) .employer-filter-grid input:focus,
#employerView:not(.hidden) .employer-filter-grid select:focus {
  border-color: #0b1f4d;
  box-shadow:
    0 0 0 4px rgba(242, 182, 50, 0.28),
    0 0 0 1px rgba(11, 31, 77, 0.12),
    0 16px 32px rgba(11, 31, 77, 0.14);
  transform: translateY(-1px);
}

#employerView:not(.hidden) .quick-filter-row {
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(174, 190, 208, 0.5);
  border-radius: 20px;
  background: rgba(244, 248, 252, 0.82);
}

#employerView:not(.hidden) .quick-filter-row .secondary-action {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 31, 77, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f4d;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px rgba(15, 35, 63, 0.07);
}

#employerView:not(.hidden) .quick-filter-row .secondary-action:hover,
#employerView:not(.hidden) .quick-filter-row .secondary-action:focus-visible {
  border-color: #f2b632;
  background: #0b1f4d;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(11, 31, 77, 0.18);
  transform: translateY(-1px);
}

#employerView:not(.hidden) .quick-filter-row .secondary-action.active-filter {
  border-color: #f2b632 !important;
  background: #0b1f4d !important;
  color: #f8d45c !important;
  box-shadow:
    inset 0 0 0 1px rgba(248, 212, 92, 0.48),
    0 14px 28px rgba(11, 31, 77, 0.22);
}

#employerView:not(.hidden) .active-filter-summary {
  padding: 10px 13px;
  border-color: rgba(242, 182, 50, 0.34);
  background: #fff8dc;
  color: #071b4d;
  font-size: 0.78rem;
  box-shadow: 0 8px 18px rgba(242, 182, 50, 0.1);
}

#employerView:not(.hidden) .talent-pipeline-summary {
  gap: 18px;
}

#employerView:not(.hidden) .talent-pipeline-summary article {
  min-height: 162px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(11, 31, 77, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 62%, #fff7dc 100%);
  box-shadow:
    0 24px 52px rgba(11, 31, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#employerView:not(.hidden) .talent-pipeline-summary article::before {
  height: 7px;
  background: linear-gradient(90deg, #0b1f4d, #f2b632, #ffe08a);
}

#employerView:not(.hidden) .talent-pipeline-summary span {
  color: #071b4d;
  font-size: 0.72rem;
}

#employerView:not(.hidden) .talent-pipeline-summary strong {
  color: #0b1f4d;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

#employerView:not(.hidden) .talent-pipeline-summary p {
  color: #52657d;
  font-size: 0.84rem;
}

#employerView:not(.hidden) .talent-pipeline-table-card,
#employerView:not(.hidden) .professional-league-panel {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(11, 31, 77, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 28px 68px rgba(11, 31, 77, 0.13);
}

#employerView:not(.hidden) .talent-pipeline-table-card > .panel-head,
#employerView:not(.hidden) .professional-league-head {
  padding: 22px 24px 22px 28px;
  border: 1px solid rgba(242, 182, 50, 0.4);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.22), transparent 18rem);
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.08);
}

#employerView:not(.hidden) .talent-pipeline-table-card > .panel-head::before,
#employerView:not(.hidden) .professional-league-head::before {
  top: 18px;
  bottom: 18px;
  width: 7px;
  background: linear-gradient(180deg, #f2b632, #ffe08a);
}

#employerView:not(.hidden) .talent-pipeline-table-card > .panel-head .eyebrow,
#employerView:not(.hidden) .professional-league-head .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(11, 31, 77, 0.18);
  border-radius: 999px;
  background: #0b1f4d;
  color: #f8d45c;
  letter-spacing: 0.08em;
}

#employerView:not(.hidden) .talent-pipeline-table-card > .panel-head h4,
#employerView:not(.hidden) .professional-league-head h4 {
  margin-top: 9px;
  color: #071b4d;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

@media (max-width: 760px) {
  #employerView:not(.hidden) {
    padding: 8px;
    border-radius: 22px;
  }

  #employerView:not(.hidden) .employer-talent-pipeline-page,
  #employerView:not(.hidden) .employer-filter-panel,
  #employerView:not(.hidden) .talent-pipeline-table-card,
  #employerView:not(.hidden) .professional-league-panel {
    border-radius: 24px;
  }

  #employerView:not(.hidden) .quick-filter-row .secondary-action {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}

/* Employer dashboard hero and KPI summary premium upgrade - visual CSS only */
#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(22px, 3vw, 38px);
  min-height: 260px;
  padding: clamp(30px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(248, 212, 92, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 182, 50, 0.24), transparent 20rem),
    radial-gradient(circle at 20% 0%, rgba(49, 111, 184, 0.34), transparent 28rem),
    linear-gradient(135deg, #06163c 0%, #0b1f4d 48%, #123a78 100%);
  box-shadow:
    0 34px 74px rgba(7, 27, 77, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(242, 182, 50, 0.18);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.95), rgba(255, 224, 138, 0.65), transparent 42%) top left / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(242, 182, 50, 0.72), transparent 32%) top left / 5px 100% no-repeat;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border: 1px solid rgba(248, 212, 92, 0.2);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero > div:first-child {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 760px;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(248, 212, 92, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f8d45c;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0;
  color: rgba(235, 244, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 760;
  line-height: 1.55;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(248, 212, 92, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
    rgba(7, 27, 77, 0.38);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2b632, #ffe08a);
  box-shadow: 0 0 22px rgba(242, 182, 50, 0.38);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat span {
  color: rgba(235, 244, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat strong {
  color: #f8d45c;
  font-size: clamp(4rem, 7vw, 6.4rem);
  font-weight: 1000;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat em {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.4;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary {
  position: relative;
  margin-top: -8px;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(235, 244, 255, 0.44));
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary article {
  min-height: 176px;
  align-content: start;
  gap: 12px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(11, 31, 77, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.13), transparent 12rem);
  box-shadow:
    0 24px 52px rgba(11, 31, 77, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary article::before {
  height: 6px;
  background: linear-gradient(90deg, #f2b632, #ffe08a, #1b5d89);
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary article::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 182, 50, 0.16), rgba(255, 255, 255, 0.72));
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary span {
  color: #0b1f4d;
  font-size: 0.73rem;
  font-weight: 1000;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary strong {
  color: #0b1f4d;
  font-size: clamp(2.65rem, 4vw, 3.65rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

#employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary p {
  max-width: 16rem;
  color: #536781;
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.38;
}

@media (max-width: 980px) {
  #employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #employerView:not(.hidden) .employer-talent-pipeline-page .talent-hero-stat {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  #employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero {
    padding: 26px 20px;
    border-radius: 26px;
  }

  #employerView:not(.hidden) .employer-talent-pipeline-page .employer-dashboard-hero h3 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  #employerView:not(.hidden) .employer-talent-pipeline-page .talent-pipeline-summary article {
    min-height: 142px;
  }
}

/* Employer hero/KPI active-path selector bridge - covers legacy dashboard markup */
#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  min-height: 260px;
  padding: clamp(30px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(248, 212, 92, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 182, 50, 0.24), transparent 20rem),
    radial-gradient(circle at 20% 0%, rgba(49, 111, 184, 0.34), transparent 28rem),
    linear-gradient(135deg, #06163c 0%, #0b1f4d 48%, #123a78 100%);
  box-shadow:
    0 34px 74px rgba(7, 27, 77, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(242, 182, 50, 0.18);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 182, 50, 0.95), rgba(255, 224, 138, 0.65), transparent 42%) top left / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(242, 182, 50, 0.72), transparent 32%) top left / 5px 100% no-repeat;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border: 1px solid rgba(248, 212, 92, 0.2);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero > div:first-child,
#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat {
  position: relative;
  z-index: 1;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 760px;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid rgba(248, 212, 92, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f8d45c;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0;
  color: rgba(235, 244, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 760;
  line-height: 1.55;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(248, 212, 92, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
    rgba(7, 27, 77, 0.38);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2b632, #ffe08a);
  box-shadow: 0 0 22px rgba(242, 182, 50, 0.38);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat span {
  color: rgba(235, 244, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat strong {
  color: #f8d45c;
  font-size: clamp(4rem, 7vw, 6.4rem);
  font-weight: 1000;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

#employerView:not(.hidden) .employer-panel > .employer-dashboard-hero .talent-hero-stat em {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.4;
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -8px;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(235, 244, 255, 0.44));
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 176px;
  padding: 26px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 77, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.13), transparent 12rem);
  box-shadow:
    0 24px 52px rgba(11, 31, 77, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f2b632, #ffe08a, #1b5d89);
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary article::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 182, 50, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 182, 50, 0.16), rgba(255, 255, 255, 0.72));
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary span {
  color: #0b1f4d;
  font-size: 0.73rem;
  font-weight: 1000;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

#employerView:not(.hidden) .employer-panel > .talent-pool-summary strong {
  color: #0b1f4d;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  #employerView:not(.hidden) .employer-panel > .employer-dashboard-hero,
  #employerView:not(.hidden) .employer-panel > .talent-pool-summary {
    grid-template-columns: 1fr;
  }

  #employerView:not(.hidden) .employer-panel > .employer-dashboard-hero {
    min-height: 0;
  }
}

/* Unified TFE premium primary navigation buttons. Keep this late so older page-level
   white/gold button overrides inherit the same branded language. */
:is(.primary-action, .secondary-action):not(.action-success):not(.action-error):not(.is-failed) {
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid var(--tfe-button-gold-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 26px rgba(7, 27, 77, 0.18),
    0 2px 0 rgba(216, 154, 19, 0.28);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

:is(.primary-action, .secondary-action):not(.action-success):not(.action-error):not(.is-failed):hover:not(:disabled),
:is(.primary-action, .secondary-action):not(.action-success):not(.action-error):not(.is-failed):focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.42),
    0 16px 32px rgba(7, 27, 77, 0.24),
    0 0 0 4px rgba(242, 182, 50, 0.12);
}

:is(.primary-action, .secondary-action):not(.action-success):not(.action-error):not(.is-failed):active:not(:disabled) {
  transform: translateY(0);
  border-color: #b8790f;
  background: var(--tfe-button-navy-pressed);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.2),
    0 8px 16px rgba(7, 27, 77, 0.18);
}

:is(.primary-action, .secondary-action, .school-ilp-button, .school-intelligence-button):focus-visible {
  outline: 3px solid var(--tfe-button-focus);
  outline-offset: 3px;
}

:is(.primary-action, .secondary-action, .school-ilp-button, .school-intelligence-button) :is(svg, img) {
  flex: 0 0 auto;
}

#employerView:not(.hidden) :is(.employer-pipeline-nav, .pipeline-actions, .candidate-card-footer, .employer-passport-action-strip, .cv-actions) :is(.primary-action, .secondary-action),
#employerView:not(.hidden) :is(.employer-pipeline-nav, .pipeline-actions, .candidate-card-footer, .employer-passport-action-strip, .cv-actions) :is(.primary-action, .secondary-action).is-saved {
  border: 2px solid var(--tfe-button-gold-border) !important;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy) !important;
  color: #ffffff !important;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 26px rgba(7, 27, 77, 0.2),
    0 2px 0 rgba(216, 154, 19, 0.26);
}

#employerView:not(.hidden) :is(.employer-pipeline-nav, .pipeline-actions, .candidate-card-footer, .employer-passport-action-strip, .cv-actions) :is(.primary-action, .secondary-action):hover:not(:disabled),
#employerView:not(.hidden) :is(.employer-pipeline-nav, .pipeline-actions, .candidate-card-footer, .employer-passport-action-strip, .cv-actions) :is(.primary-action, .secondary-action):focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.42),
    0 16px 32px rgba(7, 27, 77, 0.25),
    0 0 0 4px rgba(242, 182, 50, 0.12);
}

#employerView:not(.hidden) :is(.employer-pipeline-nav, .pipeline-actions, .candidate-card-footer, .employer-passport-action-strip, .cv-actions) :is(.primary-action, .secondary-action):active:not(:disabled) {
  transform: translateY(0);
  border-color: #b8790f !important;
  background: var(--tfe-button-navy-pressed) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.2),
    0 8px 16px rgba(7, 27, 77, 0.18);
}

@media (max-width: 980px) {
  .journey-road-stage {
    min-height: 440px;
  }

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

  .journey-phase-panel-row,
  .journey-expanded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .journey-road-stage {
    display: grid;
    min-height: 0;
    padding: 16px;
  }

  .journey-road-svg,
  .journey-progress-pin,
  .journey-total-badge,
  .journey-marker-layer,
  .journey-milestone-layer {
    display: none;
  }

  .journey-progress-strip,
  .journey-phase-panel-row,
  .journey-expanded-grid,
  .journey-day-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-panel.admin-hero-panel {
    grid-template-columns: 1fr;
  }

  .admin-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-community-hub-cta {
    width: 100%;
    min-height: 118px;
    flex: 0 1 auto;
    align-items: center;
    text-align: center;
  }

  .admin-hero-logout {
    align-self: stretch;
    width: 100%;
  }

  .admin-community-manager-grid {
    grid-template-columns: 1fr;
  }

  .parent-community-post-grid {
    grid-template-columns: 1fr;
  }

  .community-news-card {
    padding: 18px;
    border-radius: 22px;
  }

  .community-news-card__main,
  .community-news-layout,
  .parent-community-latest .community-news-card:first-child .community-news-card__main {
    grid-template-columns: 1fr;
  }

  .community-news-card__media {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .community-news-card__article {
    padding: 20px;
    border-radius: 18px;
  }

  .community-news-card__support {
    grid-template-columns: 1fr;
  }

  .community-news-card__highlights div {
    grid-template-columns: 1fr;
  }

  .community-news-card__highlights strong {
    text-align: left;
  }

  .community-news-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .parent-community-newsletter-hero,
  .parent-community-hero-copy {
    min-height: 420px;
  }

  .parent-community-hero-copy h3 {
    max-width: none;
  }

  .parent-community-learning-grid,
  .parent-community-success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .parent-support-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-support-option-grid,
  .parent-support-mini-metrics {
    grid-template-columns: 1fr;
  }

  .parent-attendance-row-list article {
    grid-template-columns: 1fr;
  }

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

  .parent-certificate-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .parent-community-post-grid,
  .parent-community-latest .parent-community-post-grid {
    gap: 22px;
    max-width: 100%;
  }

  .community-news-card {
    max-width: 100%;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
  }

  .community-news-card__ribbon {
    max-width: 100%;
    white-space: normal;
  }

  .community-news-card h5 {
    font-size: clamp(1.25rem, 8vw, 1.65rem);
  }

  .community-news-card__article,
  .community-news-card__support section,
  .community-news-card__recognition {
    padding: 16px;
  }

  .community-news-card__gallery div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-news-card__footer {
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .admin-community-manager > header,
  .admin-community-form-card,
  .admin-community-preview-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .admin-community-actions {
    display: grid;
  }

  .admin-community-consent-bar {
    align-items: flex-start;
    min-height: 0;
  }

  .admin-community-consent-bar.is-complete::before {
    display: none;
  }

  .parent-community-newsletter-hero {
    border-radius: 24px;
  }

  .parent-community-newsletter-hero,
  .parent-community-hero-copy {
    min-height: 350px;
  }

  .parent-community-hero-copy {
    padding: 24px;
  }

  .parent-community-newsletter-hero::after {
    background:
      linear-gradient(180deg, rgba(4, 18, 54, 0.18) 0%, rgba(4, 18, 54, 0.88) 100%),
      linear-gradient(90deg, rgba(4, 18, 54, 0.48), rgba(4, 18, 54, 0.1));
  }

  .parent-community-section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .parent-community-learning-grid,
  .parent-community-success-grid {
    grid-template-columns: 1fr;
  }

  .parent-community-learning-grid article {
    min-height: auto;
  }

  .parent-community-hub-cta {
    width: 100%;
    min-height: 118px;
    flex: 0 1 auto;
    align-items: center;
    text-align: center;
  }

  .school-hero-actions {
    width: 100%;
    flex: 0 1 auto;
    margin-left: 0;
  }

  .school-community-hub-button {
    margin-left: 0;
  }

  .parent-community-hub-view {
    padding: 18px;
    border-radius: 22px;
  }

  .parent-community-hub-view > header {
    flex-direction: column;
  }

  .parent-community-hub-view > header .secondary-action {
    width: 100%;
  }

  .parent-support-actions {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
  }

  .parent-support-action-button {
    min-height: 52px;
  }

  .parent-support-modal-overlay {
    padding: 12px;
    place-items: start center;
  }

  .parent-support-modal {
    border-radius: 22px;
  }

  .parent-support-modal > header {
    flex-direction: column;
    padding: 20px;
  }

  .parent-support-modal-body {
    padding: 20px;
  }

  .parent-learner-insights {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .parent-learner-insight-card {
    padding: 18px;
    border-radius: 20px;
  }

  .parent-excellence-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .parent-excellence-grid {
    grid-template-columns: 1fr;
  }

  .parent-today-tfe-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .parent-today-tfe-card header {
    flex-direction: column;
  }

  .parent-today-evidence {
    padding: 20px;
    border-radius: 24px;
  }

  .parent-today-evidence-photo img {
    height: clamp(260px, 72vw, 360px);
  }

  .parent-certificates-showcase {
    padding: 20px;
    border-radius: 24px;
  }

  .parent-certificates-grid {
    grid-template-columns: 1fr;
  }

  .parent-certificate-modal-overlay {
    padding: 12px;
    place-items: start center;
  }

  .parent-certificate-modal {
    border-radius: 22px;
  }

  .parent-certificate-modal > header {
    flex-direction: column;
  }

  .parent-certificate-preview-sheet {
    min-height: 320px;
    padding: 24px;
  }
}

.tfe-lesson-card-completed {
  background: linear-gradient(180deg, #f1fff4 0%, #e8f8ec 100%) !important;
  border-color: #bfe8c8 !important;
  box-shadow: 0 8px 22px rgba(22, 101, 52, 0.10) !important;
}

.tfe-lesson-card-completed.current,
.tfe-lesson-card-completed.active {
  border-color: #d4af37 !important;
}

.tfe-lesson-card-completed .completed,
.tfe-lesson-card-completed .completed-badge,
.tfe-lesson-card-completed [class*="badge"] {
  background: #dff7e7 !important;
  color: #0f6b3a !important;
}

#learnerPortalContent .lesson-heading:has(.theory-learning-hero),
#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
  width: min(100%, 1240px);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

#learnerPortalContent .lesson-heading:has(.theory-learning-hero) {
  margin-top: 32px;
  margin-bottom: 24px;
}

body:has(.theory-learning-hero) #sessionStrip,
#learnerPortalContent:has(.theory-learning-hero) .learner-dashboard-topbar,
#learnerPortalContent:has(.theory-learning-hero) .learner-menu {
  display: none;
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

#learnerPortalContent .learner-theory-phase-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 0 24px;
  overflow: visible;
  padding: 0;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card {
  min-width: 0;
  width: 100%;
  min-height: 156px;
  padding: 18px;
  border-radius: 20px;
  white-space: normal;
  overflow: visible;
  transform: none;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.active,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.current {
  background: linear-gradient(145deg, #0a2a66 0%, #071b4d 100%);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 18px 38px rgba(7, 27, 77, 0.18);
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.completed:not(.active) {
  background: linear-gradient(180deg, #f3fff5 0%, #ecfaef 100%);
  border-color: #c8ebd0;
  color: #071b4d;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.locked {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border-color: #d7e2ef;
  color: #64748b;
  opacity: 1;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card strong,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card span,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card em,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  line-height: 1.25;
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary {
  width: 100%;
  margin: 0 0 32px;
}

#learnerPortalContent .learner-theory-lesson-map {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card {
  min-width: 0;
  width: 100%;
  min-height: 230px;
  overflow: visible;
  border: 1px solid rgba(217, 174, 43, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.09),
    0 16px 34px rgba(7, 27, 77, 0.09);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-summary {
  min-height: 230px;
  padding: 18px;
  gap: 12px;
  overflow: visible;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-title {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  font-size: 1.05rem;
  line-height: 1.3;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-outcome {
  min-height: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  line-height: 1.4;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .card-topline {
  flex-wrap: wrap;
  align-items: flex-start;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .day-pill,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-score {
  white-space: normal;
  line-height: 1.2;
}

:is(
  .tfe-premium-card,
  .tutor-hero,
  .hero-panel,
  .learner-hero,
  .apprentice-hero,
  .rating-hero,
  .admin-preview-banner,
  .premium-passport-hero-card,
  .premium-dashboard-hero-card,
  .premium-profile-card,
  .premium-readiness-card,
  .premium-next-action-card,
  .premium-readiness-evidence-summary,
  .learner-home-card.hero,
  .admin-intel-card,
  .admin-navigation-group,
  .tutor-priority-card,
  .ready-mark-card,
  .school-hero-card,
  .school-cohort-hero,
  .school-learner-hero,
  .school-community-hero,
  .cohort-briefing-hero,
  .cohort-executive-summary,
  .cohort-pillar-status-bar__item,
  .cohort-performance-pillar-card,
  .theory-knowledge-hero,
  .theory-phase-card.current,
  #learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.active,
  #learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.current,
  .community-hub-hero,
  .community-news-card__ribbon,
  .employer-hero,
  .employer-dashboard-hero,
  .management-dashboard-hero,
  .management-risk-hero,
  .recognition-hero,
  .incident-hero,
  .curriculum-hero,
  .cohort-position-hero
) {
  border: 1px solid var(--tfe-card-gold-border);
  box-shadow: var(--tfe-premium-card-shadow);
}

:is(
  .tutor-hero,
  .hero-panel,
  .learner-hero,
  .apprentice-hero,
  .rating-hero,
  .admin-preview-banner,
  .premium-passport-hero-card,
  .premium-dashboard-hero-card,
  .premium-profile-card,
  .premium-readiness-card,
  .premium-next-action-card,
  .premium-readiness-evidence-summary,
  .admin-intel-card,
  .admin-navigation-group,
  .tutor-priority-card,
  .ready-mark-card,
  .school-hero-card,
  .school-cohort-hero,
  .cohort-briefing-hero,
  .cohort-pillar-status-bar__item,
  .cohort-performance-pillar-card,
  .theory-knowledge-hero,
  .community-hub-hero,
  .employer-hero,
  .management-dashboard-hero,
  .recognition-hero,
  .incident-hero,
  .curriculum-hero
):hover {
  box-shadow: 0 20px 42px rgba(7, 27, 77, 0.2);
}

@media (max-width: 1100px) {
  #learnerPortalContent .learner-theory-phase-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #learnerPortalContent .learner-theory-lesson-map .theory-lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #learnerPortalContent .learner-theory-phase-timeline,
  #learnerPortalContent .learner-theory-lesson-map .theory-lesson-grid {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .lesson-heading:has(.theory-learning-hero),
  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
    padding-inline: 16px;
  }

  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary {
    grid-template-columns: 1fr;
  }
}

.tfe-premium-nav-button,
.admin-back-button:not(.danger-action):not(.warning-action),
.parent-community-back-button:not(.danger-action):not(.warning-action),
.school-ilp-close:not(.danger-action):not(.warning-action),
.school-snapshot-close:not(.danger-action):not(.warning-action),
button[data-school-certificate-close]:not(.danger-action):not(.warning-action),
button.secondary-action:is(
  [data-back-learner-dashboard],
  [data-back-theory-grid],
  [data-back-daily-attendance],
  [data-admin-back-dashboard],
  [data-return-admin-dashboard],
  [data-admin-back-search-results],
  [data-back-theory-lessons],
  [data-back-lesson-evidence],
  [data-back-cohort-intelligence],
  [data-school-cohort-intelligence-back],
  [data-school-intelligence-back],
  [data-back-employer-dashboard],
  [data-close-learner-live-cv],
  [data-close-recognition-case],
  [data-close-management-case],
  [data-employer-route]
):not(.danger-action):not(.warning-action) {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid var(--tfe-button-gold-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 24px rgba(7, 27, 77, 0.2),
    0 2px 0 rgba(216, 154, 19, 0.24);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.tfe-premium-nav-button:hover:not(:disabled),
.tfe-premium-nav-button:focus-visible,
.admin-back-button:not(.danger-action):not(.warning-action):hover:not(:disabled),
.admin-back-button:not(.danger-action):not(.warning-action):focus-visible,
.parent-community-back-button:not(.danger-action):not(.warning-action):hover:not(:disabled),
.parent-community-back-button:not(.danger-action):not(.warning-action):focus-visible,
.school-ilp-close:not(.danger-action):not(.warning-action):hover:not(:disabled),
.school-ilp-close:not(.danger-action):not(.warning-action):focus-visible,
.school-snapshot-close:not(.danger-action):not(.warning-action):hover:not(:disabled),
.school-snapshot-close:not(.danger-action):not(.warning-action):focus-visible,
button[data-school-certificate-close]:not(.danger-action):not(.warning-action):hover:not(:disabled),
button[data-school-certificate-close]:not(.danger-action):not(.warning-action):focus-visible,
button.secondary-action:is(
  [data-back-learner-dashboard],
  [data-back-theory-grid],
  [data-back-daily-attendance],
  [data-admin-back-dashboard],
  [data-return-admin-dashboard],
  [data-admin-back-search-results],
  [data-back-theory-lessons],
  [data-back-lesson-evidence],
  [data-back-cohort-intelligence],
  [data-school-cohort-intelligence-back],
  [data-school-intelligence-back],
  [data-back-employer-dashboard],
  [data-close-learner-live-cv],
  [data-close-recognition-case],
  [data-close-management-case],
  [data-employer-route]
):not(.danger-action):not(.warning-action):hover:not(:disabled),
button.secondary-action:is(
  [data-back-learner-dashboard],
  [data-back-theory-grid],
  [data-back-daily-attendance],
  [data-admin-back-dashboard],
  [data-return-admin-dashboard],
  [data-admin-back-search-results],
  [data-back-theory-lessons],
  [data-back-lesson-evidence],
  [data-back-cohort-intelligence],
  [data-school-cohort-intelligence-back],
  [data-school-intelligence-back],
  [data-back-employer-dashboard],
  [data-close-learner-live-cv],
  [data-close-recognition-case],
  [data-close-management-case],
  [data-employer-route]
):not(.danger-action):not(.warning-action):focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.42),
    0 16px 32px rgba(7, 27, 77, 0.26),
    0 0 0 4px rgba(242, 182, 50, 0.16);
  outline: 3px solid var(--tfe-button-focus);
  outline-offset: 3px;
}

.tfe-premium-nav-button:active:not(:disabled),
.admin-back-button:not(.danger-action):not(.warning-action):active:not(:disabled),
.parent-community-back-button:not(.danger-action):not(.warning-action):active:not(:disabled),
.school-ilp-close:not(.danger-action):not(.warning-action):active:not(:disabled),
.school-snapshot-close:not(.danger-action):not(.warning-action):active:not(:disabled),
button[data-school-certificate-close]:not(.danger-action):not(.warning-action):active:not(:disabled),
button.secondary-action:is(
  [data-back-learner-dashboard],
  [data-back-theory-grid],
  [data-back-daily-attendance],
  [data-admin-back-dashboard],
  [data-return-admin-dashboard],
  [data-admin-back-search-results],
  [data-back-theory-lessons],
  [data-back-lesson-evidence],
  [data-back-cohort-intelligence],
  [data-school-cohort-intelligence-back],
  [data-school-intelligence-back],
  [data-back-employer-dashboard],
  [data-close-learner-live-cv],
  [data-close-recognition-case],
  [data-close-management-case],
  [data-employer-route]
):not(.danger-action):not(.warning-action):active:not(:disabled) {
  transform: translateY(0);
  border-color: #b8790f;
  background: var(--tfe-button-navy-pressed);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.2),
    0 8px 16px rgba(7, 27, 77, 0.18);
}

.theory-knowledge-view {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(7, 27, 77, 0.11) 0%, rgba(7, 27, 77, 0.055) 28%, rgba(7, 27, 77, 0) 58%),
    radial-gradient(circle at 100% 6%, rgba(216, 154, 19, 0.075) 0%, rgba(216, 154, 19, 0.032) 18%, rgba(216, 154, 19, 0) 42%),
    linear-gradient(180deg, #f5f8fc 0%, #eef3f8 46%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 42px 90px rgba(255, 255, 255, 0.34);
}

.theory-knowledge-view .theory-knowledge-hero {
  box-shadow:
    0 30px 72px rgba(3, 18, 58, 0.3),
    0 0 0 1px rgba(216, 154, 19, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theory-knowledge-view .theory-lesson-map {
  border-color: rgba(216, 154, 19, 0.34);
  background:
    radial-gradient(ellipse at 98% 0%, rgba(216, 154, 19, 0.045) 0%, rgba(216, 154, 19, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 56%, #eef4fb 100%);
  box-shadow:
    0 24px 54px rgba(7, 27, 77, 0.115),
    0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.theory-knowledge-view .theory-lesson-map > .panel-head {
  border-bottom-color: rgba(216, 154, 19, 0.16);
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(7, 27, 77, 0.1) 0%, rgba(7, 27, 77, 0.046) 28%, rgba(7, 27, 77, 0) 58%),
    radial-gradient(circle at 100% 6%, rgba(216, 154, 19, 0.064) 0%, rgba(216, 154, 19, 0.026) 18%, rgba(216, 154, 19, 0) 42%),
    linear-gradient(180deg, #f5f8fc 0%, #eef3f8 46%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 42px 90px rgba(255, 255, 255, 0.3);
}

#learnerPortalContent .learner-theory-lesson-map {
  border-color: rgba(216, 154, 19, 0.34);
  background:
    radial-gradient(ellipse at 98% 0%, rgba(216, 154, 19, 0.045) 0%, rgba(216, 154, 19, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 56%, #eef4fb 100%);
  box-shadow:
    0 24px 54px rgba(7, 27, 77, 0.115),
    0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body:has(#authPanel:not(.hidden)),
body:has(#passwordRecoveryPanel:not(.hidden)) {
  background:
    radial-gradient(ellipse at 20% 8%, rgba(7, 27, 77, 0.16) 0%, rgba(7, 27, 77, 0.07) 30%, rgba(7, 27, 77, 0) 62%),
    radial-gradient(circle at 96% 12%, rgba(216, 154, 19, 0.085) 0%, rgba(216, 154, 19, 0.032) 22%, rgba(216, 154, 19, 0) 46%),
    linear-gradient(180deg, #f5f8fc 0%, #edf3f8 48%, #f8fbff 100%);
}

body:has(#authPanel:not(.hidden)) .login-shell,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-shell {
  border-color: rgba(216, 154, 19, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow:
    0 34px 86px rgba(7, 27, 77, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body:has(#authPanel:not(.hidden)) .login-visual-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
  background:
    linear-gradient(135deg, rgba(4, 13, 34, 0.88) 0%, rgba(7, 27, 77, 0.7) 42%, rgba(7, 27, 77, 0.36) 100%),
    linear-gradient(0deg, rgba(4, 13, 34, 0.64), rgba(4, 13, 34, 0.08)),
    url("./public/assets/login-workshop-photo.jpg") center / cover no-repeat;
}

body:has(#authPanel:not(.hidden)) .login-card-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-card-panel {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(216, 154, 19, 0.045) 0%, rgba(216, 154, 19, 0) 36%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 64%, #eef4fb 100%);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select,
body:has(#authPanel:not(.hidden)) #roleLoginForm input,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input {
  border-color: rgba(216, 154, 19, 0.5);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #071b4d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(7, 27, 77, 0.025),
    0 8px 18px rgba(7, 27, 77, 0.055);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select:focus,
body:has(#authPanel:not(.hidden)) #roleLoginForm input:focus,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input:focus {
  border-color: #d89a13;
  outline: 3px solid rgba(216, 154, 19, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 0 0 1px rgba(216, 154, 19, 0.18),
    0 12px 24px rgba(7, 27, 77, 0.08);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action {
  border-color: #d89a13;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #10357d 0%, #071b4d 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.34),
    0 16px 34px rgba(7, 27, 77, 0.24);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action:hover:not(:disabled),
body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action:focus-visible,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action:hover:not(:disabled),
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action:focus-visible {
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #164091 0%, #09235f 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.44),
    0 18px 38px rgba(7, 27, 77, 0.3),
    0 0 0 4px rgba(242, 182, 50, 0.15);
  outline: 3px solid rgba(242, 182, 50, 0.2);
  outline-offset: 3px;
}

/* TFE button visual polish layer: CSS-only standardisation for existing button selectors. */
:root {
  --tfe-button-radius: 15px;
  --tfe-button-height: 46px;
  --tfe-button-padding-y: 11px;
  --tfe-button-padding-x: 20px;
  --tfe-button-font-size: 0.88rem;
  --tfe-button-font-weight: 900;
  --tfe-button-transition: 0.18s ease;
  --tfe-button-shadow: 0 12px 26px rgba(7, 27, 77, 0.18), 0 2px 0 rgba(216, 154, 19, 0.16);
  --tfe-button-shadow-hover: 0 16px 32px rgba(7, 27, 77, 0.24), 0 0 0 4px rgba(242, 182, 50, 0.12);
  --tfe-button-shadow-active: 0 8px 16px rgba(7, 27, 77, 0.16);
  --tfe-button-secondary-bg: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  --tfe-button-secondary-bg-hover: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  --tfe-button-danger-shadow: 0 12px 26px rgba(185, 28, 28, 0.18), 0 2px 0 rgba(127, 29, 29, 0.14);
}

:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.icon-button):not(.lesson-summary):not(.theory-phase-card):not(.theory-lesson-tile):not(.curriculum-lesson-button):not(.attendance-button) {
  min-height: var(--tfe-button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x);
  border-radius: var(--tfe-button-radius);
  font-size: var(--tfe-button-font-size);
  font-weight: var(--tfe-button-font-weight);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--tfe-button-shadow);
  cursor: pointer;
  transition:
    transform var(--tfe-button-transition),
    background var(--tfe-button-transition),
    border-color var(--tfe-button-transition),
    box-shadow var(--tfe-button-transition),
    color var(--tfe-button-transition),
    opacity var(--tfe-button-transition);
}

:is(
  .primary-action,
  .tfe-btn,
  .school-ilp-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action.primary,
  .community-upload-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action) {
  border: 1.5px solid var(--tfe-button-gold-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
}

:is(
  .secondary-action,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-intelligence-button,
  .cohort-ilp-action.secondary,
  .parent-support-action-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action) {
  border: 1.5px solid var(--tfe-button-gold-border);
  background: var(--tfe-button-secondary-bg);
  color: #071b4d;
  text-shadow: none;
}

:is(.danger-action, .primary-action.danger-action, .secondary-action.danger-action) {
  min-height: var(--tfe-button-height);
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x);
  border: 1.5px solid #dc2626;
  border-radius: var(--tfe-button-radius);
  background: #dc2626;
  color: #ffffff;
  font-size: var(--tfe-button-font-size);
  font-weight: var(--tfe-button-font-weight);
  box-shadow: var(--tfe-button-danger-shadow);
}

:is(.warning-action, .primary-action.warning-action, .secondary-action.warning-action):not(.danger-action) {
  min-height: var(--tfe-button-height);
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x);
  border: 1.5px solid #f59e0b;
  border-radius: var(--tfe-button-radius);
  background: linear-gradient(180deg, #fffaf0 0%, #fff4db 100%);
  color: #92400e;
  font-size: var(--tfe-button-font-size);
  font-weight: var(--tfe-button-font-weight);
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.13), 0 2px 0 rgba(245, 158, 11, 0.16);
}

:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.icon-button):not(.lesson-summary):not(.theory-phase-card):not(.theory-lesson-tile):not(.curriculum-lesson-button):not(.attendance-button):hover:not(:disabled),
:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.icon-button):not(.lesson-summary):not(.theory-phase-card):not(.theory-lesson-tile):not(.curriculum-lesson-button):not(.attendance-button):focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632;
  box-shadow: var(--tfe-button-shadow-hover);
}

:is(
  .primary-action,
  .tfe-btn,
  .school-ilp-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action.primary,
  .community-upload-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action):hover:not(:disabled),
:is(
  .primary-action,
  .tfe-btn,
  .school-ilp-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action.primary,
  .community-upload-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action):focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover);
  color: #ffffff;
}

:is(
  .secondary-action,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-intelligence-button,
  .cohort-ilp-action.secondary,
  .parent-support-action-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action):hover:not(:disabled),
:is(
  .secondary-action,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-intelligence-button,
  .cohort-ilp-action.secondary,
  .parent-support-action-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.action-success):not(.action-error):not(.is-saved):not(.is-failed):not(.danger-action):not(.warning-action):focus-visible {
  background: var(--tfe-button-secondary-bg-hover);
  color: #071b4d;
}

:is(.danger-action, .primary-action.danger-action, .secondary-action.danger-action):hover:not(:disabled),
:is(.danger-action, .primary-action.danger-action, .secondary-action.danger-action):focus-visible {
  border-color: #991b1b;
  background: #b91c1c;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(185, 28, 28, 0.24), 0 0 0 4px rgba(220, 38, 38, 0.12);
}

:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.icon-button):not(.lesson-summary):not(.theory-phase-card):not(.theory-lesson-tile):not(.curriculum-lesson-button):not(.attendance-button):active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--tfe-button-shadow-active);
}

:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):not(.icon-button):not(.lesson-summary):not(.theory-phase-card):not(.theory-lesson-tile):not(.curriculum-lesson-button):not(.attendance-button):focus-visible {
  outline: 3px solid var(--tfe-button-focus);
  outline-offset: 3px;
}

:is(
  .primary-action,
  .secondary-action,
  .tfe-btn,
  .admin-back-button,
  .parent-community-back-button,
  .school-ilp-close,
  .school-snapshot-close,
  .school-ilp-button,
  .school-intelligence-button,
  .school-cohort-ilp-overview-button,
  .cohort-ilp-action,
  .community-upload-button,
  .parent-support-action-button,
  .incident-submit-button,
  .management-save-button,
  .recognition-save-button,
  .submitted-review-button,
  .theory-complete-lesson-button,
  .theory-continue-next-button,
  .intervention-save-button,
  .award-certificate-link,
  button[data-school-certificate-close],
  button[data-school-certificate-download],
  button[data-school-certificate-print]
):disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

/* Outlier button selector bridge from existing role dashboards. */
:is(
  .tutor-hero-logout,
  .school-hero-logout,
  .school-cohort-intelligence-button,
  #employerView:not(.hidden) .employer-pipeline-nav .primary-action,
  #employerView:not(.hidden) .pipeline-actions .primary-action,
  #employerView:not(.hidden) .candidate-card-footer .primary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .primary-action,
  #employerView:not(.hidden) .cv-actions .primary-action
) {
  min-height: var(--tfe-button-height) !important;
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x) !important;
  border: 1.5px solid var(--tfe-button-gold-border) !important;
  border-radius: var(--tfe-button-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy) !important;
  color: #ffffff !important;
  font-size: var(--tfe-button-font-size) !important;
  font-weight: var(--tfe-button-font-weight) !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  box-shadow: var(--tfe-button-shadow) !important;
  transition:
    transform var(--tfe-button-transition),
    background var(--tfe-button-transition),
    border-color var(--tfe-button-transition),
    box-shadow var(--tfe-button-transition),
    color var(--tfe-button-transition),
    opacity var(--tfe-button-transition) !important;
}

/* Parent learner-card actions are equal primary destinations. */
.parent-carer-school-card-dashboard .school-card-action-row :is(.school-ilp-button, .school-intelligence-button) {
  min-height: var(--tfe-button-height);
  margin-top: 0;
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x);
  border: 1.5px solid var(--tfe-button-gold-border);
  border-radius: var(--tfe-button-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  font-size: var(--tfe-button-font-size);
  font-weight: var(--tfe-button-font-weight);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
  box-shadow: var(--tfe-button-shadow);
}

.parent-carer-school-card-dashboard .school-card-action-row :is(.school-ilp-button, .school-intelligence-button):hover:not(:disabled),
.parent-carer-school-card-dashboard .school-card-action-row :is(.school-ilp-button, .school-intelligence-button):focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy-hover);
  color: #ffffff;
  box-shadow: var(--tfe-button-shadow-hover);
}

.parent-carer-school-card-dashboard .school-card-action-row :is(.school-ilp-button, .school-intelligence-button):active:not(:disabled) {
  transform: translateY(0);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  box-shadow: var(--tfe-button-shadow-active);
}

.parent-carer-school-card-dashboard .school-card-action-row :is(.school-ilp-button, .school-intelligence-button):disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

:is(
  #employerView:not(.hidden) .employer-pipeline-nav .secondary-action,
  #employerView:not(.hidden) .pipeline-actions .secondary-action,
  #employerView:not(.hidden) .candidate-card-footer .secondary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .secondary-action,
  #employerView:not(.hidden) .cv-actions .secondary-action,
  #employerView:not(.hidden) .quick-filter-row .secondary-action,
  .employer-talent-pipeline-page .quick-filter-row .secondary-action
) {
  min-height: var(--tfe-button-height) !important;
  padding: var(--tfe-button-padding-y) var(--tfe-button-padding-x) !important;
  border: 1.5px solid var(--tfe-button-gold-border) !important;
  border-radius: var(--tfe-button-radius) !important;
  background: var(--tfe-button-secondary-bg) !important;
  color: #071b4d !important;
  font-size: var(--tfe-button-font-size) !important;
  font-weight: var(--tfe-button-font-weight) !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  box-shadow: var(--tfe-button-shadow) !important;
  text-shadow: none !important;
  transition:
    transform var(--tfe-button-transition),
    background var(--tfe-button-transition),
    border-color var(--tfe-button-transition),
    box-shadow var(--tfe-button-transition),
    color var(--tfe-button-transition),
    opacity var(--tfe-button-transition) !important;
}

:is(
  .tutor-hero-logout,
  .school-hero-logout,
  .school-cohort-intelligence-button,
  #employerView:not(.hidden) .employer-pipeline-nav .primary-action,
  #employerView:not(.hidden) .employer-pipeline-nav .secondary-action,
  #employerView:not(.hidden) .pipeline-actions .primary-action,
  #employerView:not(.hidden) .pipeline-actions .secondary-action,
  #employerView:not(.hidden) .candidate-card-footer .primary-action,
  #employerView:not(.hidden) .candidate-card-footer .secondary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .primary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .secondary-action,
  #employerView:not(.hidden) .cv-actions .primary-action,
  #employerView:not(.hidden) .cv-actions .secondary-action,
  #employerView:not(.hidden) .quick-filter-row .secondary-action,
  .employer-talent-pipeline-page .quick-filter-row .secondary-action
):hover:not(:disabled),
:is(
  .tutor-hero-logout,
  .school-hero-logout,
  .school-cohort-intelligence-button,
  #employerView:not(.hidden) .employer-pipeline-nav .primary-action,
  #employerView:not(.hidden) .employer-pipeline-nav .secondary-action,
  #employerView:not(.hidden) .pipeline-actions .primary-action,
  #employerView:not(.hidden) .pipeline-actions .secondary-action,
  #employerView:not(.hidden) .candidate-card-footer .primary-action,
  #employerView:not(.hidden) .candidate-card-footer .secondary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .primary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .secondary-action,
  #employerView:not(.hidden) .cv-actions .primary-action,
  #employerView:not(.hidden) .cv-actions .secondary-action,
  #employerView:not(.hidden) .quick-filter-row .secondary-action,
  .employer-talent-pipeline-page .quick-filter-row .secondary-action
):focus-visible {
  transform: translateY(-1px) !important;
  border-color: #f2b632 !important;
  box-shadow: var(--tfe-button-shadow-hover) !important;
  outline: 3px solid var(--tfe-button-focus) !important;
  outline-offset: 3px !important;
}

:is(
  .tutor-hero-logout,
  .school-hero-logout,
  .school-cohort-intelligence-button,
  #employerView:not(.hidden) .employer-pipeline-nav .primary-action,
  #employerView:not(.hidden) .employer-pipeline-nav .secondary-action,
  #employerView:not(.hidden) .pipeline-actions .primary-action,
  #employerView:not(.hidden) .pipeline-actions .secondary-action,
  #employerView:not(.hidden) .candidate-card-footer .primary-action,
  #employerView:not(.hidden) .candidate-card-footer .secondary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .primary-action,
  #employerView:not(.hidden) .employer-passport-action-strip .secondary-action,
  #employerView:not(.hidden) .cv-actions .primary-action,
  #employerView:not(.hidden) .cv-actions .secondary-action,
  #employerView:not(.hidden) .quick-filter-row .secondary-action,
  .employer-talent-pipeline-page .quick-filter-row .secondary-action
):active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: var(--tfe-button-shadow-active) !important;
}

/* Premium Live ILP programme journey view. Scoped to the existing school ILP modal/route. */
.school-ilp-modal:has(.live-ilp-dashboard) {
  width: min(1880px, 100%);
  max-height: min(94vh, 1120px);
  border-radius: 18px;
  background: #ffffff;
}

.live-ilp-dashboard {
  gap: 14px;
  padding: 0;
  background: #ffffff;
  color: #071b46;
}

.live-ilp-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 3px solid #f2b51d;
  border-radius: 18px 18px 0 0;
  background: #071b46;
  color: #ffffff;
}

.live-ilp-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-ilp-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
}

.live-ilp-brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.1;
}

.live-ilp-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.live-ilp-topline {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(680px, 1.4fr);
  gap: 14px;
  padding: 20px 24px 0;
}

.live-ilp-identity-card,
.live-ilp-metric-card,
.live-ilp-programme-panel,
.live-ilp-side-card,
.live-ilp-lower-grid > article {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 27, 70, 0.08);
}

.live-ilp-identity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.live-ilp-photo .learner-avatar,
.live-ilp-photo .learner-photo {
  width: 142px;
  height: 142px;
  min-width: 142px;
  border: 3px solid #f2b51d;
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.18);
}

.live-ilp-learner-photo > * {
  grid-area: 1 / 1;
}

.live-ilp-learner-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-ilp-learner-photo.has-photo > .live-ilp-photo-fallback {
  visibility: hidden;
}

.live-ilp-learner-photo.photo-missing > .live-ilp-photo-fallback {
  visibility: visible;
}

.live-ilp-identity-main h3 {
  margin: 0;
  color: #071b46;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 1.05;
}

.live-ilp-identity-main > strong {
  display: block;
  margin: 6px 0 14px;
  color: #172554;
  font-size: 1.02rem;
}

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

.live-ilp-identity-grid article,
.live-ilp-lower-grid dl div,
.live-ilp-side-card dl div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.live-ilp-identity-grid span,
.live-ilp-metric-card span,
.live-ilp-lower-grid > article > span,
.live-ilp-side-card dt {
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-ilp-identity-grid b,
.live-ilp-side-card dd,
.live-ilp-lower-grid dd {
  color: #071b46;
  font-weight: 950;
}

.live-ilp-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.live-ilp-metric-card {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 142px;
  padding: 18px;
  border-top: 3px solid #e2e8f0;
}

.live-ilp-metric-card.green {
  border-top-color: #108a24;
}

.live-ilp-metric-card.amber {
  border-top-color: #f2b51d;
}

.live-ilp-metric-card.red {
  border-top-color: #ef4444;
}

.live-ilp-metric-card.gold,
.live-ilp-metric-card.silver,
.live-ilp-metric-card.bronze {
  border-top-color: #f2b51d;
}

.live-ilp-metric-card.awaiting {
  border-top-color: #94a3b8;
  background: #f8fafc;
}

.live-ilp-metric-card strong {
  color: #071b46;
  font-size: clamp(1.35rem, 2.2vw, 2.7rem);
  line-height: 1;
}

.live-ilp-metric-card em {
  color: #334155;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.live-ilp-donut,
.live-ilp-phase-ring {
  --value: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(#108a24 calc(var(--value) * 1%), #e2e8f0 0);
}

.live-ilp-donut {
  width: 96px;
  justify-self: center;
}

.live-ilp-donut strong,
.live-ilp-phase-ring strong {
  color: #071b46;
  font-size: 1.15rem;
}

.live-ilp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 0 24px;
}

.live-ilp-programme-panel {
  min-width: 0;
  padding: 20px;
}

.live-ilp-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.live-ilp-section-heading h4,
.live-ilp-side-card h4 {
  margin: 0;
  color: #071b46;
  font-size: 1.12rem;
}

.live-ilp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-ilp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-ilp-legend span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
}

.live-ilp-legend .complete::before {
  background: #108a24;
}

.live-ilp-legend .current::before {
  background: #f2b51d;
}

.live-ilp-timeline {
  --progress: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 10px 4px 22px;
  padding: 0 3px;
}

.live-ilp-timeline::before,
.live-ilp-timeline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #94a3b8;
}

.live-ilp-timeline::after {
  right: auto;
  width: calc(var(--progress) * 1%);
  background: linear-gradient(90deg, #108a24 0%, #f2b51d 100%);
}

.live-ilp-timeline span {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px #94a3b8;
}

.live-ilp-timeline span.complete {
  background: #108a24;
  box-shadow: 0 0 0 4px #108a24;
}

.live-ilp-timeline span.current {
  background: #071b46;
  box-shadow: 0 0 0 5px #f2b51d;
}

.live-ilp-phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.live-ilp-phase-card {
  min-width: 190px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
}

.live-ilp-phase-card.complete {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #bbf7d0;
}

.live-ilp-phase-card.current {
  border: 2px solid #f2b51d;
  background: linear-gradient(150deg, #071b46 0%, #062b69 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 27, 70, 0.28);
}

.live-ilp-phase-kicker {
  color: #1e3a8a;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.live-ilp-phase-card.current .live-ilp-phase-kicker,
.live-ilp-phase-card.current h5,
.live-ilp-phase-card.current b,
.live-ilp-phase-card.current em,
.live-ilp-phase-card.current li {
  color: #ffffff;
}

.live-ilp-phase-card h5 {
  min-height: 44px;
  margin: 0;
  color: #071b46;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
}

.live-ilp-phase-ring {
  width: 82px;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(#f2b51d calc(var(--value) * 1%), #e2e8f0 0);
}

.live-ilp-phase-card.complete .live-ilp-phase-ring {
  background:
    radial-gradient(circle at center, #108a24 0 54%, transparent 55%),
    conic-gradient(#108a24 calc(var(--value) * 1%), #bbf7d0 0);
}

.live-ilp-phase-card.complete .live-ilp-phase-ring strong {
  color: #ffffff;
}

.live-ilp-phase-card b,
.live-ilp-phase-card em {
  color: #334155;
  font-style: normal;
  font-weight: 950;
}

.live-ilp-phase-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.live-ilp-phase-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #108a24;
}

.live-ilp-phase-card.current .live-ilp-phase-bar i {
  background: #f2b51d;
}

.live-ilp-phase-card ul,
.live-ilp-lower-grid ul {
  width: 100%;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-ilp-phase-card li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.live-ilp-phase-card li span {
  width: 14px;
  height: 14px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
}

.live-ilp-phase-card li.done span {
  border-color: #108a24;
  background: #108a24;
}

.live-ilp-phase-card li.active span {
  border-color: #f2b51d;
  background: #f2b51d;
}

.live-ilp-side-panels {
  display: grid;
  gap: 14px;
  align-content: start;
}

.live-ilp-side-card {
  padding: 18px;
}

.live-ilp-side-card dl {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.live-ilp-side-card dt,
.live-ilp-side-card dd {
  margin: 0;
}

.live-ilp-side-card dd.green,
.live-ilp-side-card.forecast.green strong {
  color: #108a24;
}

.live-ilp-side-card dd.amber,
.live-ilp-side-card.forecast.amber strong {
  color: #b77905;
}

.live-ilp-side-card dd.red,
.live-ilp-side-card.forecast.red strong {
  color: #dc2626;
}

.live-ilp-side-card.forecast {
  border-left: 5px solid #94a3b8;
}

.live-ilp-side-card.forecast.green {
  border-left-color: #108a24;
}

.live-ilp-side-card.forecast.amber {
  border-left-color: #f2b51d;
}

.live-ilp-side-card.forecast.red {
  border-left-color: #ef4444;
}

.live-ilp-side-card.forecast strong {
  display: block;
  margin-top: 18px;
  color: #071b46;
  font-size: 1.15rem;
}

.live-ilp-side-card.forecast span {
  display: block;
  margin-top: 6px;
  color: #071b46;
  font-weight: 950;
}

.live-ilp-lower-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.live-ilp-lower-grid > article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-top: 3px solid #f2b51d;
}

.live-ilp-lower-grid strong {
  color: #071b46;
  font-size: 1rem;
  line-height: 1.25;
}

.live-ilp-lower-grid p,
.live-ilp-lower-grid li,
.live-ilp-lower-grid dd {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.4;
}

.live-ilp-lower-grid li {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.live-ilp-lower-grid li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.live-ilp-lower-grid li span {
  color: #64748b;
  font-size: 0.78rem;
}

.live-ilp-lower-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.live-ilp-lower-grid dt,
.live-ilp-lower-grid dd {
  margin: 0;
}

.live-ilp-lower-grid dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.live-ilp-header .school-ilp-close {
  min-height: 42px;
  border-radius: 14px;
  background: #09255c;
  color: #ffffff;
  border-color: #f2b51d;
}

.live-ilp-header .school-ilp-close:hover,
.live-ilp-header .school-ilp-close:focus-visible {
  background: #123f7a;
  outline: 3px solid rgba(242, 181, 29, 0.34);
  outline-offset: 3px;
}

.cohort-ilp-renderer-marker,
.school-ilp-renderer-marker {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(242, 181, 29, 0.72);
  border-radius: 999px;
  background: #fff8e5;
  color: #071b46;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

@media (max-width: 1320px) {
  .live-ilp-topline {
    grid-template-columns: 1fr;
  }

  .live-ilp-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-ilp-main-grid {
    grid-template-columns: 1fr;
  }

  .live-ilp-side-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-ilp-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .school-ilp-modal:has(.live-ilp-dashboard) {
    width: 100%;
    max-height: 96vh;
    border-radius: 16px;
  }

  .live-ilp-header,
  .live-ilp-topline,
  .live-ilp-main-grid,
  .live-ilp-lower-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .live-ilp-header {
    grid-template-columns: 1fr;
    border-radius: 16px 16px 0 0;
  }

  .live-ilp-brand {
    align-items: flex-start;
  }

  .live-ilp-brand img {
    width: 48px;
    height: 48px;
  }

  .live-ilp-identity-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .live-ilp-identity-grid,
  .live-ilp-metric-grid,
  .live-ilp-side-panels,
  .live-ilp-lower-grid {
    grid-template-columns: 1fr;
  }

  .live-ilp-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-ilp-phase-grid {
    grid-template-columns: repeat(5, minmax(214px, 1fr));
  }
}

/* Premium Live ILP visual polish only: scoped to the school ILP modal. */
.school-ilp-modal:has(.live-ilp-dashboard) {
  --ilp-navy: #071b46;
  --ilp-blue: #0b2d66;
  --ilp-gold: #f2b51d;
  --ilp-gold-soft: rgba(242, 181, 29, 0.26);
  --ilp-ink: #071b46;
  --ilp-muted: #53627a;
  --ilp-surface: #ffffff;
  --ilp-soft: #f5f8fc;
  --ilp-line: rgba(7, 27, 70, 0.12);
  --ilp-shadow: 0 22px 54px rgba(7, 27, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
    var(--ilp-soft);
  border: 1px solid var(--ilp-gold-soft);
  box-shadow: var(--ilp-shadow);
}

.live-ilp-dashboard {
  color: var(--ilp-ink);
  background:
    radial-gradient(circle at 0 0, rgba(242, 181, 29, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.live-ilp-header {
  border-bottom: 2px solid var(--ilp-gold);
  background:
    linear-gradient(135deg, #071b46 0%, #09275c 58%, #0d3572 100%);
  box-shadow: 0 14px 32px rgba(7, 27, 70, 0.2);
}

.live-ilp-brand img {
  border: 1px solid rgba(242, 181, 29, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.live-ilp-brand h2,
.live-ilp-identity-main h3,
.live-ilp-section-heading h4,
.live-ilp-side-card h4 {
  letter-spacing: 0;
}

.live-ilp-identity-card,
.live-ilp-metric-card,
.live-ilp-programme-panel,
.live-ilp-side-card,
.live-ilp-lower-grid > article {
  border: 1px solid rgba(7, 27, 70, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(7, 27, 70, 0.08);
}

.live-ilp-identity-card {
  position: relative;
  overflow: hidden;
}

.live-ilp-identity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ilp-gold), rgba(0, 132, 40, 0.72), var(--ilp-blue));
}

.live-ilp-photo .learner-avatar,
.live-ilp-photo .learner-photo {
  border: 3px solid var(--ilp-gold);
  box-shadow: 0 18px 36px rgba(7, 27, 70, 0.16);
}

.live-ilp-identity-grid article,
.live-ilp-lower-grid dl div,
.live-ilp-side-card dl div {
  border-color: rgba(7, 27, 70, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.live-ilp-identity-grid span,
.live-ilp-metric-card span,
.live-ilp-lower-grid > article > span,
.live-ilp-side-card dt {
  color: #243b70;
  letter-spacing: 0.045em;
}

.live-ilp-metric-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.live-ilp-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #9aa7b8;
}

.live-ilp-metric-card.green::before {
  background: #008428;
}

.live-ilp-metric-card.amber::before {
  background: #f2b51d;
}

.live-ilp-metric-card.red::before {
  background: #d94b4b;
}

.live-ilp-metric-card.gold::before,
.live-ilp-metric-card.silver::before,
.live-ilp-metric-card.bronze::before {
  background: var(--ilp-gold);
}

.live-ilp-metric-card strong {
  color: var(--ilp-navy);
  line-height: 1;
}

.live-ilp-donut,
.live-ilp-phase-ring {
  background:
    radial-gradient(circle, #ffffff 58%, transparent 59%),
    conic-gradient(var(--ring, #008428) calc(var(--value) * 1%), #e3e9f2 0);
  box-shadow: inset 0 0 0 1px rgba(7, 27, 70, 0.06), 0 10px 24px rgba(7, 27, 70, 0.1);
}

.live-ilp-programme-panel {
  border-color: rgba(242, 181, 29, 0.36);
}

.live-ilp-section-heading {
  border-bottom: 1px solid rgba(7, 27, 70, 0.08);
  padding-bottom: 12px;
}

.live-ilp-legend span {
  color: #1f315b;
}

.live-ilp-timeline::before {
  height: 8px;
  background: #d7dfeb;
}

.live-ilp-timeline::after {
  height: 8px;
  background: linear-gradient(90deg, #008428, #2ca34a);
  box-shadow: 0 6px 16px rgba(0, 132, 40, 0.24);
}

.live-ilp-timeline span {
  border-width: 4px;
  box-shadow: 0 8px 18px rgba(7, 27, 70, 0.14);
}

.live-ilp-phase-card {
  border-color: rgba(7, 27, 70, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.live-ilp-phase-card.complete {
  background: linear-gradient(180deg, #f6fff8 0%, #ffffff 100%);
  border-color: rgba(0, 132, 40, 0.2);
}

.live-ilp-phase-card.current {
  border-color: var(--ilp-gold);
  background:
    linear-gradient(160deg, rgba(7, 27, 70, 0.98), rgba(5, 21, 55, 0.98)),
    var(--ilp-navy);
  box-shadow: 0 22px 42px rgba(7, 27, 70, 0.26);
}

.live-ilp-phase-kicker {
  color: #32456f;
}

.live-ilp-phase-card.current .live-ilp-phase-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.live-ilp-phase-bar {
  background: #e0e7f1;
}

.live-ilp-phase-bar i,
.live-ilp-phase-card.current .live-ilp-phase-bar i {
  background: linear-gradient(90deg, var(--ilp-gold), #ffd65a);
  box-shadow: 0 4px 12px rgba(242, 181, 29, 0.34);
}

.live-ilp-phase-card li {
  color: #40506e;
}

.live-ilp-phase-card li span {
  background: #ffffff;
  border-color: #a8b4c4;
}

.live-ilp-phase-card li.done span {
  background: #008428;
  border-color: #008428;
  box-shadow: 0 4px 10px rgba(0, 132, 40, 0.24);
}

.live-ilp-phase-card li.active span {
  background: var(--ilp-gold);
  border-color: var(--ilp-gold);
  box-shadow: 0 4px 10px rgba(242, 181, 29, 0.3);
}

.live-ilp-side-card.forecast {
  border-left-width: 5px;
}

.live-ilp-lower-grid strong {
  color: var(--ilp-navy);
}

.live-ilp-lower-grid li {
  border-color: rgba(7, 27, 70, 0.08);
}

.live-ilp-header .school-ilp-close {
  border: 1px solid var(--ilp-gold);
  background: linear-gradient(180deg, #123f7a, #071b46);
  box-shadow: 0 10px 22px rgba(7, 27, 70, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.live-ilp-header .school-ilp-close:hover,
.live-ilp-header .school-ilp-close:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.32);
}

.live-ilp-header .school-ilp-close:active {
  transform: translateY(0);
}

.school-ilp-renderer-marker,
.cohort-ilp-renderer-marker {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .live-ilp-metric-card:hover,
  .live-ilp-phase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(7, 27, 70, 0.12);
  }

  .live-ilp-phase-card.current:hover {
    box-shadow: 0 26px 48px rgba(7, 27, 70, 0.3);
  }
}

@media (max-width: 720px) {
  .live-ilp-dashboard {
    background: #f6f9fd;
  }

  .live-ilp-header {
    gap: 14px;
  }

  .live-ilp-metric-card,
  .live-ilp-phase-card,
  .live-ilp-side-card,
  .live-ilp-lower-grid > article {
    box-shadow: 0 12px 24px rgba(7, 27, 70, 0.08);
  }
}

/* Final premium Live ILP refinement: visual-only overrides, preserving existing layout and data. */
.learner-progress-ilp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(7, 27, 77, 0.62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.school-ilp-modal:has(.live-ilp-dashboard),
.learner-progress-ilp-overlay > .school-ilp-modal,
.school-ilp-modal-overlay > .school-ilp-modal,
.live-ilp-dashboard {
  --ilp-navy: #061842;
  --ilp-blue: #0a2f6b;
  --ilp-gold: #dba51d;
  --ilp-gold-soft: rgba(219, 165, 29, 0.28);
  --ilp-ink: #071b46;
  --ilp-muted: #526176;
  --ilp-surface: #ffffff;
  --ilp-secondary: #f7faff;
  --ilp-canvas: #eef4fb;
  --ilp-line: rgba(7, 27, 70, 0.11);
  --ilp-line-strong: rgba(7, 27, 70, 0.18);
  --ilp-shadow-soft: 0 12px 28px rgba(7, 27, 70, 0.075);
  --ilp-shadow-card: 0 18px 42px rgba(7, 27, 70, 0.105);
  --ilp-shadow-deep: 0 30px 76px rgba(7, 27, 70, 0.24);
}

.school-ilp-modal:has(.live-ilp-dashboard),
.learner-progress-ilp-overlay > .school-ilp-modal,
.school-ilp-modal-overlay > .school-ilp-modal {
  background:
    linear-gradient(180deg, #f6faff 0%, var(--ilp-canvas) 100%);
  border-color: var(--ilp-gold-soft);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.76),
    var(--ilp-shadow-deep);
}

.live-ilp-dashboard {
  color: var(--ilp-ink);
  background:
    linear-gradient(180deg, #f4f8fd 0%, #e8f0f9 100%);
}

.live-ilp-header {
  border-bottom-color: var(--ilp-gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--ilp-navy) 0%, #092456 56%, var(--ilp-blue) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 34px rgba(7, 27, 70, 0.22);
}

.live-ilp-brand img {
  border-color: rgba(219, 165, 29, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 70, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.2);
}

.live-ilp-brand h2,
.live-ilp-identity-main h3 {
  text-rendering: geometricPrecision;
}

.live-ilp-brand p {
  color: rgba(255, 255, 255, 0.86);
}

.live-ilp-identity-card,
.live-ilp-metric-card,
.live-ilp-programme-panel,
.live-ilp-side-card,
.live-ilp-lower-grid > article {
  border-color: var(--ilp-line);
  background:
    linear-gradient(180deg, #ffffff, rgba(246, 250, 255, 0.98)),
    var(--ilp-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 44px rgba(7, 27, 70, 0.11);
}

.live-ilp-identity-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 56px rgba(7, 27, 70, 0.14);
}

.live-ilp-identity-card::before {
  background: linear-gradient(90deg, var(--ilp-gold), rgba(0, 132, 40, 0.64), rgba(10, 47, 107, 0.72));
}

.live-ilp-photo .learner-avatar,
.live-ilp-photo .learner-photo {
  border-color: var(--ilp-gold);
  box-shadow:
    0 0 0 5px rgba(219, 165, 29, 0.12),
    0 18px 38px rgba(7, 27, 70, 0.18);
}

.live-ilp-identity-main > strong,
.live-ilp-metric-card em,
.live-ilp-lower-grid p,
.live-ilp-lower-grid li,
.live-ilp-lower-grid dd {
  color: var(--ilp-muted);
}

.live-ilp-identity-grid article,
.live-ilp-lower-grid dl div,
.live-ilp-side-card dl div {
  border-color: rgba(7, 27, 70, 0.075);
  background:
    linear-gradient(180deg, #ffffff, var(--ilp-secondary));
}

.live-ilp-identity-grid span,
.live-ilp-metric-card span,
.live-ilp-lower-grid > article > span,
.live-ilp-side-card dt,
.live-ilp-phase-kicker {
  color: #273f70;
  letter-spacing: 0.04em;
}

.live-ilp-identity-grid b,
.live-ilp-side-card dd,
.live-ilp-lower-grid dd,
.live-ilp-lower-grid strong,
.live-ilp-metric-card strong {
  color: var(--ilp-navy);
}

.live-ilp-metric-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 42px rgba(7, 27, 70, 0.105);
}

.live-ilp-metric-card::before {
  height: 5px;
  background: #8796ab;
}

.live-ilp-metric-card.green::before {
  background: #0f8a2b;
}

.live-ilp-metric-card.amber::before,
.live-ilp-metric-card.gold::before,
.live-ilp-metric-card.silver::before,
.live-ilp-metric-card.bronze::before {
  background: var(--ilp-gold);
}

.live-ilp-metric-card.red::before {
  background: #d94a4a;
}

.live-ilp-metric-card.awaiting {
  background: #f4f7fb;
}

.live-ilp-donut,
.live-ilp-phase-ring {
  background:
    radial-gradient(circle at 50% 48%, #ffffff 0 54%, rgba(255, 255, 255, 0.66) 55%, transparent 56%),
    conic-gradient(var(--ring, #0f8a2b) calc(var(--value) * 1%), #dfe7f1 0);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 70, 0.07),
    inset 0 8px 14px rgba(7, 27, 70, 0.06),
    0 14px 30px rgba(7, 27, 70, 0.15);
}

.live-ilp-programme-panel {
  border-color: rgba(219, 165, 29, 0.34);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 64px rgba(7, 27, 70, 0.15);
}

.live-ilp-section-heading {
  border-bottom-color: rgba(7, 27, 70, 0.09);
}

.live-ilp-section-heading h4,
.live-ilp-side-card h4 {
  color: var(--ilp-navy);
}

.live-ilp-legend {
  color: #33445f;
}

.live-ilp-legend span::before {
  background: #a2adbd;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.live-ilp-legend .complete::before {
  background: #0f8a2b;
}

.live-ilp-legend .current::before {
  background: var(--ilp-gold);
}

.live-ilp-timeline::before {
  height: 10px;
  background: #c7d1df;
  box-shadow: inset 0 1px 2px rgba(7, 27, 70, 0.12);
}

.live-ilp-timeline::after {
  height: 10px;
  background: linear-gradient(90deg, #0f8a2b 0%, #1b9b3e 70%, var(--ilp-gold) 100%);
  box-shadow: 0 6px 16px rgba(15, 138, 43, 0.24);
}

.live-ilp-timeline span {
  background: #f7faff;
  box-shadow:
    0 0 0 4px #a2adbd,
    0 8px 18px rgba(7, 27, 70, 0.13);
}

.live-ilp-timeline span.complete {
  background: #ffffff;
  box-shadow:
    0 0 0 4px #0f8a2b,
    inset 0 0 0 7px #0f8a2b,
    0 8px 18px rgba(15, 138, 43, 0.18);
}

.live-ilp-timeline span.current {
  background: var(--ilp-navy);
  box-shadow:
    0 0 0 5px var(--ilp-gold),
    0 0 0 9px rgba(219, 165, 29, 0.16),
    0 10px 24px rgba(7, 27, 70, 0.22);
}

.live-ilp-phase-card {
  border-color: var(--ilp-line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 40px rgba(7, 27, 70, 0.105);
}

.live-ilp-phase-card.complete {
  background: linear-gradient(180deg, #f4fff7 0%, #ffffff 100%);
  border-color: rgba(15, 138, 43, 0.2);
}

.live-ilp-phase-card.current {
  border-color: var(--ilp-gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, var(--ilp-navy) 0%, #071e50 58%, #0a2f6b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 66px rgba(7, 27, 70, 0.36);
}

.live-ilp-phase-card.current .live-ilp-phase-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.live-ilp-phase-card b,
.live-ilp-phase-card em {
  color: #384966;
}

.live-ilp-phase-bar {
  background: #dfe7f1;
  box-shadow: inset 0 1px 2px rgba(7, 27, 70, 0.1);
}

.live-ilp-phase-bar i {
  background: linear-gradient(90deg, #0f8a2b, #22a64a);
  box-shadow: 0 3px 8px rgba(15, 138, 43, 0.22);
}

.live-ilp-phase-card.current .live-ilp-phase-bar i {
  background: linear-gradient(90deg, var(--ilp-gold), #f7ca4f);
  box-shadow: 0 4px 12px rgba(219, 165, 29, 0.36);
}

.live-ilp-phase-card li {
  color: #45546b;
}

.live-ilp-phase-card li span {
  background: #ffffff;
  border-color: #9aa8ba;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.live-ilp-phase-card li.done span {
  background: #0f8a2b;
  border-color: #0f8a2b;
}

.live-ilp-phase-card li.active span {
  background: var(--ilp-gold);
  border-color: var(--ilp-gold);
}

.live-ilp-side-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 42px rgba(7, 27, 70, 0.105);
}

.live-ilp-side-card.forecast {
  border-left-color: #8796ab;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.live-ilp-side-card.forecast.green {
  border-left-color: #0f8a2b;
}

.live-ilp-side-card.forecast.amber {
  border-left-color: var(--ilp-gold);
}

.live-ilp-side-card.forecast.red {
  border-left-color: #d94a4a;
}

.live-ilp-side-card.forecast strong,
.live-ilp-side-card.forecast span {
  color: var(--ilp-navy);
}

.live-ilp-side-card dd.green,
.live-ilp-side-card.forecast.green strong {
  color: #0f7d28;
}

.live-ilp-side-card dd.amber,
.live-ilp-side-card.forecast.amber strong {
  color: #93680c;
}

.live-ilp-side-card dd.red,
.live-ilp-side-card.forecast.red strong {
  color: #c24141;
}

.live-ilp-lower-grid > article {
  border-top-color: var(--ilp-gold);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.live-ilp-lower-grid li {
  border-color: rgba(7, 27, 70, 0.075);
}

.live-ilp-lower-grid li span,
.live-ilp-lower-grid dt {
  color: #637086;
}

.live-ilp-header .school-ilp-close {
  border-color: var(--ilp-gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #123b78, var(--ilp-navy));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 22px rgba(7, 27, 70, 0.28);
}

/* Cohort ILP learner card redesign: visual-only, scoped to the school overview list. */
.cohort-ilp-overview .cohort-ilp-learner-card {
  --school-card-navy: #071b4d;
  --school-card-blue: #0d2b6b;
  --school-card-gold: #d4af37;
  --school-card-ink: #071b4d;
  --school-card-muted: #52627a;
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 2fr) minmax(176px, 0.58fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
  min-height: auto;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(7, 27, 70, 0.12);
  border-left: 9px solid #16a34a;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(236, 253, 245, 0.5) 0%, rgba(255, 255, 255, 0) 16%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 48px rgba(7, 27, 70, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: visible;
}

.cohort-ilp-overview .cohort-ilp-renderer-marker {
  display: none !important;
}

.cohort-ilp-overview .cohort-ilp-profile-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.cohort-ilp-overview .cohort-ilp-photo-ring {
  display: grid;
  place-items: center;
  width: clamp(146px, 13vw, 196px);
  height: clamp(146px, 13vw, 196px);
  border: 7px solid var(--school-card-gold);
  border-radius: 999px;
  background: #fff8df;
  box-shadow: 0 18px 38px rgba(7, 27, 70, 0.18);
  overflow: hidden;
}

.cohort-ilp-overview .learner-avatar.cohort-ilp {
  width: 100%;
  height: 100%;
  min-width: 100%;
  border: 0;
  border-radius: 999px;
  background: #fff8df;
  color: var(--school-card-ink);
  font-size: 1.7rem;
  font-weight: 1000;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.cohort-ilp-overview .cohort-ilp-status-badge {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.cohort-ilp-overview .cohort-ilp-status-badge span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.cohort-ilp-overview .cohort-ilp-status-badge.monitoring {
  border-color: rgba(245, 158, 11, 0.22);
  background: #fff7ed;
  color: #b45309;
}

.cohort-ilp-overview .cohort-ilp-status-badge.monitoring span {
  background: #f59e0b;
}

.cohort-ilp-overview .cohort-ilp-status-badge.at-risk {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
  color: #be123c;
}

.cohort-ilp-overview .cohort-ilp-status-badge.at-risk span {
  background: #dc2626;
}

.cohort-ilp-overview .cohort-ilp-card-body {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.cohort-ilp-overview .cohort-ilp-learner-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(min(250px, 100%), 0.8fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(7, 27, 70, 0.11);
}

.cohort-ilp-overview .cohort-ilp-learner-title {
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-learner-title span,
.cohort-ilp-overview .cohort-ilp-standard-panel span,
.cohort-ilp-overview .cohort-ilp-metric-title,
.cohort-ilp-overview .cohort-ilp-summary-strip span {
  color: #465875;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-learner-title h3 {
  margin: 8px 0 8px;
  color: var(--school-card-ink);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 1000;
  line-height: 0.98;
}

.cohort-ilp-overview .cohort-ilp-learner-title p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #44546f;
  font-size: clamp(0.96rem, 1.1vw, 1.15rem);
  font-weight: 800;
}

.cohort-ilp-overview .cohort-ilp-learner-title b {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--school-card-gold);
}

.cohort-ilp-overview .cohort-ilp-standard-panel {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding-left: 28px;
  border-left: 1px solid rgba(7, 27, 70, 0.13);
}

.cohort-ilp-overview .cohort-ilp-standard-panel strong {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400e;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-standard-panel strong em {
  font-size: clamp(2.2rem, 3vw, 3.25rem);
  font-style: normal;
  line-height: 1;
}

.cohort-ilp-overview .cohort-ilp-standard-panel.silver strong {
  color: #475569;
}

.cohort-ilp-overview .cohort-ilp-standard-panel.gold strong {
  color: #a16207;
}

.cohort-ilp-overview .cohort-ilp-standard-panel.concern strong {
  color: #be123c;
}

.cohort-ilp-overview .cohort-ilp-standard-panel p {
  margin: 0;
  color: var(--school-card-muted);
  font-size: 1rem;
  font-weight: 750;
}

.cohort-ilp-overview .cohort-ilp-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-metric-card {
  display: grid;
  min-width: 0;
  min-height: 182px;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 17px 14px;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-top: 4px solid var(--school-card-gold);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #102e68 0%, var(--school-card-navy) 100%);
  text-align: center;
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-metric-card .cohort-ilp-metric-title {
  color: #f4d777;
  line-height: 1.2;
  white-space: normal;
}

.cohort-ilp-overview .cohort-ilp-metric-card strong {
  color: #ffffff;
  font-size: clamp(1.18rem, 1.34vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-metric-card em,
.cohort-ilp-overview .cohort-ilp-metric-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-metric-card small {
  color: #f4d777;
}

.cohort-ilp-overview .cohort-ilp-metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #f4d777;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 1000;
}

.cohort-ilp-overview .cohort-ilp-metric-card.attendance .cohort-ilp-metric-icon,
.cohort-ilp-overview .cohort-ilp-metric-card.support .cohort-ilp-metric-icon {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

.cohort-ilp-overview .cohort-ilp-metric-card.evidence .cohort-ilp-metric-icon {
  background: rgba(212, 175, 55, 0.18);
  color: #f4d777;
}

.cohort-ilp-overview .cohort-ilp-metric-card.support.active .cohort-ilp-metric-icon {
  background: rgba(255, 228, 230, 0.16);
  color: #fecdd3;
}

.cohort-ilp-overview .cohort-ilp-mini-progress {
  width: 84%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.cohort-ilp-overview .cohort-ilp-mini-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3157d5, #6d4de6);
}

.cohort-ilp-overview .cohort-ilp-readiness-ring {
  display: grid;
  width: clamp(92px, 9vw, 112px);
  height: clamp(92px, 9vw, 112px);
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(#f4d777 0 var(--readiness), rgba(255, 255, 255, 0.18) var(--readiness) 100%);
  box-shadow: inset 0 0 0 1px rgba(7, 27, 70, 0.04);
}

.cohort-ilp-overview .cohort-ilp-readiness-ring strong {
  color: var(--school-card-ink);
  font-size: 1.55rem;
}

.cohort-ilp-overview .cohort-ilp-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-left: 6px solid var(--school-card-gold);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0) 22%),
    linear-gradient(180deg, #102e68 0%, var(--school-card-navy) 100%);
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-summary-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
  border-left: 0;
}

.cohort-ilp-overview .cohort-ilp-summary-strip i {
  grid-row: span 2;
  color: #f4d777;
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1;
}

.cohort-ilp-overview .cohort-ilp-summary-strip strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 1000;
  line-height: 1.18;
}

.cohort-ilp-overview .cohort-ilp-card-actions {
  display: flex;
  position: static;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  justify-self: end;
  align-self: stretch;
  gap: 18px;
  z-index: 0;
}

.cohort-ilp-overview .cohort-ilp-action {
  position: relative;
  display: inline-flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--school-card-gold);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #143d86 0%, var(--school-card-navy) 100%);
  color: #ffffff;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 1000;
  line-height: 1.18;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  box-shadow: 0 18px 30px rgba(7, 27, 77, 0.22), inset 0 1px 0 rgba(255, 236, 169, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action,
.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action.secondary,
.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action.primary {
  border-color: var(--school-card-gold) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #143d86 0%, var(--school-card-navy) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 30px rgba(7, 27, 77, 0.22), inset 0 1px 0 rgba(255, 236, 169, 0.28) !important;
}

.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #0e3379 0%, #061842 100%) !important;
}

.cohort-ilp-overview .cohort-ilp-action::before {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.76);
  border-radius: 50%;
  color: #f5c84c;
  font-size: 1.1rem;
}

.cohort-ilp-overview .cohort-ilp-action-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #ffffff;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.cohort-ilp-overview .cohort-ilp-action-label span {
  color: #ffffff;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
}

.cohort-ilp-overview [data-school-intelligence-profile]::before {
  content: "⚡";
}

.cohort-ilp-overview [data-school-learner-evidence]::before {
  content: "⌕";
}

.cohort-ilp-overview [data-school-ilp]::before {
  content: "↗";
}

.cohort-ilp-overview .cohort-ilp-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(7, 27, 77, 0.27), inset 0 1px 0 rgba(255, 236, 169, 0.34);
}

@media (max-width: 1320px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1.55fr) minmax(168px, 0.52fr);
    gap: 20px;
    padding: 26px;
  }

  .cohort-ilp-overview .cohort-ilp-card-actions {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    flex-direction: column;
    align-self: stretch;
  }

  .cohort-ilp-overview .cohort-ilp-action {
    min-height: 78px;
    text-align: center;
  }

  .cohort-ilp-overview .cohort-ilp-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article,
  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    padding: 12px;
    border-left: 0;
    border-top: 1px solid rgba(7, 27, 70, 0.13);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 980px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-profile-column {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .cohort-ilp-overview .cohort-ilp-photo-ring {
    width: 150px;
    height: 150px;
  }

  .cohort-ilp-overview .cohort-ilp-learner-header,
  .cohort-ilp-overview .cohort-ilp-metric-grid,
  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-standard-panel {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    min-height: auto;
    padding: 22px;
  }

  .cohort-ilp-overview .cohort-ilp-profile-column,
  .cohort-ilp-overview .cohort-ilp-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cohort-ilp-overview .cohort-ilp-profile-column {
    align-items: center;
    text-align: center;
  }

  .cohort-ilp-overview .cohort-ilp-learner-header,
  .cohort-ilp-overview .cohort-ilp-metric-grid,
  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article,
  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(7, 27, 70, 0.13);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    border-top: 0;
  }

  .cohort-ilp-overview .cohort-ilp-action {
    min-height: 70px;
    text-align: center;
  }
}

/* Premium learner card architecture: presentation-only redesign for school cohort overview. */
.cohort-ilp-overview .cohort-ilp-learner-list {
  gap: 18px;
}

.cohort-ilp-overview .cohort-ilp-learner-card {
  grid-template-columns: minmax(210px, 23%) minmax(0, 1fr) minmax(180px, 19%);
  gap: clamp(18px, 2.1vw, 30px);
  align-items: stretch;
  padding: clamp(20px, 2.3vw, 30px);
  border: 1px solid rgba(13, 43, 107, 0.12);
  border-left: 8px solid #16a34a;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(13, 43, 107, 0.035), rgba(255, 255, 255, 0) 28%),
    #ffffff;
  box-shadow: 0 20px 50px rgba(7, 27, 70, 0.12);
}

.cohort-ilp-overview .cohort-ilp-learner-card.at-risk {
  border-left-color: #dc2626;
}

.cohort-ilp-overview .cohort-ilp-learner-card.monitoring {
  border-left-color: #d97706;
}

.cohort-ilp-overview .cohort-ilp-profile-column {
  justify-content: flex-start;
  gap: 14px;
  padding: 6px 0;
}

.cohort-ilp-overview .cohort-ilp-photo-ring {
  width: clamp(132px, 12vw, 176px);
  height: clamp(132px, 12vw, 176px);
  border-width: 5px;
  box-shadow: 0 14px 28px rgba(7, 27, 70, 0.15);
}

.cohort-ilp-overview .cohort-ilp-status-badge {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 0.92rem;
}

.cohort-ilp-overview .cohort-ilp-status-badge span {
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
}

.cohort-ilp-overview .cohort-ilp-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.cohort-ilp-overview .cohort-ilp-learner-header {
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
}

.cohort-ilp-overview .cohort-ilp-learner-title h3 {
  margin: 5px 0 7px;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 1;
}

.cohort-ilp-overview .cohort-ilp-learner-title p {
  gap: 8px;
  font-size: 0.95rem;
}

.cohort-ilp-overview .cohort-ilp-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-hero-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(13, 43, 107, 0.1);
  border-radius: 14px;
  background: #f7f9fd;
  color: var(--school-card-ink);
}

.cohort-ilp-overview .cohort-ilp-hero-pill i {
  grid-row: span 2;
  color: #16a34a;
  font-style: normal;
  line-height: 1;
}

.cohort-ilp-overview .cohort-ilp-hero-pill strong,
.cohort-ilp-overview .cohort-ilp-hero-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-hero-pill strong {
  color: var(--school-card-ink);
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.1;
}

.cohort-ilp-overview .cohort-ilp-hero-pill em {
  color: #52627a;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.cohort-ilp-overview .cohort-ilp-hero-pill.gold i,
.cohort-ilp-overview .cohort-ilp-hero-pill.silver i,
.cohort-ilp-overview .cohort-ilp-hero-pill.bronze i,
.cohort-ilp-overview .cohort-ilp-hero-pill.readiness i,
.cohort-ilp-overview .cohort-ilp-hero-pill.theory i {
  color: var(--school-card-gold);
}

.cohort-ilp-overview .cohort-ilp-hero-pill.concern i,
.cohort-ilp-overview .cohort-ilp-hero-pill.at-risk i {
  color: #dc2626;
}

.cohort-ilp-overview .cohort-ilp-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(13, 43, 107, 0.09);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 20px rgba(7, 27, 70, 0.075);
}

.cohort-ilp-overview .cohort-ilp-kpi-tile i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(13, 43, 107, 0.07);
  color: #0d2b6b;
  font-style: normal;
  font-weight: 1000;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile span,
.cohort-ilp-overview .cohort-ilp-kpi-tile strong,
.cohort-ilp-overview .cohort-ilp-kpi-tile em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile span {
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile strong {
  color: var(--school-card-ink);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  font-weight: 1000;
  line-height: 1.08;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile em {
  color: #52627a;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.cohort-ilp-overview .cohort-ilp-kpi-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf7;
}

.cohort-ilp-overview .cohort-ilp-kpi-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d2b6b, var(--school-card-gold));
}

.cohort-ilp-overview .cohort-ilp-summary-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 12px 14px;
  border-radius: 16px;
}

.cohort-ilp-overview .cohort-ilp-summary-strip article {
  padding: 0 12px;
}

.cohort-ilp-overview .cohort-ilp-summary-strip i {
  font-size: 1.18rem;
}

.cohort-ilp-overview .cohort-ilp-summary-strip span {
  font-size: 0.66rem;
}

.cohort-ilp-overview .cohort-ilp-summary-strip strong {
  font-size: 0.78rem;
}

.cohort-ilp-overview .cohort-ilp-card-actions {
  justify-content: center;
  gap: 12px;
}

.cohort-ilp-overview .cohort-ilp-standard-panel {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-bottom: 4px;
  padding: 13px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #12356f, var(--school-card-navy));
}

.cohort-ilp-overview .cohort-ilp-standard-panel span {
  color: #f4d777;
  font-size: 0.64rem;
  line-height: 1.2;
}

.cohort-ilp-overview .cohort-ilp-standard-panel strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.1;
}

.cohort-ilp-overview .cohort-ilp-standard-panel strong em {
  font-size: 1.45rem;
}

.cohort-ilp-overview .cohort-ilp-standard-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.25;
}

.cohort-ilp-overview .cohort-ilp-action {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  text-align: left;
}

.cohort-ilp-overview .cohort-ilp-action::before {
  width: 28px;
  min-width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

@media (max-width: 1280px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(180px, 22%) minmax(0, 1fr) minmax(162px, 18%);
    gap: 18px;
  }

  .cohort-ilp-overview .cohort-ilp-hero-strip,
  .cohort-ilp-overview .cohort-ilp-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article,
  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    padding: 10px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (min-width: 981px) {
  .cohort-ilp-overview .cohort-ilp-hero-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-kpi-row,
  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article,
  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    padding: 0 10px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-profile-column {
    align-items: center;
  }

  .cohort-ilp-overview .cohort-ilp-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cohort-ilp-overview .cohort-ilp-standard-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cohort-ilp-overview .cohort-ilp-card-actions,
  .cohort-ilp-overview .cohort-ilp-hero-strip,
  .cohort-ilp-overview .cohort-ilp-kpi-row,
  .cohort-ilp-overview .cohort-ilp-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article,
  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cohort-ilp-overview .cohort-ilp-summary-strip article:first-child {
    border-top: 0;
  }
}

/* Minimal learner card reset: visual-only simplification, existing data and actions preserved. */
.cohort-ilp-overview .cohort-ilp-learner-card {
  grid-template-columns: minmax(166px, 20%) minmax(0, 1fr) minmax(168px, 17%);
  gap: clamp(16px, 2vw, 26px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(7, 27, 70, 0.1);
  border-left: 7px solid #16a34a;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(7, 27, 70, 0.11);
}

.cohort-ilp-overview .cohort-ilp-profile-column {
  gap: 16px;
  justify-content: center;
  padding: 0;
}

.cohort-ilp-overview .cohort-ilp-photo-ring {
  width: clamp(165px, 14vw, 182px);
  height: clamp(165px, 14vw, 182px);
  border-width: 5px;
  box-shadow: 0 16px 34px rgba(7, 27, 70, 0.17);
}

.cohort-ilp-overview .cohort-ilp-status-badge {
  min-height: 32px;
  padding: 7px 13px;
  font-size: 0.82rem;
}

.cohort-ilp-overview .cohort-ilp-status-badge span {
  width: 17px;
  height: 17px;
  font-size: 0.66rem;
}

.cohort-ilp-overview .cohort-ilp-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cohort-ilp-overview .cohort-ilp-learner-header {
  display: block;
  padding: 0;
  border: 0;
}

.cohort-ilp-overview .cohort-ilp-headline-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-headline-status.monitoring {
  border-color: rgba(245, 158, 11, 0.22);
  background: #fff7ed;
  color: #b45309;
}

.cohort-ilp-overview .cohort-ilp-headline-status.at-risk {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff1f2;
  color: #be123c;
}

.cohort-ilp-overview .cohort-ilp-learner-title h3 {
  margin: 0 0 8px;
  color: var(--school-card-ink);
  font-size: clamp(1.78rem, 2.55vw, 2.85rem);
  font-weight: 1000;
  line-height: 0.98;
}

.cohort-ilp-overview .cohort-ilp-learner-title p {
  display: block;
  margin: 4px 0 0;
  color: #52627a;
  font-size: clamp(0.86rem, 0.94vw, 1rem);
  font-weight: 820;
  line-height: 1.32;
}

.cohort-ilp-overview .cohort-ilp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile {
  min-height: 78px;
  padding: 11px 11px 10px;
  border: 1px solid rgba(13, 43, 107, 0.08);
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: none;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile i {
  display: none;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile span {
  color: #66748a;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-overflow: clip;
}

.cohort-ilp-overview .cohort-ilp-kpi-tile strong {
  color: var(--school-card-ink);
  font-size: clamp(0.9rem, 1.05vw, 1.08rem);
}

.cohort-ilp-overview .cohort-ilp-kpi-tile em {
  color: #66748a;
  font-size: 0.68rem;
}

.cohort-ilp-overview .cohort-ilp-kpi-progress {
  height: 4px;
  background: #e9eef7;
}

.cohort-ilp-overview .cohort-ilp-kpi-progress b {
  background: linear-gradient(90deg, var(--school-card-blue), var(--school-card-gold));
}

.cohort-ilp-overview .cohort-ilp-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  align-self: center;
}

.cohort-ilp-overview .cohort-ilp-action {
  min-height: 58px;
  height: 58px;
  padding: 9px 12px;
  border-width: 1px;
  border-radius: 14px;
  font-size: 0.82rem;
  box-shadow: 0 12px 22px rgba(7, 27, 77, 0.16), inset 0 1px 0 rgba(255, 236, 169, 0.24);
}

.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action,
.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action.secondary,
.cohort-ilp-overview .school-cohort-learner-actions .cohort-ilp-action.primary {
  box-shadow: 0 12px 22px rgba(7, 27, 77, 0.16), inset 0 1px 0 rgba(255, 236, 169, 0.24) !important;
}

.cohort-ilp-overview .cohort-ilp-action::before {
  width: 22px;
  min-width: 22px;
  height: 22px;
  font-size: 0.74rem;
}

@media (max-width: 1180px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(152px, 20%) minmax(0, 1fr) minmax(150px, 18%);
    gap: 16px;
  }

  .cohort-ilp-overview .cohort-ilp-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-photo-ring {
    width: 150px;
    height: 150px;
  }

  .cohort-ilp-overview .cohort-ilp-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 620px) {
  .cohort-ilp-overview .cohort-ilp-kpi-row,
  .cohort-ilp-overview .cohort-ilp-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Premium school learner card replacement: scoped visual-only update, existing actions preserved. */
.cohort-ilp-overview .cohort-ilp-learner-card {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-left: 7px solid #16a34a;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 22px 54px rgba(7, 27, 70, 0.13);
  overflow: hidden;
}

.cohort-ilp-overview .cohort-ilp-learner-card.monitoring {
  border-left-color: #f59e0b;
}

.cohort-ilp-overview .cohort-ilp-learner-card.at-risk {
  border-left-color: #dc2626;
}

.cohort-ilp-overview .cohort-ilp-profile-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 30%),
    linear-gradient(145deg, #061842 0%, #0a2a66 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cohort-ilp-overview .cohort-ilp-photo-ring {
  width: clamp(136px, 11vw, 168px);
  height: clamp(136px, 11vw, 168px);
  flex: 0 0 auto;
  border: 5px solid #d4af37;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.cohort-ilp-overview .cohort-ilp-photo-ring .learner-avatar,
.cohort-ilp-overview .cohort-ilp-photo-ring img,
.cohort-ilp-overview .cohort-ilp-photo-ring span {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cohort-ilp-overview .cohort-ilp-profile-identity {
  display: grid;
  gap: 6px;
  text-align: center;
}

.cohort-ilp-overview .cohort-ilp-profile-identity h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  font-weight: 950;
  line-height: 1.08;
}

.cohort-ilp-overview .cohort-ilp-profile-identity span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-premium-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(12px, 1.3vw, 18px);
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-readiness-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  row-gap: 3px;
  align-items: center;
  min-width: 0;
  padding: clamp(14px, 1.5vw, 18px) clamp(16px, 1.8vw, 24px);
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0) 35%),
    linear-gradient(135deg, #061842 0%, #0a2a66 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 27, 77, 0.18);
}

.cohort-ilp-overview .cohort-ilp-readiness-banner span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-readiness-banner strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #ffffff;
  font-size: clamp(1.85rem, 2.3vw, 2.45rem);
  font-weight: 1000;
  line-height: 1;
}

.cohort-ilp-overview .cohort-ilp-readiness-banner em {
  color: #f8e7a5;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.18;
}

.cohort-ilp-overview .cohort-ilp-brief-box {
  min-width: 0;
  padding: clamp(13px, 1.4vw, 18px) clamp(15px, 1.6vw, 20px);
  border: 1px solid rgba(13, 43, 107, 0.09);
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: inset 4px 0 0 rgba(212, 175, 55, 0.78);
}

.cohort-ilp-overview .cohort-ilp-brief-box span {
  display: block;
  margin: 0 0 6px;
  color: #52627a;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-brief-box p {
  margin: 0;
  color: #071b4d;
  font-size: clamp(0.92rem, 1vw, 1.04rem);
  font-weight: 760;
  line-height: 1.42;
}

.cohort-ilp-overview .cohort-ilp-premium-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-premium-metric {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 118px;
  padding: clamp(15px, 1.5vw, 20px);
  border: 1px solid rgba(13, 43, 107, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 70, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 12px 26px rgba(7, 27, 70, 0.08);
}

.cohort-ilp-overview .cohort-ilp-premium-metric.rag-green {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
}

.cohort-ilp-overview .cohort-ilp-premium-metric.rag-orange {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.cohort-ilp-overview .cohort-ilp-premium-metric.rag-red {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

.cohort-ilp-overview .cohort-ilp-premium-metric.rag-blue {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.cohort-ilp-overview .cohort-ilp-premium-metric span,
.cohort-ilp-overview .cohort-ilp-premium-metric strong,
.cohort-ilp-overview .cohort-ilp-premium-metric em {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cohort-ilp-overview .cohort-ilp-premium-metric span {
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cohort-ilp-overview .cohort-ilp-premium-metric strong {
  color: #071b4d;
  font-size: clamp(1.16rem, 1.36vw, 1.48rem);
  font-weight: 1000;
  line-height: 1.1;
}

.cohort-ilp-overview .cohort-ilp-premium-metric em {
  color: #66748a;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.22;
}

.cohort-ilp-overview .cohort-ilp-premium-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  min-width: 0;
}

.cohort-ilp-overview .cohort-ilp-premium-actions .cohort-ilp-action,
.cohort-ilp-overview .cohort-ilp-premium-actions .cohort-ilp-action.secondary,
.cohort-ilp-overview .cohort-ilp-premium-actions .cohort-ilp-action.primary {
  width: 100%;
  min-height: 58px;
  height: auto;
  padding: 13px 16px;
  border: 1px solid rgba(212, 175, 55, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0a2a66 0%, #061842 100%) !important;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(7, 27, 77, 0.22), inset 0 1px 0 rgba(255, 236, 169, 0.2) !important;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.cohort-ilp-overview .cohort-ilp-premium-actions .cohort-ilp-action::before {
  display: none;
}

.cohort-ilp-overview .cohort-ilp-premium-actions .cohort-ilp-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(7, 27, 77, 0.27), inset 0 1px 0 rgba(255, 236, 169, 0.24) !important;
}

@media (max-width: 1120px) {
  .cohort-ilp-overview .cohort-ilp-premium-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cohort-ilp-overview .cohort-ilp-learner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-profile-column {
    min-height: auto;
  }

  .cohort-ilp-overview .cohort-ilp-photo-ring {
    width: 144px;
    height: 144px;
  }
}

@media (max-width: 640px) {
  .cohort-ilp-overview .cohort-ilp-premium-metrics,
  .cohort-ilp-overview .cohort-ilp-premium-actions,
  .cohort-ilp-overview .cohort-ilp-readiness-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cohort-ilp-overview .cohort-ilp-readiness-banner strong {
    grid-row: auto;
    grid-column: auto;
  }
}

/* Learner Dashboard Premium TFE Colour System - active */
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign {
  --learner-tfe-navy: #061842;
  --learner-tfe-blue: #0a2a66;
  --learner-tfe-ink: #071b4d;
  --learner-tfe-gold: #d4af37;
  --learner-tfe-gold-strong: #b8790f;
  --learner-tfe-gold-soft: rgba(212, 175, 55, 0.18);
  --learner-tfe-border: rgba(212, 175, 55, 0.42);
  --learner-tfe-muted: #52627a;
  --learner-tfe-track: #e8edf5;
  --learner-tfe-surface: #ffffff;
  --learner-tfe-surface-soft: #f8fbff;
  --learner-tfe-shadow: 0 18px 42px rgba(7, 27, 77, 0.09);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-dashboard-hero-card {
  border-color: rgba(212, 175, 55, 0.52);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0) 16%),
    linear-gradient(135deg, #041232 0%, #061842 50%, #0a2a66 100%);
  box-shadow:
    0 22px 52px rgba(7, 27, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-dashboard-hero-card::after {
  opacity: 0.18;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-dashboard-photo-column .premium-profile-photo-wrap {
  box-shadow:
    0 20px 42px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 0 0 8px rgba(212, 175, 55, 0.1);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-dashboard-identity .premium-profile-name-lockup .premium-welcome {
  border-color: rgba(212, 175, 55, 0.62);
  background: rgba(255, 255, 255, 0.08);
  color: #f4d777;
  letter-spacing: 0.1em;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-summary-grid {
  border-color: var(--learner-tfe-border);
  background:
    linear-gradient(180deg, #f7faff 0%, #ffffff 54%, #f8fbff 100%);
  box-shadow:
    0 20px 48px rgba(7, 27, 77, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-kpi-card,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-breakdown-card {
  border-color: var(--learner-tfe-border);
  background: linear-gradient(180deg, var(--learner-tfe-surface) 0%, var(--learner-tfe-surface-soft) 100%);
  box-shadow:
    var(--learner-tfe-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-card-kicker,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-section-title .eyebrow,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-secondary-kpi__head span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-target-head span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-target-progress em,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list p,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel em {
  color: var(--learner-tfe-muted);
  letter-spacing: 0.09em;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-kpi-card h3,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-section-title h3,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-target-head strong,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel strong {
  color: var(--learner-tfe-ink);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-score-layout {
  border-color: rgba(212, 175, 55, 0.58);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0) 26%),
    linear-gradient(135deg, #041232 0%, #061842 58%, #0a2a66 100%);
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-score-layout .premium-readiness-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--learner-tfe-gold) 0 var(--score), rgba(255, 255, 255, 0.18) var(--score) 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(2, 6, 23, 0.22),
    0 0 0 1px rgba(212, 175, 55, 0.4);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-score-summary > strong {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(2, 6, 23, 0.24);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-empty-state {
  border: 1px solid rgba(212, 175, 55, 0.52);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.18), transparent 28%),
    linear-gradient(135deg, #041232 0%, #061842 62%, #0a2a66 100%);
  box-shadow:
    0 16px 34px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-empty-state strong {
  color: #ffffff;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-empty-state span {
  color: #f4d777;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-meta-row span {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-meta-row em {
  border: 1px solid rgba(212, 175, 55, 0.62);
  background: #fff6d8;
  color: #604000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px rgba(154, 106, 0, 0.08);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-readiness-kpi-card .premium-readiness-progress,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-secondary-kpi,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-today-target-card {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:
    0 12px 28px rgba(7, 27, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-secondary-kpi__head strong {
  color: var(--learner-tfe-ink);
  text-shadow: none;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-progress-bar,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-secondary-kpi__track {
  border-color: rgba(7, 27, 77, 0.07);
  background: var(--learner-tfe-track);
  box-shadow:
    inset 0 1px 2px rgba(7, 27, 77, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-progress-bar span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-secondary-kpi__track i {
  background: linear-gradient(90deg, var(--learner-tfe-navy), var(--learner-tfe-blue));
  box-shadow:
    inset -4px 0 0 var(--learner-tfe-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-today-target-card::before {
  background: linear-gradient(90deg, var(--learner-tfe-gold), #f4d777);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-target-checklist div,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list article {
  border-color: rgba(212, 175, 55, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow:
    0 10px 24px rgba(7, 27, 77, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-target-checklist b {
  background: #eef3f9;
  color: var(--learner-tfe-blue);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-target-checklist div.done b {
  background: rgba(13, 128, 42, 0.14);
  color: #0d802a;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-today-target-card p {
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #fff7df;
  color: #604000;
  box-shadow: none;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list article {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 175, 55, 0.32);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--learner-tfe-gold), rgba(212, 175, 55, 0.16));
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-improvement-list strong,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel b,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel small {
  color: var(--learner-tfe-gold-strong);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel {
  border-color: rgba(212, 175, 55, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:
    0 16px 36px rgba(7, 27, 77, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel > span {
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: var(--learner-tfe-navy);
  color: #f4d777;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-employment-insights-panel article {
  border-bottom-color: rgba(7, 27, 77, 0.09);
}

/* Premium learner dashboard reference redesign - active */
#learnerPortalContent:has(.premium-learner-reference) {
  background: #f6f8fb;
}

#learnerPortalContent:has(.premium-learner-reference) .learner-dashboard-topbar,
#learnerPortalContent:has(.premium-learner-reference) .learner-menu {
  display: none;
}

#learnerPortalContent:has(.premium-learner-reference) .learner-dashboard-grid {
  display: block;
  width: 100%;
  margin: 0;
}

#learnerPortalContent:has(.premium-learner-reference) .learner-dashboard-grid:has(#learnerProfilePanel) > :not(#learnerProfilePanel),
#learnerPortalContent:has(.premium-learner-reference) .learner-dashboard-grid + .learner-dashboard-grid,
#learnerPortalContent:has(.premium-learner-reference) .learner-portal-grid {
  display: none;
}

#learnerPortalContent:has(.premium-learner-reference) #learnerProfilePanel {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign.premium-learner-reference {
  --reference-navy: #061842;
  --reference-blue: #08265d;
  --reference-gold: #d4a017;
  --reference-gold-soft: rgba(212, 160, 23, 0.16);
  --reference-green: #159447;
  --reference-ink: #071842;
  --reference-muted: #657089;
  --reference-line: rgba(7, 24, 66, 0.1);
  --reference-card: #ffffff;
  --reference-soft: #f8fafc;
  --reference-shadow: 0 18px 44px rgba(7, 24, 66, 0.09);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 18px 18px 42px;
  color: var(--reference-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 160, 23, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fb 100%);
}

#learnerPortalContent .premium-learner-reference svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#learnerPortalContent .premium-reference-topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 310px) minmax(300px, 370px);
  gap: 24px;
  align-items: center;
}

#learnerPortalContent .premium-reference-welcome span,
#learnerPortalContent .premium-reference-summary-card p,
#learnerPortalContent .premium-reference-identity p,
#learnerPortalContent .premium-reference-card-copy span {
  margin: 0;
  color: var(--reference-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#learnerPortalContent .premium-reference-welcome h2 {
  margin: 4px 0 8px;
  color: var(--reference-navy);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

#learnerPortalContent .premium-reference-welcome p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: var(--reference-muted);
  font-size: 1rem;
  font-weight: 700;
}

#learnerPortalContent .premium-reference-welcome i,
#learnerPortalContent .premium-reference-contact-row i {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(7, 24, 66, 0.28);
}

#learnerPortalContent .premium-reference-summary-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px 24px;
  border: 1px solid rgba(212, 160, 23, 0.34);
  border-radius: 16px;
  background: var(--reference-card);
  box-shadow: var(--reference-shadow);
}

#learnerPortalContent .premium-reference-summary-card > span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  color: var(--reference-gold);
  background: rgba(212, 160, 23, 0.1);
}

#learnerPortalContent .premium-reference-summary-card.score {
  justify-content: space-between;
}

#learnerPortalContent .premium-reference-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--reference-navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

#learnerPortalContent .premium-reference-summary-card.status strong {
  color: var(--reference-green);
  font-size: 1.35rem;
  text-transform: uppercase;
}

#learnerPortalContent .premium-reference-summary-card em {
  display: block;
  margin-top: 8px;
  color: var(--reference-muted);
  font-style: normal;
  font-weight: 700;
}

#learnerPortalContent .premium-reference-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) minmax(330px, 420px);
  gap: 34px;
  align-items: center;
  min-height: 292px;
  padding: 38px 44px;
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #031331 0%, #061842 54%, #08265d 100%);
  box-shadow: 0 24px 58px rgba(7, 24, 66, 0.2);
}

#learnerPortalContent .premium-reference-hero-card::after {
  content: "TFE";
  position: absolute;
  right: 23%;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

#learnerPortalContent .premium-reference-photo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 3px solid var(--reference-gold);
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 0 8px rgba(255, 255, 255, 0.04);
}

#learnerPortalContent .premium-reference-photo-wrap .learner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  color: var(--reference-navy);
  font-size: 3rem;
  font-weight: 900;
}

#learnerPortalContent .premium-reference-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
}

#learnerPortalContent .premium-reference-identity p {
  display: inline-flex;
  padding: 8px 18px;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-radius: 999px;
  color: #f6d77a;
  background: rgba(0, 0, 0, 0.08);
}

#learnerPortalContent .premium-reference-identity h3 {
  margin: 26px 0 12px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

#learnerPortalContent .premium-reference-identity > span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 750;
}

#learnerPortalContent .premium-reference-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

#learnerPortalContent .premium-reference-contact-row span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

#learnerPortalContent .premium-reference-contact-row svg {
  color: var(--reference-gold);
}

#learnerPortalContent .premium-reference-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

#learnerPortalContent .premium-reference-action,
#learnerPortalContent .premium-reference-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid rgba(212, 160, 23, 0.78);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #061842, #08265d);
  box-shadow: 0 14px 28px rgba(2, 10, 31, 0.2);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

#learnerPortalContent .premium-reference-action svg:first-child,
#learnerPortalContent .premium-reference-card-cta svg:first-child {
  color: var(--reference-gold);
}

#learnerPortalContent .premium-reference-action svg:last-child,
#learnerPortalContent .premium-reference-card-cta svg:last-child {
  width: 18px;
  height: 18px;
}

#learnerPortalContent .premium-reference-action:hover,
#learnerPortalContent .premium-reference-card:hover .premium-reference-card-cta {
  transform: translateY(-2px);
  border-color: #f1c85b;
  box-shadow: 0 18px 34px rgba(2, 10, 31, 0.24);
}

#learnerPortalContent .premium-reference-action:focus-visible,
#learnerPortalContent .premium-reference-card:focus-visible,
#learnerPortalContent .premium-reference-card-cta:focus-visible,
#learnerPortalContent .premium-reference-card-link:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.44);
  outline-offset: 3px;
}

#learnerPortalContent .premium-reference-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

#learnerPortalContent .premium-reference-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 20px;
  min-height: 520px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 16px;
  background: var(--reference-card);
  box-shadow: var(--reference-shadow);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#learnerPortalContent .premium-reference-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.62);
  box-shadow: 0 24px 54px rgba(7, 24, 66, 0.13);
}

#learnerPortalContent .premium-reference-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

#learnerPortalContent .premium-reference-card-head > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(7, 24, 66, 0.06);
  color: var(--reference-blue);
}

#learnerPortalContent .premium-reference-card.gold .premium-reference-card-head > span {
  color: var(--reference-gold);
  background: rgba(212, 160, 23, 0.12);
}

#learnerPortalContent .premium-reference-card.green .premium-reference-card-head > span {
  color: var(--reference-green);
  background: rgba(21, 148, 71, 0.12);
}

#learnerPortalContent .premium-reference-card h3 {
  margin: 0;
  color: var(--reference-navy);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#learnerPortalContent .premium-reference-ring {
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  width: 168px;
  height: 168px;
  margin: 6px 0 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--ring-color, var(--reference-blue)) 0 var(--ring-value), #e8edf5 var(--ring-value) 100%);
  box-shadow:
    inset 0 0 0 10px #ffffff,
    0 12px 26px rgba(7, 24, 66, 0.08);
}

#learnerPortalContent .premium-reference-ring.gold {
  --ring-color: var(--reference-gold);
}

#learnerPortalContent .premium-reference-ring.green {
  --ring-color: var(--reference-green);
}

#learnerPortalContent .premium-reference-ring.is-empty {
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(#dbe2ec 0 100%);
}

#learnerPortalContent .premium-reference-ring strong {
  color: var(--reference-navy);
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
}

#learnerPortalContent .premium-reference-ring.is-empty strong {
  max-width: 92px;
  font-size: 1rem;
  line-height: 1.08;
}

#learnerPortalContent .premium-reference-ring span {
  margin-top: 7px;
  color: var(--reference-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#learnerPortalContent .premium-reference-card-copy {
  min-height: 80px;
}

#learnerPortalContent .premium-reference-card-copy strong {
  display: block;
  margin-top: 8px;
  color: var(--reference-navy);
  font-size: 1.08rem;
  line-height: 1.28;
}

#learnerPortalContent .premium-reference-card-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
  box-shadow: inset 0 1px 2px rgba(7, 24, 66, 0.08);
}

#learnerPortalContent .premium-reference-card-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--reference-navy), var(--reference-blue));
  box-shadow: inset -6px 0 0 var(--reference-gold);
}

#learnerPortalContent .premium-reference-card.gold .premium-reference-card-progress span {
  background: linear-gradient(90deg, #c98b08, #f0bd32);
  box-shadow: inset -6px 0 0 rgba(255, 255, 255, 0.42);
}

#learnerPortalContent .premium-reference-card.green .premium-reference-card-progress span {
  background: linear-gradient(90deg, #0f803a, #1db85b);
  box-shadow: inset -6px 0 0 rgba(255, 255, 255, 0.36);
}

#learnerPortalContent .premium-reference-card > p {
  margin: 0;
  color: var(--reference-muted);
  font-size: 0.95rem;
  font-weight: 750;
}

#learnerPortalContent .premium-reference-card.gold .premium-reference-card-cta {
  background: linear-gradient(135deg, #c98500, #dc9f09);
}

#learnerPortalContent .premium-reference-card.green .premium-reference-card-cta {
  background: linear-gradient(135deg, #0f803a, #159447);
}

#learnerPortalContent .premium-reference-card-link {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--reference-navy);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

#learnerPortalContent .premium-reference-card-link:hover {
  color: #8b6100;
  background: rgba(212, 160, 23, 0.08);
}

@media (max-width: 1180px) {
  #learnerPortalContent .premium-reference-topbar {
    grid-template-columns: 1fr 1fr;
  }

  #learnerPortalContent .premium-reference-welcome {
    grid-column: 1 / -1;
  }

  #learnerPortalContent .premium-reference-hero-card {
    grid-template-columns: 180px 1fr;
  }

  #learnerPortalContent .premium-reference-photo-wrap {
    width: 170px;
    height: 170px;
  }

  #learnerPortalContent .premium-reference-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #learnerPortalContent .premium-reference-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign.premium-learner-reference {
    padding: 14px 12px 30px;
  }

  #learnerPortalContent .premium-reference-topbar,
  #learnerPortalContent .premium-reference-hero-card,
  #learnerPortalContent .premium-reference-card-grid {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .premium-reference-summary-card {
    min-height: 0;
    padding: 18px;
  }

  #learnerPortalContent .premium-reference-hero-card {
    gap: 22px;
    padding: 26px 20px;
    text-align: left;
  }

  #learnerPortalContent .premium-reference-photo-wrap {
    width: 150px;
    height: 150px;
  }

  #learnerPortalContent .premium-reference-identity h3 {
    margin-top: 18px;
  }

  #learnerPortalContent .premium-reference-actions {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .premium-reference-card {
    min-height: 0;
  }
}

/* Learner dashboard premium card edge refinement - active */
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(212, 160, 23, 0.5);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f7faff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 34px rgba(6, 24, 66, 0.085);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 18px auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 24, 66, 0.9), rgba(8, 38, 93, 0.76), rgba(212, 160, 23, 0.58));
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card:hover {
  border-color: rgba(212, 160, 23, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 46px rgba(6, 24, 66, 0.14);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card:focus-visible {
  border-color: rgba(212, 160, 23, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.1),
    0 0 0 4px rgba(212, 160, 23, 0.22),
    0 22px 46px rgba(6, 24, 66, 0.14);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head > span {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.98));
  color: var(--reference-navy);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.045),
    0 8px 18px rgba(6, 24, 66, 0.07);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.gold .premium-reference-card-head > span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.green .premium-reference-card-head > span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.98));
  color: var(--reference-navy);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head svg {
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-ring {
  position: relative;
  border: 1px solid rgba(212, 160, 23, 0.26);
  background:
    radial-gradient(circle at center, #ffffff 0 50%, transparent 51%),
    conic-gradient(var(--ring-color, var(--reference-blue)) 0 var(--ring-value), #e6ebf3 var(--ring-value) 100%);
  box-shadow:
    inset 0 0 0 9px #ffffff,
    inset 0 0 0 10px rgba(6, 24, 66, 0.04),
    0 14px 28px rgba(6, 24, 66, 0.1);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-ring::after {
  content: "";
  position: absolute;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(6, 24, 66, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-ring.gold,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-ring.green {
  --ring-color: var(--reference-navy);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-progress {
  border: 1px solid rgba(6, 24, 66, 0.06);
  background: #edf1f7;
  box-shadow:
    inset 0 1px 2px rgba(6, 24, 66, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.82);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-progress span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.gold .premium-reference-card-progress span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.green .premium-reference-card-progress span {
  background: linear-gradient(90deg, #061842, #08265d);
  box-shadow:
    inset -6px 0 0 rgba(212, 160, 23, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-cta,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.gold .premium-reference-card-cta,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.green .premium-reference-card-cta {
  border: 1px solid rgba(212, 160, 23, 0.78);
  color: #ffffff;
  background: linear-gradient(135deg, #061842, #08265d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 12px 22px rgba(6, 24, 66, 0.18);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card:hover .premium-reference-card-cta {
  border-color: rgba(241, 200, 91, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(6, 24, 66, 0.22);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-link {
  gap: 8px;
  color: var(--reference-navy);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--reference-gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-link:hover {
  color: #061842;
  background: rgba(212, 160, 23, 0.08);
}

/* Learner dashboard green progress ring experiment - active */
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card .premium-reference-ring,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.gold .premium-reference-ring,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.green .premium-reference-ring {
  --ring-color: #159447;
  background:
    radial-gradient(circle at center, #ffffff 0 50%, transparent 51%),
    conic-gradient(var(--ring-color) 0 var(--ring-value), #e6ebf3 var(--ring-value) 100%);
}

/* Learner universal lesson card standardisation - active */
#learnerPortalContent .lesson-list:has(.practical-progress-summary) {
  max-width: 1280px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

#learnerPortalContent .learner-theory-lesson-map {
  grid-column: 1 / -1;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

#learnerPortalContent .practical-lesson-card,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card {
  min-width: 0;
  width: 100%;
  min-height: 188px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(217, 174, 43, 0.7);
  border-left-width: 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.05),
    0 8px 22px rgba(15, 35, 75, 0.06);
  transition:
    transform 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card {
  min-height: 320px;
  height: auto;
  overflow: visible;
}

#learnerPortalContent .practical-lesson-card .lesson-summary,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-summary {
  min-height: 188px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-summary {
  min-height: 320px;
  height: auto;
  gap: 10px;
  padding: 14px;
  overflow: visible;
}

#learnerPortalContent .practical-lesson-card .card-topline,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .card-topline {
  min-height: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .card-topline {
  min-height: 24px;
}

#learnerPortalContent .practical-lesson-card .day-pill,
#learnerPortalContent .practical-lesson-card .lesson-score,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .day-pill,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-score {
  flex: 0 0 auto;
  min-height: 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

#learnerPortalContent .practical-lesson-card .lesson-title,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-title {
  display: -webkit-box;
  flex: 0 0 50px;
  min-height: 50px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: #071b4d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-title {
  flex: 0 0 auto;
  min-height: 0;
  font-size: 1rem;
  line-height: 1.25;
}

#learnerPortalContent .practical-lesson-card .practical-module-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -2px;
}

#learnerPortalContent .practical-lesson-card .practical-module-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.78);
  color: #34455f;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.1;
}

#learnerPortalContent .practical-lesson-card .practical-module-meta strong {
  color: #061842;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .lesson-outcome {
  display: block;
  min-height: 0;
  margin: 0;
  overflow: visible;
  color: #53627a;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.38;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

#learnerPortalContent .practical-lesson-card .evidence-list,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .evidence-list {
  flex: 1 1 auto;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 58px;
  margin-top: 0;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .evidence-list {
  min-height: 56px;
  gap: 5px;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .locked-message {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  line-height: 1.35;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
  color: #506175;
  font-weight: 800;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .locked-message:empty {
  display: none;
  padding: 0;
}

#learnerPortalContent .practical-lesson-card .evidence-row,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .evidence-row {
  min-height: 0;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.2;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card .evidence-row {
  padding: 5px 7px;
  font-size: 0.72rem;
}

#learnerPortalContent .learner-theory-lesson-map .theory-open-action {
  width: 100%;
  margin-top: auto;
  padding: 7px 10px;
  border: 2px solid var(--tfe-button-gold-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--tfe-button-navy);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 var(--tfe-button-gold-highlight),
    0 12px 26px rgba(7, 27, 77, 0.2);
}

#learnerPortalContent .practical-lesson-card.lesson-completed,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-completed,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-card--completed {
  background: linear-gradient(180deg, #f3fff5 0%, #ecfaef 100%);
  border-color: #c8ebd0;
  border-left-color: #16a34a;
  box-shadow: 0 8px 22px rgba(22, 101, 52, 0.08);
}

#learnerPortalContent .practical-lesson-card.lesson-current,
#learnerPortalContent .practical-lesson-card.lesson-awaiting,
#learnerPortalContent .practical-lesson-card.lesson-try-again,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-current,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-awaiting,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-try-again {
  background: #fff8e6;
  border-color: #e5aa2d;
  border-left-color: #d9961f;
  box-shadow:
    0 20px 44px rgba(217, 150, 31, 0.18),
    0 0 0 4px rgba(242, 182, 50, 0.1);
}

#learnerPortalContent .practical-lesson-card.lesson-locked,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-locked {
  background: #f7fbff;
  border-color: #e2eefb;
  border-left-color: #d7e6f7;
  color: #506175;
  box-shadow: 0 8px 22px rgba(15, 35, 75, 0.03);
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-current .lesson-score,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-awaiting .lesson-score,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-try-again .lesson-score {
  background: #fff0c2;
  border: 1px solid rgba(217, 150, 31, 0.2);
  color: #7a5600;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-completed .lesson-score,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-card--completed .lesson-score {
  background: #dff7e7;
  border: 1px solid #c8ebd0;
  color: #0f6b3a;
}

#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-locked .lesson-score {
  background: #eaf3ff;
  border: 1px solid #d7e6f7;
  color: #506175;
}

#learnerPortalContent .practical-lesson-card:not(.lesson-locked):hover,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card:not(.lesson-locked):hover,
#learnerPortalContent .learner-theory-lesson-map .theory-lesson-card.lesson-locked:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 174, 43, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(7, 27, 77, 0.12),
    0 20px 42px rgba(7, 27, 77, 0.14);
}

#learnerPortalContent .lesson-card:focus-within {
  outline: 3px solid rgba(242, 182, 50, 0.38);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  #learnerPortalContent .learner-theory-lesson-map .theory-lesson-grid {
    grid-template-columns: 1fr;
  }
}

/* Learner theory phase selector isolation - active */
#learnerPortalContent .learner-theory-phase-timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  overflow: visible;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card {
  min-width: 0;
  width: 100%;
  min-height: 156px;
  height: auto;
  padding: 18px;
  border-radius: 20px;
  white-space: normal;
  overflow: visible;
  text-align: left;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card strong,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card span,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card em,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

/* FINAL THEORY & TECHNICAL KNOWLEDGE HERO VISUAL SPEC MATCH - 2026-07-01 */
body:has(.theory-learning-showcase) .app-shell,
body:has(.practical-learning-showcase) .app-shell {
  width: min(100%, 1492px);
}

#learnerPortalContent .lesson-heading:has(.theory-learning-showcase),
#learnerPortalContent .lesson-heading:has(.practical-learning-showcase),
#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
  width: min(100%, 1400px);
  max-width: 1400px;
  padding-inline: 46px;
}

#learnerPortalContent .lesson-heading:has(.theory-learning-showcase),
#learnerPortalContent .lesson-heading:has(.practical-learning-showcase) {
  margin-top: 24px;
  margin-bottom: 22px;
}

.theory-learning-showcase,
.practical-learning-showcase {
  display: grid;
  gap: 34px;
}

.theory-page-masthead {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-height: 52px;
}

.theory-page-masthead .theory-hero-actions {
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.theory-page-masthead .theory-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 146px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid #f2b632;
  border-radius: 11px;
  background: linear-gradient(180deg, #082a68 0%, #061a3c 100%);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(5, 20, 45, 0.18);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
}

.theory-page-masthead .theory-hero-actions button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #f2b632;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.theory-page-masthead .theory-hero-actions button:hover,
.theory-page-masthead .theory-hero-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: #ffd36a;
  background: linear-gradient(180deg, #0a3478 0%, #061f49 100%);
  box-shadow:
    0 13px 24px rgba(5, 20, 45, 0.24),
    0 0 0 3px rgba(242, 182, 50, 0.16);
}

:is(.theory-learning-showcase, .practical-learning-showcase) :is(.theory-learning-hero, .practical-learning-hero) {
  min-height: 610px;
  padding: 54px 52px;
  border-radius: 22px;
  border-color: rgba(242, 182, 50, 0.24);
  background: linear-gradient(90deg, #061a3c 0%, #061a3c 37%, rgba(6, 26, 60, 0.92) 49%, rgba(6, 26, 60, 0.22) 72%, rgba(6, 26, 60, 0.02) 100%);
  box-shadow: 0 24px 56px rgba(7, 27, 77, 0.2);
}

:is(.theory-learning-showcase, .practical-learning-showcase) :is(.theory-learning-hero, .practical-learning-hero)::before {
  z-index: 1;
  inset: 0 auto 0 0;
  width: 56%;
  height: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(6, 26, 60, 0.96), rgba(6, 26, 60, 0.36), transparent);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-content {
  min-height: 500px;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-text-panel {
  gap: 32px;
  padding-right: 28px;
}

#learnerPortalContent .lesson-heading :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-copy h3 {
  max-width: 650px;
  font-size: clamp(3.2rem, 5.4vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-phase-label {
  margin-bottom: 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd978, #f7bd43);
  color: #061a3c;
  font-size: 0.9rem;
  font-weight: 950;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-curriculum-subtitle {
  margin-top: 22px;
  color: #ffffff;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 900;
}

#learnerPortalContent .lesson-heading :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-copy p:not(.theory-phase-label) {
  max-width: 580px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.45;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel {
  max-width: 585px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(6, 26, 60, 0.66);
  backdrop-filter: blur(4px);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article {
  position: relative;
  gap: 8px;
  padding: 0 24px 0 0;
  border: 0;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article + article {
  padding: 0 0 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel span,
:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel em {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  letter-spacing: 0;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel strong {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 950;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article + article strong {
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article i {
  width: calc(100% - 42px);
  height: 12px;
  margin-top: 12px;
  background: rgba(112, 147, 190, 0.32);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article i b {
  background: linear-gradient(90deg, #f2b632, #ffe39a);
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article small {
  position: absolute;
  right: 0;
  bottom: -1px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-feature-panel {
  width: 58%;
  border-radius: 0 22px 22px 0;
}

:is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-feature-panel::before {
  background:
    linear-gradient(90deg, #061a3c 0%, rgba(6, 26, 60, 0.98) 20%, rgba(6, 26, 60, 0.72) 38%, rgba(6, 26, 60, 0.24) 56%, rgba(6, 26, 60, 0.02) 78%),
    linear-gradient(180deg, rgba(6, 26, 60, 0.02) 0%, rgba(6, 26, 60, 0.18) 72%, rgba(6, 26, 60, 0.38) 100%);
}

.theory-learning-showcase .theory-hero-feature-panel img {
  object-position: center center;
}

.practical-learning-showcase .practical-hero-feature-panel img {
  object-position: 48% 42%;
}

#learnerPortalContent .learner-theory-phase-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card {
  min-height: 220px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #10254a;
  box-shadow: 0 14px 30px rgba(7, 27, 77, 0.1);
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.active,
#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.current {
  border: 2px solid #f2b632;
  background: linear-gradient(145deg, #061a3c 0%, #08245a 100%);
  color: #ffffff;
  box-shadow: 0 20px 38px rgba(7, 27, 77, 0.2);
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card span {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card:not(.active):not(.current) span {
  color: #425475;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card strong {
  margin-top: 12px;
  color: inherit;
  font-size: clamp(1.04rem, 1.35vw, 1.28rem);
  line-height: 1.15;
  font-weight: 950;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card em {
  width: fit-content;
  margin-top: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe4a6, #f6c553);
  color: #061a3c;
  font-size: 0.88rem;
  font-weight: 950;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card small {
  margin-top: auto;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 850;
}

#learnerPortalContent .learner-theory-phase-timeline .theory-phase-card.locked {
  opacity: 1;
  border-color: rgba(7, 27, 77, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  color: #10254a;
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 32px;
  padding: 20px 26px;
  border-radius: 22px;
  border: 1px solid rgba(242, 182, 50, 0.22);
  background: linear-gradient(135deg, #061a3c 0%, #08245a 100%);
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary article {
  min-height: 104px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(242, 182, 50, 0.22);
  border-top: 0;
  background: rgba(6, 26, 60, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  letter-spacing: 0;
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary strong {
  color: #ffffff;
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  line-height: 1;
}

#learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-meter {
  display: none;
}

@media (max-width: 1180px) {
  #learnerPortalContent .lesson-heading:has(.theory-learning-showcase),
  #learnerPortalContent .lesson-heading:has(.practical-learning-showcase),
  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
    padding-inline: 28px;
  }

  .theory-page-masthead {
    align-items: center;
    justify-content: flex-end;
  }

  .theory-page-masthead .theory-hero-actions {
    justify-content: flex-end;
  }

  .theory-page-masthead .theory-hero-actions button {
    min-width: 138px;
  }
}

@media (max-width: 900px) {
  :is(.theory-learning-showcase, .practical-learning-showcase) :is(.theory-learning-hero, .practical-learning-hero) {
    min-height: 0;
    padding: 34px 24px;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-text-panel {
    padding-right: 0;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-feature-panel {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin-top: 28px;
    border-radius: 18px;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-feature-panel::before {
    background: linear-gradient(180deg, rgba(6, 26, 60, 0.02) 0%, rgba(6, 26, 60, 0.24) 62%, rgba(6, 26, 60, 0.62) 100%);
  }

  #learnerPortalContent .learner-theory-phase-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #learnerPortalContent .lesson-heading:has(.theory-learning-showcase),
  #learnerPortalContent .lesson-heading:has(.practical-learning-showcase),
  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) {
    padding-inline: 16px;
  }

  .theory-learning-showcase,
  .practical-learning-showcase {
    gap: 22px;
  }

  .theory-page-masthead .theory-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }

  .theory-page-masthead .theory-hero-actions button {
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .theory-page-masthead .theory-hero-actions button svg {
    width: 19px;
    height: 19px;
  }

  #learnerPortalContent .lesson-heading :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-copy h3 {
    font-size: clamp(2.55rem, 14vw, 3.5rem);
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel,
  #learnerPortalContent .learner-theory-phase-timeline,
  #learnerPortalContent .lesson-list:has(.learner-theory-phase-timeline) .theory-progress-summary {
    grid-template-columns: 1fr;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article,
  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article + article {
    padding: 0;
    border-left: 0;
  }

  :is(.theory-learning-showcase, .practical-learning-showcase) .theory-hero-status-panel article + article {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 1100px) {
  #learnerPortalContent .learner-theory-phase-timeline {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  #learnerPortalContent .learner-theory-phase-timeline {
    grid-template-columns: 1fr;
  }
}

/* Live ILP Programme Journey phase card visual alignment - active */
.live-ilp-dashboard .live-ilp-phase-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 252, 255, 0.99) 50%, rgba(242, 247, 254, 0.99) 100%);
  color: #061842;
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 38px rgba(6, 24, 66, 0.1);
}

.live-ilp-dashboard .live-ilp-phase-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 86px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.32);
  border-radius: 13px 13px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.98) 0%, rgba(255, 255, 255, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 24, 66, 0.08), rgba(212, 160, 23, 0.16));
  pointer-events: none;
}

.live-ilp-dashboard .live-ilp-phase-card.complete,
.live-ilp-dashboard .live-ilp-phase-card.current {
  border-color: rgba(212, 160, 23, 0.64);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f7faff 100%);
  color: #061842;
}

.live-ilp-dashboard .live-ilp-phase-card.current {
  border-color: rgba(212, 160, 23, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 54px rgba(6, 24, 66, 0.2),
    0 0 0 3px rgba(212, 160, 23, 0.18);
}

.live-ilp-dashboard .live-ilp-phase-card.current::after {
  content: "CURRENT PHASE";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 3px 7px;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #061842;
  box-shadow: 0 8px 16px rgba(6, 24, 66, 0.1);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
}

.live-ilp-dashboard .live-ilp-phase-card.complete::before {
  background:
    linear-gradient(180deg, rgba(243, 255, 247, 0.98) 0%, rgba(255, 255, 255, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 138, 43, 0.12), rgba(212, 160, 23, 0.18));
}

.live-ilp-dashboard .live-ilp-phase-card.current::before {
  height: 100px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #061842 0%, #08265d 76%, #0f8a2b 100%);
  box-shadow: inset 0 -4px 0 #159447;
}

.live-ilp-dashboard .live-ilp-phase-kicker,
.live-ilp-dashboard .live-ilp-phase-card.current .live-ilp-phase-kicker {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border: 1px solid rgba(212, 160, 23, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7d5700;
  letter-spacing: 0.08em;
}

.live-ilp-dashboard .live-ilp-phase-card.current .live-ilp-phase-kicker {
  border-color: rgba(212, 160, 23, 0.92);
  background: rgba(212, 160, 23, 0.16);
  color: #ffe9a8;
}

.live-ilp-dashboard .live-ilp-phase-card h5,
.live-ilp-dashboard .live-ilp-phase-card.current h5 {
  position: relative;
  z-index: 2;
  color: #061842;
  padding-bottom: 8px;
}

.live-ilp-dashboard .live-ilp-phase-card.current h5 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.32);
}

.live-ilp-dashboard .live-ilp-phase-card h5::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0), rgba(212, 160, 23, 0.9), rgba(212, 160, 23, 0));
  transform: translateX(-50%);
}

.live-ilp-dashboard .live-ilp-phase-card b,
.live-ilp-dashboard .live-ilp-phase-card em,
.live-ilp-dashboard .live-ilp-phase-card li,
.live-ilp-dashboard .live-ilp-phase-card.current b,
.live-ilp-dashboard .live-ilp-phase-card.current em,
.live-ilp-dashboard .live-ilp-phase-card.current li {
  color: #45546b;
}

.live-ilp-dashboard .live-ilp-phase-card b,
.live-ilp-dashboard .live-ilp-phase-card.current b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(6, 24, 66, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eef3fa);
  color: #34455f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(6, 24, 66, 0.1);
}

.live-ilp-dashboard .live-ilp-phase-card.complete b {
  border-color: rgba(15, 138, 43, 0.22);
  background: #0f8a2b;
}

.live-ilp-dashboard .live-ilp-phase-card.current b {
  border-color: rgba(212, 160, 23, 0.78);
  background: linear-gradient(135deg, #061842, #08265d);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 20px rgba(6, 24, 66, 0.2);
}

.live-ilp-dashboard .live-ilp-phase-ring,
.live-ilp-dashboard .live-ilp-phase-card.complete .live-ilp-phase-ring {
  border: 1px solid rgba(212, 160, 23, 0.44);
  background:
    radial-gradient(circle at center, #ffffff 0 39%, transparent 40%),
    conic-gradient(#159447 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
  box-shadow:
    inset 0 0 0 5px #ffffff,
    inset 0 0 0 8px rgba(6, 24, 66, 0.055),
    inset 0 9px 18px rgba(6, 24, 66, 0.07),
    0 15px 30px rgba(6, 24, 66, 0.14),
    0 0 0 3px rgba(212, 160, 23, 0.16);
}

.live-ilp-dashboard .live-ilp-phase-card.current .live-ilp-phase-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 39%, transparent 40%),
    conic-gradient(#159447 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
  box-shadow:
    inset 0 0 0 5px #ffffff,
    inset 0 0 0 8px rgba(6, 24, 66, 0.06),
    inset 0 9px 18px rgba(6, 24, 66, 0.08),
    0 18px 34px rgba(6, 24, 66, 0.18),
    0 0 0 4px rgba(212, 160, 23, 0.22);
}

.live-ilp-dashboard .live-ilp-phase-ring strong,
.live-ilp-dashboard .live-ilp-phase-card.complete .live-ilp-phase-ring strong,
.live-ilp-dashboard .live-ilp-phase-card.current .live-ilp-phase-ring strong {
  color: #061842;
}

.live-ilp-dashboard .live-ilp-phase-bar {
  border: 1px solid rgba(6, 24, 66, 0.06);
  background: #edf1f7;
  border-radius: 999px;
  height: 9px;
  box-shadow:
    inset 0 1px 2px rgba(6, 24, 66, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.82);
}

.live-ilp-dashboard .live-ilp-phase-bar i,
.live-ilp-dashboard .live-ilp-phase-card.current .live-ilp-phase-bar i {
  background: linear-gradient(90deg, #061842, #08265d);
  box-shadow:
    inset -6px 0 0 rgba(212, 160, 23, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.live-ilp-dashboard .live-ilp-phase-card.complete .live-ilp-phase-bar i {
  background: linear-gradient(90deg, #0f8a2b, #159447);
  box-shadow:
    inset -6px 0 0 rgba(212, 160, 23, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.live-ilp-dashboard .live-ilp-phase-card li span {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-width: 1px;
  background: #f3f6fb;
  border-color: #c8d2df;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.82),
    0 2px 5px rgba(6, 24, 66, 0.08);
}

.live-ilp-dashboard .live-ilp-phase-card li {
  line-height: 1.28;
}

.live-ilp-dashboard .live-ilp-phase-card li.done span {
  background: #0f8a2b;
  border-color: #0f8a2b;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 138, 43, 0.22);
}

.live-ilp-dashboard .live-ilp-phase-card li.done span::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.live-ilp-dashboard .live-ilp-phase-card li.active span {
  background: #d4a017;
  border-color: #d4a017;
  box-shadow:
    0 0 0 3px rgba(212, 160, 23, 0.16),
    0 4px 10px rgba(212, 160, 23, 0.22);
}

.live-ilp-dashboard .live-ilp-phase-card li.active span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

/* FINAL ILP PHASE CARD PREMIUM OVERRIDE - 2026-07-01 */
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcff 54%, #f2f7fe 100%);
  color: #061842;
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 92px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.46);
  border-radius: 13px 13px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 225, 0.98) 0%, rgba(255, 255, 255, 0.8) 100%),
    linear-gradient(90deg, rgba(6, 24, 66, 0.12), rgba(212, 160, 23, 0.2));
  pointer-events: none;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card--current {
  border-color: rgba(212, 160, 23, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 64px rgba(6, 24, 66, 0.24),
    0 0 0 3px rgba(212, 160, 23, 0.22);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card--current::before {
  height: 104px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card--current::after {
  content: none;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-header,
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-title {
  position: relative;
  z-index: 2;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 3px 9px;
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #735000;
  box-shadow: 0 6px 14px rgba(6, 24, 66, 0.08);
  letter-spacing: 0.08em;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--current .live-ilp-phase-header {
  border-color: rgba(212, 160, 23, 0.94);
  background: rgba(212, 160, 23, 0.17);
  color: #ffe9a8;
  box-shadow: none;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-title {
  color: #061842;
  text-align: center;
  text-wrap: balance;
  text-shadow: none;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0), rgba(212, 160, 23, 0.95), rgba(212, 160, 23, 0));
  transform: translateX(-50%);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--current .live-ilp-phase-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.36);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 13px;
  border: 1px solid rgba(6, 24, 66, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf3fb);
  color: #34455f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(6, 24, 66, 0.11);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--current .live-ilp-phase-status {
  border-color: rgba(212, 160, 23, 0.86);
  background: linear-gradient(135deg, #061842, #08265d);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 22px rgba(6, 24, 66, 0.22);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--complete .live-ilp-phase-status {
  border-color: rgba(15, 138, 43, 0.26);
  background: #0f8a2b;
  color: #ffffff;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-ring {
  border: 1px solid rgba(212, 160, 23, 0.54);
  background:
    radial-gradient(circle at center, #ffffff 0 38%, transparent 39%),
    conic-gradient(#159447 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
  box-shadow:
    inset 0 0 0 5px #ffffff,
    inset 0 0 0 9px rgba(6, 24, 66, 0.06),
    inset 0 10px 18px rgba(6, 24, 66, 0.08),
    0 16px 32px rgba(6, 24, 66, 0.15),
    0 0 0 4px rgba(212, 160, 23, 0.17);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--upcoming .live-ilp-phase-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 38%, transparent 39%),
    conic-gradient(#dce3ed 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--current .live-ilp-phase-ring {
  box-shadow:
    inset 0 0 0 5px #ffffff,
    inset 0 0 0 9px rgba(6, 24, 66, 0.07),
    inset 0 10px 18px rgba(6, 24, 66, 0.09),
    0 20px 38px rgba(6, 24, 66, 0.2),
    0 0 0 5px rgba(212, 160, 23, 0.22);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-ring strong {
  color: #061842;
  font-weight: 1000;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-progress {
  height: 10px;
  border: 1px solid rgba(6, 24, 66, 0.07);
  border-radius: 999px;
  background: #edf1f7;
  box-shadow:
    inset 0 1px 2px rgba(6, 24, 66, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.86);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-progress i {
  border-radius: inherit;
  background: linear-gradient(90deg, #061842, #08265d);
  box-shadow:
    inset -7px 0 0 rgba(212, 160, 23, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-card--complete .live-ilp-phase-progress i {
  background: linear-gradient(90deg, #0f8a2b, #159447);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lessons {
  width: 100%;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson {
  color: #40506a;
  line-height: 1.3;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson span {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-width: 1px;
  background: #f3f6fb;
  border-color: #c8d2df;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.84),
    0 2px 5px rgba(6, 24, 66, 0.08);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson--complete span {
  background: #0f8a2b;
  border-color: #0f8a2b;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 138, 43, 0.24);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson--complete span::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson--current span {
  background: #d4a017;
  border-color: #d4a017;
  box-shadow:
    0 0 0 3px rgba(212, 160, 23, 0.17),
    0 4px 10px rgba(212, 160, 23, 0.24);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-lesson--current span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

/* FINAL ILP TOP SUMMARY CARD PREMIUM OVERRIDE - 2026-07-01 */
.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-card,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-card::before,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 54px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  border-radius: 13px 13px 0 0;
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
  pointer-events: none;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-card::before {
  height: 88px;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-photo,
.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-main,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > * {
  position: relative;
  z-index: 1;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-photo .learner-avatar,
.live-ilp-dashboard .live-ilp-topline .live-ilp-photo .learner-photo {
  border-color: rgba(212, 160, 23, 0.98);
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(6, 24, 66, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.88);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-main h3,
.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-main > strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.34);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-main > strong {
  color: rgba(255, 233, 168, 0.96);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-grid article {
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-grid span {
  color: #536172;
  letter-spacing: 0.07em;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-identity-grid b {
  color: #061842;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card {
  align-content: start;
  gap: 12px;
  padding-top: 14px;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > span {
  min-height: 30px;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.34);
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card strong {
  color: #061842;
  text-shadow: none;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card.green strong,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card.attendance .live-ilp-donut strong {
  color: #0f8a2b;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card.gold strong,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card.silver strong,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card.bronze strong {
  color: #061842;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card em {
  color: #34455f;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-donut {
  border: 1px solid rgba(212, 160, 23, 0.58);
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(#0f8a2b calc(var(--value) * 1%), #e6ebf3 0);
  box-shadow:
    inset 0 0 0 4px #ffffff,
    inset 0 0 0 8px rgba(6, 24, 66, 0.05),
    0 14px 28px rgba(6, 24, 66, 0.15),
    0 0 0 4px rgba(212, 160, 23, 0.14);
}

/* FINAL ILP TOP SUMMARY CARD CONTENT ALIGNMENT - 2026-07-01 */
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > span {
  width: 100%;
  justify-content: center;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > strong,
.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > .live-ilp-donut {
  margin-top: auto;
}

.live-ilp-dashboard .live-ilp-topline .live-ilp-metric-card > em {
  margin-bottom: auto;
}

/* FINAL LEARNER DASHBOARD PILLAR CARD PREMIUM HEADER - 2026-07-01 */
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card {
  overflow: hidden;
  border-color: rgba(212, 160, 23, 0.68);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card::before {
  content: none;
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card:hover {
  border-color: rgba(212, 160, 23, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 46px rgba(6, 24, 66, 0.16);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head {
  min-height: 68px;
  margin: -28px -26px 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head > span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.gold .premium-reference-card-head > span,
#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.green .premium-reference-card-head > span {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid rgba(212, 160, 23, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #061842;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(2, 6, 23, 0.22);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head h3 {
  color: #ffffff;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.34);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card .premium-reference-ring {
  margin-top: 2px;
}

/* Reusable TFE premium card visual system - approved scoped applications only */
.tfe-premium-card {
  --tfe-card-navy: #061842;
  --tfe-card-gold: #d4a017;
  --tfe-card-surface: #ffffff;
  --tfe-card-surface-soft: #f4f8ff;
  --tfe-card-ink: #061842;
  --tfe-card-muted: #34455f;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(212, 160, 23, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--tfe-card-surface) 0%, #fbfcff 58%, var(--tfe-card-surface-soft) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

.tfe-premium-card__header {
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: var(--tfe-card-navy);
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.tfe-premium-card__title {
  color: inherit;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tfe-premium-card__body {
  color: var(--tfe-card-ink);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card.tfe-premium-card {
  border-color: rgba(212, 160, 23, 0.68);
}

#learnerPortalContent .premium-learner-dashboard.premium-learner-passport-redesign .premium-reference-card-head.tfe-premium-card__header {
  background: #061842;
  color: #ffffff;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card {
  border-color: rgba(212, 160, 23, 0.62);
}

.school-cohort-summary-strip .school-executive-kpi.tfe-premium-card {
  overflow: hidden;
  padding-top: 76px;
  border-color: rgba(212, 160, 23, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    0 18px 42px rgba(6, 24, 66, 0.13);
}

.school-cohort-summary-strip .school-executive-kpi.tfe-premium-card::before {
  inset: 0 0 auto;
  width: auto;
  height: 58px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.school-cohort-summary-strip .school-executive-kpi.tfe-premium-card .school-kpi-icon {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 160, 23, 0.82);
  background: rgba(255, 255, 255, 0.96);
  color: #061842;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(2, 6, 23, 0.22);
}

.school-cohort-summary-strip .school-executive-kpi.tfe-premium-card .tfe-premium-card__title {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 62px;
  right: 14px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.34);
}

.school-cohort-summary-strip .school-executive-kpi.tfe-premium-card .tfe-premium-card__body {
  position: relative;
  z-index: 1;
}

.cohort-ilp-overview .cohort-ilp-summary-grid article.tfe-premium-card {
  overflow: hidden;
  min-height: 112px;
  padding-top: 62px;
  border-color: rgba(212, 160, 23, 0.62);
  border-top-width: 1px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    0 14px 32px rgba(6, 24, 66, 0.12);
}

.cohort-ilp-overview .cohort-ilp-summary-grid article.tfe-premium-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 48px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  border-radius: 13px 13px 0 0;
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.cohort-ilp-overview .cohort-ilp-summary-grid article.tfe-premium-card .tfe-premium-card__title {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 14px;
  right: 14px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.34);
}

.cohort-ilp-overview .cohort-ilp-summary-grid article.tfe-premium-card strong {
  position: relative;
  z-index: 1;
}

/* ILP Programme Journey phase cards - TFE premium card system application */
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card {
  border-color: rgba(212, 160, 23, 0.72);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 58%, #f4f8ff 100%);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card::before,
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card.live-ilp-phase-card--current::before {
  height: 104px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.95);
  background: #061842;
  box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.92);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-header.tfe-premium-card__header,
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card.live-ilp-phase-card--current .live-ilp-phase-header.tfe-premium-card__header {
  border-color: rgba(212, 160, 23, 0.94);
  background: rgba(212, 160, 23, 0.16);
  color: #ffe9a8;
  box-shadow: none;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-title.tfe-premium-card__title,
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card.live-ilp-phase-card--current .live-ilp-phase-title.tfe-premium-card__title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 24, 66, 0.36);
}

/* ILP Programme Journey phase cards - premium hierarchy alignment */
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card {
  grid-template-rows: 22px 54px 88px 30px 18px 10px minmax(92px, auto);
  gap: 10px;
  justify-items: center;
  align-items: center;
  padding: 16px 16px 18px;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(6, 24, 66, 0.14);
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card::before,
.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card.live-ilp-phase-card--current::before {
  height: 104px;
  border-bottom-width: 1px;
  border-radius: 13px 13px 0 0;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-header.tfe-premium-card__header {
  width: fit-content;
  height: 22px;
  min-height: 22px;
  padding: 3px 9px;
  align-self: center;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.09em;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-title.tfe-premium-card__title {
  width: 100%;
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 2px 5px;
  font-size: 0.82rem;
  line-height: 1.13;
  letter-spacing: 0.012em;
  text-align: center;
  text-wrap: balance;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-title::after {
  bottom: 0;
  height: 2px;
  width: 46px;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-ring {
  width: 84px;
  align-self: center;
  margin: 0;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-status {
  height: 30px;
  min-height: 30px;
  padding: 5px 13px;
  align-self: center;
  font-size: 0.72rem;
  line-height: 1;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card > em {
  align-self: center;
  color: #52627a;
  font-size: 0.76rem;
  line-height: 1.1;
  text-align: center;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-progress {
  align-self: center;
  height: 10px;
  margin: 0;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-lessons {
  align-self: start;
  gap: 6px;
  padding-top: 4px;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-lesson {
  gap: 7px;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.22;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-lesson span {
  width: 11px;
  height: 11px;
  border-width: 1px;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-lesson--more {
  margin-top: 2px;
  color: #061842;
  font-size: 0.74rem;
  font-weight: 900;
}

.live-ilp-dashboard .live-ilp-programme-panel .live-ilp-phase-grid > .live-ilp-phase-card.tfe-premium-card .live-ilp-phase-lesson--more span {
  border-color: rgba(212, 160, 23, 0.58);
  background: rgba(212, 160, 23, 0.16);
  box-shadow: none;
}

/* ILP page header premium visual refinement - 2026-07-01 */
.live-ilp-dashboard .live-ilp-header {
  min-height: 98px;
  padding: 18px 26px;
  align-items: center;
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-bottom: 3px solid #d4a017;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(212, 160, 23, 0.08) 100%),
    linear-gradient(180deg, #071b46 0%, #061842 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 16px 34px rgba(6, 24, 66, 0.2);
}

.live-ilp-dashboard .live-ilp-brand {
  align-items: center;
  gap: 14px;
}

.live-ilp-dashboard .live-ilp-brand img {
  width: 204px;
  height: 68px;
  flex: 0 0 204px;
  padding: 8px;
  border: 1px solid rgba(212, 160, 23, 0.55);
  border-radius: 18px;
  background: #ffffff;
  object-fit: contain;
  box-shadow:
    inset 0 0 0 1px rgba(6, 24, 66, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.live-ilp-dashboard .live-ilp-brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.26);
}

.live-ilp-dashboard .live-ilp-brand p {
  display: none;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-close {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(212, 160, 23, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  color: #061842;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(6, 24, 66, 0.18);
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.school-ilp-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.school-ilp-exporting .school-ilp-header-actions,
.school-ilp-exporting [data-dev-debug],
.school-ilp-exporting .debug-panel,
.school-ilp-exporting .school-ilp-renderer-marker,
.school-ilp-exporting .theory-outcome-dev-debug {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-download {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(212, 160, 23, 0.86);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #123f7a 0%, #061842 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(6, 24, 66, 0.2);
  font-weight: 950;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-download:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.school-ilp-download-status {
  flex-basis: 100%;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.school-ilp-download-status.is-error {
  color: #ffe2e2;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-close:hover,
.live-ilp-dashboard .live-ilp-header .school-ilp-close:focus-visible,
.live-ilp-dashboard .live-ilp-header .school-ilp-download:hover,
.live-ilp-dashboard .live-ilp-header .school-ilp-download:focus-visible {
  border-color: #d4a017;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 30px rgba(6, 24, 66, 0.23),
    0 0 0 4px rgba(212, 160, 23, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.live-ilp-dashboard .live-ilp-header .school-ilp-close:hover,
.live-ilp-dashboard .live-ilp-header .school-ilp-close:focus-visible {
  background: #ffffff;
  color: #061842;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-download:hover,
.live-ilp-dashboard .live-ilp-header .school-ilp-download:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    linear-gradient(180deg, #164b91 0%, #071b46 100%);
  color: #ffffff;
}

.live-ilp-dashboard .live-ilp-header .school-ilp-close:active {
  transform: translateY(0);
}

@media (max-width: 680px) {
  .live-ilp-dashboard .live-ilp-header {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
    gap: 14px;
  }

  .live-ilp-dashboard .live-ilp-brand {
    gap: 12px;
  }

  .live-ilp-dashboard .live-ilp-brand img {
    width: 156px;
    height: 56px;
    flex-basis: 156px;
    padding: 7px;
    border-radius: 15px;
  }

  .live-ilp-dashboard .live-ilp-brand h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.04;
  }

  .school-ilp-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .school-ilp-download-status {
    text-align: center;
  }

  .live-ilp-dashboard .live-ilp-header .school-ilp-close,
  .live-ilp-dashboard .live-ilp-header .school-ilp-download {
    width: 100%;
    justify-content: center;
  }
}

/* ILP expected-position and forecast cards premium refinement - 2026-07-01 */
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels {
  height: 100%;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212, 160, 23, 0.62);
  border-left: 1px solid rgba(212, 160, 23, 0.62);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(6, 24, 66, 0.12);
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card > h4 {
  margin: 0;
  padding: 14px 16px 12px;
  border-bottom: 2px solid #d4a017;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(212, 160, 23, 0.08) 100%),
    linear-gradient(180deg, #071b46 0%, #061842 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card > dl {
  flex: 1;
  display: grid;
  align-content: space-evenly;
  gap: 10px;
  margin: 0;
  padding: 16px;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card > dl div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(6, 24, 66, 0.08);
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card > dl div:last-child {
  border-bottom: 0;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card dt {
  color: #52627a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card dd {
  color: #061842;
  font-size: 0.9rem;
  font-weight: 1000;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness {
  align-items: stretch;
  align-self: start;
  justify-content: flex-start;
  text-align: left;
}

.live-ilp-dashboard .live-ilp-side-readiness-body {
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  text-align: center;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness .live-ilp-side-readiness-icon {
  display: none;
}

.live-ilp-dashboard .live-ilp-side-readiness-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 13px;
  background: rgba(212, 160, 23, 0.12);
  color: #061842;
}

.live-ilp-dashboard .live-ilp-side-readiness-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-ilp-dashboard .live-ilp-side-readiness-ring {
  --value: 0;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(128px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 160, 23, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(#159447 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
  box-shadow:
    inset 0 0 0 7px #ffffff,
    0 14px 28px rgba(6, 24, 66, 0.12);
}

.live-ilp-dashboard .live-ilp-side-readiness-ring.amber {
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(#d4a017 0 calc(var(--value) * 1%), #e6ebf3 calc(var(--value) * 1%) 100%);
}

.live-ilp-dashboard .live-ilp-side-readiness-ring.red,
.live-ilp-dashboard .live-ilp-side-readiness-ring.awaiting,
.live-ilp-dashboard .live-ilp-side-readiness-ring.is-empty {
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(#dbe3ee 0 100%);
}

.live-ilp-dashboard .live-ilp-side-readiness-ring strong,
.live-ilp-dashboard .live-ilp-side-readiness-ring span {
  display: flex;
  justify-content: center;
  text-align: center;
}

.live-ilp-dashboard .live-ilp-side-readiness-ring strong {
  color: #061842;
  font-size: 1.86rem;
  font-weight: 1000;
  line-height: 1;
}

.live-ilp-dashboard .live-ilp-side-readiness-ring.is-empty strong {
  max-width: 86px;
  font-size: 0.88rem;
  line-height: 1.08;
}

.live-ilp-dashboard .live-ilp-side-readiness-ring span {
  margin-top: 6px;
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-ilp-dashboard .live-ilp-side-readiness-body p {
  margin: 0;
  color: #061842;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.25;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card dd.green,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.green .live-ilp-side-readiness-ring strong {
  color: #0f8a2b;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card dd.amber,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.amber .live-ilp-side-readiness-ring strong {
  color: #9f6b05;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card dd.red,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.red .live-ilp-side-readiness-ring strong {
  color: #c02626;
}

.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness .live-ilp-side-readiness-ring strong,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.green .live-ilp-side-readiness-ring strong,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.amber .live-ilp-side-readiness-ring strong,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.red .live-ilp-side-readiness-ring strong,
.live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness.awaiting .live-ilp-side-readiness-ring strong {
  color: #0f8a2b !important;
}

@media (min-width: 1321px) {
  .live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card.employment-readiness {
    height: calc(100% - 36px);
  }
}

@media (max-width: 1100px) {
  .live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels {
    height: auto;
    grid-template-rows: none;
    grid-auto-rows: 1fr;
    align-content: start;
  }
}

@media (max-width: 680px) {
  .live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels {
    grid-template-columns: 1fr;
  }

  .live-ilp-dashboard .live-ilp-main-grid > .live-ilp-side-panels > .live-ilp-side-card > h4 {
    padding: 13px 15px 11px;
  }
}

/* Learner Professional Development Passport overview - active */
#learnerPortalContent:has(.learner-professional-passport-overview) {
  background: #f6f8fb;
}

body:has(.learner-professional-passport-overview) #sessionStrip {
  display: none;
}

#learnerPortalContent:has(.learner-professional-passport-overview) .learner-dashboard-topbar,
#learnerPortalContent:has(.learner-professional-passport-overview) .learner-menu {
  display: none;
}

#learnerPortalContent:has(.learner-professional-passport-overview) .learner-dashboard-grid {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

#learnerPortalContent:has(.learner-professional-passport-overview) .learner-dashboard-grid:has(#learnerProfilePanel) > :not(#learnerProfilePanel),
#learnerPortalContent:has(.learner-professional-passport-overview) .learner-dashboard-grid + .learner-dashboard-grid,
#learnerPortalContent:has(.learner-professional-passport-overview) .learner-portal-grid {
  display: none;
}

#learnerPortalContent:has(.learner-professional-passport-overview) #learnerProfilePanel {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#learnerPortalContent .learner-professional-passport-overview {
  --professional-passport-navy: #061842;
  --professional-passport-blue: #08265d;
  --professional-passport-gold: #d4a017;
  --professional-passport-green: #0f8a2b;
  --professional-passport-orange: #d9911b;
  --professional-passport-red: #c02626;
  --professional-passport-muted: #63708a;
  --professional-passport-line: rgba(6, 24, 66, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(100%, 1480px);
  max-width: none;
  margin: 0 auto;
  padding: 18px 18px 44px;
  box-sizing: border-box;
  color: var(--professional-passport-navy);
}

#learnerPortalContent .learner-professional-passport-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

#learnerPortalContent .learner-professional-passport-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

#learnerPortalContent .learner-professional-passport-actions .primary-action,
#learnerPortalContent .learner-professional-passport-actions .secondary-action {
  width: 168px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(212, 160, 23, 0.78);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--professional-passport-navy), var(--professional-passport-blue));
  box-shadow: 0 12px 24px rgba(6, 24, 66, 0.12);
  font-weight: 950;
}

#learnerPortalContent .learner-professional-passport-actions .primary-action:hover,
#learnerPortalContent .learner-professional-passport-actions .primary-action:focus-visible,
#learnerPortalContent .learner-professional-passport-actions .secondary-action:hover,
#learnerPortalContent .learner-professional-passport-actions .secondary-action:focus-visible {
  border-color: #d4a017;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(212, 160, 23, 0.04)),
    linear-gradient(135deg, var(--professional-passport-navy), var(--professional-passport-blue));
  box-shadow:
    0 16px 30px rgba(6, 24, 66, 0.16),
    0 0 0 4px rgba(212, 160, 23, 0.18);
  outline: none;
  transform: translateY(-1px);
}

#learnerPortalContent .learner-professional-passport-topline h2 {
  margin: 2px 0 4px;
  color: var(--professional-passport-navy);
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

#learnerPortalContent .learner-professional-passport-topline span {
  color: var(--professional-passport-muted);
  font-size: 1.05rem;
  font-weight: 800;
}

#learnerPortalContent .learner-professional-passport-summary {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(212, 160, 23, 0.68);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 160, 23, 0.12), transparent 32%),
    linear-gradient(135deg, #031331 0%, var(--professional-passport-navy) 56%, var(--professional-passport-blue) 100%);
  box-shadow: 0 24px 58px rgba(6, 24, 66, 0.18);
}

#learnerPortalContent .learner-professional-passport-feature {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 17px;
  background: #061842;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

#learnerPortalContent .learner-professional-passport-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 19, 49, 0.06) 0%, rgba(3, 19, 49, 0.38) 54%, rgba(3, 19, 49, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 24, 66, 0.38), rgba(6, 24, 66, 0.04));
  pointer-events: none;
}

#learnerPortalContent .learner-professional-passport-feature img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 46% 42%;
}

#learnerPortalContent .learner-professional-passport-feature figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 18px 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--professional-passport-gold);
  border-radius: 13px;
  background: rgba(3, 19, 49, 0.74);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

#learnerPortalContent .learner-professional-passport-feature figcaption strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#learnerPortalContent .learner-professional-passport-feature figcaption span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
}

#learnerPortalContent .learner-professional-passport-summary-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

#learnerPortalContent .learner-professional-passport-score {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(212, 160, 23, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

#learnerPortalContent .learner-professional-passport-score span,
#learnerPortalContent .learner-professional-passport-summary-grid span,
#learnerPortalContent .learner-professional-passport-card dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#learnerPortalContent .learner-professional-passport-score strong {
  color: var(--professional-passport-green);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

#learnerPortalContent .learner-professional-passport-score p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  line-height: 1.45;
}

#learnerPortalContent .learner-professional-passport-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

#learnerPortalContent .learner-professional-passport-summary-grid article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(212, 160, 23, 0.38);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

#learnerPortalContent .learner-professional-passport-summary-grid strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.15;
}

#learnerPortalContent .learner-professional-passport-summary-grid em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-weight: 750;
}

#learnerPortalContent .learner-professional-passport-section {
  display: grid;
  gap: 18px;
}

#learnerPortalContent .learner-professional-passport-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

#learnerPortalContent .learner-professional-passport-section-head h3 {
  margin: 0;
  color: var(--professional-passport-navy);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

#learnerPortalContent .learner-professional-passport-section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--professional-passport-muted);
  font-weight: 750;
  line-height: 1.45;
}

#learnerPortalContent .learner-professional-passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

#learnerPortalContent .learner-professional-passport-card {
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(6, 24, 66, 0.1);
}

#learnerPortalContent .learner-professional-passport-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px 12px;
  border-bottom: 2px solid var(--professional-passport-gold);
  background: linear-gradient(180deg, #071b46 0%, var(--professional-passport-navy) 100%);
}

#learnerPortalContent .learner-professional-passport-card header > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(212, 160, 23, 0.68);
  border-radius: 12px;
  color: var(--professional-passport-gold);
  background: rgba(255, 255, 255, 0.08);
}

#learnerPortalContent .learner-professional-passport-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#learnerPortalContent .learner-professional-passport-card h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#learnerPortalContent .learner-professional-passport-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

#learnerPortalContent .learner-professional-passport-grid.standards .learner-professional-passport-card-body {
  gap: 10px;
  padding: 16px;
}

#learnerPortalContent .professional-passport-percent,
#learnerPortalContent .professional-passport-status {
  color: var(--professional-passport-navy);
  font-size: 2.15rem;
  line-height: 1;
}

#learnerPortalContent .professional-passport-percent.green {
  color: var(--professional-passport-green);
}

#learnerPortalContent .professional-passport-percent.orange {
  color: var(--professional-passport-orange);
}

#learnerPortalContent .professional-passport-percent.red {
  color: var(--professional-passport-red);
}

#learnerPortalContent .professional-passport-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(6, 24, 66, 0.12);
  border-radius: 999px;
  color: var(--professional-passport-navy);
  background: #edf2f8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#learnerPortalContent .professional-passport-badge.gold {
  border-color: rgba(212, 160, 23, 0.58);
  background: rgba(212, 160, 23, 0.16);
}

#learnerPortalContent .professional-passport-badge.silver {
  background: #eef2f7;
}

#learnerPortalContent .professional-passport-badge.bronze {
  border-color: rgba(180, 110, 24, 0.34);
  background: #fff3df;
}

#learnerPortalContent .professional-passport-badge.not-yet-assessed {
  color: #52627a;
  background: #f0f4f8;
}

#learnerPortalContent .learner-professional-passport-card-body p {
  margin: 0;
  color: #334155;
  font-weight: 750;
  line-height: 1.42;
}

#learnerPortalContent .learner-professional-passport-grid.standards .professional-passport-explanation {
  padding-top: 10px;
  border-top: 1px solid rgba(6, 24, 66, 0.08);
  color: #52627a;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.38;
}

#learnerPortalContent .learner-professional-passport-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

#learnerPortalContent .learner-professional-passport-card dl div {
  padding-top: 10px;
  border-top: 1px solid rgba(6, 24, 66, 0.08);
}

#learnerPortalContent .learner-professional-passport-card dt {
  color: var(--professional-passport-muted);
}

#learnerPortalContent .learner-professional-passport-card dd {
  margin: 4px 0 0;
  color: var(--professional-passport-navy);
  font-weight: 850;
  line-height: 1.34;
}

@media (max-width: 1180px) {
  #learnerPortalContent .learner-professional-passport-summary,
  #learnerPortalContent .learner-professional-passport-topline {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .learner-professional-passport-summary-grid,
  #learnerPortalContent .learner-professional-passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #learnerPortalContent .learner-professional-passport-overview {
    padding: 14px 12px 32px;
  }

  #learnerPortalContent .learner-professional-passport-summary {
    padding: 18px;
  }

  #learnerPortalContent .learner-professional-passport-feature img {
    min-height: 260px;
  }

  #learnerPortalContent .learner-professional-passport-feature figcaption {
    inset: auto 12px 12px;
    padding: 12px 13px;
  }

  #learnerPortalContent .learner-professional-passport-summary-grid,
  #learnerPortalContent .learner-professional-passport-grid {
    grid-template-columns: 1fr;
  }

  #learnerPortalContent .learner-professional-passport-section-head {
    display: grid;
  }

  #learnerPortalContent .learner-professional-passport-actions {
    justify-content: stretch;
  }

  #learnerPortalContent .learner-professional-passport-actions .primary-action,
  #learnerPortalContent .learner-professional-passport-actions .secondary-action {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* FINAL LOGIN PAGE PREMIUM SPLIT-SCREEN VISUAL SPEC - 2026-07-01 */
body:has(#authPanel:not(.hidden)),
body:has(#passwordRecoveryPanel:not(.hidden)) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 182, 50, 0.14), transparent 24rem),
    radial-gradient(circle at 96% 0%, rgba(242, 182, 50, 0.1), transparent 26rem),
    linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}

body:has(#authPanel:not(.hidden)) .app-shell,
body:has(#passwordRecoveryPanel:not(.hidden)) .app-shell {
  width: min(100%, 1540px);
  min-height: 100vh;
  padding: clamp(18px, 2vw, 28px);
  display: grid;
  align-items: center;
}

body:has(#authPanel:not(.hidden)) .login-shell,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  min-height: min(960px, calc(100vh - 46px));
  overflow: hidden;
  border: 1px solid rgba(242, 182, 50, 0.48);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 34px 80px rgba(7, 27, 77, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

body:has(#authPanel:not(.hidden)) .login-visual-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: clamp(34px, 4vw, 64px) clamp(36px, 4.8vw, 72px);
  align-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 13, 34, 0.92) 0%, rgba(7, 27, 77, 0.82) 38%, rgba(7, 27, 77, 0.46) 68%, rgba(4, 13, 34, 0.6) 100%),
    linear-gradient(0deg, rgba(4, 13, 34, 0.92) 0%, rgba(4, 13, 34, 0.28) 52%, rgba(4, 13, 34, 0.18) 100%),
    url("./public/assets/login-workshop-photo.jpg") center / cover no-repeat;
  color: #ffffff;
}

body:has(#authPanel:not(.hidden)) .login-visual-panel::before,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(5, 20, 45, 0.04), rgba(5, 20, 45, 0.28));
  pointer-events: none;
}

body:has(#authPanel:not(.hidden)) .login-visual-panel::after,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel::after {
  height: 62%;
  background: linear-gradient(0deg, rgba(4, 13, 34, 0.88), rgba(4, 13, 34, 0));
}

.login-visual-logo {
  position: relative;
  z-index: 2;
  width: clamp(220px, 18vw, 300px);
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.login-visual-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  max-width: 720px;
  align-self: end;
  transform: translateY(clamp(64px, 12vh, 150px));
}

.login-visual-content .eyebrow {
  color: #f2d77d;
  font-size: 0.95rem;
  font-weight: 950;
}

.login-visual-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.8rem, 5.6vw, 6.4rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.login-visual-content h1::first-line {
  color: #ffffff;
}

.login-visual-content p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.45;
  font-weight: 760;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.login-feature-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.login-feature-grid article:last-child {
  border-right: 0;
  padding-right: 0;
}

.login-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border: 1px solid rgba(242, 215, 125, 0.42);
  border-radius: 999px;
  color: #f2d77d;
  font-size: 1.45rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.login-feature-grid strong {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-feature-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.42;
  font-weight: 650;
}

body:has(#authPanel:not(.hidden)) .login-card-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-card-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 182, 50, 0.07), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 74%, #f4f8fd 100%);
}

body:has(#authPanel:not(.hidden)) .topbar,
body:has(#passwordRecoveryPanel:not(.hidden)) .topbar {
  display: none;
}

body:has(#authPanel:not(.hidden)) .auth-panel,
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-form-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.login-panel-logo {
  position: relative;
  top: -14px;
  width: clamp(190px, 16.8vw, 232px);
  height: auto;
  margin: 0 0 4px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(7, 27, 77, 0.16));
}

body:has(#authPanel:not(.hidden)) .auth-panel .eyebrow,
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel .eyebrow {
  color: #d9911b;
  font-size: 0.86rem;
  font-weight: 950;
}

body:has(#authPanel:not(.hidden)) .auth-panel h2,
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel h2 {
  margin: 0;
  color: #071b4d;
  font-size: clamp(2.05rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  font-weight: 950;
}

body:has(#authPanel:not(.hidden)) .auth-panel p:not(.eyebrow):not(.login-error):not(.login-help-text),
body:has(#passwordRecoveryPanel:not(.hidden)) .auth-panel p:not(.eyebrow):not(.login-error):not(.login-help-text) {
  margin: 0;
  color: #536783;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 650;
}

body:has(#authPanel:not(.hidden)) #roleLoginForm,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm {
  display: grid;
  gap: 18px;
  width: 100%;
}

.login-role-hidden-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.login-field {
  display: grid;
  gap: 9px;
  color: #071b4d;
  font-size: 0.92rem;
  font-weight: 900;
}

.login-control {
  position: relative;
  display: block;
}

.login-control::before {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #667892;
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}

.login-role-control::before {
  content: "♙";
}

.login-id-control::before {
  content: "✉";
}

.login-password-control::before {
  content: "▣";
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select,
body:has(#authPanel:not(.hidden)) #roleLoginForm input,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 50px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #071b4d;
  font-size: 1rem;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(7, 27, 77, 0.045);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select {
  appearance: auto;
}

body:has(#authPanel:not(.hidden)) #roleLoginForm select:focus,
body:has(#authPanel:not(.hidden)) #roleLoginForm input:focus,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm input:focus {
  border-color: #d9911b;
  outline: 3px solid rgba(242, 182, 50, 0.22);
  box-shadow:
    0 0 0 1px rgba(242, 182, 50, 0.22),
    0 12px 24px rgba(7, 27, 77, 0.07);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border: 2px solid #d9911b;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #092f70 0%, #061a3c 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.32),
    0 16px 34px rgba(7, 27, 77, 0.22);
}

body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action:hover:not(:disabled),
body:has(#authPanel:not(.hidden)) #roleLoginForm .primary-action:focus-visible,
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action:hover:not(:disabled),
body:has(#passwordRecoveryPanel:not(.hidden)) #passwordRecoveryForm .primary-action:focus-visible {
  transform: translateY(-1px);
  border-color: #f2b632;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #123d86 0%, #071f50 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 138, 0.38),
    0 20px 38px rgba(7, 27, 77, 0.26),
    0 0 0 4px rgba(242, 182, 50, 0.14);
}

.login-help-text {
  margin: 2px 0 0;
  color: #536783;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
}

.login-help-text strong {
  color: #0b4bb3;
}

body:has(#authPanel:not(.hidden)) .login-error,
body:has(#passwordRecoveryPanel:not(.hidden)) .login-error {
  min-height: 20px;
  margin: -8px 0 0;
  color: #ba3d3d;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  body:has(#authPanel:not(.hidden)) .app-shell,
  body:has(#passwordRecoveryPanel:not(.hidden)) .app-shell {
    padding: 0;
    align-items: start;
  }

  body:has(#authPanel:not(.hidden)) .login-shell,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  body:has(#authPanel:not(.hidden)) .login-visual-panel,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
    min-height: 520px;
    padding: 28px 24px 34px;
  }

  .login-visual-content h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .login-visual-content {
    transform: translateY(clamp(24px, 6vh, 48px));
  }

  .login-feature-grid {
    gap: 16px;
  }

  body:has(#authPanel:not(.hidden)) .login-card-panel,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-card-panel {
    padding: 34px 20px 42px;
  }
}

@media (max-width: 620px) {
  body:has(#authPanel:not(.hidden)) .login-visual-panel,
  body:has(#passwordRecoveryPanel:not(.hidden)) .login-visual-panel {
    min-height: 560px;
  }

  .login-visual-logo {
    width: 210px;
  }

  .login-panel-logo {
    top: -10px;
    width: 200px;
    margin-bottom: 2px;
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-visual-content {
    transform: translateY(20px);
  }

  .login-feature-grid article {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding-right: 0;
    border-right: 0;
  }

  .login-feature-icon {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: 1.15rem;
  }

}

/* Tutor Intelligence Review action pills - active scoped visual override */
.tutor-intelligence-question .tutor-intelligence-light-actions label,
.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  height: auto;
  padding: 8px 16px;
  border: 1px solid rgba(214, 156, 37, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #071b42;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.tutor-intelligence-question .tutor-intelligence-light-actions label:hover,
.tutor-intelligence-question .tutor-intelligence-light-actions label:focus-within,
.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button:hover,
.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button:focus-visible {
  border-color: #d69c25;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 12px 24px rgba(7, 27, 77, 0.13), 0 0 0 3px rgba(214, 156, 37, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.tutor-intelligence-question .tutor-intelligence-light-actions label:has(input:checked),
.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button.is-listening {
  border-color: #d69c25;
  background:
    linear-gradient(135deg, rgba(214, 156, 37, 0.2), rgba(214, 156, 37, 0.06)),
    linear-gradient(135deg, #071b42, #0b2f6f);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 77, 0.18), 0 0 0 3px rgba(214, 156, 37, 0.14);
}

.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button.is-unavailable {
  border-color: rgba(186, 61, 61, 0.38);
  background: #fff7f7;
  color: #8f2424;
}

.tutor-intelligence-question .tutor-intelligence-light-actions .tutor-intelligence-dictate-button {
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 0.86rem !important;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.08) !important;
}

/* Tutor Intelligence Review question order refinement - active */
.tutor-intelligence-question .tutor-debrief-question {
  margin-top: 2px;
}

.tutor-intelligence-question .tutor-debrief-question span {
  color: #071b42;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutor-intelligence-question .tutor-debrief-question textarea {
  min-height: 104px;
}

.tutor-intelligence-question .tutor-intelligence-light-actions {
  margin-top: -2px;
}

/* Tutor Intelligence Review premium enterprise question cards - active */
.tutor-debrief-page .tutor-intelligence-question {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 0;
  border: 1px solid #d4a62a;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 20px 42px rgba(7, 27, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tutor-debrief-page .tutor-intelligence-question:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 166, 42, 0.96);
  box-shadow:
    0 24px 48px rgba(7, 27, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.tutor-debrief-page .tutor-intelligence-question::before {
  content: none;
}

.tutor-debrief-page .tutor-intelligence-question.risk::before {
  background: #8f2424;
}

.tutor-debrief-page .tutor-intelligence-question.positive::before,
.tutor-debrief-page .tutor-intelligence-question.opportunity::before {
  background: #0f8a61;
}

.tutor-debrief-page .tutor-intelligence-question.teaching::before {
  background: #d4a62a;
}

.tutor-debrief-page .tutor-intelligence-question.open::before,
.tutor-debrief-page .tutor-intelligence-question.neutral::before {
  background: #071b42;
}

.tutor-debrief-page .tutor-intelligence-question-head {
  display: grid;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 2px solid #d4a62a;
  background:
    linear-gradient(135deg, rgba(18, 61, 115, 0.98) 0%, rgba(7, 27, 66, 0.99) 58%, rgba(3, 14, 38, 1) 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(7, 27, 66, 0.12);
}

.tutor-debrief-page .tutor-intelligence-priority-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tutor-debrief-page .tfe-intelligence-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.75), transparent 34%),
    linear-gradient(135deg, #ffe7a0, #d4a62a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.tutor-debrief-page .tfe-intelligence-icon::before {
  content: "";
  width: 13px;
  height: 18px;
  background: #071b42;
  clip-path: polygon(48% 0, 100% 0, 63% 42%, 100% 42%, 35% 100%, 48% 56%, 10% 56%);
}

.tutor-debrief-page .tutor-intelligence-priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(212, 166, 42, 0.86);
  border-radius: 999px;
  background: rgba(255, 247, 221, 0.12);
  color: #fff7dd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.tutor-debrief-page .tutor-intelligence-question-head strong {
  max-width: 68rem;
  color: #ffffff;
  font-size: clamp(1.16rem, 1.7vw, 1.48rem);
  line-height: 1.32;
  font-weight: 950;
  letter-spacing: 0;
}

.tutor-debrief-page .tutor-debrief-question-guidance {
  max-width: 68rem;
  margin: -4px 0 0;
  color: rgba(255, 247, 221, 0.92);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question {
  gap: 8px;
  margin: 0;
  padding: 20px 22px 0;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-observation-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question span {
  color: #071b42;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-observation-captured {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(15, 138, 97, 0.24);
  border-radius: 999px;
  background: rgba(226, 247, 237, 0.9);
  color: #0f6f4f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.is-observation-captured .tutor-observation-captured {
  opacity: 1;
  transform: translateY(0);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question textarea {
  min-height: 216px;
  padding: 14px 16px;
  border: 1px solid rgba(71, 89, 117, 0.22);
  border-radius: 16px;
  background: #ffffff;
  color: #071b42;
  line-height: 1.5;
  overflow-x: hidden;
  resize: vertical;
  field-sizing: content;
  box-shadow:
    inset 0 2px 5px rgba(7, 27, 66, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.86);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question textarea::placeholder {
  color: rgba(71, 89, 117, 0.82);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question textarea:focus {
  border-color: #d4a62a;
  background: #ffffff;
  box-shadow:
    inset 0 2px 5px rgba(7, 27, 66, 0.055),
    0 0 0 4px rgba(212, 166, 42, 0.16),
    0 12px 22px rgba(7, 27, 77, 0.08);
  outline: none;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.is-observation-captured textarea {
  border-color: rgba(15, 138, 97, 0.38);
  background:
    linear-gradient(180deg, rgba(239, 250, 244, 0.98), rgba(232, 247, 239, 0.96));
  box-shadow:
    inset 0 2px 5px rgba(15, 138, 97, 0.06),
    0 0 0 1px rgba(15, 138, 97, 0.08);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.is-observation-captured textarea:focus {
  border-color: rgba(15, 138, 97, 0.54);
  background:
    linear-gradient(180deg, rgba(239, 250, 244, 1), rgba(232, 247, 239, 0.98));
  box-shadow:
    inset 0 2px 5px rgba(15, 138, 97, 0.06),
    0 0 0 4px rgba(15, 138, 97, 0.13),
    0 12px 22px rgba(7, 27, 77, 0.08);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 22px 22px;
  padding: 12px;
  border: 1px solid rgba(212, 166, 42, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-dictate-button {
  min-height: 42px !important;
  padding: 10px 18px !important;
  border: 1px solid #d4a62a !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%) !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(7, 27, 66, 0.22) !important;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-dictate-button:hover,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-dictate-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(7, 27, 66, 0.28),
    0 0 0 4px rgba(212, 166, 42, 0.14) !important;
  outline: none;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-generate-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d4a62a;
  border-radius: 999px;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(7, 27, 66, 0.22);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-generate-button:hover,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-generate-button:focus-visible {
  transform: translateY(-1px);
  border-color: #d4a62a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(7, 27, 66, 0.28),
    0 0 0 4px rgba(212, 166, 42, 0.14);
  outline: none;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions label {
  min-height: 40px;
  padding: 9px 14px;
  border-color: rgba(212, 166, 42, 0.5);
  background: #ffffff;
  color: #071b42;
  font-size: 0.84rem;
  box-shadow: 0 8px 18px rgba(7, 27, 77, 0.07);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions input {
  accent-color: #d4a62a;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions label:has(input:checked) {
  border-color: #d4a62a;
  background:
    linear-gradient(135deg, #071b42, #0b2f6f);
  color: #ffffff;
}

.tutor-debrief-page .tutor-intelligence-extra-context,
.tutor-debrief-page .tutor-intelligence-session-question {
  border-color: #d4a62a;
}

.tutor-debrief-page .tutor-intelligence-extra-context::before,
.tutor-debrief-page .tutor-intelligence-session-question::before {
  background: #071b42;
}

.tutor-debrief-page .tutor-intelligence-session-question-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tutor-debrief-page .tutor-debrief-general {
  gap: 18px;
}

.tutor-debrief-page .tutor-debrief-general > div:first-child {
  display: grid;
  gap: 4px;
}

.tutor-debrief-page .tutor-debrief-learner-context {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(212, 166, 42, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 16px 34px rgba(7, 27, 77, 0.1);
}

.tutor-debrief-page .tutor-debrief-learner-context > div:first-child {
  display: grid;
  gap: 4px;
}

.tutor-debrief-page .tutor-debrief-context-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.tutor-debrief-page .tutor-debrief-context-list article {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(7, 27, 66, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.tutor-debrief-page .tutor-debrief-context-list strong,
.tutor-debrief-page .tutor-debrief-context-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-debrief-page .tutor-debrief-context-list span {
  color: #61708a;
  font-size: 0.82rem;
  font-weight: 750;
}

.tutor-debrief-page .tutor-debrief-final-workflow {
  display: grid;
  gap: 14px;
  margin-top: -4px;
}

.tutor-debrief-page .tutor-debrief-report-generation-actions {
  display: flex;
  justify-content: flex-start;
}

.tutor-debrief-page .tutor-debrief-report-generation-actions .tutor-intelligence-generate-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d4a62a;
  border-radius: 999px;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(7, 27, 66, 0.22);
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-intelligence-final-question-stack {
  display: grid;
  gap: 12px;
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-interpretation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-panel textarea {
  width: 100%;
  min-height: 460px;
  padding: 18px;
  border: 1px solid rgba(212, 166, 42, 0.42);
  border-radius: 14px;
  background: #ffffff;
  color: #071b42;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow:
    inset 0 2px 5px rgba(7, 27, 66, 0.045),
    0 12px 26px rgba(7, 27, 77, 0.06);
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-panel textarea[readonly] {
  background: #f8fafc;
  cursor: default;
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-panel {
  border: 1px solid rgba(212, 166, 42, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: 0 18px 36px rgba(7, 27, 77, 0.1);
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-panel > span {
  display: block;
  margin: -1px -1px 14px;
  padding: 13px 16px;
  border: 1px solid rgba(212, 166, 42, 0.42);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutor-debrief-page .tutor-report-section-kicker {
  color: #d4a62a;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutor-debrief-page .tutor-saved-observation-list {
  display: grid;
  gap: 10px;
}

.tutor-debrief-page .tutor-saved-observation-list section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(7, 27, 66, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.tutor-debrief-page .tutor-saved-observation-list strong {
  color: #071b42;
  font-size: 0.88rem;
  font-weight: 950;
}

.tutor-debrief-page .tutor-saved-observation-list p {
  margin: 0;
  color: #42526b;
  line-height: 1.45;
}

.tutor-debrief-page .tutor-ai-recommendations-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(212, 166, 42, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 36px rgba(7, 27, 77, 0.1);
}

.tutor-debrief-page .tutor-ai-recommendations-panel strong {
  display: block;
  margin-top: 2px;
  color: #071b42;
  font-size: 1.12rem;
  font-weight: 950;
}

.tutor-debrief-page .tutor-ai-recommendations-panel p {
  margin: 0;
  color: #42526b;
  line-height: 1.45;
}

.tutor-debrief-page .tutor-intelligence-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutor-debrief-page .tutor-intelligence-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(7, 27, 66, 0.12);
  background: #f3f5f8;
  color: #42526b;
  font-size: 0.74rem;
  font-weight: 950;
}

.tutor-debrief-page .tutor-intelligence-tag.strength {
  border-color: rgba(15, 138, 97, 0.28);
  background: #e4f6ec;
  color: #0f6f4f;
}

.tutor-debrief-page .tutor-intelligence-tag.monitor {
  border-color: rgba(212, 166, 42, 0.36);
  background: #fff7df;
  color: #735a12;
}

.tutor-debrief-page .tutor-intelligence-tag.risk {
  border-color: rgba(184, 65, 65, 0.28);
  background: #fff0f0;
  color: #9a2d2d;
}

.tutor-debrief-page .tutor-intelligence-tag.ai {
  border-color: rgba(18, 61, 115, 0.24);
  background: #eaf2ff;
  color: #123d73;
}

.tutor-debrief-page .tutor-ai-recommendation-list {
  display: grid;
  gap: 10px;
}

.tutor-debrief-page .tutor-ai-recommendation-list p {
  padding: 12px;
  border-left: 3px solid #d4a62a;
  border-radius: 10px;
  background: #f8fafc;
}

.tutor-debrief-page .tutor-report-confidence {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(7, 27, 66, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}

.tutor-debrief-page .tutor-report-confidence span {
  color: #657084;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutor-debrief-page .tutor-report-confidence strong {
  margin: 0;
  font-size: 1rem;
}

.tutor-debrief-page .tutor-report-confidence.strength {
  border-color: rgba(15, 138, 97, 0.28);
  background: #ecf8f1;
}

.tutor-debrief-page .tutor-report-confidence.monitor {
  border-color: rgba(212, 166, 42, 0.34);
  background: #fffaf0;
}

.tutor-debrief-page .tutor-debrief-final-workflow .tutor-debrief-confidence {
  margin-top: 0;
}

.tutor-debrief-page .tutor-debrief-final-actions {
  margin-top: 0;
}

@media (max-width: 640px) {
  .tutor-debrief-page .tutor-intelligence-question {
    padding: 0;
  }

  .tutor-debrief-page .tutor-intelligence-question-head {
    padding: 18px 16px 16px;
  }

  .tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question {
    padding: 18px 16px 0;
  }

  .tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions {
    margin-right: 16px;
    margin-left: 16px;
  }

  .tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-dictate-button,
  .tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-generate-button,
  .tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-light-actions label {
    width: 100%;
  }
}

/* Tutor Intelligence guided observations and save controls - active */
.tutor-debrief-page .tutor-guided-example-label {
  display: block;
  margin-top: 4px;
  color: #657084 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tutor-debrief-page .tutor-guided-example-text {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(101, 112, 132, 0.18);
  border-radius: 12px;
  background: #f3f5f8;
  color: #4b5566 !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1.48;
  text-transform: none !important;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.tutor-observation-empty textarea {
  border-color: rgba(71, 89, 117, 0.22);
  background: #ffffff;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.tutor-observation-unsaved textarea {
  border-color: rgba(212, 166, 42, 0.46);
  background: #fffaf0;
  box-shadow:
    inset 0 2px 5px rgba(212, 166, 42, 0.055),
    0 0 0 1px rgba(212, 166, 42, 0.08);
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.tutor-observation-saved textarea,
.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.is-observation-captured textarea {
  border-color: rgba(15, 138, 97, 0.44);
  background: #ecf8f1;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-debrief-question.tutor-observation-saved textarea[readonly] {
  cursor: default;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-observation-captured {
  border-color: rgba(15, 138, 97, 0.32);
  background: #e4f6ec;
  color: #0f6f4f;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-observation-action-button,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-edit-button,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-save-button {
  min-height: 42px !important;
  padding: 10px 18px !important;
  border: 1px solid #d4a62a !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #123d73 0%, #071b42 100%) !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(7, 27, 66, 0.22) !important;
}

.tutor-debrief-page .tutor-intelligence-question .tutor-observation-action-button:hover,
.tutor-debrief-page .tutor-intelligence-question .tutor-observation-action-button:focus-visible,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-edit-button:hover,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-edit-button:focus-visible,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-save-button:hover,
.tutor-debrief-page .tutor-intelligence-question .tutor-intelligence-save-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(7, 27, 66, 0.28),
    0 0 0 4px rgba(212, 166, 42, 0.14) !important;
  outline: none;
}

.tutor-debrief-page .tutor-intelligence-question.has-saved-observation .tutor-intelligence-save-button {
  background: linear-gradient(180deg, #146d4f 0%, #0f5a42 100%) !important;
}

@media (max-width: 640px) {
  .tutor-debrief-page .tutor-intelligence-question .tutor-observation-action-button {
    width: 100%;
  }
}

/* Theory Lesson Content subsystem */
.theory-lesson-content-builder,
.theory-lesson-content {
  border: 1px solid rgba(212, 166, 42, 0.22);
  box-shadow: 0 18px 40px rgba(7, 27, 66, 0.08);
}

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

.theory-content-upload-card {
  min-height: 128px;
  border: 1px solid rgba(212, 166, 42, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.theory-content-upload-card input,
.theory-content-replace-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theory-content-upload-progress {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid rgba(212, 166, 42, 0.36);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 28px rgba(7, 27, 66, 0.08);
}

.theory-content-upload-progress.complete {
  border-color: rgba(22, 128, 86, 0.32);
  background: linear-gradient(180deg, #f1fbf5 0%, #ffffff 100%);
}

.theory-content-upload-progress.failed,
.theory-content-upload-progress.cancelled {
  border-color: rgba(190, 54, 54, 0.28);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.theory-content-upload-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.theory-content-upload-progress h5 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.theory-content-progress-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e8eef7;
}

.theory-content-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d2b6b 0%, #1662b8 62%, #d4a62a 100%);
  transition: width 180ms ease;
}

.theory-content-upload-progress.complete .theory-content-progress-bar span {
  background: linear-gradient(90deg, #168056 0%, #22a06b 100%);
}

.theory-content-upload-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.theory-content-upload-progress-grid span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(13, 43, 107, 0.05);
}

.theory-content-upload-progress-grid strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 900;
}

.theory-content-upload-progress-grid small,
.theory-content-upload-status {
  color: #657084;
  font-weight: 800;
}

.theory-content-upload-status {
  margin: 0;
}

@media (max-width: 760px) {
  .theory-content-upload-progress-head {
    flex-direction: column;
  }

  .theory-content-upload-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .theory-content-upload-progress-grid {
    grid-template-columns: 1fr;
  }
}

.theory-content-asset-list,
.theory-content-resource-list {
  display: grid;
  gap: 12px;
}

.theory-content-builder-asset,
.theory-content-asset {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(13, 43, 107, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 27, 66, 0.06);
}

.theory-content-builder-asset {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr);
  align-items: start;
}

.theory-content-builder-asset span,
.theory-content-builder-asset small,
.theory-content-asset small {
  display: block;
  color: #657084;
  font-weight: 700;
}

.theory-content-builder-asset textarea {
  min-height: 72px;
}

.theory-content-builder-asset-actions,
.theory-content-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theory-content-builder-actions {
  margin: 16px 0;
}

.theory-content-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.theory-content-image {
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1fr);
  align-items: center;
}

.theory-content-image img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(13, 43, 107, 0.1);
}

.theory-content-notes,
.theory-content-transcript {
  padding: 16px;
  border: 1px solid rgba(13, 43, 107, 0.1);
  border-radius: 16px;
  background: #f8fbff;
  color: #0d2b6b;
}

.theory-content-transcript summary {
  cursor: pointer;
  font-weight: 900;
  color: #0d2b6b;
}

.theory-content-empty {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .theory-content-upload-grid,
  .theory-content-builder-asset,
  .theory-content-image {
    grid-template-columns: 1fr;
  }
}
