/* page.css file */
.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav a,
.auth-links a {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links {
  margin: 20px 0 0;
  font-size: 14px;
}

.secondary-form {
  margin-top: 16px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.button-secondary {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--blue-dark);
}

.button-secondary:hover {
  background: #dbeafe;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 56px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.empty-state-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.empty-state h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .top-nav {
    gap: 12px;
  }

  .empty-state {
    align-items: flex-start;
    padding: 18px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  min-height: 76px;
  gap: 20px
}

.top-nav {
  align-items: center;
  gap: clamp(12px, 2vw, 25px);
  flex-wrap: wrap;
  justify-content: flex-end
}

.top-nav a {
  position: relative;
  color: #475569;
  font-weight: 500;
  transition: color .2s ease, transform .2s ease
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--blue)
}

.top-nav a:hover {
  color: var(--blue);
  transform: translateY(-1px)
}

.top-nav .nav-cta {
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--btn-bg-dim);
  color: #fff;
  box-shadow: 0 8px 20px #00214726
}

.site-footer {
  margin-top: 70px;
  padding: 54px max(24px, calc((100% - 1120px)/2)) 22px;
  background: #0f172a;
  color: #cbd5e1
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px;
  padding-bottom: 38px
}

.footer-brand .brand {
  color: #fff
}

.footer-brand .brand small {
  color: #fff
}

.footer-brand .brand-mark {
  color: #fff;
  box-shadow: none
}

.footer-brand p {
  max-width: 280px;
  margin: 18px 0 0;
  color: #a4a4a4;
  font-size: 14px
}

.footer-inner h2 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.footer-inner>div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px
}

.footer-inner a,
.footer-inner span {
  color: #aab8cb;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease
}

.footer-inner a:hover {
  color: #fff
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #273449;
  padding-top: 20px;
  color: #8492a6;
  font-size: 12px
}

/* ===== Home Hero — RETRON style ===== */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  margin: 0 calc(50% - 50vw);
  padding: 80px max(20px, calc((100vw - 1120px)/2)) 68px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #002147 0%, #163a6e 50%, #2b5aa6 100%);
  color: #fff;
}

/* Giant watermark text behind the copy */
.hero-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff10;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-watermark-2 {
  -webkit-text-stroke: 1.5px #ffffff08;
  font-size: clamp(140px, 22vw, 260px);
  top: 78%;
}

/* Vertical side label */
.hero-side-label {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.hero-side-label span {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: #ffffffb8;
}

.hero-side-label small {
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #ffffff60;
}

/* Concentric arcs top-right */
.hero-arcs {
  position: absolute;
  z-index: 0;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow:
    inset 30px 30px 0 -30px transparent,
    0 0 0 40px transparent,
    inset 0 0 0 60px #ffffff06,
    inset 0 0 0 100px #ffffff05,
    inset 0 0 0 140px #ffffff04;
  pointer-events: none;
}

/* Floating 3D cube decorations */
.hero-cube {
  position: absolute;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(140deg, #ffffff26, #ffffff08);
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(4px);
  animation: hero-cube-float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-cube-1 {
  top: 22%;
  right: 12%;
}

.hero-cube-2 {
  bottom: 18%;
  left: 14%;
  width: 36px;
  height: 36px;
  animation-delay: -3.5s;
  animation-duration: 9s;
}

@keyframes hero-cube-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

/* Main copy overlay */
.home-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.home-copy .eyebrow {
  color: #ffffffb8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 10px;
}

.home-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.04em;
}

.home-copy h1 span {
  display: block;
  color: #ffffffe0;
}

/* Lead text with horizontal rule */
.hero-lead-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 28px;
  max-width: 560px;
}

.hero-rule {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: #ffffff50;
}

.home-copy .lead {
  max-width: 580px;
  margin: 0;
  color: #ffffffb8;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .01em;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions .button {
  background: #fff;
  color: #002147;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: 0 10px 28px #07152f30;
  transition: background .18s ease, box-shadow .18s ease;
}

.hero-actions .button:hover {
  background: #f0f4ff;
  color: #002147;
  box-shadow: 0 14px 36px #07152f4a;
}

/* Trust pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  border: 1px solid #ffffff28;
  background: #ffffff12;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}

.trust-pill:hover {
  border-color: #ffffff50;
  background: #ffffff1e;
}

.trust-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff22;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}

.trust-text {
  color: #ffffffd0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
}

.button,
button.button,
input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 11px;
  border: none;
  background: var(--btn-bg-dim);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px #00214726;
  transition: box-shadow .18s ease, background .18s ease, color .18s ease;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  background: var(--btn-bg);
  color: #ffffff;
  border: none;
  box-shadow: var(--btn-glow);
}

.button:active,
button.button:active,
input[type="submit"].button:active {
  box-shadow: var(--btn-glow-press);
}

.button-secondary,
button.button-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

.button-secondary:hover,
button.button-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: var(--btn-glow-soft);
}

.button-secondary:active,
button.button-secondary:active {
  background: #f1f5f9;
  box-shadow: var(--btn-glow-press);
}


.home-courses {
  padding: 12px 0 28px
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -.035em
}

.text-link {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none
}

.text-link:hover {
  text-decoration: underline
}

.course-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px #0f172a08;
  transition: transform .25s ease, box-shadow .25s ease
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px #0f172a12
}

.course-card>p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7
}

.contact-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: stretch;
  padding: 56px 0
}

.contact-intro {
  display: flex;
  flex-direction: column
}

.contact-title {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.05em
}

.contact-lead {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75
}

.contact-facts {
  display: grid;
  gap: 22px;
  margin-top: 40px
}

.contact-fact {
  display: grid;
  gap: 4px
}

.contact-fact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase
}

.contact-fact-value {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none
}

a.contact-fact-value:hover {
  color: var(--blue);
  text-decoration: underline
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 26px;
  background: var(--navy);
  box-shadow: 0 26px 60px #0f172a2b
}

.contact-form-title {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 800
}

.contact-form-sub {
  margin: 12px 0 26px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 0
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600
}

.contact-field small {
  color: #94a3b8;
  font-weight: 500
}

.contact-field-label {
  display: block;
  min-height: 21px
}

.contact-field-label small {
  margin-left: 4px
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #334155;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease
}

.contact-field textarea {
  min-height: 140px;
  padding: 14px;
  border: 1px solid #64748b;
  border-radius: 12px;
  resize: vertical
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #64748b
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-bottom-color: #93c5fd
}

.contact-field textarea:focus {
  border: 2px solid #93c5fd;
  padding: 13px
}

/* The send button sits on the navy panel, so it inverts the global .button fill: white surface,
   navy text. The button.button prefix is deliberate - the global rule is element+class specific and
   a bare .contact-send would lose to it on source order alone. */
button.button.contact-send {
  align-self: stretch;
  margin-top: 4px;
  background: #fff;
  color: var(--navy);
  transition: none
}

/* No hover/press feedback on this button: pin every interactive state back to the resting look
   (white fill, navy text, base shadow) so the global .button glow and dim-to-full never fire. */
button.button.contact-send:hover,
button.button.contact-send:active,
button.button.contact-send:focus {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 20px #00214726;
  outline: none
}

.contact-form-note {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5
}

.course-card h2,
.course-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 36px 0
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px
}

.course-card h2,
.course-card h3 {
  margin: 0 0 8px
}

.course-card>p:not(.eyebrow) {
  flex: 1;
  margin: 0 0 22px;
  font-size: 14px
}

.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 12px
}

.course-card .button {
  margin-top: auto
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 30px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.empty-state>a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  margin-top: 6px
}

.empty-state>a.button {
  color: #fff;
  margin-top: 12px;
  padding: 13px 19px
}

.course-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px
}

.course-category {
  display: inline-block;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e9fbf7;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap
}

.category-web {
  background: #e9fbf7;
  color: #0f766e
}

.category-marketing {
  background: #fff6df;
  color: #b45309
}

.category-design {
  background: #f1edff;
  color: #6d28d9
}

.category-general {
  background: #eff6ff;
  color: #002147
}

.level-label {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
  font-weight: 750
}

.course-duration {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px
}

.price-options {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 15px;
  background: #f7f9fc
}

.price-options>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 12px
}

.price-options>div+div {
  border-top: 1px solid #e1e7f0
}

.price-options strong {
  color: #172554;
  font-size: 13px;
  white-space: nowrap
}

.price-options>div:last-child strong {
  color: #002147
}

.course-cta {
  width: 100%;
  text-align: center;
  margin-top: auto
}

.learning-modes {
  padding: 46px 0 30px
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.mode-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f2f7ff, #fff);
  border: 1px solid #dbeafe;
  transition: transform .25s ease, box-shadow .25s ease
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px #00214712
}

.mode-live {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: #c7d2fe
}

.mode-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: #002147;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 4px 14px #00214712
}

.mode-card h3 {
  margin: 22px 0 7px;
  color: var(--navy);
  font-size: 20px
}

.mode-card p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7
}

/* ===== Auth (split sign-in / register shell) ===== */
.auth-shell {
  display: grid;
  place-items: center;
  padding: 30px 0 64px
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  width: min(1180px, 100%);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 34px 90px #0021471f
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 42px) clamp(24px, 4.4vw, 56px) clamp(22px, 3vw, 34px)
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(22px, 4.5vh, 44px)
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none
}

.auth-logo .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px
}

.auth-heading {
  margin-bottom: 6px;
  text-align: center
}

.auth-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em
}

.auth-sub {
  max-width: 400px;
  margin: 10px auto 26px;
  color: var(--muted);
  font-size: 15px
}

.auth-form-side form {
  display: grid;
  gap: 15px
}

.field {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center
}

.input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 12px 46px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px #bfdbfe
}

.field-code,
.field-code input {
  letter-spacing: .28em
}

.pw-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s ease, background .2s ease
}

.pw-toggle svg {
  width: 18px;
  height: 18px
}

.pw-toggle .pw-icon-hide {
  display: none
}

.pw-toggle.is-on .pw-icon-show {
  display: none
}

.pw-toggle.is-on .pw-icon-hide {
  display: block
}

.pw-toggle:hover {
  color: var(--navy);
  background: #eef2f7
}

.pw-toggle.is-on {
  color: var(--blue)
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
  font-size: 14px
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-weight: 600;
  cursor: pointer
}

.remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue)
}

.auth-row>a {
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none
}

.auth-row>a:hover {
  text-decoration: underline
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  text-align: center
}

.auth-links {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px
}

.auth-foot a {
  color: var(--muted);
  text-decoration: none
}

.auth-foot a:hover {
  color: var(--blue-dark);
  text-decoration: underline
}

/* ===== Enrollment checkout: the form is the only card on the page. The course, the money and the
   steps still to run sit loose on the page itself, because they are information to read and not
   another form to fill in. There is no fixed panel height, so nothing is clipped at the bottom. ===== */

.enrol-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 78px
}

.enrol-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px
}

.enrol-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none
}

.enrol-back:hover {
  text-decoration: underline
}

.enrol-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none
}

.enrol-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap
}

.enrol-step-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800
}

.enrol-step.is-current {
  border-color: rgba(0, 33, 71, .45);
  background: rgba(0, 33, 71, .06);
  color: var(--blue-dark)
}

.enrol-step.is-current .enrol-step-mark {
  background: var(--blue);
  color: #fff
}

.enrol-step.is-done {
  color: var(--green)
}

.enrol-step.is-done .enrol-step-mark {
  background: rgba(22, 163, 74, .16);
  color: var(--green)
}

.enrol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 450px);
  align-items: start;
  gap: clamp(28px, 5vw, 62px)
}

.enrol-intro {
  min-width: 0
}

.enrol-intro .eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase
}

.enrol-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere
}

.enrol-lede {
  max-width: 520px;
  margin: 16px 0 0;
  color: #5d6f89;
  font-size: 15.5px;
  line-height: 1.72;
  overflow-wrap: anywhere
}

.enrol-summary {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid #e2eaf5
}

.enrol-summary>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f8
}

.enrol-summary dt {
  color: #7c8ba1;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase
}

.enrol-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere
}

.enrol-summary-main {
  display: block;
  padding: 14px 0
}

.enrol-summary-main dt {
  display: block;
  margin: 0 0 5px
}

.enrol-summary-main dd {
  font-size: 17.5px;
  letter-spacing: -.015em;
  text-align: left
}

.enrol-how-block {
  margin-top: 32px
}

.enrol-how-block h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -.02em
}

.enrol-how-block>p {
  max-width: 470px;
  margin: 9px 0 20px;
  color: #62748c;
  font-size: 13.5px;
  line-height: 1.65
}

.enrol-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 2.6vw, 30px) clamp(24px, 2.8vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 26px 64px #00214717
}

.enrol-card[id] {
  scroll-margin-top: 24px
}

.enrol-otp-modal .admin-modal-dialog {
  width: min(520px, 100%)
}

.enrol-otp-modal .admin-modal-header {
  align-items: flex-start
}

.enrol-otp-modal .admin-card-titles h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px
}

.enrol-otp-modal .admin-card-titles p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere
}

.enrol-otp-modal .enrol-modal-close svg {
  width: 18px;
  height: 18px
}

.enrol-otp-form {
  gap: 15px
}

.enrol-otp-feedback {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere
}

.enrol-otp-feedback.is-success {
  border-color: #b7e3c4;
  background: #f0fbf3;
  color: #176534
}

.enrol-otp-feedback.is-error {
  border-color: #fecaca;
  background: #fff5f5;
  color: #991b1b
}

.enrol-otp-feedback span {
  color: inherit
}

.enrol-card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  letter-spacing: -.03em
}

.enrol-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6
}

.enrol-card form {
  display: grid;
  gap: 15px
}

.enrol-card .auth-submit {
  margin-top: 2px
}

.enrol-card .auth-links {
  margin: 0
}

.enrol-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 2px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f8;
  color: #8695ab;
  font-size: 11.5px
}

.enrol-card-foot a {
  color: #8695ab;
  text-decoration: none
}

.enrol-card-foot a:hover {
  color: var(--blue-dark);
  text-decoration: underline
}

.enrol-mail-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6
}

@keyframes enrol-spin {
  to {
    rotate: 360deg
  }
}

.otp-resend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  white-space: nowrap
}

.otp-resend-row button {
  margin: 0;
  white-space: nowrap
}

.otp-resend-row>span:first-child {
  min-width: 0
}

.otp-resend-row button[disabled] {
  color: var(--muted);
  opacity: .65;
  cursor: not-allowed
}

.otp-resend-timer {
  color: var(--blue-dark);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

/* The timer is emptied by the script once Resend unlocks; an empty span would still take a gap. */
.otp-resend-timer:empty {
  display: none
}

.enrol-otp-back {
  margin: -7px 0 0;
  text-align: center
}

.submit-progress-overlay {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px)
}

.submit-progress-overlay[hidden] {
  display: none
}

.submit-progress-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45)
}

.submit-progress-card p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55
}

.submit-progress-spinner {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 33, 71, .2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: enrol-spin .8s linear infinite
}

.enrol-edit-email {
  font-size: 13px;
  font-weight: 700
}

.enrol-how {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none
}

.enrol-how li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px
}

.enrol-how li>span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e0eafc;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 800
}

.enrol-how strong {
  display: block;
  color: #1b2941;
  font-size: 14.5px;
  line-height: 1.4
}

.enrol-how small {
  display: block;
  margin-top: 2px;
  color: #6b7c94;
  font-size: 12.5px;
  line-height: 1.6
}

@media (max-width: 980px) {
  .enrol-shell {
    padding: 22px 20px 64px
  }

  .enrol-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px
  }

  /* The form is what a person came to use, so it keeps the first screen when the columns stack. */
  .enrol-card {
    order: -1
  }

  .enrol-lede,
  .enrol-how-block>p {
    max-width: none
  }
}

@media (max-width: 620px) {
  .enrol-shell {
    padding: 18px 16px 56px
  }

  .enrol-topbar {
    margin-bottom: 18px
  }

  .enrol-steps {
    gap: 6px;
    margin-bottom: 24px
  }

  .enrol-step {
    padding: 6px 10px;
    font-size: 11.5px
  }

  .enrol-title {
    font-size: clamp(27px, 8.4vw, 36px)
  }

  .enrol-summary>div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px
  }

  .enrol-summary dd {
    text-align: left
  }

  .enrol-card {
    padding: 22px 18px 24px;
    border-radius: 19px
  }

  .enrol-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650
}

.secure-note svg {
  width: 14px;
  height: 14px;
  color: var(--green)
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: clamp(30px, 4vw, 56px);
  background: linear-gradient(160deg, #002147 0%, #062a52 60%, #001a38 100%)
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff12
}

.auth-visual::before {
  width: 300px;
  height: 300px;
  top: -90px;
  right: -70px
}

.auth-visual::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: -80px
}

.auth-logo-light {
  color: #fff
}

.visual-brand {
  display: none;
  position: relative;
  z-index: 1
}

.visual-copy {
  position: relative;
  z-index: 1
}

.visual-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -.03em
}

.visual-copy p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #dfe4ff;
  font-size: 15px;
  line-height: 1.7
}

.visual-mock {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  margin: 6px auto 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px #1b16704d;
  animation: float-card 7s ease-in-out infinite
}

@keyframes float-card {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -10px
  }
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800
}

.mock-title i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0d3a6b
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0
}

.mock-stat {
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc
}

.mock-stat small {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase
}

.mock-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -.02em
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 86px;
  padding: 12px 12px 0;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc
}

.mock-chart i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 6px 6px 2px 2px;
  background: #dbe3ff
}

.mock-chart i:nth-child(2) {
  background: #0d3a6b
}

.mock-chart i:nth-child(6) {
  background: #1f4f8f
}

.mock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #002147;
  font-size: 11.5px;
  font-weight: 700
}

.mock-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d3a6b
}

/* Auth: stacked layout for tablets and phones */
@media (max-width: 900px) {
  .auth-shell {
    padding: 16px 0 46px
  }

  .auth-panel {
    grid-template-columns: 1fr;
    min-height: 0
  }

  .auth-visual {
    order: -1;
    padding: 24px 22px 28px
  }

  .auth-form-side .auth-top {
    display: none
  }

  .visual-brand {
    display: inline-flex
  }
}

@media (max-width: 580px) {
  .auth-form-side {
    padding: 24px 20px 20px
  }

  .visual-copy h2 {
    font-size: 24px
  }
}

/* Admin lesson editor and publishing list */
.lesson-library-list {
  display: grid;
  gap: 10px
}

.lesson-editor {
  min-width: 0;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fff
}

.lesson-editor>summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none
}

.lesson-editor>summary::-webkit-details-marker {
  display: none
}

.lesson-editor>summary>span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px
}

.lesson-editor>summary strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 13px
}

.lesson-editor>summary small {
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 11px
}

.lesson-editor[open]>summary {
  border-bottom: 1px solid #edf1f6
}

.lesson-editor>.admin-form {
  padding: 17px
}

.lesson-editor .button {
  align-self: flex-start
}

@media(max-width:600px) {
  .lesson-editor>summary {
    align-items: flex-start;
    padding: 13px
  }

  .lesson-editor>summary .table-badge {
    flex: 0 0 auto
  }

  .lesson-editor>.admin-form {
    padding: 13px
  }

  .lesson-editor .button {
    width: 100%
  }
}


@media(max-width:820px) {
  .home-hero {
    min-height: 480px;
    padding: 60px 20px 36px
  }

  .home-copy h1 {
    font-size: clamp(38px, 10vw, 72px)
  }

  .hero-watermark {
    font-size: clamp(90px, 18vw, 160px)
  }

  .hero-side-label {
    display: none
  }

  .hero-lead-row {
    gap: 14px
  }

  .hero-cube-1 {
    right: 6%;
    width: 36px;
    height: 36px
  }

  .hero-cube-2 {
    left: 8%
  }

  .hero-actions {
    justify-content: flex-start
  }

  .hero-trust {
    flex-wrap: wrap
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
    gap: 12px
  }

  .top-nav {
    justify-content: flex-start;
    gap: 10px 17px
  }

  .top-nav a {
    font-size: 12px
  }

  .top-nav .nav-cta {
    padding: 7px 10px
  }

  .container {
    width: min(100% - 32px, 1120px)
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .course-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px
  }

  .site-footer {
    padding: 40px 20px 20px
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px
  }
}

/* ===== Register nav button: dim → full navy + glow, no movement ===== */
.top-nav .nav-cta:hover,
.top-nav .nav-cta:focus-visible {
  background: var(--btn-bg);
  color: #fff;
  transform: none;
  box-shadow: var(--btn-glow)
}

/* ===== Mobile navigation (hamburger) ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease
}

/* } */

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  padding: 6px 20px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 26px 48px #0f172a1a
}

body.nav-open .mobile-nav {
  display: block;
  animation: nav-drop .22s ease
}

.mobile-nav a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid #eef2f7;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none
}

.mobile-nav a:hover {
  color: var(--blue)
}

.mobile-nav .nav-cta {
  margin-top: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg-dim);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 22px #0021472e
}

.mobile-nav .nav-cta:hover {
  background: var(--btn-bg);
  color: #fff;
  transform: none;
  box-shadow: var(--btn-glow)
}

.mobile-nav a.active {
  color: var(--blue-dark);
  font-weight: 650
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media (max-width: 820px) {
  .top-nav {
    display: none
  }

  .nav-toggle {
    display: flex
  }

  .topbar {
    position: relative;
    z-index: 1001;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    min-height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 821px) {
  .mobile-nav {
    display: none !important
  }
}

/* ===== Footer social icons ===== */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px
}

.social-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease
}

.social-icon:hover {
  transform: translateY(-2px)
}

.social-icon svg {
  width: 16px;
  height: 16px
}

.si-facebook {
  background: #1877f226;
  border-color: #1877f233
}

.si-facebook:hover {
  background: #1877f2;
  border-color: #1877f2
}

.si-instagram {
  background: #e1306c26;
  border-color: #e1306c33
}

.si-instagram:hover {
  background: #e1306c;
  border-color: #e1306c
}

.si-linkedin {
  background: #0a66c226;
  border-color: #0a66c233
}

.si-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2
}

.si-whatsapp {
  background: #25d36626;
  border-color: #25d36633
}

.si-whatsapp:hover {
  background: #25d366;
  border-color: #25d366
}

.si-youtube {
  background: #ff000026;
  border-color: #ff000033
}

.si-youtube:hover {
  background: #ff0000;
  border-color: #ff0000
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px
}

.footer-legal a {
  color: #aab8cb;
  font-size: 12px;
  text-decoration: none
}

.footer-legal a:hover {
  color: #fff
}

.footer-initiative a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease
}

.footer-initiative a:hover,
.footer-initiative a:focus-visible {
  color: #FFB020;
  text-decoration: none
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center
  }

  .footer-legal {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px 18px
  }

  .footer-initiative {
    max-width: 100%;
    line-height: 1.6
  }
}

/* ===== Academy legal documents ===== */
.legal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--border)
}

.legal-hero-copy {
  max-width: 850px;
  min-width: 0
}

.legal-hero .eyebrow {
  margin-bottom: 14px
}

.legal-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.05
}

.legal-hero-copy>p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7
}

.legal-hero-mark {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #dce7ff;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef4ff, #fff);
  color: var(--blue-dark)
}

.legal-hero-mark svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

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

.legal-highlight {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 19px 21px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff
}

.legal-highlight strong {
  color: var(--blue-dark);
  font-size: 21px;
  line-height: 1.2
}

.legal-highlight span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin: 24px 0 60px
}

.legal-sidebar {
  position: sticky;
  top: 106px;
  align-self: start;
  display: grid;
  gap: 14px;
  min-width: 0
}

.legal-toc,
.legal-help-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff
}

.legal-toc-kicker,
.legal-document-label {
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em
}

.legal-toc h2 {
  margin: 8px 0 14px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -.02em
}

.legal-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none
}

.legal-toc li {
  min-width: 0
}

.legal-toc a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 7px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: #f1f5ff;
  color: var(--blue-dark)
}

.legal-toc a span {
  color: #9aa9c0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em
}

.legal-help-card {
  background: linear-gradient(145deg, #eef4ff, #fff)
}

.legal-help-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800
}

.legal-help-card h3 {
  margin: 13px 0 5px;
  color: var(--navy);
  font-size: 16px
}

.legal-help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6
}

.legal-help-card>a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none
}

.legal-help-card>a:hover {
  text-decoration: underline
}

.legal-document {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(25, 48, 88, .045)
}

.legal-document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 25px;
  border-bottom: 1px solid #e9eef6;
  background: #f8faff
}

.legal-document-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px
}

.legal-document-header p strong {
  color: var(--navy)
}

.legal-document-header>a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none
}

.legal-document-header>a:hover {
  text-decoration: underline
}

.legal-section {
  padding: 25px;
  border-bottom: 1px solid #edf1f7;
  scroll-margin-top: 24px
}

.legal-section:last-of-type {
  border-bottom: 0
}

.legal-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px
}

.legal-section-heading>span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 850
}

.legal-section-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -.025em;
  line-height: 1.35
}

.legal-section>p,
.legal-points li {
  color: #58677f;
  font-size: 14px;
  line-height: 1.75
}

.legal-section>p {
  margin: 0 0 12px
}

.legal-section>p:last-child {
  margin-bottom: 0
}

.legal-points {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none
}

.legal-points li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #edf1f7;
  border-radius: 11px;
  background: #fbfcff
}

.legal-points li strong {
  color: #263754;
  font-size: 13px;
  line-height: 1.5
}

.legal-points li span {
  overflow-wrap: anywhere
}

.legal-document-closing {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 25px 25px;
  padding: 15px 17px;
  border: 1px solid #d6e5ff;
  border-radius: 13px;
  background: #f1f6ff;
  color: #344d7b
}

.legal-document-closing>span {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #dce9ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900
}

.legal-document-closing p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr)
  }

  .legal-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .7fr);
    align-items: start;
    position: static
  }

}

@media (max-width: 600px) {
  .legal-hero {
    align-items: flex-start;
    padding: 38px 0 25px
  }

  .legal-hero-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px
  }

  .legal-hero-mark svg {
    width: 25px;
    height: 25px
  }

  .legal-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 15px
  }

  .legal-highlight {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 13px 15px
  }

  .legal-highlight strong {
    font-size: 18px
  }

  .legal-layout {
    gap: 13px;
    margin: 15px 0 38px
  }

  .legal-sidebar {
    grid-template-columns: minmax(0, 1fr)
  }

  .legal-toc,
  .legal-help-card {
    display: none
  }

  .legal-document {
    border-radius: 16px
  }

  .legal-document-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 17px
  }

  .legal-section {
    padding: 19px 17px
  }

  .legal-section-heading {
    gap: 9px
  }

  .legal-section>p,
  .legal-points li {
    font-size: 13px
  }

  .legal-points li {
    padding: 10px 11px
  }

  .legal-document-closing {
    margin: 14px 17px 17px;
    padding: 13px
  }
}

/* ===== Home review section: type badge + submission form ===== */
.testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px
}

.testi-type {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase
}

.testi-type.type-client {
  background: #dbeafe;
  color: #002147
}

.testi-type.type-student {
  background: #dcfce7;
  color: #15803d
}

.review-box {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px #0f172a0d
}

.review-box-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -.02em
}

.review-box-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65
}

.reviewer-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px
}

.review-type {
  position: relative
}

.review-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.review-type span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease
}

.review-type input:checked+span {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue-dark)
}

.review-type input:focus-visible+span {
  box-shadow: 0 0 0 4px #bfdbfe
}

.review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px
}

.review-form .field {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 650
}

.review-form .field small {
  color: var(--muted);
  font-weight: 500
}

.review-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease
}

.review-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #dbeafe
}

textarea.review-input {
  min-height: 96px;
  resize: vertical
}

.review-rating {
  margin: 16px 0 0;
  padding: 0;
  border: 0
}

.review-rating legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 650
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.star-rating label {
  color: #cbd5e1;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #f59e0b
}

.star-rating input:focus-visible+label {
  transform: scale(1.15)
}

.review-submit {
  width: 100%;
  margin-top: 18px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg-dim);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease
}

.review-submit:hover {
  background: var(--btn-bg);
  box-shadow: var(--btn-glow)
}

.review-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center
}

@media (max-width: 580px) {
  .review-fields {
    grid-template-columns: 1fr
  }
}

/* ===== Scroll-reveal ===== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0s)
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none
}

/* Reveal owns the transform of [data-reveal] elements, so a card lift has to
   outrank it while the element is at rest. */
html.js [data-reveal].is-visible.dash-card:hover {
  transform: translateY(-4px)
}

/* ===== Home: hero trust chips ===== */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  background: #ffffffd9;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700
}

/* ===== Stats band ===== */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 0 10px
}

.stat-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px #0f172a06;
  transition: transform .25s ease, box-shadow .25s ease
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px #0f172a10
}

.stat-num {
  display: block;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.1
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600
}

.home-stats-band {
  display: block;
  padding: clamp(32px, 5vw, 58px) 0 28px
}

.home-stats-heading {
  margin-bottom: clamp(22px, 3vw, 36px);
  text-align: center
}

.home-stats-heading .eyebrow {
  margin: 0 0 12px;
  color: #3158d5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em
}

.home-stats-heading h2 {
  margin: 0;
  color: #202a3c;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.1
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px)
}

.home-stats-band .home-stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b1c38 0%, #142e55 100%);
  color: #fff;
  box-shadow: none;
  text-align: left;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease
}

.home-stats-band .home-stat-card::after {
  position: absolute;
  z-index: -1;
  right: 12px;
  bottom: -.2em;
  color: #ffffff12;
  content: attr(data-step);
  font-size: clamp(88px, 10vw, 124px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none
}

.home-stats-band .home-stat-card:hover {
  transform: translateY(-4px);
  border-color: #ffffff4a;
  box-shadow: 0 14px 28px #07162d26
}

.home-stat-projects {
  background: linear-gradient(145deg, #0b1c38 0%, #173967 100%)
}

.home-stat-countries {
  background: linear-gradient(145deg, #0b1c38 0%, #153b4d 100%)
}

.home-stat-learning {
  background: linear-gradient(145deg, #0b1c38 0%, #233d65 100%)
}

.home-stats-band .home-stat-card .stat-num {
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 850;
  line-height: 1
}

.home-stats-band .home-stat-card .stat-label {
  margin: 10px 0 0;
  color: #f7f9ff;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 750
}

.home-stats-band .home-stat-card p {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  color: #c8d3e2;
  font-size: 13px;
  line-height: 1.5
}

.home-stat-step {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  color: #c8d8ee;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em
}

/* ===== Why cards ===== */
.why-section {
  padding: 54px 0 8px
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px
}

.why-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px #0f172a07;
  transition: transform .25s ease, box-shadow .25s ease
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px #00214714
}

.why-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  font-size: 20px
}

.why-card h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 18px
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7
}

/* ===== Testimonials ===== */
.testi-section {
  padding: 56px 0 8px
}

.review-marquee {
  overflow: hidden;
  margin-top: 26px;
  padding: 6px 2px 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent)
}

.review-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: review-scroll 46s linear infinite
}

.review-marquee:hover .review-track,
.review-marquee:focus-within .review-track {
  animation-play-state: paused
}

@keyframes review-scroll {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(calc(-50% - 9px))
  }
}

.review-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px
}

.review-intro {
  position: sticky;
  top: 106px;
  align-self: start
}

.review-intro h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.025em
}

.review-intro>p {
  margin: 14px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.8
}

.review-intro .review-sign {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: 14px;
  font-style: italic
}

.testi-card {
  position: relative;
  display: flex;
  flex: 0 0 350px;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px #0f172a07;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 40px #0f172a10
}

.testi-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px
}

.testi-card blockquote {
  margin: 0;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.75
}

.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto
}

.testi-ava {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, #002147, #0d3a6b);
  color: #fff;
  font-size: 12px;
  font-weight: 800
}

.testi-name {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750
}

.testi-role {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600
}

.testi-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 800
}

/* ===== Home dashboard preview ===== */
.dashboard-section {
  padding: 54px 0 8px
}

.dashboard-lead {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7
}

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

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px #0f172a07;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 40px #0f172a10
}

.dash-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.03em
}

.dash-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7
}

.dash-progress {
  grid-column: span 2;
  grid-row: span 2
}

.dash-schedule,
.dash-wide {
  grid-column: span 2
}

.dash-bars {
  display: grid;
  gap: 18px;
  margin-top: auto
}

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

.dash-bar span:first-child {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 650
}

.dash-bar strong {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800
}

.dash-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef7
}

.dash-track i {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #002147, #0d3a6b);
  animation: dash-fill 1.3s cubic-bezier(.16, 1, .3, 1) both
}

@keyframes dash-fill {
  from {
    width: 0
  }

  to {
    width: var(--fill, 0%)
  }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
  }

  .dash-progress {
    grid-row: auto;
    grid-column: 1 / -1
  }

  .dash-schedule {
    grid-column: 1 / -1
  }

  .dash-wide {
    grid-column: span 1
  }
}

@media (max-width: 580px) {
  .dashboard-grid {
    grid-template-columns: 1fr
  }

  .dash-progress,
  .dash-schedule,
  .dash-wide {
    grid-column: 1 / -1
  }
}

/* ===== FAQ (sticky intro + accordion) ===== */
.faq-section {
  padding: 64px 0 8px
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start
}

.faq-intro {
  position: sticky;
  top: 106px
}

.faq-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.04em
}

.faq-intro p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15.5px
}

.faq-list {
  border-top: 1px solid var(--border)
}

.faq-item {
  border-bottom: 1px solid var(--border)
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-item summary:hover {
  color: var(--blue)
}

.faq-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--blue);
  transition: transform .3s ease
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg)
}

.faq-answer-wrap {
  overflow: hidden
}

.faq-answer {
  margin: 0;
  padding: 0 44px 22px 2px;
  color: #5b6b80;
  font-size: 14.5px;
  line-height: 1.8
}

/* ===== Daily Motivation — four step cards ===== */
.motive-section {
  position: relative;
  padding: 52px 0 42px;
  background: #f8fafc;
  overflow: hidden
}

.motive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.motive-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.motive-label span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.motive-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.motive-dot {
  color: var(--blue);
}

.motive-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 58px;
}

.motive-line {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 112px;
  overflow: visible;
  pointer-events: none;
}

.motive-wave-shadow,
.motive-wave-main {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motive-wave-shadow {
  stroke: #b8c9df;
  stroke-width: 15;
  opacity: .45;
}

.motive-wave-main {
  stroke: var(--blue);
  stroke-width: 11;
}

.motive-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  padding: 22px 20px 38px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #0021470a;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.motive-card:last-of-type {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px #00214724;
}

.motive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px #0021471c;
}

.motive-num {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #e9eff7;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
  opacity: .85;
  pointer-events: none;
  user-select: none;
}

.motive-card:last-of-type .motive-num {
  color: #fff;
  opacity: .12;
}

.motive-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.motive-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  max-width: 100%;
}

.motive-card:last-of-type h3 {
  color: #fff;
}

.motive-card:last-of-type p {
  color: #d4dfed;
}

.motive-card-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.motive-card:last-of-type .motive-card-meta {
  color: #c5d7ef;
}

.motive-card-meta span {
  padding-left: 4px;
}

/* ===== CTA banner ===== */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 360px;
  place-items: center;
  margin: 64px 0 34px;
  padding: clamp(42px, 6vw, 68px) clamp(20px, 5vw, 72px);
  width: 100%;
  border: 1px solid #ffffff26;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 74% 100%, #1762b9 0, transparent 48%),
    linear-gradient(125deg, #071b36 0%, #002b60 52%, #0750a2 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 54px #00214725
}

.cta-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34%;
  left: -9%;
  width: min(48%, 470px);
  aspect-ratio: 1;
  border: 1px solid #ffffff17;
  border-radius: 50%;
  background: #ffffff08;
  box-shadow: 0 0 0 40px #ffffff05, 0 0 0 82px #ffffff04;
  pointer-events: none
}

.cta-banner::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: min(43%, 440px);
  background:
    radial-gradient(circle, #ffffff30 1px, transparent 1.6px) 0 0 / 13px 13px,
    radial-gradient(ellipse at 100% 50%, #ffffff16 0, transparent 68%);
  opacity: .48;
  mask-image: linear-gradient(90deg, transparent, #000 48%);
  pointer-events: none
}

.cta-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(100%, 720px);
  margin: 0 auto
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: #c1d5ef;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em
}

.cta-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7c96a;
  box-shadow: 0 0 0 5px #f7c96a22
}

.cta-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.05em;
  text-wrap: balance
}

.cta-description {
  max-width: 560px;
  margin: 14px auto 0;
  color: #d3e1f3;
  font-size: 14px;
  line-height: 1.75
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 24px
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 7px 8px 7px 22px;
  border: 1px solid #ffffffa8;
  border-radius: 999px;
  background: #f7faff;
  color: #102b4b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px #061a3540;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease
}

.cta-primary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 32px #061a355c
}

.cta-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0c2e55;
  color: #fff;
  font-size: 18px;
  transition: transform .2s ease, background .2s ease
}

.cta-primary:hover .cta-arrow {
  transform: translateX(2px);
  background: #164b82
}

.cta-signature {
  margin: 27px 0 0;
  color: #c4d5e9;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .18em
}

@media(max-width:760px) {
  .cta-banner {
    min-height: 330px;
    margin-block: 48px 28px;
    padding-block: clamp(38px, 8vw, 54px)
  }

  .cta-banner::before {
    top: -25%;
    left: -22%;
    width: 68%;
    opacity: .8
  }

  .cta-banner::after {
    width: 58%
  }
}

/* ===== Contact extras ===== */
.contact-note {
  margin: 8px 0 26px;
  padding: 18px 22px;
  border: 1px dashed #c7d7ee;
  border-radius: 16px;
  background: #f8fbff;
  color: #475569;
  font-size: 14px;
  line-height: 1.7
}

/* ===== Course badge ===== */
.course-heading-right {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.course-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff3d6;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap
}

/* ===== Responsive: new sections ===== */
@media (max-width: 980px) {

  .stats-band,
  .why-grid,
  .motive-process {
    grid-template-columns: repeat(2, 1fr)
  }

  .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .home-stats-band .home-stat-card:last-child {
    grid-column: 1 / -1;
    min-height: 210px
  }

  .motive-line {
    display: none
  }

  .motive-process {
    row-gap: 14px;
    padding-bottom: 0;
  }

  .motive-card {
    min-height: 200px;
  }

  .review-lower {
    grid-template-columns: 1fr;
    gap: 22px
  }

  /* Stacked layout: the intro must scroll normally, never stick over the form. */
  .review-intro {
    position: static;
    top: auto
  }

  .testi-card {
    flex-basis: 320px
  }
}

@media (max-width: 820px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .faq-intro {
    position: static;
    padding-bottom: 12px
  }
}

@media (max-width: 580px) {

  .stats-band,
  .why-grid,
  .motive-process {
    grid-template-columns: 1fr
  }

  .home-stats-band {
    padding-top: 30px
  }

  .home-stats-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .home-stats-band .home-stat-card,
  .home-stats-band .home-stat-card:last-child {
    grid-column: auto;
    min-height: 190px
  }

  .motive-process {
    gap: 12px;
    margin-top: 0;
  }

  .motive-card {
    min-height: 180px;
    padding: 20px 18px 34px;
  }

  .testi-card {
    flex-basis: min(320px, 82vw)
  }

  .review-box {
    padding: 22px 18px
  }

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

  .cta-primary {
    width: 100%;
    text-align: center
  }

  .faq-answer {
    padding-right: 8px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  .review-track {
    animation: none
  }

  .review-marquee {
    overflow-x: auto
  }
}

/* ===== Role-based dashboard overview ===== */
.dashboard-page {
  padding: clamp(42px, 6vw, 76px) 0 64px
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px
}

.dashboard-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.045em
}

.dashboard-heading>div>p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted)
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px
}

.dashboard-metric,
.dashboard-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px #0f172a08
}

.dashboard-metric {
  position: relative;
  display: flex;
  min-height: 166px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease
}

.dashboard-metric:hover,
.dashboard-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px #0f172a12
}

.dashboard-metric-icon,
.dashboard-list-icon,
.dashboard-course-mark,
.dashboard-empty-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 850
}

.dashboard-metric-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-radius: 12px
}

.dashboard-metric-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700
}

.dashboard-metric strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.04em
}

.dashboard-metric small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px
}

.dashboard-metric-warn .dashboard-metric-icon {
  color: #b45309;
  background: #fffbeb
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: 20px
}

.dashboard-panel {
  min-width: 0;
  padding: 22px
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px
}

.dashboard-panel-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 10px
}

.dashboard-panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.025em
}

.dashboard-live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700
}

.dashboard-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px #d1fae5
}

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

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px
}

.dashboard-table th {
  padding: 9px 10px;
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #edf1f6
}

.dashboard-table td {
  padding: 13px 10px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0
}

.dashboard-table td:first-child {
  min-width: 150px;
  white-space: normal
}

.dashboard-table td strong,
.dashboard-table td small {
  display: block
}

.dashboard-table td strong {
  color: #1e293b;
  font-size: 12px
}

.dashboard-table td small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap
}

.status-pending,
.status-scheduled,
.status-draft {
  background: #fff7ed;
  color: #b45309
}

.status-approved,
.status-active,
.status-submitted,
.status-released {
  background: #ecfdf5;
  color: #047857
}

/* Completion states added by the grading engine sit between active and rejected on the accent scale. */
.status-completed {
  background: #eff6ff;
  color: #002147
}

.status-certified {
  background: #f5f3ff;
  color: #6d28d9
}

.status-rejected,
.status-timed_out {
  background: #fef2f2;
  color: #b91c1c
}

.status-closed {
  background: #f1f5f9;
  color: #475569
}

.dashboard-list {
  display: grid
}

.dashboard-list-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9
}

.dashboard-list-row:last-child {
  border-bottom: 0
}

.dashboard-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 11px
}

.dashboard-list-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px
}

.dashboard-list-copy strong {
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-list-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dashboard-empty {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px dashed #dbe4f0;
  border-radius: 15px;
  background: #f8fafc
}

.dashboard-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 18px
}

.dashboard-empty h3 {
  margin: 0 0 3px;
  color: #1e293b;
  font-size: 14px
}

.dashboard-empty p,
.dashboard-compact-empty p {
  margin: 0;
  color: #64748b;
  font-size: 12px
}

.dashboard-inline-link,
.dashboard-text-link,
.dashboard-compact-empty a {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none
}

.dashboard-inline-link {
  display: inline-block;
  margin-top: 9px
}

/* Available quizzes: attempts summary top-right, aligned with the OPEN NOW eyebrow */
.quiz-attempts-heading {
  align-items: flex-start
}

.quiz-attempts-summary {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap
}

/* Quiz list row: title/meta left, Open quiz button right */
.quiz-list-row {
  align-items: center;
  gap: 16px;
  padding: 16px 0
}

.quiz-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 10px 24px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2a4a70, #1c3a5e);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -8px rgba(0, 33, 71, .75);
  transition: box-shadow .18s ease, background .18s ease
}

.quiz-open-btn:hover {
  background: linear-gradient(135deg, #0d3a6b, #002147);
  color: #fff;
  box-shadow: 0 16px 28px -10px rgba(0, 33, 71, .85), 0 0 18px rgba(30, 64, 175, .45)
}

.quiz-open-btn:active {
  background: linear-gradient(135deg, #0d3a6b, #002147);
  box-shadow: var(--btn-glow-press)
}

@media (max-width: 640px) {
  .quiz-attempts-heading {
    flex-wrap: wrap
  }

  .quiz-list-row {
    flex-wrap: wrap
  }

  .quiz-open-btn {
    width: 100%;
    margin-left: 0
  }
}

.dashboard-text-link {
  white-space: nowrap
}

/* Two panel actions side by side, e.g. Manage and Lessons on the overview. */
.dashboard-heading-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px
}

.dashboard-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px
}

.review-moderation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  align-items: stretch;
  gap: 18px
}

.review-moderation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  padding: 22px;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05)
}

.review-moderation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px
}

.review-moderation-heading .eyebrow {
  margin: 0 0 7px;
  color: #64748b;
  font-size: 10px;
  letter-spacing: .12em
}

.review-moderation-heading h2 {
  margin: 0;
  color: #17233d;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.review-moderation-heading time {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-variant-numeric: tabular-nums
}

.review-moderation-context {
  margin: 14px 0 0;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere
}

.review-moderation-quote {
  margin: 12px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid #d5dfed;
  border-radius: 0 10px 10px 0;
  background: #f7f9fc;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere
}

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

.review-moderation-actions form {
  min-width: 0;
  margin: 0
}

.review-moderation-actions .button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  white-space: normal
}

.review-moderation-actions .button-review-approve {
  background: #23446e;
  box-shadow: 0 5px 14px rgba(35, 68, 110, .18)
}

.review-moderation-actions .button-review-approve:hover {
  background: #15345a;
  box-shadow: 0 8px 20px rgba(21, 52, 90, .28), 0 0 12px rgba(35, 68, 110, .18)
}

.review-moderation-actions .button-review-reject {
  border: 1px solid #e7a0a4;
  background: #c75b62;
  color: #fff;
  box-shadow: 0 3px 10px rgba(185, 28, 28, .12);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease
}

.review-moderation-actions .button-review-reject:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 7px 18px rgba(185, 28, 28, .32), 0 0 14px rgba(220, 38, 38, .28)
}

.review-moderation-actions .button-review-reject:active {
  background: #991b1b;
  color: #fff;
  box-shadow: 0 3px 10px rgba(153, 27, 27, .3)
}

.contact-inbox {
  margin-top: 22px
}

.contact-inbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px
}

.contact-message-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f9fbff)
}

.contact-message-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px
}

.contact-message-heading .eyebrow {
  margin: 0 0 5px;
  overflow-wrap: anywhere
}

.contact-message-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  overflow-wrap: anywhere
}

.contact-message-heading time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px
}

.contact-message-sender {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 13px;
  overflow-wrap: anywhere
}

.contact-message-content {
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.65;
  overflow-wrap: anywhere
}

.contact-inbox-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px
}

.contact-inbox-actions form {
  margin: 0
}

@media (max-width: 600px) {
  .review-moderation-card {
    padding: 17px
  }

  .review-moderation-heading {
    flex-direction: column;
    gap: 6px
  }

  .contact-inbox-list {
    grid-template-columns: minmax(0, 1fr)
  }

  .contact-message-heading {
    flex-direction: column;
    gap: 5px
  }
}

.dashboard-course-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f9fbff);
  transition: transform .22s ease, box-shadow .22s ease
}

.dashboard-course-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: -17px -17px 15px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(135deg, #eff5ff, #e7eef9)
}

.dashboard-course-image .course-card-image-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease, transform .6s ease
}

.dashboard-course-image.is-loaded .course-card-image-media {
  opacity: 1;
  transform: scale(1)
}

.dashboard-course-image .course-image-placeholder {
  font-size: 11px
}

.dashboard-course-image.is-loaded .course-image-placeholder {
  visibility: hidden;
  opacity: 0
}

.dashboard-course-image.is-image-error .course-image-placeholder {
  color: #596b84
}

.dashboard-course-image.is-image-error .course-image-spinner {
  display: none
}

.dashboard-course-top,
.dashboard-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.dashboard-course-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px
}

.dashboard-course-category {
  margin: 15px 0 2px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase
}

.dashboard-course-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3
}

.dashboard-course-meta,
.dashboard-course-foot {
  color: #94a3b8;
  font-size: 11px
}

.dashboard-course-meta {
  margin: 6px 0 15px
}

.dashboard-progress-label {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 10px
}

.dashboard-progress-label strong {
  color: #1e293b
}

.dashboard-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff8
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #002147, #7c3aed)
}

.dashboard-course-foot {
  display: block;
  margin-top: 8px
}

.dashboard-side-stack {
  display: grid;
  gap: 17px
}

.dashboard-side-stack .dashboard-panel {
  padding: 19px
}

.dashboard-side-stack .dashboard-panel-heading {
  margin-bottom: 5px
}

.dashboard-side-stack .dashboard-panel-heading h2 {
  font-size: 17px
}

.dashboard-compact-empty {
  padding: 12px 0 4px
}

.dashboard-compact-empty a {
  display: inline-block;
  margin-top: 8px
}

.dashboard-notification time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 10px
}

.dashboard-note {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 15px;
  background: #eff6ff;
  color: #475569;
  font-size: 12px
}

.dashboard-note strong {
  color: #002147
}

@media(max-width:980px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-columns {
    grid-template-columns: 1fr
  }
}

@media(max-width:600px) {
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .dashboard-metrics {
    gap: 10px
  }

  .dashboard-metric {
    min-height: 153px;
    padding: 15px
  }

  .dashboard-panel {
    padding: 17px
  }

  .dashboard-course-list {
    grid-template-columns: 1fr
  }

  .dashboard-table {
    min-width: 580px
  }
}

@media(prefers-reduced-motion:reduce) {

  .dashboard-metric,
  .dashboard-course-card {
    transition: none
  }
}

/* Student course learning flow */
.learning-page {
  padding-top: 18px
}

.learning-heading {
  align-items: flex-end
}

.learning-heading h1 {
  overflow-wrap: anywhere
}

.learning-progress-count,
.learning-module .dashboard-panel-heading>span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 750
}

.learning-modules {
  display: grid;
  gap: 16px
}

/* The one quiet line a Recorded Only student sees about live classes: it sits above the outline, is
   printed only when the course actually runs classes, and names no lesson. */
.learning-plan-note {
  border-left: 3px solid #c7d2fe;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  padding-left: 12px
}

.learning-module {
  min-width: 0
}

.learning-lesson-list {
  display: grid
}

.learning-lesson-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-top: 1px solid #edf1f6;
  color: inherit;
  text-decoration: none;
  transition: background .18s ease
}

.learning-lesson-row:hover {
  background: #f8faff
}

.learning-lesson-row>span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px
}

.learning-lesson-row strong {
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 13px
}

.learning-lesson-row small {
  color: #94a3b8;
  font-size: 11px
}

.learning-lesson-status {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850
}

.learning-lesson-status.is-complete {
  background: #ecfdf5;
  color: #059669
}

/* Completion lock (proposal 5.7): a certified row is a plain block, not a link, so it must not
   borrow the hover wash or the pointer of the open rows. Muted slate keeps it clearly unavailable
   while sitting in the same rhythm as the watchable lessons above it. */
.learning-lesson-row.is-locked {
  cursor: default;
  opacity: .78
}

.learning-lesson-row.is-locked:hover {
  background: transparent
}

.learning-lesson-status.is-locked {
  background: #f1f5f9;
  color: #94a3b8
}

.learning-videos-locked {
  border-left-color: #fbbf24
}

.learning-lesson-arrow {
  flex: 0 0 auto;
  color: #94a3b8
}

.learning-content {
  display: grid;
  gap: 24px
}

.learning-body {
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere
}

.learning-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6
}

.learning-actions form {
  margin: 0
}

.learning-completed-label {
  color: #047857;
  font-size: 13px;
  font-weight: 800
}

.learning-actions form[hidden],
.learning-completed-label[hidden] {
  display: none
}

.learning-actions-hint {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600
}

/* Recorded lesson video and the watch-time rule */
.lesson-player {
  display: grid;
  gap: 16px
}

.lesson-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border: 0;
  border-radius: 14px
}

.lesson-video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 14px
}

.lesson-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

/* Content protection. The shell is what goes fullscreen, not the media element: a <video> cannot
   hold a child overlay, so marking the element alone would leave the watermark behind on the page
   the moment a student pressed the fullscreen button. */
.lesson-video-shell {
  position: relative;
  border-radius: 14px
}

.lesson-watermark {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none
}

.lesson-watermark-mark {
  position: absolute;
  display: grid;
  gap: 2px;
  max-width: 62%;
  font-size: 11px;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(2, 6, 23, .85)
}

.lesson-watermark-mark b {
  font-weight: 800;
  letter-spacing: .02em
}

.lesson-watermark-mark i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em
}

/* Kept above the control strip, which the browser draws over the bottom of the media element. */
.lesson-watermark-strong {
  right: 12px;
  bottom: 42px;
  padding: 5px 8px;
  color: #fff;
  text-align: right;
  background: rgba(2, 6, 23, .42);
  border-radius: 8px
}

.lesson-watermark-faint {
  top: 14px;
  left: 14px;
  color: rgba(255, 255, 255, .4)
}

.lesson-watch {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 12px
}

.lesson-watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px
}

.lesson-watch-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.lesson-watch-text {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.lesson-watch-track {
  overflow: hidden;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px
}

.lesson-watch-fill {
  display: block;
  width: var(--watch-width, 0%);
  height: 100%;
  background: linear-gradient(90deg, #34d399, #047857);
  border-radius: 999px;
  transition: width .3s ease
}

.lesson-watch-note {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.6
}

.lesson-player-hint {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6
}

/* What the player says out loud when it refuses something. Deliberately no display declaration,
   so the element's own hidden attribute keeps it collapsed without an override. */
.lesson-protection-note {
  margin: 0;
  color: #b45309;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6
}

/* The live class card, printed above the recording: the class happens first, and nobody should have
   to scroll past a player to find the door. Both classes are named so this beats the plain
   .dashboard-panel padding that arrives earlier in the file. */
.dashboard-panel.lesson-live-class {
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-color: #c7d2fe;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 18px 20px
}

.lesson-live-class .eyebrow {
  color: #4338ca;
  margin: 0 0 4px
}

.lesson-live-class h2 {
  font-size: 17px;
  margin: 0 0 6px
}

.lesson-live-class p {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin: 0
}

.lesson-live-class .button {
  flex: 0 0 auto;
  white-space: nowrap
}

@media(max-width:600px) {
  .learning-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .learning-actions,
  .learning-actions form,
  .learning-actions .button {
    width: 100%
  }

  .lesson-video,
  .lesson-video-frame {
    aspect-ratio: 16 / 10
  }

  .dashboard-panel.lesson-live-class {
    align-items: flex-start;
    flex-direction: column
  }

  .lesson-watermark-mark {
    max-width: 72%;
    font-size: 10px
  }

  .lesson-watermark-strong {
    bottom: 48px
  }
}

/* Lesson library (admin) and lesson list (student) */
.lesson-library-page>.admin-alert,
.my-lessons-page>.admin-alert {
  margin-bottom: 20px
}

/* Authoring card on the lesson library page keeps the same 22px block rhythm. */
.lesson-add-card {
  margin-bottom: 22px
}

.lesson-add-card .admin-form {
  margin-top: 4px
}

.form-action-note {
  margin-right: auto;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  text-align: left
}

@media(max-width:820px) {
  .form-action-note {
    width: 100%;
    margin-right: 0
  }
}

/* Single parent KPI panel for the lesson library: one flat surface divided by hairlines,
   no per-metric cards and no hover effects — the panel itself is the only card. */
.lesson-lib-panel-card {
  margin: 4px 0 22px;
  padding: 22px 24px 0;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .03)
}

.lesson-lib-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px
}

.lesson-lib-panel-head .eyebrow {
  margin: 0 0 4px
}

.lesson-lib-panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em
}

.lesson-lib-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #eef2f8
}

.lesson-lib-metric {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 22px;
  border-left: 1px solid #eef2f8
}

.lesson-lib-metric:first-child {
  border-left: 0;
  padding-left: 2px
}

.lesson-lib-metric .admin-stat-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px
}

.lesson-lib-metric .admin-stat-icon svg {
  width: 15px;
  height: 15px
}

.lesson-lib-metric-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px
}

.lesson-lib-metric-body .admin-stat-value {
  font-size: clamp(26px, 2.4vw, 34px)
}

.lesson-lib-metric-body .admin-stat-label {
  color: #5b6b82;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none
}

@media(max-width:980px) {
  .lesson-lib-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .lesson-lib-metric:nth-child(2n + 1) {
    border-left: 0;
    padding-left: 2px
  }

  .lesson-lib-metric {
    border-bottom: 1px solid #eef2f8
  }

  .lesson-lib-metric:nth-child(3),
  .lesson-lib-metric:nth-child(4) {
    border-bottom: 0;
    padding-bottom: 22px
  }

  .lesson-lib-metric:nth-child(1),
  .lesson-lib-metric:nth-child(2) {
    padding-bottom: 16px
  }
}

@media(max-width:640px) {
  .lesson-lib-panel-card {
    padding: 18px 18px 0
  }

  .lesson-lib-metrics-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .lesson-lib-metric {
    border-left: 0;
    padding: 14px 2px
  }

  .lesson-lib-metric:nth-child(3),
  .lesson-lib-metric:nth-child(4) {
    padding-bottom: 14px
  }

  .lesson-lib-metric:nth-child(3) {
    border-bottom: 1px solid #eef2f8
  }

  .lesson-lib-metric:nth-child(4) {
    border-bottom: 0
  }
}

/* Shared "How to use" reference list (components/usage-guide.php). Most readers never work through a
   walkthrough, so this block is a footnote and not a feature: no card of its own, a hairline rule
   above it, one small heading line and a single quiet column of short arrow-marked pointers in the
   site's own navy. Each line is a phrase, not a paragraph, and nothing here is allowed to compete
   with the work printed above it. */
.admin-usage-card {
  margin-top: 22px;
  padding: 14px 2px 4px;
  border-top: 1px solid #e6eefb
}

.admin-usage-eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase
}

/* Heading and intro share one baseline row, so the block opens with a line instead of a title stack. */
.admin-usage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px
}

.admin-usage-title {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere
}

.admin-usage-lead {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere
}

/* One pointer per row, spaced so the block reads as a list of links rather than a paragraph. */
.admin-usage-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none
}

.admin-usage-list>li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: center
}

/* Arrow in a soft ring, stroked so it inherits its colour from the CSS instead of a fixed fill. */
.admin-usage-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #eaf0fb;
  color: var(--blue)
}

.admin-usage-check svg {
  display: block;
  width: 15px;
  height: 15px
}

.admin-usage-copy {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere
}

@media(max-width:600px) {
  .admin-usage-card {
    padding: 12px 0 2px
  }

  .admin-usage-list {
    gap: 11px
  }
}

/* Consistent 22px rhythm between the top-level blocks of every admin workspace page. */
.dashboard-page>.admin-card+.admin-card,
.dashboard-page>.admin-card+.dashboard-panel,
.dashboard-page>.dashboard-panel+.admin-card,
.dashboard-page>.admin-card+section {
  margin-top: 22px
}

/* Shared mobile rules for admin workspace pages: data tables become stacked cards
   (never a hidden horizontal scroll) and button groups stack full width so every
   control and note stays clearly visible. */
@media(max-width:760px) {

  .admin-table-stacked thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
  }

  .admin-table-wrapper:has(.admin-table-stacked) {
    overflow-x: visible
  }

  /* A card header that carries a control of its own (the delivery log's Clear activity button)
     has to let that control drop under the heading instead of squeezing the title. */
  .admin-card-header {
    flex-wrap: wrap
  }

  .admin-table-stacked,
  .admin-table-stacked tbody,
  .admin-table-stacked tr,
  .admin-table-stacked td {
    display: block;
    width: 100%
  }

  .admin-table-stacked tbody {
    padding: 12px
  }

  .admin-table-stacked tr {
    margin: 0 0 12px;
    padding: 6px 14px;
    border: 1px solid #e6ecf4;
    border-radius: 16px;
    background: #fff
  }

  .admin-table-stacked tbody tr:last-child {
    margin-bottom: 0
  }

  /* .admin-table-stacked alone would lose to the plain .admin-table td rule further down the
     sheet, so the compact stacked padding is repeated with the table class in front of it. */
  .admin-table.admin-table-stacked td {
    display: grid;
    grid-template-columns: minmax(88px, .36fr) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid #edf1f6;
    border-right: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere
  }

  .admin-table-stacked td:last-child {
    border-bottom: 0
  }

  .admin-table-stacked tbody tr:hover td {
    background: transparent
  }

  .admin-table-stacked td::before {
    content: attr(data-label);
    color: #8391a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }

  .admin-table-stacked .table-course-item {
    justify-content: flex-end;
    text-align: left
  }

  .admin-table-stacked td.admin-table-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    text-align: left
  }

  .admin-table-stacked td.admin-table-actions::before {
    align-self: start
  }

  .admin-table-stacked .admin-table-actions form,
  .admin-table-stacked .admin-edit-trigger {
    display: flex;
    width: 100%
  }

  .admin-table-stacked .admin-table-actions form {
    margin: 0
  }

  .admin-table-stacked .admin-edit-trigger {
    justify-content: center
  }

  /* Button + helper note rows stack: button on top full width, note below. */
  .form-actions {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px
  }

  .form-actions .button,
  .form-actions button[type="submit"] {
    width: 100%;
    justify-content: center
  }

  .form-actions .form-action-note {
    width: 100%;
    margin-right: 0;
    text-align: left
  }
}

@media(max-width:640px) {

  .student-directory-table .student-row-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px
  }

  .student-row-actions .student-activity-link,
  .student-row-actions .student-status-form,
  .student-row-actions .student-action-button {
    width: 100%;
    justify-content: center;
    margin-left: 0
  }
}

.lesson-lib-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .9fr) minmax(165px, .8fr) minmax(175px, .8fr) auto;
  align-items: end;
  gap: 14px;
  margin: 20px 0 22px;
  padding: 18px;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 18px;
  background: #f7f9fd
}

.lesson-lib-filters label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #44536b;
  font-size: 14px;
  font-weight: 700
}

.lesson-lib-filters .admin-input,
.lesson-lib-filters .admin-select {
  width: 100%;
  min-width: 0
}

.lesson-lib-filter-actions {
  display: flex;
  gap: 8px
}

.lesson-lib-filter-actions .button {
  white-space: nowrap
}

.lesson-lib-identity {
  display: grid;
  min-width: 0;
  gap: 3px
}

.lesson-lib-identity strong {
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 13.5px
}

.lesson-lib-identity small {
  overflow-wrap: anywhere;
  color: #94a3b8;
  font-size: 11.5px
}

.lesson-lib-video {
  display: grid;
  min-width: 0;
  gap: 3px
}

.lesson-lib-video strong {
  color: #1e293b;
  font-size: 12.5px
}

.lesson-lib-video small {
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 11.5px
}

.lesson-lib-video-none {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600
}

.lesson-lib-video-warning {
  color: #b45309
}

.lesson-lib-reach {
  display: flex;
  min-width: 200px;
  align-items: center;
  gap: 10px
}

.lesson-lib-reach-text {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap
}

.lesson-lib-reach-text strong {
  color: #1e293b
}

.lesson-lib-reach-track {
  position: relative;
  display: block;
  flex: 1 1 auto;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7
}

.lesson-lib-reach-fill {
  display: block;
  width: var(--lesson-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #002147, #002147)
}

.lesson-lib-reach-value {
  min-width: 38px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  text-align: right
}

.lesson-lib-watching {
  display: block;
  margin-top: 5px;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 600
}

.lesson-lib-pagination,
.my-lesson-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 13px
}

.lesson-lib-pagination>div,
.my-lesson-pagination>div {
  display: flex;
  gap: 8px
}

.my-lesson-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 22px;
  padding: 20px 24px;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 12px 34px #0f172a08
}

.my-lesson-summary-count {
  display: grid;
  min-width: 130px;
  gap: 2px
}

.my-lesson-summary-count strong {
  color: var(--navy, #0b1f3a);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em
}

.my-lesson-summary-count span {
  color: var(--muted, #667892);
  font-size: 12.5px;
  font-weight: 600
}

.my-lesson-summary-bar {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px
}

.my-lesson-summary-track {
  position: relative;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7
}

.my-lesson-summary-fill {
  display: block;
  width: var(--my-lesson-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea36f, #34d399)
}

.my-lesson-summary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px
}

.my-lesson-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700
}

.my-lesson-chip-progress {
  color: #002147;
  background: #e8efff
}

.my-lesson-chip-todo {
  color: #64748b;
  background: #f1f5f9
}

.my-lesson-summary-percent {
  margin-left: auto;
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800
}

.my-lesson-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px
}

.my-lesson-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px
}

.my-lesson-filters .admin-select {
  min-width: 150px
}

.my-lesson-list {
  display: grid;
  gap: 12px;
  margin-top: 20px
}

.my-lesson-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e7edf5;
  border-left: 4px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease
}

.my-lesson-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px #0f172a0f
}

.my-lesson-completed {
  border-left-color: #0ea36f
}

.my-lesson-progress {
  border-left-color: #002147
}

.my-lesson-main {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px
}

.my-lesson-main .eyebrow {
  margin: 0;
  font-size: 10px
}

.my-lesson-main h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #122036;
  font-size: 15px
}

.my-lesson-meta {
  margin: 0;
  overflow-wrap: anywhere;
  color: #94a3b8;
  font-size: 12px
}

/* A word, not a link: this marks the lesson as holding a live class for the students whose plan
   may open one. It sits in a paragraph of plain text, hence the inline-block and the own metrics. */
.my-lesson-live {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.my-lesson-status {
  display: grid;
  flex: 0 0 190px;
  gap: 6px;
  justify-items: start
}

.my-lesson-status small {
  color: #64748b;
  font-size: 11.5px
}

.my-lesson-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800
}

.my-lesson-state-completed {
  color: #067647;
  background: #e7f8ef
}

.my-lesson-state-progress {
  color: #002147;
  background: #e8efff
}

.my-lesson-state-todo {
  color: #64748b;
  background: #f1f5f9
}

.my-lesson-track {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7
}

.my-lesson-fill {
  display: block;
  width: var(--my-lesson-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #002147, #002147)
}

.my-lesson-row>.button {
  flex: 0 0 auto;
  white-space: nowrap
}

/* The lesson library deep-links here, so the opened editor is easy to spot. */
.lesson-editor:target {
  border-color: #bfd3ff;
  box-shadow: 0 0 0 3px #e8efff
}

@media(max-width:900px) {
  .lesson-lib-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .lesson-lib-filter-actions {
    grid-column: 1 / -1
  }
}

@media(max-width:820px) {
  .my-lesson-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 16px
  }

  .my-lesson-summary-count {
    min-width: 0
  }
}

@media(max-width:700px) {
  .lesson-lib-table thead {
    display: none
  }

  .lesson-lib-table,
  .lesson-lib-table tbody,
  .lesson-lib-table tr,
  .lesson-lib-table td {
    display: block;
    width: 100%
  }

  .lesson-lib-table td {
    display: grid;
    grid-template-columns: minmax(80px, 30%) 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9
  }

  .lesson-lib-table td::before {
    content: attr(data-label);
    color: #8391a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }

  .lesson-lib-table td[data-label="Actions"] {
    border-bottom: none
  }

  .lesson-lib-reach {
    min-width: 0;
    width: 100%
  }

  .my-lesson-row {
    flex-wrap: wrap;
    gap: 12px
  }

  .my-lesson-main {
    flex: 1 1 100%
  }

  .my-lesson-status {
    flex: 1 1 auto
  }

  .my-lesson-row>.button {
    flex: 1 1 100%;
    justify-content: center
  }
}

/* Manual course payment and review */
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px
}

.payment-checkout-page {
  max-width: 1120px;
  margin-inline: auto
}

.payment-hero-banner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid #204d7b;
  border-radius: 22px;
  background: linear-gradient(120deg, #06264a 0%, #0c3b6c 62%, #175a93 100%);
  box-shadow: 0 22px 48px rgba(7, 35, 67, .18)
}

.payment-hero-copy { max-width: 650px }
.payment-hero-copy .eyebrow { margin: 0 0 9px; color: #a9c9e8 }
.payment-hero-copy h1 { margin: 0; color: #fff; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.045em; line-height: 1.04 }
.payment-hero-copy>p:not(.eyebrow) { max-width: 620px; margin: 13px 0 0; color: #d2e2f2; font-size: 15px; line-height: 1.65 }
.payment-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px }
.payment-hero-pills span { padding: 7px 11px; border: 1px solid #80a8cd66; border-radius: 999px; background: #ffffff12; color: #e5f0fb; font-size: 11px; font-weight: 750 }
.payment-hero-status { display: grid; align-content: center; justify-items: center; flex: 0 0 190px; gap: 7px; padding: 20px 16px; border: 1px solid #a8c9e855; border-radius: 16px; background: #ffffff12; text-align: center }
.payment-hero-status-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #d8f5e7; color: #137347; font-size: 21px; font-weight: 900 }
.payment-hero-status strong { color: #fff; font-size: 13px }
.payment-hero-status small { color: #c4dced; font-size: 11px; line-height: 1.45 }

.payment-help {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #eff6ff;
  color: #002147;
  font-size: 13px;
  line-height: 1.6
}

.payment-help>strong {
  display: block;
  margin-bottom: 8px;
  color: #002147
}

.payment-account-details {
  display: grid;
  gap: 8px;
  margin: 12px 0
}

.payment-account-details>div {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #dbeafe
}

.payment-account-details dt {
  color: #526581;
  font-weight: 600
}

.payment-account-details dd {
  margin: 0;
  color: #172554;
  font-weight: 700;
  overflow-wrap: anywhere
}

.payment-help p {
  margin: 10px 0 0
}

.payment-pending-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: linear-gradient(145deg, #fafdff 0%, #eef6ff 100%);
  box-shadow: 0 14px 34px rgba(15, 42, 78, .08)
}

.payment-pending-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px
}

.payment-pending-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #fff4dc;
  color: #b45309
}

.payment-pending-icon svg {
  width: 25px;
  height: 25px
}

.payment-pending-heading .eyebrow {
  margin: 2px 0 5px;
  color: #476b91
}

.payment-pending-heading h3 {
  margin: 0;
  color: #102f54;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.025em
}

.payment-pending-heading p:last-child {
  margin: 6px 0 0;
  color: #607894;
  font-size: 13px;
  line-height: 1.55
}

.payment-pending-badge {
  padding: 7px 11px;
  border: 1px solid #f4c979;
  border-radius: 999px;
  background: #fff8e9;
  color: #9a5b08;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase
}

.payment-pending-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px
}

.payment-pending-progress span {
  height: 6px;
  border-radius: 999px;
  background: #d7e2ef
}

.payment-pending-progress .is-complete {
  background: #2b78b7
}

.payment-pending-progress .is-current {
  background: linear-gradient(90deg, #2b78b7 0%, #e5ad42 48%, #d7e2ef 100%)
}

.payment-pending-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: -8px 0 0;
  list-style: none
}

.payment-pending-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  color: #71849c
}

.payment-pending-steps li span {
  display: grid;
  grid-row: span 2;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #cbd8e7;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800
}

.payment-pending-steps strong {
  color: #536b86;
  font-size: 12px
}

.payment-pending-steps small {
  font-size: 10px;
  line-height: 1.35
}

.payment-pending-steps li.is-complete span {
  border-color: #2b78b7;
  background: #2b78b7;
  color: #fff
}

.payment-pending-steps li.is-complete strong,
.payment-pending-steps li.is-current strong {
  color: #173f68
}

.payment-pending-steps li.is-current span {
  border-color: #d89a2b;
  background: #fff4dc;
  color: #a56308
}

.payment-pending-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  background: #dce7f4
}

.payment-pending-summary div {
  min-width: 0;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .82)
}

.payment-pending-summary dt {
  color: #71849c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase
}

.payment-pending-summary dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #173f68;
  font-size: 13px;
  font-weight: 750
}

.payment-pending-note {
  padding: 14px 16px;
  border-left: 3px solid #2b78b7;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72)
}

.payment-pending-note strong {
  color: #173f68;
  font-size: 13px
}

.payment-pending-note p {
  margin: 5px 0 0;
  color: #607894;
  font-size: 12px;
  line-height: 1.6
}

.assignment-admin-list,
.assignment-review-list,
.assignment-student-list {
  display: grid;
  gap: 14px
}

.assignment-admin-row,
.assignment-review-item,
.assignment-student-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  background: #fff
}

.assignment-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px
}

.assignment-admin-row h3,
.assignment-review-item h3 {
  margin: 4px 0;
  font-size: 17px
}

.assignment-admin-row p,
.assignment-review-item p {
  margin: 4px 0;
  color: #64748b
}

.assignment-submission-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px
}

.assignment-submission-text {
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fc;
  line-height: 1.65;
  overflow-wrap: anywhere
}

.assignment-review-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8edf5
}

.assignment-student-card {
  display: grid;
  gap: 14px
}

.assignment-student-card>p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  overflow-wrap: anywhere
}

.assignment-student-card .admin-form {
  padding-top: 14px;
  border-top: 1px solid #e8edf5
}

.assignment-rubric-lead {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px
}

.assignment-rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px
}

.assignment-rubric-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 12px;
  background: #f7f9fc
}

.assignment-rubric-result li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px
}

.assignment-rubric-result span {
  color: #64748b
}

.assignment-rubric-result strong {
  color: #0f172a
}

.assignment-submission-link {
  margin: 12px 0 0;
  overflow-wrap: anywhere
}

.assignment-late-flag {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600
}

.notification-recipient-picker {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce4f0;
  border-radius: 14px
}

.notification-recipient-picker[hidden] {
  display: none
}

.notification-recipient-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer
}

.notification-recipient-picker label span {
  display: grid;
  min-width: 0;
  gap: 3px
}

.notification-recipient-picker label small {
  color: #64748b;
  overflow-wrap: anywhere
}

.notification-admin-list,
.notification-list {
  display: grid;
  gap: 12px
}

.notification-admin-card,
.notification-student-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none
}

.notification-admin-card h3 {
  margin: 4px 0;
  font-size: 18px
}

/* The inbox is a list you scan, not a page you read, so a student card is set tighter than the
   announcement card it shares its markup shape with: smaller title, smaller body, less air. */
.notification-student-card h2 {
  margin: 2px 0;
  font-size: 15px
}

.notification-admin-card p {
  margin: 6px 0;
  color: #64748b;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.notification-student-card p {
  margin: 4px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere
}

.notification-student-card .eyebrow {
  margin: 0;
  font-size: 10.5px
}

.notification-student-card .dashboard-inline-link {
  margin-top: 6px
}

.notification-admin-meta {
  display: grid;
  align-content: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap
}

.notification-student-card {
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  padding: 15px 16px;
  transition: border-color .18s ease, transform .18s ease
}

.notification-student-card:hover {
  transform: translateY(-2px);
  border-color: #c3d3e8
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent
}

.notification-student-card.is-unread .notification-unread-dot {
  background: var(--blue, #002147);
  box-shadow: 0 0 0 4px #eaf0ff
}

.conversation-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8eefc;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em
}

.conversation-avatar-academy {
  background: linear-gradient(140deg, var(--blue), #0d3a6b);
  color: #fff;
  box-shadow: 0 8px 18px #00214733
}

.chat-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chat-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none
}

.chat-filter-chip small {
  color: #94a3b8;
  font-variant-numeric: tabular-nums
}

.chat-filter-chip.is-active {
  border-color: #002147;
  background: #eaf0ff;
  color: var(--blue-dark)
}

.chat-filter-chip.is-active small {
  color: var(--blue-dark)
}

/* Standalone chat: a compact conversation list and a full-height message panel, without a
   notification-detail rail or any unused space beside the bubbles. */
.professional-chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #dbe4f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px #0f172a0d
}

.professional-chat-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 10px;
  border-right: 1px solid #e5eaf2;
  background: #f8fafc;
  overflow: auto
}

.professional-chat-list-head {
  display: grid;
  gap: 10px;
  padding: 7px 8px 13px;
  color: #172554;
  font-size: 14px
}

/* The student picker is the one control on this rail that has to look deliberate. The native arrow
   sat against the border, so the box carries its own: appearance is switched off, the text keeps a
   right gutter, and the chevron is drawn in the theme navy at a measured distance from the edge. */
.professional-chat-list select {
  width: 100%;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23002147' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #334155;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer
}

.professional-chat-list select:hover {
  border-color: #94a3b8
}

.professional-chat-list select:focus-visible {
  outline: none;
  border-color: var(--blue, #002147);
  box-shadow: 0 0 0 4px #dbeafe
}

.professional-chat-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
  color: #334155;
  text-decoration: none
}

.professional-chat-contact:hover,
.professional-chat-contact.is-active {
  background: #e8f0ff;
  color: #002147
}

.professional-chat-contact span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px
}

.professional-chat-contact strong,
.professional-chat-contact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.professional-chat-contact strong {
  font-size: 13px
}

.professional-chat-contact small {
  color: #718096;
  font-size: 11px
}

.professional-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 620px;
  background: #fff
}

.professional-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid #e7edf5
}

.professional-chat-head .chat-head-copy {
  display: grid;
  gap: 2px
}

.professional-chat-head strong {
  color: #14213d
}

.professional-chat-head small {
  color: #75839a;
  font-size: 12px
}

.professional-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: linear-gradient(135deg, #f8fbff, #fff 45%, #f8fafc)
}

.professional-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 76%
}

.professional-message.is-mine {
  align-self: flex-end;
  align-items: flex-end
}

.professional-bubble {
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: #334155;
  line-height: 1.55;
  box-shadow: 0 3px 10px #0f172a08;
  overflow-wrap: anywhere
}

.professional-message.is-mine .professional-bubble {
  border: 0;
  border-radius: 16px 16px 4px 16px;
  background: #002147;
  color: #fff;
  box-shadow: 0 6px 16px #0021473b
}

.professional-message time {
  color: #94a3b8;
  font-size: 10.5px
}

.professional-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #e5eaf2;
  background: #fff
}

.professional-composer textarea {
  min-height: 52px;
  resize: vertical;
  padding: 13px 14px;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
  color: #1e293b;
  font: inherit;
  outline: none
}

.professional-composer textarea:focus {
  border-color: #002147;
  box-shadow: 0 0 0 4px #dbeafe
}

.professional-send {
  min-width: 105px;
  min-height: 52px;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  box-shadow: 0 7px 16px #0021473d
}

/* A conversation's own actions are kept behind one quiet button at the right end of the header. The
   panel is placed under the button rather than after it, so opening it never pushes the feed down. */
.chat-thread-menu {
  position: relative;
  margin-left: auto
}

.chat-menu-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer
}

.chat-menu-toggle svg {
  width: 18px;
  height: 18px
}

.chat-menu-toggle:hover,
.chat-menu-toggle[aria-expanded="true"] {
  border-color: #dbe4f1;
  background: #eef4ff;
  color: var(--blue, #002147)
}

.chat-menu-toggle:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px
}

.chat-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 24;
  display: grid;
  gap: 2px;
  width: 248px;
  padding: 8px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px #0f172a24
}

/* The panel is printed closed and the button only flips the attribute, so the attribute needs its own
   line: a display set by the author above outranks the browser's own [hidden] handling, and without
   this rule the menu sits open on every load and the button appears to do nothing. */
.chat-menu[hidden] {
  display: none
}

.chat-menu-label {
  margin: 2px 8px 6px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.chat-menu-form {
  display: grid;
  margin: 0
}

/* One shape for both lines, so the button that clears and the link that deletes read as the same
   choice list rather than as two kinds of control. */
.chat-menu-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer
}

.chat-menu-item small {
  color: #75839a;
  font-size: 11px;
  font-weight: 500
}

.chat-menu-item:hover,
.chat-menu-item:focus-visible {
  background: #eef4ff;
  color: var(--blue, #002147);
  outline: none
}

.chat-menu-item.is-danger,
.chat-menu-item.is-danger small {
  color: #b42318
}

.chat-menu-item.is-danger:hover,
.chat-menu-item.is-danger:focus-visible {
  background: #fef2f2;
  color: #981c13
}

/* Emoji are inserted as text, so the picker is a panel of buttons and never a form control: it cannot
   submit the composer by itself. It opens upward, because the composer sits at the foot of the page,
   and it stops short of the screen edges on a phone. */
.chat-emoji-anchor {
  position: relative;
  display: grid;
  justify-items: start
}

.chat-emoji-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer
}

.chat-emoji-toggle svg {
  width: 20px;
  height: 20px
}

.chat-emoji-toggle:hover,
.chat-emoji-toggle[aria-expanded="true"] {
  border-color: var(--blue, #002147);
  background: #eaf0ff;
  color: var(--blue, #002147)
}

.chat-emoji-toggle:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px
}

.chat-emoji-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 26;
  display: grid;
  gap: 6px;
  width: min(320px, 78vw);
  max-height: 268px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #dbe4f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px #0f172a24
}

/* The picker is closed the same way as the menu above, for the same reason. */
.chat-emoji-popover[hidden] {
  display: none
}

.chat-emoji-group {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

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

.chat-emoji {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  cursor: pointer
}

.chat-emoji:hover,
.chat-emoji:focus-visible {
  background: #eef4ff;
  outline: none
}

/* Nothing on the rail is a different case from an empty thread: here not even a conversation exists
   yet, and the reader should be told which of the two they are looking at. */
.professional-chat-none {
  margin: 6px 8px;
  color: #75839a;
  font-size: 12px;
  line-height: 1.5
}

.professional-chat-empty {
  display: grid;
  place-content: center;
  min-height: 100%;
  padding: 40px;
  text-align: center;
  color: #64748b
}

.professional-chat-empty h2 {
  margin: 0 0 6px;
  color: #1e293b;
  font-size: 18px
}

.professional-chat-empty p {
  margin: 0
}

@media(max-width:760px) {
  .professional-chat-layout {
    grid-template-columns: 1fr;
    min-height: 0
  }

  .professional-chat-list {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid #e5eaf2
  }

  .professional-chat-main {
    min-height: 520px
  }

  .professional-composer {
    padding: 12px;
    grid-template-columns: auto minmax(0, 1fr)
  }

  .professional-send {
    grid-column: 1/-1;
    width: 100%
  }

  .professional-message {
    max-width: 90%
  }
}

/* The board sends; these two lines say where the reading and the reporting happen now. */
.announcement-routing {
  display: grid;
  gap: 12px
}

.announcement-routing-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc
}

.announcement-routing-item strong {
  color: var(--navy);
  font-size: 14px
}

.announcement-routing-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6
}

.payment-form {
  display: grid;
  gap: 17px
}

.payment-form .admin-label span {
  margin-left: auto;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500
}

.payment-form input[type=file] {
  padding: 10px;
  background: #fff
}

.payment-form>.button {
  justify-self: start
}

.payment-review-list {
  display: grid;
  gap: 16px
}

.payment-review-card {
  display: grid;
  gap: 18px
}

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

.payment-review-meta>div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 13px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #f8fafc
}

.payment-review-meta small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em
}

.payment-review-meta strong,
.payment-review-meta a {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 12px
}

.payment-review-meta a {
  color: var(--blue-dark);
  text-decoration: none
}

.payment-decision-form {
  display: grid;
  gap: 14px;
  padding-top: 17px;
  border-top: 1px solid #edf1f6
}

.payment-decision-form .dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.payment-receipt-link {
  justify-self: start
}

@media(max-width:900px) {
  .payment-hero-banner {
    flex-direction: column
  }

  .payment-hero-status {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    flex: 0 0 auto;
    text-align: left
  }

  .payment-hero-status-icon {
    grid-row: span 2
  }

  .payment-layout {
    grid-template-columns: 1fr
  }
}

@media(max-width:820px) {
  .contact-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0
  }

  .contact-intro,
  .contact-form-panel {
    min-width: 0;
    width: 100%
  }

  .contact-title {
    font-size: clamp(42px, 13vw, 60px)
  }

  .contact-lead {
    max-width: none;
    font-size: 16px
  }

  .contact-form-panel {
    padding: 26px 20px;
    border-radius: 20px
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px
  }
}

@media(max-width:600px) {
  .payment-pending-heading {
    grid-template-columns: auto minmax(0, 1fr)
  }

  .payment-pending-badge {
    grid-column: 2;
    justify-self: start
  }

  .payment-pending-steps {
    gap: 8px
  }

  .payment-pending-steps small {
    display: none
  }

  .dashboard-course-image {
    margin: -17px -17px 14px
  }
}

@media(max-width:760px) {
  .assignment-admin-row {
    grid-template-columns: minmax(0, 1fr) auto
  }

  .assignment-admin-row>span:nth-last-child(-n+2) {
    grid-column: 1/-1
  }
}

@media(max-width:600px) {
  .notification-admin-card {
    grid-template-columns: 1fr
  }

  .notification-admin-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    white-space: normal
  }

  .assignment-submission-heading {
    display: grid
  }

  .assignment-admin-row {
    grid-template-columns: 1fr
  }

  .assignment-admin-row>span:nth-last-child(-n+2) {
    grid-column: auto
  }

  .payment-account-details>div {
    grid-template-columns: 1fr;
    gap: 3px
  }

  .payment-review-meta {
    grid-template-columns: 1fr
  }

  .payment-decision-form .dashboard-actions,
  .payment-decision-form .button,
  .payment-form>.button,
  .payment-receipt-link {
    width: 100%
  }

  .payment-form>.button,
  .payment-receipt-link {
    justify-self: stretch
  }
}

/* ===== LMS dashboard workspace shell ===== */
body.dashboard-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f3f6fc
}

body.dashboard-shell>.topbar,
body.dashboard-shell>.site-footer {
  display: none
}

body.dashboard-shell>main.dashboard-container {
  width: auto;
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 272px;
  padding: 0 clamp(20px, 3.5vw, 54px);
  overflow-x: clip
}

.dashboard-sidebar {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  display: flex;
  width: 272px;
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid #e5ebf4;
  background: #fff;
  overflow: hidden
}

/* The brand block and the logout card stay pinned; only the nav links travel.
   The top edge slides under the WORKSPACE caption, while extra bottom scroll
   space keeps the last active link clear of the logout card. */
.dashboard-sidebar-head {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  background: #fff
}

.dashboard-sidebar-head::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(180deg, #fff, #fff0)
}

.dashboard-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 22px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.03em
}

.dashboard-sidebar-brand .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto
}

.dashboard-sidebar-brand small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: .16em
}

.dashboard-side-nav {
  display: grid;
  gap: 5px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  margin: -34px 0 0;
  padding: 34px 0 48px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch
}

.dashboard-side-nav::-webkit-scrollbar {
  width: 6px
}

.dashboard-side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1
}

.dashboard-side-nav::-webkit-scrollbar-track {
  background: transparent
}

.dashboard-nav-caption {
  padding: 6px 12px 8px;
  color: #9aa8bc;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em
}

.dashboard-side-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease
}

.dashboard-side-nav a .dashboard-nav-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f1f5fb;
  color: #8a9ab2;
  font-size: 9px;
  font-weight: 850
}

.dashboard-side-nav a:hover {
  background: #f5f8ff;
  color: var(--blue-dark)
}

.dashboard-side-nav a.active {
  background: #e6efff;
  color: var(--blue-dark);
  font-weight: 800
}

/* A pale background alone does not survive a sidebar that scrolls back to the
   top on every load, so the current page also carries an accent bar on the
   edge of the rail. */
.dashboard-side-nav a.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blue)
}

.dashboard-side-nav a.active .dashboard-nav-number {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px #00214733
}

.dashboard-sidebar-bottom {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: auto;
  /* No top gap and no white fade: the navy card's own top edge is the mask, so the links
     slide straight behind the card instead of resting on a white strip above it. */
  padding-top: 0;
  background: transparent
}

.dashboard-logout-card {
  position: relative;
  overflow: visible;
  display: block;
  margin-top: 0;
  padding: 32px 18px 18px;
  border-radius: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M4 26c14-22 26-22 40 0s26 22 40 0 20-16 32-6' fill='none' stroke='%23ffffff' stroke-opacity='0.15' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") top right 10px/104px 34px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M4 26c14-22 26-22 40 0s26 22 40 0 20-16 32-6' fill='none' stroke='%23ffffff' stroke-opacity='0.15' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") bottom left 10px/104px 34px no-repeat, linear-gradient(160deg, #002147, #001530);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 34px #00214740
}

/* TSG logo badge (same mark as the sidebar brand) that overlaps the top edge. */
.dashboard-logout-mark {
  position: absolute;
  z-index: 2;
  top: -21px;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 4px #fff, 0 8px 16px #00152f4d
}

.dashboard-logout-mark.brand-logo {
  overflow: hidden;
  padding: 3px;
  background: #fff;
}

.dashboard-logout-mark.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.dashboard-logout-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0 0 16px
}

.dashboard-logout-identity strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff
}

.dashboard-logout-identity p {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a9bdd8;
  font-size: 12px;
  line-height: 1.5
}

.dashboard-logout-card form {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0
}

.dashboard-logout-card button {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #002147;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 8px 18px #00152f59;
  transition: transform .16s ease, background .18s ease
}

.dashboard-logout-card button:hover {
  background: #fff;
  transform: translateY(-1px)
}

.dashboard-logout-card button:active {
  transform: translateY(0)
}

/* Swipe-to-logout control (desktop account card only). The handle is a real submit button, so it
   works with no JavaScript and from the keyboard; main.js layers the drag gesture on top and opens
   the confirmation dialog only when the handle is released at the right edge. These rules come after
   the pill button rules above so they win on the shared handle selectors. */
.logout-swipe {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: #00152f;
  box-shadow: inset 0 1px 0 #ffffff14
}

.logout-swipe-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, #0a2a52, #14406f)
}

.logout-swipe-label {
  position: absolute;
  right: 16px;
  left: 56px;
  color: #a9bdd8;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .18s ease
}

.dashboard-logout-card .logout-swipe-handle {
  position: relative;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 3px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--blue);
  cursor: grab;
  box-shadow: 0 6px 14px #00000059;
  touch-action: none;
  transition: transform .18s ease, box-shadow .18s ease
}

.dashboard-logout-card .logout-swipe-handle:hover {
  background: #fff;
  transform: none
}

/* The handle reuses the shared rail icon, which the desktop sidebar hides with the global
   `.dashboard-nav-icon { display: none }`, so it is switched back on and sized for the knob. */
.logout-swipe-handle .dashboard-nav-icon {
  display: block;
  width: 20px;
  height: 20px
}

.dashboard-logout-card .logout-swipe-handle[data-dragging="1"] {
  cursor: grabbing;
  box-shadow: 0 8px 18px #00000073
}

.logout-swipe.is-complete .logout-swipe-label {
  opacity: 0
}

@media (prefers-reduced-motion: reduce) {

  .logout-swipe-fill,
  .logout-swipe-label,
  .dashboard-logout-card .logout-swipe-handle {
    transition: none
  }
}

/* The sidebar account footer is a centered card with an overlapping badge:
   icon, name + role, email and a compact pill sign-out button. */
@media(min-width:901px) {
  .dashboard-logout-card {
    padding: 34px 20px 20px
  }
}

/* Dashboard pages share the Academy's required navy instead of the generic
   blue accent used by the public marketing site. */
body.dashboard-shell {
  --att-blue: var(--blue);
  --att-blue-soft: #e8eef5
}

.logout-confirm {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px
}

.logout-confirm[hidden] {
  display: none
}

.logout-confirm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #06142699;
  backdrop-filter: blur(5px);
  cursor: default
}

.logout-confirm-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid #dce6ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px #0614264d;
  text-align: center;
  animation: logout-confirm-in .2s ease-out
}

.logout-confirm-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 17px;
  background: #fff1f2;
  color: #b42318
}

.logout-confirm-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none
}

.logout-confirm-dialog h2 {
  margin: 0;
  color: #102a43;
  font-size: 21px;
  letter-spacing: -.025em
}

.logout-confirm-dialog p {
  margin: 9px auto 23px;
  max-width: 300px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6
}

.logout-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.logout-confirm-actions .button {
  justify-content: center;
  min-height: 44px
}

.logout-confirm-submit {
  border-color: #b42318 !important;
  background: #b42318 !important;
  color: #fff !important
}

.logout-confirm-submit:hover {
  background: #991b1b !important
}

@keyframes logout-confirm-in {
  from {
    opacity: 0;
    transform: translateY(9px) scale(.98)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.dashboard-sidebar-scrim {
  display: none
}

.dashboard-topbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  padding: 24px 0 8px
}

.dashboard-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px
}

.dashboard-breadcrumb i {
  font-style: normal;
  color: #c2ccda
}

.dashboard-breadcrumb strong {
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-search {
  display: flex;
  width: min(360px, 40vw);
  min-width: 180px;
  height: 42px;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid #e4eaf3;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8
}

.dashboard-search>span {
  font-size: 23px;
  line-height: 1
}

.dashboard-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 12px
}

.dashboard-search input::placeholder {
  color: #a3afc1
}

.dashboard-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #fff;
  cursor: pointer
}

.dashboard-menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #334155
}

.dashboard-heading {
  align-items: center;
  margin: 14px 0 28px
}

.dashboard-heading h1 {
  font-size: clamp(29px, 3.2vw, 42px)
}

.dashboard-heading>div>p:last-child {
  margin-top: 8px
}

.dashboard-metrics,
.dashboard-columns,
.dashboard-panel,
.dashboard-course-list {
  min-width: 0;
  max-width: 100%
}

.dashboard-columns {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr)
}

.dashboard-table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain
}

.dashboard-panel,
.dashboard-metric,
.dashboard-course-card {
  overflow-wrap: anywhere
}

@media(max-width:900px) {
  body.dashboard-shell>main.dashboard-container {
    margin-left: 0;
    padding-inline: clamp(16px, 4vw, 30px)
  }

  .dashboard-sidebar {
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 16px 0 40px #0f172a1a
  }

  body.dashboard-menu-open .dashboard-sidebar {
    transform: translateX(0)
  }

  .dashboard-sidebar-scrim {
    position: fixed;
    z-index: 90;
    inset: 0;
    border: 0;
    background: #0f172a70
  }

  body.dashboard-menu-open .dashboard-sidebar-scrim {
    display: block
  }

  .dashboard-menu-toggle {
    display: flex
  }

  .dashboard-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    margin-inline: -4vw;
    padding: 12px 4vw;
    background: #f3f6fcf2;
    backdrop-filter: blur(14px)
  }

  .dashboard-breadcrumb {
    margin-right: auto
  }

  .dashboard-search {
    width: min(260px, 42vw);
    min-width: 130px;
    margin-left: 0
  }

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

@media(max-width:560px) {
  body.dashboard-shell>main.dashboard-container {
    padding-inline: 14px
  }

  .dashboard-topbar {
    gap: 10px;
    margin-inline: -14px;
    padding: 10px 14px
  }

  .dashboard-breadcrumb {
    display: flex;
    min-height: 24px;
    flex: 1 1 100%;
    overflow: hidden
  }

  .dashboard-breadcrumb a {
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .dashboard-breadcrumb strong {
    min-width: 0;
    flex: 1
  }

  .dashboard-search {
    width: auto;
    min-width: 0;
    flex: 1
  }

  .dashboard-heading {
    gap: 15px;
    margin-top: 20px
  }

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

  .dashboard-metric {
    min-height: 142px;
    padding: 14px
  }

  .dashboard-metric strong {
    font-size: 26px
  }

  .dashboard-panel {
    padding: 16px
  }
}

@media(prefers-reduced-motion:reduce) {
  .dashboard-sidebar {
    transition: none
  }

  .dashboard-side-nav a,
  .dashboard-logout-card button {
    transition: none
  }
}

/* ===== Professional Admin Course Management LMS UI ===== */
.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.admin-header-main h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.admin-header-main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(15, 23, 42, 0.06);
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-stat-icon svg {
  width: 20px;
  height: 20px;
}

.admin-stat-icon.green {
  background: #ecfdf5;
  color: #059669;
}

.admin-stat-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.admin-stat-icon.purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.admin-stat-body {
  display: flex;
  flex-direction: column;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.admin-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.admin-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.admin-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* Weekly quiz authoring and student assessment views */
.quiz-admin-create,
.quiz-admin-card,
.quiz-student-card,
.quiz-result-card {
  min-width: 0;
}

.quiz-settings-form,
.quiz-question-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.quiz-settings-form .admin-label,
.quiz-question-form .admin-label {
  min-width: 0;
}

.quiz-admin-list {
  display: grid;
  gap: 22px;
}

.quiz-admin-summary,
.quiz-locked-note {
  color: #64748b;
  line-height: 1.65;
}

.quiz-locked-note {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #854d0e;
  font-size: 13px;
}

.quiz-question-editor h3 {
  margin: 0;
}

.quiz-student-list {
  display: grid;
  gap: 16px;
}

.quiz-student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.quiz-student-card h2 {
  margin: 4px 0 8px;
}

.quiz-student-card p {
  color: #64748b;
  line-height: 1.65;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-meta span {
  border-radius: 999px;
  background: #eff6ff;
  color: #002147;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.quiz-student-card>div:first-child {
  min-width: 0;
}

.quiz-student-actions,
.quiz-retake-request {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-retake-request .admin-input {
  min-width: min(240px, 100%);
}

.quiz-answer-review {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px;
}

.quiz-answer-review-heading {
  margin-bottom: 20px;
}

.quiz-answer-review-heading h2 {
  margin: 6px 0;
}

.quiz-answer-review-heading>p:last-child {
  color: #64748b;
}

.quiz-answer-review-list {
  display: grid;
  gap: 12px;
}

.quiz-answer-review-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  border-inline-start-width: 5px;
}

.quiz-answer-review-item.is-correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.quiz-answer-review-item.is-incorrect {
  border-color: #fca5a5;
  background: #fff1f2;
}

.quiz-answer-result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #15803d;
}

.quiz-answer-result-label span {
  color: #64748b;
  font-size: 11px;
  letter-spacing: .08em;
}

.quiz-answer-review-item.is-incorrect .quiz-answer-result-label {
  color: #b91c1c;
}

.quiz-answer-review-item h3 {
  margin: 8px 0 14px;
  overflow-wrap: anywhere;
}

.quiz-answer-review-item>p:not(.eyebrow) {
  margin: 6px 0;
  color: #475569;
  overflow-wrap: anywhere;
}

.quiz-answer-explanation {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #002147;
}

.quiz-answer-explanation p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.quiz-attempt-heading {
  align-items: center;
}

.quiz-countdown {
  min-width: 150px;
  padding: 14px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
  text-align: center;
  color: #002147;
}

.quiz-countdown span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.quiz-countdown strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.quiz-policy-notice {
  margin-bottom: 18px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
  color: #854d0e;
  background: #fffbeb;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-questions-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.quiz-question-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(15, 23, 42, .18);
}

.quiz-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.quiz-question-number {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #002147, #0d3a6b);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quiz-question-marks {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.quiz-question-prompt {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.quiz-answer-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  min-width: 0;
}

.quiz-answer-option {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quiz-answer-option:hover {
  border-color: #bfdbfe;
  background: #f5f8ff;
}

.quiz-answer-option>.quiz-option-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-weight: 600;
  color: #1e293b;
}

.quiz-answer-option:has(input:checked) {
  border-color: #002147;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, .12);
}

.quiz-answer-option:has(input:checked):hover {
  background: #e7f0fe;
}

.quiz-answer-option:has(input:focus-visible) {
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, .22);
}

.quiz-answer-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.quiz-answer-option::before {
  content: '';
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.quiz-answer-option:has(input:checked)::before {
  border-color: #002147;
  border-width: 6px;
}

.quiz-answer-option .quiz-option-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.quiz-answer-option:has(input:checked) .quiz-option-letter {
  background: #002147;
  color: #fff;
}

.quiz-option-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #002147;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s ease, transform .18s ease;
}

.quiz-option-check::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg);
}

.quiz-answer-option:has(input:checked) .quiz-option-check {
  opacity: 1;
  transform: scale(1);
}

.quiz-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 20px;
}

.quiz-submit-row p {
  color: #64748b;
  font-size: 14px;
}

.quiz-result-card {
  width: 100%;
  max-width: 960px;
  margin: 24px auto 16px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.quiz-result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 36px;
  padding: clamp(26px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(560px 280px at 88% -20%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(135deg, #002147 0%, #0d3a6b 55%, #154b80 100%);
}

.quiz-result-hero.is-fail {
  background:
    radial-gradient(560px 280px at 88% -20%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #9f1239 0%, #be123c 55%, #b91c1c 100%);
}

.quiz-result-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -140px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}

.quiz-result-hero-text {
  min-width: 0;
}

.quiz-result-hero-text .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.quiz-result-hero h1 {
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.quiz-result-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quiz-result-verdict svg {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.quiz-result-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 20vw, 184px);
  aspect-ratio: 1;
  justify-self: end;
}

.quiz-result-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.quiz-result-ring circle {
  fill: none;
  stroke-width: 14;
}

.quiz-result-ring-track {
  stroke: rgba(255, 255, 255, .18);
}

.quiz-result-ring-value {
  stroke: #fff;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .25));
}

.quiz-result-ring-center {
  position: absolute;
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.quiz-result-ring-center strong {
  font-size: clamp(32px, 4.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.quiz-result-ring-center strong::after {
  content: '%';
  margin-left: 2px;
  font-size: .5em;
  font-weight: 700;
  opacity: .75;
}

.quiz-result-ring-center span {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quiz-result-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.quiz-result-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
}

.quiz-result-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.quiz-result-stat-icon svg {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  max-width: 100%;
  max-height: 100%;
}

.quiz-result-stat small,
.quiz-result-stat strong {
  display: block;
}

.quiz-result-stat small {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quiz-result-stat strong {
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.quiz-result-stat strong em {
  font-style: normal;
  font-weight: 600;
  opacity: .72;
  font-size: .82em;
}

.quiz-result-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 42px) 0;
}

.quiz-result-identity>div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8fafc, #f1f5f9);
}

.quiz-result-identity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(160deg, #e0e7ff, #dbeafe);
  color: #002147;
  box-shadow: inset 0 0 0 1px rgba(0, 33, 71, .08);
}

.quiz-result-identity-icon svg {
  display: block;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  max-width: 100%;
  max-height: 100%;
}

.quiz-result-identity small,
.quiz-result-identity>div>div>span:not(.quiz-result-identity-icon) {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.quiz-result-identity small {
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quiz-result-identity strong {
  display: block;
  margin: 2px 0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.quiz-result-note {
  margin: 18px clamp(22px, 4vw, 42px) 0;
  padding: 12px 16px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
}

.quiz-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 42px) clamp(24px, 3.5vw, 32px);
}

@media (max-width: 860px) {
  .quiz-result-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .quiz-result-ring {
    justify-self: center;
    order: -1;
  }

  .quiz-result-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .quiz-result-identity {
    grid-template-columns: 1fr;
  }

  .quiz-result-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .quiz-student-card {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .quiz-student-card .button,
  .quiz-student-actions,
  .quiz-student-actions form,
  .quiz-student-actions form .button {
    width: 100%;
  }

  .quiz-retake-request .admin-input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .quiz-attempt-heading {
    align-items: stretch;
  }

  .quiz-countdown {
    width: 100%;
  }

  .quiz-question-card {
    padding: 18px;
    border-radius: 14px;
  }

  .quiz-question-prompt {
    font-size: 16px;
  }

  .quiz-answer-option {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
  }

  .quiz-option-check {
    display: none;
  }

  .quiz-answer-option .quiz-option-letter {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .quiz-submit-row,
  .quiz-submit-row .button {
    width: 100%;
  }

  .quiz-submit-row {
    align-items: stretch;
  }
}

.admin-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* One card in the workspace grid owns the full row instead of leaving a gap beside it. */
.admin-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-card-icon svg {
  width: 20px;
  height: 20px;
}

.admin-card-icon.emerald {
  background: #ecfdf5;
  color: #059669;
}

.admin-card-icon.violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.admin-card-icon.indigo {
  background: #eef2ff;
  color: #0d3a6b;
}

.admin-card-titles h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.admin-card-titles p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

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

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

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* One field is printed hidden by the quiz form - the practice-quiz line, which only the practice type
   needs - and the flex above would otherwise hold it on screen whatever the script does. */
.admin-field[hidden] {
  display: none;
}

.admin-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.admin-label .req {
  color: #ef4444;
  font-weight: 700;
}

.admin-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.admin-input,
.admin-select,
.admin-textarea,
.stack-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.stack-form select,
.stack-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 1.5;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.admin-input:hover,
.admin-select:hover,
.admin-textarea:hover,
.stack-form input:hover,
.stack-form select:hover,
.stack-form textarea:hover {
  border-color: #94a3b8;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  outline: none;
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.15), 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  background-color: #ffffff;
}

.admin-select,
.stack-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.admin-textarea,
.stack-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.slug-input-wrapper {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slug-input-wrapper:hover {
  border-color: #94a3b8;
}

.slug-input-wrapper:focus-within {
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.15), 0 1px 2px 0 rgba(16, 24, 40, 0.04);
}

.slug-prefix {
  display: flex;
  align-items: center;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 0 12px;
  border-right: 1px solid #e2e8f0;
  user-select: none;
}

.slug-input-wrapper .admin-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 10px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .field-icon svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
}

.admin-input.icon-padded {
  padding-left: 38px !important;
}

.admin-input[readonly] {
  background-color: #f8fafc;
  color: #334155;
  cursor: default;
}

/* Password fields on the account settings screens reuse the .pw-toggle eye control from the sign-in
   and enrolment forms, but sit in admin-field styling rather than the auth .input-wrap. The flex
   line is what gives the absolutely positioned button its vertical anchor inside the field. */
.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-wrap .admin-input {
  padding-right: 46px;
}

.admin-input-wrap .pw-toggle {
  right: 6px;
  width: 32px;
  height: 32px;
}

.admin-input-wrap .pw-toggle svg {
  width: 17px;
  height: 17px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  text-align: right;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}

.form-actions .button,
.form-actions button {
  margin-left: 0;
}

.admin-table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 18px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: #fafcff;
}

/* Admin student directory and sign-in audit */
.student-management-page {
  min-width: 0
}

.student-management-page .dashboard-panel {
  min-width: 0;
  overflow: hidden
}

.student-schema-notice {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #002147;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.student-schema-notice code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #dbeafe;
  font-size: 12px
}

.student-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, .55fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: 22px 0
}

.student-filter-form .admin-label {
  min-width: 0
}

.student-filter-form .admin-input,
.student-filter-form .admin-select {
  width: 100%;
  min-width: 0
}

.student-directory-table {
  min-width: 520px
}

.student-directory-table td:first-child strong,
.student-directory-table td:first-child small {
  display: block
}

.student-directory-table td:first-child small {
  margin-top: 4px;
  color: #718096;
  overflow-wrap: anywhere
}

.student-status-badge,
.student-event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap
}

.student-status-active,
.student-event-success {
  color: #087443;
  background: #dcfce7
}

.student-status-pending {
  color: #9a6700;
  background: #fef3c7
}

.student-status-suspended,
.student-event-failed,
.student-event-blocked {
  color: #b42318;
  background: #fee4e2
}

.student-activity-link {
  color: #002147;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap
}

.student-activity-link:hover {
  text-decoration: underline
}

.student-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #64748b;
  font-size: 13px
}

.student-pagination>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.student-privacy-note {
  margin: 20px 0 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.6
}

.student-activity-panel {
  margin-bottom: 22px
}

.student-activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px
}

.student-activity-summary span {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  overflow-wrap: anywhere
}

.student-activity-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #718096;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em
}

.student-activity-panel h3 {
  margin: 0 0 14px;
  color: #17233d;
  font-size: 16px
}

.student-activity-panel h3 small {
  display: block;
  margin-top: 5px;
  color: #718096;
  font-size: 12px;
  font-weight: 500
}

.student-activity-table {
  min-width: 560px
}

.student-status-form {
  margin: 0
}

.student-status-form .button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap
}

.student-status-note {
  color: #718096;
  font-size: 12px
}

.student-management-page .button-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318
}

.student-management-page .button-danger:hover {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #991b1b
}

/* Student workspace refinement: clear directory hierarchy and predictable dashboard spacing. */
.student-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px
}

.student-overview-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #e1e8f2;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f9fbff);
  box-shadow: 0 6px 16px #0f172a06
}

.student-overview-card-primary {
  border-color: #cfddff;
  background: linear-gradient(145deg, #fff, #f4f7ff)
}

.student-overview-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #eaf0ff;
  color: #002147;
  font-size: 12px;
  font-weight: 850
}

.student-overview-icon svg {
  width: 18px;
  height: 18px
}

.student-icon-active {
  background: #e7f8ef;
  color: #087443
}

.student-icon-pending {
  background: #fff6df;
  color: #a16207
}

.student-icon-blocked {
  background: #fff0f0;
  color: #b42318
}

.student-overview-card>div {
  display: grid;
  gap: 2px;
  min-width: 0
}

.student-overview-card>div>span {
  color: #718096;
  font-size: 11px;
  font-weight: 700
}

.student-overview-card strong {
  color: #17233d;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.03em
}

.student-overview-card small {
  color: #8a97aa;
  font-size: 10.5px;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.student-management-page .dashboard-panel-heading {
  margin-bottom: 18px
}

.student-management-page .dashboard-panel-heading p:last-child {
  margin: 6px 0 0;
  color: #718096;
  font-size: 13px
}

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

.student-filter-form {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, .42fr) auto auto;
  gap: 14px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  background: #f8faff
}

.student-filter-form .admin-label {
  display: grid;
  gap: 8px;
  color: #4b5b73;
  font-size: 12px;
  font-weight: 750
}

.student-filter-form .admin-input,
.student-filter-form .admin-select {
  height: 46px;
  border-radius: 12px;
  background: #fff
}

.student-filter-form>.button,
.student-filter-form>a.button {
  min-height: 46px;
  align-self: end;
  justify-content: center;
  white-space: nowrap
}

.student-management-page .admin-table-wrapper {
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #0f172a05
}

.student-directory-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0
}

.student-directory-table th:nth-child(1) {
  width: 54%
}

.student-directory-table th:nth-child(2) {
  width: 20%
}

.student-directory-table th:nth-child(3) {
  width: 26%
}

.student-directory-table th {
  padding: 16px 18px;
  background: #f7f9fd;
  color: #8290a5;
  font-size: 10px;
  letter-spacing: .12em
}

.student-directory-table td {
  padding: 17px 12px;
  border-bottom: 1px solid #edf1f6;
  color: #35445b;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere
}

.student-directory-table tbody tr:last-child td {
  border-bottom: 0
}

.student-directory-table tbody tr:hover td {
  background: #f9fbff
}

.student-table-identity {
  display: flex;
  min-width: 0;
  align-items: center
}

.student-table-identity>span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0
}

.student-table-identity strong {
  color: #17233d;
  font-size: 13px
}

.student-table-identity small {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .04em
}

.student-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dbe6ff;
  border-radius: 13px;
  background: linear-gradient(145deg, #eef4ff, #e7edff);
  color: #002147;
  font-size: 13px;
  font-weight: 850
}

.student-email-cell {
  max-width: 235px;
  overflow-wrap: anywhere
}

.student-login-count {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800
}

.student-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap
}

.student-row-actions .student-activity-link {
  display: inline-flex;
  margin: 0
}

.student-status-form {
  display: inline-flex;
  vertical-align: middle
}

.student-action-button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff5f5;
  color: #b42318;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer
}

.student-action-button.is-unblock {
  border-color: #c9ead8;
  background: #effaf4;
  color: #087443
}

.student-action-button.is-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: #e2e8f0;
  background: #fff;
  color: #64748b;
  transition: border-color .18s ease, background .18s ease, color .18s ease
}

.student-action-button.is-clear:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318
}

.student-activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px
}

.student-activity-toolbar h3 {
  margin: 0
}

.student-activity-toolbar small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em
}

.dashboard-nav-badge {
  display: inline-flex;
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
  box-shadow: 0 4px 10px #dc262633
}

.dashboard-side-nav a.active .dashboard-nav-badge {
  box-shadow: 0 4px 10px #dc262640
}

.student-detail-id {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap
}

.student-activity-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 26px
}

.student-activity-summary span {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  padding: 12px;
  border-color: #e7edf5;
  border-radius: 14px;
  background: #f9fbfe;
  font-size: 12px;
  font-weight: 700
}

.student-activity-summary strong {
  margin: 0;
  font-size: 9px;
  letter-spacing: .1em
}

.student-activity-summary .student-status-badge {
  justify-self: start
}

.student-activity-panel h3 {
  margin-bottom: 16px
}

.student-activity-table th {
  padding: 14px 16px
}

.student-activity-table td {
  padding: 14px 16px
}

.dashboard-sidebar {
  padding-top: 26px
}

.dashboard-side-nav {
  gap: 8px;
  margin-top: -46px;
  padding-top: 58px
}

.course-card-heading {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px
}

.course-category {
  flex: 0 1 auto;
  white-space: normal;
  overflow-wrap: anywhere
}

.course-heading-right {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap
}

.course-badge,
.level-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere
}

.dashboard-page>.dashboard-panel+.dashboard-panel {
  margin-top: 22px
}

.dashboard-student-overview {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px
}

.dashboard-metrics-student {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media(max-width:1050px) {
  .student-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

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

@media(max-width:760px) {
  .student-filter-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px
  }

  .student-filter-form>.button,
  .student-filter-form>a.button {
    width: 100%
  }

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

  .student-management-page .dashboard-panel {
    padding: 17px
  }

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

@media(max-width:1100px) {

  .student-directory-table th,
  .student-directory-table td {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px
  }

  .student-directory-table th {
    font-size: 9px;
    letter-spacing: .06em
  }

  .student-row-actions .student-activity-link {
    margin-right: 0
  }
}

@media(max-width:760px) {

  .student-directory-table,
  .student-directory-table tbody,
  .student-directory-table tr,
  .student-directory-table td {
    display: block;
    width: 100%
  }

  .student-directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
  }

  .student-directory-table tbody {
    padding: 10px
  }

  .student-directory-table tr {
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fff
  }

  .student-directory-table tbody tr:last-child {
    margin-bottom: 0
  }

  .student-directory-table td {
    display: grid;
    grid-template-columns: minmax(105px, .38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid #edf1f6;
    text-align: right;
    overflow-wrap: anywhere
  }

  .student-directory-table td:last-child {
    border-bottom: 0
  }

  .student-directory-table td::before {
    content: attr(data-label);
    color: #8391a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }

  .student-directory-table td[data-label="Student"] .student-table-identity {
    justify-content: flex-end
  }

  .student-directory-table .student-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left
  }

  .student-directory-table .student-row-actions::before {
    flex: 0 0 auto
  }

  .student-row-actions .student-activity-link {
    margin: 0
  }

  .student-status-form {
    margin-left: auto
  }

  .student-activity-table {
    width: 100%;
    min-width: 0
  }

  .student-activity-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
  }

  .student-activity-table,
  .student-activity-table tbody,
  .student-activity-table tr,
  .student-activity-table td {
    display: block;
    width: 100%
  }

  .student-activity-table tr {
    padding: 8px 12px;
    border-bottom: 1px solid #edf1f6
  }

  .student-activity-table tr:last-child {
    border-bottom: 0
  }

  .student-activity-table td {
    display: grid;
    grid-template-columns: minmax(105px, .38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 2px;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere
  }

  .student-activity-table td::before {
    content: attr(data-label);
    color: #8391a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }
}

@media(max-width:760px) {
  .student-filter-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch
  }

  .student-filter-form .button {
    width: 100%
  }

  .student-activity-summary {
    grid-template-columns: minmax(0, 1fr)
  }

  .student-pagination {
    align-items: flex-start;
    flex-direction: column
  }

  .student-pagination>div {
    width: 100%
  }

  .student-pagination .button {
    flex: 1;
    justify-content: center
  }

  .student-management-page .dashboard-panel-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap
  }
}

/* Directory header: title on the left, search + status filters inline on the right. */
.student-directory-panel .student-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  flex-wrap: wrap;
  margin: 0 0 6px
}

.student-directory-title {
  min-width: 0
}

.student-directory-title h2 {
  margin: 0
}

.student-directory-hint {
  margin: 0 0 16px;
  color: #8a97aa;
  font-size: 12px
}

.student-filter-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none
}

.student-search-field {
  position: relative;
  display: flex;
  flex: 1 1 240px;
  min-width: 180px;
  align-items: center
}

.student-search-icon {
  position: absolute;
  left: 13px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none
}

.student-search-icon svg {
  width: 17px;
  height: 17px
}

.student-search-input {
  width: 100%;
  height: 44px;
  padding-left: 38px;
  border-radius: 11px;
  background: #fff;
  font-size: 13px
}

.student-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none
}

.student-status-filter {
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  height: 44px;
  border-radius: 11px;
  background-color: #fff;
  font-size: 13px;
  font-weight: 600
}

.student-filter-submit,
.student-filter-clear {
  flex: 0 0 auto;
  height: 44px;
  padding-inline: 18px;
  border-radius: 11px;
  font-size: 13px
}

@media(max-width:1200px) {
  .student-directory-panel .student-directory-heading {
    align-items: flex-start
  }

  .student-filter-form {
    flex: 1 1 100%;
    flex-wrap: wrap
  }

  .student-search-field {
    flex: 1 1 220px
  }
}

@media(max-width:760px) {
  .student-directory-panel .student-directory-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px
  }

  .student-filter-form {
    flex-wrap: wrap
  }

  .student-search-field {
    flex: 1 1 100%
  }

  .student-status-filter {
    flex: 1 1 150px
  }

  .student-filter-submit {
    flex: 1 1 auto
  }

  .student-filter-clear {
    flex: 0 0 auto
  }
}

/* Student search follows the dashboard top bar; directory controls stay with the directory. */
.student-page-search {
  width: min(360px, 40vw);
  min-width: 220px;
  margin-left: auto
}

.student-directory-panel .student-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  margin-bottom: 8px
}

.student-directory-panel .student-directory-title {
  flex: 0 1 auto
}

.student-status-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent
}

.student-status-control .student-status-filter {
  width: auto;
  min-width: 160px;
  height: 42px;
  border-radius: 999px;
  background: #fff
}

.student-status-control .student-filter-clear {
  min-height: 42px
}

.student-directory-panel .student-directory-hint {
  margin: 0 0 16px
}

.student-directory-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed
}

.student-directory-table th {
  white-space: normal;
  line-height: 1.45;
  overflow-wrap: anywhere
}

.student-directory-table th:nth-child(1) {
  width: 14%
}

.student-directory-table th:nth-child(2) {
  width: 15%
}

.student-directory-table th:nth-child(3) {
  width: 16%
}

.student-directory-table th:nth-child(4) {
  width: 16%
}

.student-directory-table th:nth-child(5) {
  width: 11%
}

.student-directory-table th:nth-child(6) {
  width: 8%
}

.student-directory-table th:nth-child(7) {
  width: 21%
}

.student-directory-table td {
  overflow-wrap: anywhere
}

.student-directory-table td[data-label="Registered"],
.student-directory-table td[data-label="Last login"] {
  white-space: nowrap;
  font-size: 11px
}

.student-directory-table .student-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap
}

.student-directory-table .student-row-actions .student-activity-link {
  white-space: nowrap
}

@media(max-width:1050px) {
  .student-page-search {
    width: min(320px, 38vw);
    min-width: 180px
  }

  .student-directory-table .student-row-actions {
    flex-wrap: wrap;
    white-space: normal
  }

  .student-directory-table .student-row-actions .student-activity-link {
    white-space: normal
  }
}

@media(max-width:760px) {
  .student-page-search {
    width: auto;
    min-width: 0;
    flex: 1
  }

  .student-directory-panel .student-directory-heading {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .student-status-control {
    width: 100%;
    flex-wrap: wrap
  }

  .student-status-control .student-status-filter {
    flex: 1;
    min-width: 0
  }

  .student-directory-table th:nth-child(n) {
    width: auto
  }

  .student-directory-table td[data-label="Registered"],
  .student-directory-table td[data-label="Last login"] {
    white-space: normal;
    font-size: inherit
  }

  .student-directory-table .student-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between
  }
}

.table-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-course-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #002147;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.table-course-icon svg {
  width: 18px;
  height: 18px;
}

.table-course-info {
  display: flex;
  flex-direction: column;
}

.table-course-info strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.table-course-info small {
  color: #64748b;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.table-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.table-badge.published {
  background: #ecfdf5;
  color: #047857;
}

.table-badge.published::before {
  background: #10b981;
}

.table-badge.draft {
  background: #fffbeb;
  color: #b45309;
}

.table-badge.draft::before {
  background: #f59e0b;
}

/* A lesson that holds a live class, next to the publish state it also carries. Indigo rather than
   green or amber, so it never reads as a status the admin has to act on. */
.table-badge.live {
  background: #eef2ff;
  color: #4338ca;
}

.table-badge.live::before {
  background: #6366f1;
}

.lesson-editor>summary .table-badge.live {
  margin-right: 6px;
}

.table-badge.hidden {
  background: #f1f5f9;
  color: #475569;
}

.table-badge.hidden::before {
  background: #94a3b8;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

/* A count pill that navigates (e.g. a course row pointing at its lessons in the library). */
.count-pill-link {
  text-decoration: none
}

.count-pill-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #002147
}

.access-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 12px;
  margin-top: 10px;
}

.access-banner svg {
  width: 18px;
  height: 18px;
  color: #002147;
  flex-shrink: 0;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 20px;
  color: #64748b;
}

.admin-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.admin-empty-icon svg {
  width: 26px;
  height: 26px;
}

.admin-empty-state h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}

.admin-empty-state p {
  margin: 0;
  font-size: 13px;
  max-width: 360px;
}

@media(max-width: 980px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-form-row-3 {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 18px;
  }
}

/* =========================================================
   WHY TECH SG ACADEMY — circular orbit (click only)
   Uses the same vertical rhythm as the other home sections.
   ========================================================= */
.why-orbit-section {
  padding: 30px 0 4px;
}

/* Original PHP cards remain in the DOM as the JS data source, hidden. */
.why-orbit-section .why-grid {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.why-orbit-ui {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 0;
}

.why-orbit-copy {
  position: relative;
  z-index: 4;
  align-self: start;
  max-width: 660px;
}

.why-orbit-number {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-bottom: 9px;
}

.why-orbit-number small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}

.why-orbit-number strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
}

.why-orbit-content {
  transition: opacity .32s ease, transform .32s ease;
}

.why-orbit-content.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.why-orbit-content h3 {
  margin: 0 0 18px;
  max-width: 620px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.why-orbit-content p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.why-orbit-visual {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.why-orbit-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 33, 71, .15), rgba(147, 197, 253, .07) 42%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.why-orbit-circle {
  position: relative;
  width: min(380px, 92%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.why-orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(100, 116, 139, .32);
  border-radius: 50%;
  pointer-events: none;
}

.why-orbit-ring::before,
.why-orbit-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f4f8f;
  box-shadow: 0 0 0 6px rgba(0, 33, 71, .12);
}

.why-orbit-ring::before {
  top: 12%;
  left: 9%;
}

.why-orbit-ring::after {
  right: 10%;
  bottom: 17%;
  background: #a78bfa;
}

.why-orbit-ring-inner {
  inset: 20%;
  border-style: solid;
  border-color: rgba(148, 163, 184, .24);
}

.why-orbit-center {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 50%;
  background: rgba(248, 250, 252, .72);
  backdrop-filter: blur(6px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, .08), inset 0 0 0 10px rgba(255, 255, 255, .3);
  z-index: 3;
}

.why-orbit-center strong {
  color: var(--navy);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 850;
  line-height: .9;
  letter-spacing: -.07em;
}

.why-orbit-center span {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 750;
}

.why-orbit-pills {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.why-orbit-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 21px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
}

.why-orbit-pill:hover {
  border-color: #93c5fd;
  box-shadow: 0 18px 38px rgba(0, 33, 71, .16);
}

.why-orbit-pill.active {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 7px rgba(0, 33, 71, .08), 0 22px 44px rgba(0, 33, 71, .2);
  z-index: 8;
}

.why-orbit-pill .pill-icon {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 27px;
  line-height: 1;
}

.why-orbit-pill .pill-index {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.why-orbit-pill:focus-visible {
  outline: 3px solid rgba(0, 33, 71, .25);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .why-orbit-ui {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-orbit-copy {
    max-width: 100%;
  }

  .why-orbit-visual {
    width: min(420px, 100%);
  }

  .why-orbit-pill {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}

@media (max-width: 580px) {
  .why-orbit-section {
    padding: 26px 0 4px;
  }

  .why-orbit-circle {
    width: min(320px, 92vw);
  }

  .why-orbit-center {
    width: 44%;
  }

  .why-orbit-center strong {
    font-size: 44px;
  }

  .why-orbit-center span {
    margin-top: 8px;
    font-size: 10px;
  }

  .why-orbit-pill {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .why-orbit-pill .pill-index {
    display: none;
  }

  .why-orbit-content h3 {
    font-size: 28px;
  }

  .why-orbit-content p {
    font-size: 15px;
    line-height: 1.85;
  }
}


/* =========================================================
   PROFESSIONAL MOBILE HEADER — brand left, hamburger right
   ========================================================= */
@media (max-width: 820px) {
  .topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 0 20px;
  }

  .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar .nav-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }
}

@media (max-width: 580px) {
  .topbar {
    padding: 0 16px;
  }

  .topbar .nav-toggle {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   ADMIN WORKSPACE — quiz studio, settings rows, course editor
   ========================================================= */

/* --- Shared admin primitives -------------------------------- */

.admin-card-titles .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
}

.admin-card-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.admin-notice {
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  background: #fffbeb;
  color: #854d0e;
  font-size: 13.5px;
  line-height: 1.65;
}

.admin-notice p {
  margin: 0;
}

.admin-notice code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(180, 83, 9, .12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
}

.button-ghost {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: none;
}

.button-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: none;
  box-shadow: var(--btn-glow-soft);
}

/* --- Gmail-style setting rows -------------------------------- */

.admin-setting-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-setting-group+.admin-setting-group {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.admin-setting-group legend {
  padding: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.admin-setting-group-desc {
  margin: 5px 0 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.admin-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.admin-setting-row:last-child {
  border-bottom: 0;
}

.admin-setting-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-setting-row-text .admin-hint {
  font-size: 12px;
  line-height: 1.5;
}

.admin-setting-row-control {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.video-protection-card,
.video-protection-card .admin-form,
.video-protection-card .admin-setting-row,
.video-protection-card .admin-setting-row-control,
.video-protection-card .form-actions {
  min-width: 0;
  max-width: 100%;
}

.video-protection-card .admin-setting-row-control > .admin-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.video-protection-card .form-actions .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.video-protection-card > .admin-notice {
  margin-top: 22px;
}

.admin-number-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.admin-number-field .admin-input {
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-number-unit {
  flex: 0 0 auto;
  min-width: 56px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

/* --- Gmail-style access rows --------------------------------- */

.admin-field-list {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.admin-field-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-field-row:last-child {
  border-bottom: 0;
}

.admin-field-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-field-row-text .admin-hint {
  font-size: 12px;
  line-height: 1.5;
}

.admin-field-row-control {
  min-width: 0;
}

.admin-field-row-control .input-with-icon {
  max-width: 420px;
}

/* --- Quiz studio --------------------------------------------- */

.quiz-admin-card .quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.quiz-admin-card .quiz-meta span {
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.quiz-admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-admin-card-actions form {
  margin: 0;
}

.quiz-delete-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
  color: #b42318;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.quiz-delete-button:hover {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #991b1b;
}

.quiz-delete-button:focus-visible {
  outline: 3px solid rgb(239 68 68 / 25%);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .quiz-admin-card .admin-card-header {
    align-items: flex-start;
  }

  .quiz-admin-card-actions {
    width: 100%;
    justify-content: space-between;
    padding-left: 52px;
  }
}

.quiz-details {
  margin-top: 18px;
}

.quiz-details>summary,
.quiz-question-edit>summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.quiz-details>summary::-webkit-details-marker,
.quiz-question-edit>summary::-webkit-details-marker {
  display: none;
}

.quiz-details>summary::after,
.quiz-question-edit>summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.quiz-details>summary:hover,
.quiz-question-edit>summary:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #002147;
}

.quiz-details[open]>summary,
.quiz-question-edit[open]>summary {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #002147;
}

.quiz-details[open]>summary::after,
.quiz-question-edit[open]>summary::after {
  transform: rotate(-135deg);
}

.quiz-details>.quiz-settings-form {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.quiz-question-editor {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.quiz-question-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quiz-question-editor-head h3 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.quiz-question-edit {
  margin-top: 12px;
}

.quiz-question-edit>summary {
  gap: 12px;
}

.quiz-question-edit>summary::after {
  margin-left: 12px;
}

.quiz-question-edit>summary .count-pill {
  margin-left: auto;
}

.quiz-question-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
}

.quiz-question-text {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-question-edit>.quiz-question-form {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fbfdff;
}

.quiz-question-meta {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
}

.quiz-question-composer {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #fbfdff;
}

.quiz-question-composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-question-composer-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
  color: #002147;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.quiz-question-composer-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.quiz-question-composer-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

/* --- Multiple choice option rows ----------------------------- */

.quiz-option-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-option-list legend {
  display: block;
  padding: 0;
  margin-bottom: 10px;
}

.quiz-option-rows {
  display: grid;
  gap: 10px;
}

.quiz-option-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quiz-option-row:focus-within {
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, .12);
}

.quiz-option-row:has(input[type="radio"]:checked) {
  border-color: #10b981;
  background: #f0fdf4;
}

.quiz-option-row .quiz-option-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.quiz-option-row:has(input[type="radio"]:checked) .quiz-option-letter {
  background: #d1fae5;
  color: #047857;
}

.quiz-option-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.quiz-option-key input[type="radio"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #10b981;
}

.quiz-option-row:has(input[type="radio"]:checked) .quiz-option-key {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

/* --- Course table actions ------------------------------------ */

.admin-table-actions {
  width: 1%;
  white-space: nowrap;
}

.admin-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #002147;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.admin-edit-trigger:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #002147;
}

.admin-delete-trigger {
  color: #b42318;
  cursor: pointer;
  font-family: inherit
}

.admin-delete-trigger:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b
}

.admin-table-actions form {
  display: inline-flex;
  margin: 0 0 0 6px
}

/* --- Course editor modal ------------------------------------ */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  overflow-y: auto;
  padding: 28px 16px;
}

.admin-modal:target {
  display: block;
}

html.admin-modal-js .admin-modal:target {
  display: none;
}

html.admin-modal-js .admin-modal.is-open {
  display: block;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45);
  animation: admin-modal-in .24s cubic-bezier(.16, 1, .3, 1);
}

@keyframes admin-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-modal-header .admin-card-titles h2 {
  font-size: 20px;
}

.admin-modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.admin-modal-close:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.admin-modal-body {
  gap: 16px;
  padding: 22px 24px 24px;
}

.admin-modal-body .form-actions {
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

/* Scroll locking for both the course editor modal and the mobile sidebar
   drawer is owned by bodyScrollLock() in main.js, which writes an inline
   body overflow value from a single shared state. No overflow rule belongs
   here, otherwise the two locks would fight over the same slot. */

/* --- Responsive admin workspace ------------------------------ */

@media (max-width: 900px) {
  .admin-setting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  .admin-setting-row-control {
    justify-content: flex-start;
  }

  .admin-number-field {
    max-width: 320px;
  }

  .admin-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .admin-modal {
    padding: 0;
  }

  .admin-modal-dialog {
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .admin-modal-header {
    padding: 16px 18px;
  }

  .admin-modal-body {
    padding: 18px;
  }

  .admin-modal-body .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-modal-body .form-actions .button {
    width: 100%;
  }

  .quiz-option-row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 10px;
  }

  .quiz-option-row .quiz-option-letter {
    grid-column: 1;
    grid-row: 1;
  }

  .quiz-option-row>.admin-input {
    grid-column: 2;
    grid-row: 1;
  }

  .quiz-option-key {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .quiz-question-text {
    white-space: normal;
  }

  .admin-setting-row {
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-modal-dialog {
    animation: none;
  }
}

/* Course catalogue hero, shared public course cards, and course benefits. */
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  padding: clamp(38px, 5vw, 64px) 0 clamp(42px, 5vw, 64px);
}

.catalog-hero-copy {
  min-width: 0
}

.catalog-hero-copy .eyebrow {
  margin: 0 0 18px
}

.catalog-hero-copy h1 {
  max-width: 590px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em
}

.catalog-hero-copy h1 span {
  color: var(--blue)
}

.catalog-hero-highlight {
  position: relative;
  white-space: nowrap
}

.catalog-hero-highlight::after {
  position: absolute;
  right: 0;
  bottom: .06em;
  left: 0;
  z-index: -1;
  height: .16em;
  border-radius: 999px;
  background: #00214726;
  content: ""
}

.catalog-hero-lead {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 530px;
  margin-top: 24px;
  padding: 7px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px #172b4d0d
}

.catalog-search input {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px
}

.catalog-search input::placeholder {
  color: #78889d
}

.catalog-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1f4f8f1c, 0 12px 30px #172b4d0d
}

.catalog-search .button {
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 10px
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 17px
}

.catalog-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none
}

.catalog-hero-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px
}

.catalog-hero-art {
  position: relative;
  min-width: 0;
  padding: 14px 8px 24px
}

.catalog-hero-dot-grid {
  position: absolute;
  z-index: 0;
  width: 56px;
  height: 44px;
  background-image: radial-gradient(#b7c8ea 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  pointer-events: none
}

.catalog-hero-dot-grid-one {
  top: -6px;
  right: 2px
}

.catalog-hero-dot-grid-two {
  bottom: 28px;
  left: -14px
}

.catalog-hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none
}

.catalog-hero-orb-one {
  top: 34px;
  left: -26px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 32% 30%, #1f4f8f, #002147)
}

.catalog-hero-orb-two {
  right: 26px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  background: #f59e0b3d
}

.catalog-hero-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: clamp(320px, 34vw, 430px)
}

.catalog-hero-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: #eef3fb;
  box-shadow: 0 18px 46px #172b4d14;
  transition: transform .3s ease, box-shadow .3s ease
}

.catalog-hero-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px #172b4d22
}

.catalog-hero-tile:nth-child(1),
.catalog-hero-tile:nth-child(4) {
  background: #dbeafe
}

.catalog-hero-tile:nth-child(2),
.catalog-hero-tile:nth-child(5) {
  background: #fef3c7
}

.catalog-hero-tile:nth-child(3),
.catalog-hero-tile:nth-child(6) {
  background: #e0e7ff
}

.catalog-hero-tile-2 {
  transform: translateY(14px)
}

.catalog-hero-tile-5 {
  transform: translateY(14px)
}

.catalog-hero-tile-2:hover,
.catalog-hero-tile-5:hover {
  transform: translateY(8px)
}

.catalog-hero-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .5s ease, transform .8s cubic-bezier(.2, .75, .25, 1)
}

.catalog-hero-tile.is-loaded img {
  opacity: 1;
  transform: scale(1)
}

.catalog-search-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 650
}

.catalog-courses {
  margin-inline: calc(50% - 50vw);
  padding: 34px max(20px, calc((100vw - 1120px)/2)) calc(42px + clamp(56px, 8vw, 104px));
  background-color: #f5f8ff;
  background-image: radial-gradient(#bdcdeb 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  animation: catalog-dots-pan 6s linear infinite alternate
}

@keyframes catalog-dots-pan {
  from {
    background-position: 0 0
  }

  to {
    background-position: 48px 0
  }
}

.catalog-courses .section-heading {
  margin: 0 0 12px
}

.catalog-courses .section-heading>div>p:last-child {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65
}

.catalog-course-grid,
.home-course-grid {
  align-items: stretch
}

.course-card.course-card-unified {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e0e7f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px #172b4d0a;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease
}

.course-card.course-card-unified:hover {
  transform: translateY(-5px);
  border-color: #c8d8fa;
  box-shadow: 0 22px 48px #172b4d16
}

.course-card-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #eff5ff, #e7eef9)
}

.course-card-image::after {
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, #0b18352c);
  content: "";
  pointer-events: none
}

.course-card-image-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .7s ease
}

.course-card-image.is-loaded .course-card-image-media {
  opacity: 1;
  transform: scale(1)
}

.course-image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: #62748e;
  font-size: 12px;
  font-weight: 650;
  transition: opacity .25s ease, visibility .25s ease
}

.course-image-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid #cdd9ea;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: course-image-spin .8s linear infinite
}

.course-card-image.is-loaded .course-image-placeholder,
.catalog-hero-tile.is-loaded .course-image-placeholder {
  visibility: hidden;
  opacity: 0
}

.course-card-image.is-image-error .course-image-placeholder,
.catalog-hero-tile.is-image-error .course-image-placeholder {
  color: #596b84
}

.course-card-image.is-image-error .course-image-spinner,
.catalog-hero-tile.is-image-error .course-image-spinner {
  display: none
}

@keyframes course-image-spin {
  to {
    transform: rotate(360deg)
  }
}

.course-card-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 22px 23px 23px
}

.course-card-content .course-card-category {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.course-card-content h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere
}

.course-card-content .course-card-description {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  min-height: 3.2em
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding: 13px 0;
  border-top: 1px solid #edf1f6;
  color: #61728b;
  font-size: 12px
}

.course-card-meta span {
  overflow-wrap: anywhere
}

.course-card-prices {
  width: 100%;
  margin: 0 0 15px;
  border: 1px solid #e5ebf4;
  border-radius: 15px;
  background: #f7f9fc
}

.course-card-prices>div {
  gap: 10px;
  padding: 12px 13px
}

.course-card-prices>div+div {
  border-top: 1px solid #e3eaf3
}

.course-card-prices span {
  font-size: 12px
}

.course-card-prices strong {
  font-size: 13px;
  white-space: nowrap
}

.course-card-content .course-cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 13px;
  text-align: center
}

.course-card-details-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none
}

.course-card-details-link:hover {
  text-decoration: underline
}

.course-benefits {
  margin: clamp(42px, 7vw, 84px) calc(50% - 50dvw) 0;
  padding: clamp(40px, 6vw, 68px) max(24px, calc((100dvw - 1120px)/2));
  background: #f2f5fa
}

.course-benefits-heading {
  max-width: 690px;
  margin: 0 auto 30px;
  text-align: center
}

.course-benefits-heading .eyebrow {
  margin: 0 0 10px
}

.course-benefits-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.045em
}

.course-benefits-heading>p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65
}

.course-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto
}

.course-benefit-card {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #172b4d08;
  transition: transform .25s ease, box-shadow .25s ease
}

.course-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px #172b4d12
}

.course-benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #edf3ff;
  color: var(--blue)
}

.course-benefit-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.course-benefit-card h3 {
  margin: 16px 0 7px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35
}

.course-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere
}

.course-image-upload-field {
  padding: 16px;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #f8faff
}

.course-image-upload-field .admin-input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 9px;
  background: #fff
}

.course-image-upload-field .admin-hint {
  display: block;
  margin-top: 8px;
  line-height: 1.6
}

.course-image-edit-preview {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 16/9;
  margin: 0 0 12px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #eef3fa;
  object-fit: cover
}

@media(max-width:1000px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 34px
  }

  .catalog-hero-gallery {
    gap: 10px;
    height: clamp(300px, 38vw, 370px)
  }

  .course-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 34px
  }

  .catalog-hero-copy h1 {
    font-size: clamp(39px, 11vw, 58px)
  }

  .catalog-hero-lead {
    margin-top: 16px;
    font-size: 16px
  }

  .catalog-hero-art {
    padding: 6px 4px 22px
  }

  .catalog-hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: clamp(410px, 110vw, 520px)
  }

  .catalog-hero-dot-grid-two {
    left: -4px
  }

  .catalog-hero-orb-one {
    top: 10px;
    left: -16px;
    width: 44px;
    height: 44px
  }

  .catalog-hero-tile {
    border-radius: 16px
  }

  .catalog-hero-tile-2,
  .catalog-hero-tile-5 {
    transform: none
  }

  .catalog-hero-tile-2:hover,
  .catalog-hero-tile-5:hover {
    transform: translateY(-4px)
  }

  .catalog-courses {
    padding-top: 10px
  }

  .course-card-content {
    padding: 19px
  }

  .course-benefits {
    padding-inline: 20px
  }

  .course-benefit-grid {
    gap: 12px
  }

  .course-benefit-card {
    padding: 18px 15px
  }
}

@media(max-width:480px) {
  .catalog-search {
    gap: 4px;
    padding: 5px
  }

  .catalog-search input {
    padding: 0 8px;
    font-size: 13px
  }

  .catalog-search .button {
    padding: 11px 13px
  }

  .catalog-hero-actions {
    gap: 16px
  }

  .catalog-hero-art {
    padding: 4px 2px 18px
  }

  .catalog-hero-gallery {
    gap: 8px
  }

  .catalog-hero-tile {
    border-radius: 16px
  }

  .catalog-hero-tile-2,
  .catalog-hero-tile-5 {
    transform: none
  }

  .catalog-hero-dot-grid {
    width: 42px;
    height: 30px;
    background-size: 12px 12px
  }

  .catalog-hero-orb-two {
    display: none
  }

  .course-card-content {
    padding: 17px
  }

  .course-card-prices>div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px
  }

  .course-benefit-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .course-benefit-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 13px;
    align-items: start
  }

  .course-benefit-card h3 {
    align-self: end;
    margin: 0 0 4px
  }

  .course-benefit-card p {
    grid-column: 2
  }

  .course-benefit-icon {
    grid-column: 1;
    grid-row: 1 / span 2
  }
}

@media(prefers-reduced-motion:reduce) {
  .course-image-spinner {
    animation: none
  }

  .catalog-courses {
    animation: none
  }

  .course-card.course-card-unified,
  .course-card-image-media,
  .catalog-hero-tile,
  .catalog-hero-tile img,
  .course-benefit-card {
    transition: none
  }

}

/* Public course detail page. The curriculum list is not printed here: module and lesson titles
   belong to the student workspace, so the page sells the course with facts, inclusions and the
   enrollment flow instead of a syllabus a visitor has not paid for. */
.course-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 72px
}

.course-detail-breadcrumb {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #8190a6;
  font-size: 13px
}

.course-detail-breadcrumb a {
  color: #52657f;
  text-decoration: none
}

.course-detail-breadcrumb a:hover {
  color: var(--blue-dark)
}

.course-detail-breadcrumb span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #34445e
}

.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid #e0e8f4;
  border-radius: 28px;
  background: radial-gradient(circle at 88% 6%, #d9e8ff 0, transparent 42%), linear-gradient(140deg, #fbfdff, #eef4ff 62%, #e9f0fd);
  box-shadow: 0 20px 54px #172b4d0d
}

.course-detail-hero-copy {
  min-width: 0
}

.course-detail-hero-copy .eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.course-detail-hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.04em;
  overflow-wrap: anywhere
}

.course-detail-lead {
  max-width: 600px;
  margin: 18px 0 0;
  color: #5d6f89;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.72;
  overflow-wrap: anywhere
}

.course-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px
}

.course-detail-facts span {
  padding: 9px 13px;
  border: 1px solid #dce6f4;
  border-radius: 999px;
  background: #ffffffcc;
  color: #3c4d66;
  font-size: 12px;
  font-weight: 700
}

.course-detail-price-tease {
  margin: 20px 0 0;
  color: #5a6d87;
  font-size: 14px
}

.course-detail-price-tease strong {
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -.02em
}

.course-detail-hero-image {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6f4;
  border-radius: 22px;
  background: #e8eff9;
  box-shadow: 0 18px 42px #1d37651c
}

.course-detail-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8eff9, #f7faff)
}

.course-detail-image.is-loaded .course-card-image-media {
  opacity: 1;
  transform: scale(1)
}

.course-detail-image.is-loaded .course-image-placeholder {
  visibility: hidden;
  opacity: 0
}

.course-detail-image.is-image-error .course-image-placeholder {
  color: #596b84
}

.course-detail-image.is-image-error .course-image-spinner {
  display: none
}

.course-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
  align-items: start;
  gap: 24px;
  margin-top: 26px
}

.course-detail-main {
  display: grid;
  min-width: 0;
  gap: 20px
}

.course-detail-panel {
  min-width: 0;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid #e1e8f2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px #172b4d09
}

.course-detail-panel>.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase
}

.course-detail-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.22;
  letter-spacing: -.03em;
  overflow-wrap: anywhere
}

.course-detail-body {
  margin: 14px 0 0;
  color: #5d6f89;
  line-height: 1.75;
  overflow-wrap: anywhere
}

.course-detail-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 22px
}

.course-detail-outcomes>div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #e7edf6;
  border-radius: 15px;
  background: #f8faff
}

.course-detail-outcomes>div>span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8ef;
  color: #15804b;
  font-weight: 800
}

.course-detail-outcomes p {
  margin: 1px 0 0;
  color: #566983;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere
}

.course-detail-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 26px;
  margin-top: 20px
}

.course-detail-includes>div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #eef2f8
}

.course-detail-includes>div>span {
  flex: 0 0 auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: #edf3ff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em
}

.course-detail-includes p {
  min-width: 0;
  margin: 0;
  color: #5d6f89;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.course-detail-includes strong {
  display: block;
  margin-bottom: 3px;
  color: #1b2941;
  font-size: 14.5px;
  line-height: 1.35;
  overflow-wrap: anywhere
}

.course-detail-flow {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: enrol-flow
}

.course-detail-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 20px
}

.course-detail-flow li:last-child {
  padding-bottom: 0
}

.course-detail-flow li::before {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: linear-gradient(#dbe6f8, transparent)
}

.course-detail-flow li:last-child::before {
  display: none
}

.course-detail-flow li>span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #e3ecfb;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800
}

.course-detail-flow p {
  min-width: 0;
  margin: 0;
  color: #5d6f89;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.course-detail-flow strong {
  display: block;
  margin-bottom: 2px;
  color: #1b2941;
  font-size: 14.5px;
  line-height: 1.35;
  overflow-wrap: anywhere
}

.course-detail-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  min-width: 0;
  gap: 14px
}

.course-detail-enrol h2 {
  font-size: 20px
}

.course-detail-prices {
  display: grid;
  gap: 9px;
  margin: 18px 0
}

.course-detail-prices>div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  background: #f8faff;
  color: #576a83;
  font-size: 13px
}

.course-detail-prices strong {
  color: #172b4d;
  font-size: 14px;
  white-space: nowrap
}

.course-detail-prices>p {
  margin: 0;
  color: #677991;
  font-size: 13px;
  line-height: 1.6
}

.course-detail-enrol-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  text-align: center
}

.course-detail-enrol-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 0 0;
  color: #667891;
  font-size: 12px;
  line-height: 1.55
}

.course-detail-enrol-note span {
  color: #15945b;
  font-weight: 800
}

.course-detail-help {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8edf5
}

.course-detail-help strong {
  color: #203451;
  font-size: 14px
}

.course-detail-help p {
  margin: 7px 0 11px;
  color: #62748c;
  font-size: 12.5px;
  line-height: 1.6
}

.course-detail-help a {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none
}

.course-detail-help a:hover {
  text-decoration: underline
}

@media(max-width:960px) {
  .course-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
    gap: 26px;
    padding: clamp(24px, 4vw, 42px)
  }

  .course-detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px
  }
}

@media(max-width:760px) {
  .course-detail-page {
    padding: 20px 18px 48px
  }

  .course-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    border-radius: 23px
  }

  .course-detail-hero h1 {
    font-size: clamp(32px, 8.4vw, 44px)
  }

  .course-detail-hero-image {
    max-height: 390px
  }

  .course-detail-image {
    aspect-ratio: 16/10
  }

  .course-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px
  }

  .course-detail-sidebar {
    position: static;
    grid-row: 1
  }

  .course-detail-main {
    grid-row: 2
  }
}

@media(max-width:480px) {
  .course-detail-page {
    padding-inline: 14px
  }

  .course-detail-breadcrumb {
    gap: 7px;
    font-size: 12px
  }

  .course-detail-hero {
    padding: 22px 18px;
    border-radius: 20px
  }

  .course-detail-hero h1 {
    font-size: clamp(30px, 9.6vw, 40px)
  }

  .course-detail-facts span {
    padding: 8px 10px;
    font-size: 11px
  }

  .course-detail-panel {
    padding: 20px 17px;
    border-radius: 19px
  }

  .course-detail-includes {
    gap: 0
  }

  .course-detail-prices>div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px
  }
}

/* Final responsive dashboard navigation overrides, after legacy dashboard rules. */
.dashboard-shell .dashboard-page {
  padding-top: 22px
}

.dashboard-nav-icon {
  display: none
}

.dashboard-mobile-logout {
  display: none
}

@media(max-width:902px) {
  body.dashboard-shell>main.dashboard-container {
    margin-left: 0;
    padding-bottom: calc(94px + env(safe-area-inset-bottom))
  }

  .dashboard-sidebar {
    position: static;
    z-index: auto;
    inset: auto;
    display: block;
    width: auto;
    height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none
  }

  .dashboard-sidebar-head,
  .dashboard-sidebar-bottom {
    display: none
  }

  .dashboard-side-nav {
    position: fixed;
    z-index: 110;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 72px;
    max-height: calc(82px + env(safe-area-inset-bottom));
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #e5ebf4;
    background: #ffffffed;
    box-shadow: 0 -8px 28px #172b4d12;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(16px)
  }

  .dashboard-side-nav::-webkit-scrollbar {
    display: none
  }

  .dashboard-side-nav>a {
    position: relative;
    display: flex;
    min-width: 78px;
    min-height: 56px;
    flex: 1 0 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 5px;
    border-radius: 13px;
    color: #66758c;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: normal
  }

  .dashboard-side-nav .dashboard-nav-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 24px);
    margin-left: 0
  }

  .dashboard-side-nav a .dashboard-nav-number {
    display: none
  }

  .dashboard-side-nav a .dashboard-nav-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto
  }

  .dashboard-side-nav a .dashboard-nav-label {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
  }

  .dashboard-side-nav a.active {
    background: #e6efff;
    color: var(--blue-dark);
    font-weight: 800
  }

  .dashboard-side-nav a.active::before {
    top: auto;
    right: 12px;
    bottom: -7px;
    left: 12px;
    width: auto;
    height: 3px;
    border-radius: 3px
  }

  .dashboard-side-nav .dashboard-mobile-logout {
    position: static;
    right: auto;
    z-index: auto;
    display: flex;
    min-width: 78px;
    flex: 1 0 78px;
    align-items: stretch;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent
  }

  .dashboard-mobile-logout button {
    display: flex;
    width: 100%;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 5px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #66758c;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background .18s ease, color .18s ease
  }

  .dashboard-mobile-logout button:hover {
    background: #f1f5fb;
    color: #b42318
  }

  /* Match the other rail tabs: icon on top, label underneath, same neutral
     styling as the rest of the navigation. */
  .dashboard-mobile-logout svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none
  }

  .dashboard-side-nav>a:focus-visible,
  .dashboard-mobile-logout button:focus-visible {
    outline: 3px solid #93b4ff;
    outline-offset: 2px
  }

  .dashboard-menu-toggle,
  .dashboard-sidebar-scrim {
    display: none !important
  }

  body.dashboard-menu-open .dashboard-sidebar {
    transform: none
  }

  .dashboard-topbar {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0;
    padding: 12px 0 8px;
    background: transparent;
    backdrop-filter: none
  }
}

@media(max-width:560px) {
  .dashboard-shell .dashboard-page {
    padding-top: 8px
  }

  .dashboard-topbar {
    position: static;
    top: auto;
    z-index: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin: 0;
    padding: 10px 0;
    background: transparent;
    backdrop-filter: none
  }

  .dashboard-breadcrumb {
    display: flex;
    min-height: 24px;
    flex: 1 1 100%;
    overflow: hidden
  }

  .dashboard-breadcrumb a {
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .dashboard-breadcrumb strong {
    min-width: 0;
    flex: 1
  }

  .dashboard-search {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    margin: 0
  }
}

/* Payment history becomes readable stacked records on phones instead of a wide table. */
@media(max-width:760px) {
  .dashboard-page .dashboard-table-wrap:has(.dashboard-table tr td[data-label]) {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none
  }

  .dashboard-table:has(td[data-label]),
  .dashboard-table:has(td[data-label]) tbody,
  .dashboard-table:has(td[data-label]) tr,
  .dashboard-table:has(td[data-label]) td {
    display: block;
    width: 100%
  }

  .dashboard-table:has(td[data-label]) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
  }

  .dashboard-table:has(td[data-label]) tbody {
    display: grid;
    gap: 12px
  }

  .dashboard-table:has(td[data-label]) tr {
    padding: 12px 15px;
    border: 1px solid #e3eaf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px #0f172a08
  }

  .dashboard-table:has(td[data-label]) td {
    display: grid;
    grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    text-align: right;
    overflow-wrap: anywhere
  }

  .dashboard-table:has(td[data-label]) td:last-child {
    border-bottom: 0
  }

  .dashboard-table:has(td[data-label]) td::before {
    content: attr(data-label);
    color: #8290a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }

  .dashboard-table:has(td[data-label]) td small {
    display: block;
    grid-column: 2;
    overflow-wrap: anywhere
  }

  .dashboard-table:has(td[data-label]) td .dashboard-status {
    justify-self: end
  }
}

/* Keep assignment actions together below the task details at every width. */
.student-assignment-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px 0
}

.student-assignment-row .dashboard-list-icon {
  grid-column: 1;
  grid-row: 1
}

.student-assignment-row .dashboard-list-copy {
  grid-column: 2;
  grid-row: 1;
  gap: 4px
}

.student-assignment-row .dashboard-list-copy strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere
}

.student-assignment-row .dashboard-list-copy small {
  overflow-wrap: anywhere
}

/* Shared overview rail: concise live clock and personal task manager. */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 18px;
  min-width: 0
}

.overview-layout>.analytics-grid,
.overview-layout>.dashboard-columns {
  min-width: 0
}

.dashboard-tools-rail {
  display: grid;
  gap: 16px;
  min-width: 0
}

.dashboard-tool-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px #142b4b08
}

.dashboard-tool-card .eyebrow {
  margin: 0 0 9px;
  color: #6d7d95;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em
}

.dashboard-clock-card {
  overflow: hidden;
  background: #002147;
  color: #fff
}

.dashboard-clock-card .eyebrow {
  color: #b9cde8
}

.dashboard-clock-card>[data-live-clock] {
  display: block;
  font-size: clamp(34px, 3vw, 43px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: 1.1
}

.dashboard-clock-card>[data-live-date] {
  display: block;
  margin-top: 7px;
  color: #e5edff;
  font-size: 13px
}

.dashboard-calendar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #ffffff35;
  font-size: 12px
}

.dashboard-calendar span {
  color: #dbe7ff
}

.dashboard-calendar b {
  text-align: right
}

.todo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 18px 16px
}

.todo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #002147, #2f6bb0)
}

.todo-card>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px
}

.todo-head-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0
}

.todo-head-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #002147, #1c4f86);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 20px #00214733
}

.todo-head-text {
  min-width: 0
}

.todo-head-text .eyebrow {
  margin: 0 0 2px;
  color: #6d7d95;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase
}

.todo-card h2 {
  margin: 0;
  color: #131f33;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em
}

.todo-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f7fd, #e9f0fa);
  color: #556883;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #ffffffcc
}

.todo-count b {
  color: #002147;
  font-weight: 850
}

/* ---------- add form ---------- */

.todo-add-form {
  display: flex;
  gap: 8px
}

.todo-add-form input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 15px;
  border: 1.5px solid #d3deee;
  border-radius: 13px;
  background: #f7fafd;
  color: #17243a;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease
}

.todo-add-form input::placeholder {
  color: #9aa8bc
}

.todo-add-form input:focus {
  border-color: #002147;
  background: #fff;
  box-shadow: 0 0 0 4px #00214718
}

.todo-add-form button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(140deg, #002147, #1c4f86);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px #00214733;
  transition: transform .16s ease, box-shadow .16s ease
}

.todo-add-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px #00214740
}

.todo-add-form button span {
  display: block;
  margin-top: -2px
}

/* ---------- filter ---------- */

.todo-filter {
  display: flex;
  gap: 4px;
  margin: 16px 0 8px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f8
}

.todo-filter button {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6a7a90;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease
}

.todo-filter button.is-active {
  background: #fff;
  color: #002147;
  box-shadow: 0 3px 8px #172b4d1c
}

/* ---------- list ---------- */

.todo-list {
  display: grid;
  gap: 3px;
  max-height: 330px;
  margin: 4px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none
}

.todo-list li {
  position: relative;
  padding: 2px 10px 2px 12px;
  border-radius: 12px;
  transition: background .15s ease
}

.todo-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 2px;
  width: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background .15s ease
}

.todo-list li:hover::before {
  background: linear-gradient(#002147, #2f6bb0)
}

.todo-task-main {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 9px 0
}

.todo-list li+li {
  border-top: 1px solid #eef2f7
}

.todo-list li:hover {
  background: #f6f9fd
}

.todo-list li[hidden] {
  display: none
}

.todo-list form {
  margin: 0
}

.todo-toggle-form {
  display: flex
}

.todo-check {
  display: block;
  width: 22px;
  height: 22px;
  border: 1.7px solid #b3c0d2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease
}

.todo-check:hover {
  border-color: #002147
}

.todo-check.is-done {
  position: relative;
  border-color: transparent;
  background: linear-gradient(140deg, #002147, #1c4f86)
}

.todo-check.is-done:after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg)
}

.todo-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #2a3a52;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere
}

.todo-title.is-done {
  color: #93a1b4;
  font-weight: 500;
  text-decoration: line-through
}

.todo-reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid #f2d9a6;
  border-radius: 999px;
  background: #fdf4e3;
  color: #97690f;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap
}

.todo-reminder-chip span {
  font-size: 10px
}

/* ---------- row actions ---------- */

.todo-reminder {
  margin: 0 0 8px 33px
}

.todo-reminder summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px dashed #c6d5ea;
  border-radius: 9px;
  background: #f7fafd;
  color: #3f6091;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease
}

.todo-reminder summary:hover {
  border-color: #002147;
  background: #eef4fc;
  color: #002147
}

.todo-reminder-plus {
  font-size: 12px;
  line-height: 1
}

.todo-reminder summary::-webkit-details-marker {
  display: none
}

.todo-reminder[open] form {
  display: grid;
  gap: 10px;
  width: min(300px, 100%);
  margin: 3px 0 4px;
  padding: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 13px;
  background: #f6f9fe;
  box-shadow: 0 8px 18px #172b4d12;
  animation: todoReminderIn .2s ease-out both
}

@keyframes todoReminderIn {
  from {
    opacity: 0;
    transform: translateY(-5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.todo-reminder label {
  display: grid;
  gap: 7px;
  color: #52637b;
  font-size: 11.5px;
  font-weight: 750
}

.todo-reminder input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  outline: none
}

.todo-reminder input:focus {
  border-color: #002147;
  box-shadow: 0 0 0 3px #00214722
}

.todo-reminder .button {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(140deg, #002147, #1c4f86);
  color: #fff;
  font-weight: 750;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 8px 16px #00214730;
  transition: transform .15s ease, box-shadow .15s ease
}

.todo-reminder .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px #0021473c
}

.todo-delete-form {
  display: flex
}

.todo-delete {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f2f6fb;
  color: #8494a8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease
}

.todo-delete:hover {
  border-color: #f2c9c5;
  background: #fff1f0;
  color: #c23a32
}

/* ---------- footer notes ---------- */

.todo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 18px 14px;
  border: 1px dashed #d7e0ee;
  border-radius: 13px;
  background: #f7fafd;
  color: #7a8aa0;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center
}

.todo-email-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid #edf1f6;
  color: #8493a8;
  font-size: 11px;
  line-height: 1.5
}

.todo-email-note span {
  flex: 0 0 auto;
  color: #002147
}

@media(max-width:1150px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 14px
  }

  .dashboard-tool-card {
    padding: 16px
  }
}

@media(max-width:980px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr)
  }

  .dashboard-tools-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start
  }

  .overview-layout>.analytics-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr))
  }

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

@media(max-width:560px) {
  .dashboard-tools-rail {
    grid-template-columns: minmax(0, 1fr)
  }

  .dashboard-tool-card {
    padding: 16px;
    border-radius: 17px
  }

  .todo-list {
    max-height: 280px
  }

  .kpi-grid,
  .kpi-grid-student {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .kpi-card {
    min-width: 0;
    padding: 14px
  }

  .kpi-value {
    font-size: clamp(25px, 8vw, 34px)
  }
}

@media(max-width:360px) {

  .kpi-grid,
  .kpi-grid-student {
    grid-template-columns: minmax(0, 1fr)
  }

  .todo-task-main {
    gap: 6px
  }

  .todo-reminder {
    margin-left: 24px
  }
}

/* Admin quiz submission reporting */
.quiz-reports-page {
  display: grid;
  gap: 22px
}

.quiz-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.quiz-report-metric {
  min-width: 0;
  padding: 21px 23px;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 43, 77, .04)
}

.quiz-report-metric span,
.quiz-report-metric small {
  display: block;
  color: var(--muted, #667892)
}

.quiz-report-metric span {
  font-weight: 700
}

.quiz-report-metric strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--text, #111a2e);
  font-size: 34px;
  line-height: 1.1
}

.quiz-report-metric-pass strong {
  color: #08784f
}

.quiz-report-metric-fail strong {
  color: #b42318
}

.quiz-report-panel {
  min-width: 0
}

.quiz-report-heading {
  align-items: center;
  gap: 16px
}

.quiz-report-heading h2 {
  margin-bottom: 0
}

.quiz-report-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, .8fr) minmax(155px, .7fr) auto;
  align-items: end;
  gap: 14px;
  margin: 20px 0 22px;
  padding: 18px;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 18px;
  background: #f7f9fd
}

.quiz-report-filters label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #44536b;
  font-size: 14px;
  font-weight: 700
}

.quiz-report-filters .admin-input,
.quiz-report-filters .admin-select {
  width: 100%;
  min-width: 0
}

.quiz-report-filter-actions {
  display: flex;
  gap: 8px
}

.quiz-report-filter-actions .button {
  white-space: nowrap
}

.quiz-report-list {
  display: grid;
  gap: 15px
}

.quiz-report-card {
  min-width: 0;
  padding: 20px 22px 0;
  overflow: hidden;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 18px;
  background: #fff
}

.quiz-report-card-header,
.quiz-report-card-title,
.quiz-report-course-line,
.quiz-report-card-footer,
.quiz-report-pagination,
.quiz-report-pagination>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}

.quiz-report-card-title {
  justify-content: flex-start;
  min-width: 0
}

.quiz-report-type-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #002147;
  background: #edf3ff;
  font-weight: 800
}

.quiz-report-card-title>div {
  min-width: 0
}

.quiz-report-card-title .eyebrow {
  margin: 0 0 4px;
  font-size: 10px
}

.quiz-report-card-title h3 {
  margin: 0;
  color: var(--text, #111a2e);
  font-size: 19px;
  overflow-wrap: anywhere
}

.quiz-outcome-badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800
}

.quiz-outcome-pass {
  color: #08784f;
  background: #e6f8ef
}

.quiz-outcome-fail {
  color: #b42318;
  background: #fff0ef
}

.quiz-outcome-pending {
  color: #8a5700;
  background: #fff5dc
}

.quiz-report-student {
  display: grid;
  gap: 3px;
  margin: 17px 0 13px;
  overflow-wrap: anywhere
}

.quiz-report-student strong {
  color: #202c43;
  font-size: 15px
}

.quiz-report-student span,
.quiz-report-course-line>span,
.quiz-report-card-footer {
  color: var(--muted, #667892);
  font-size: 13px
}

.quiz-report-course-line {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7
}

.quiz-report-course-line>span:first-child {
  font-weight: 700
}

.quiz-report-course-line strong {
  color: #34435b;
  overflow-wrap: anywhere
}

.quiz-report-week {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5fb
}

.quiz-report-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 18px;
  margin: 15px 0
}

.quiz-report-details>div {
  min-width: 0
}

.quiz-report-details dt {
  margin-bottom: 5px;
  color: var(--muted, #667892);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em
}

.quiz-report-details dd {
  margin: 0;
  color: #26344b;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere
}

.quiz-report-details dd small {
  color: var(--muted, #667892);
  font-size: 12px;
  font-weight: 600
}

.quiz-report-details .quiz-correct-count {
  color: #08784f
}

.quiz-report-card-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #edf1f7
}

.quiz-report-pagination {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
  color: var(--muted, #667892);
  font-weight: 700
}

.quiz-report-empty {
  margin-top: 18px
}

@media(max-width: 950px) {
  .quiz-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .quiz-report-search-field {
    grid-column: 1 / -1
  }
}

@media(max-width: 640px) {

  /* Totals now live inside the shared blue summary card; its own breakpoints handle columns. */
  .quiz-report-panel {
    padding: 17px
  }

  .quiz-report-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .quiz-report-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 13px
  }

  .quiz-report-search-field {
    grid-column: auto
  }

  .quiz-report-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .quiz-report-filter-actions .button {
    justify-content: center
  }

  .quiz-report-card {
    padding: 16px 15px 0
  }

  .quiz-report-card-header {
    align-items: flex-start
  }

  .quiz-report-card-title {
    gap: 10px
  }

  .quiz-report-type-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px
  }

  .quiz-report-card-title h3 {
    font-size: 16px
  }

  .quiz-outcome-badge {
    padding: 6px 9px;
    font-size: 11px
  }

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

  .quiz-report-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px
  }

  .quiz-report-pagination {
    align-items: flex-start;
    flex-direction: column
  }
}

.student-assignment-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px
}

.student-assignment-actions .dashboard-inline-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  margin: 0;
  text-align: right;
  white-space: normal
}

@media(max-width:560px) {
  .student-assignment-row {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    padding: 16px 0
  }

  .student-assignment-actions {
    gap: 6px 10px
  }
}

/* Browser coding practice */
.coding-admin-page,
.coding-student-page,
.coding-editor-page {
  display: grid;
  gap: 22px;
  min-width: 0
}

.coding-admin-form-panel,
.coding-admin-library,
.coding-editor-panel,
.coding-preview-panel,
.coding-history-panel {
  min-width: 0
}

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

.coding-code-input,
.coding-editor-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.55;
  tab-size: 2
}

.coding-code-input {
  min-height: 190px;
  white-space: pre;
  overflow: auto
}

.coding-admin-library {
  margin-top: 0
}

.coding-challenge-admin-list,
.coding-student-list,
.coding-attempt-list {
  display: grid;
  gap: 12px
}

.coding-admin-item {
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 16px;
  background: #fff;
  overflow: hidden
}

.coding-admin-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none
}

.coding-admin-item summary::-webkit-details-marker {
  display: none
}

.coding-admin-item summary>span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0
}

.coding-admin-item summary strong {
  color: var(--text, #111a2e);
  overflow-wrap: anywhere
}

.coding-admin-item summary small {
  color: var(--muted, #667892)
}

.coding-admin-item[open] summary {
  border-bottom: 1px solid #edf1f7
}

.coding-admin-item .coding-challenge-form {
  padding: 20px
}

.coding-student-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 20px;
  border: 1px solid var(--border, #e1e8f2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 43, 77, .035)
}

.coding-card-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #002147;
  background: #edf3ff;
  font-weight: 800;
  font-size: 14px
}

.coding-student-copy {
  min-width: 0
}

.coding-student-copy .eyebrow {
  margin: 0 0 5px;
  font-size: 10px
}

.coding-student-copy h3 {
  margin: 0 0 5px;
  color: var(--text, #111a2e);
  font-size: 19px
}

.coding-student-copy>p:not(.eyebrow) {
  margin: 0 0 8px;
  color: var(--muted, #667892);
  overflow-wrap: anywhere
}

.coding-student-copy small {
  color: var(--muted, #667892);
  font-weight: 700
}

.coding-student-action {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px
}

.coding-student-action .button {
  white-space: nowrap
}

.coding-editor-heading {
  align-items: flex-start
}

.coding-editor-heading>div {
  max-width: 800px;
  min-width: 0
}

.coding-editor-heading h1 {
  overflow-wrap: anywhere
}

.coding-sandbox-badge,
.coding-preview-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #fff;
  color: #43536c;
  font-size: 12px;
  font-weight: 800
}

.coding-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0
}

.coding-editor-panel {
  display: grid;
  gap: 10px
}

.coding-editor-label {
  margin-top: 5px;
  color: #33425a;
  font-size: 13px;
  font-weight: 800
}

.coding-editor-textarea {
  width: 100%;
  min-width: 0;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #d5dfed;
  border-radius: 13px;
  background: #fbfcff;
  color: #172033;
  font-size: 13px;
  white-space: pre;
  overflow: auto
}

.coding-editor-textarea:focus {
  outline: 3px solid rgba(0, 33, 71, .17);
  border-color: #002147
}

.coding-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px
}

.coding-run-status {
  min-width: 0;
  color: var(--muted, #667892);
  font-size: 13px
}

.coding-test-results {
  display: grid;
  gap: 8px
}

.coding-test-result {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px
}

.coding-test-result.is-pass {
  border-color: #b8ebd1;
  background: #f0fbf5;
  color: #08784f
}

.coding-test-result.is-fail {
  border-color: #f3c3bf;
  background: #fff5f4;
  color: #b42318
}

.coding-test-result>span:first-child {
  font-size: 17px;
  font-weight: 900;
  text-align: center
}

.coding-test-result strong {
  font-size: 11px;
  white-space: nowrap
}

.coding-preview-panel {
  display: grid;
  gap: 14px
}

.coding-preview-indicator {
  padding: 7px 10px;
  font-size: 11px
}

.coding-preview-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13b981;
  box-shadow: 0 0 0 4px #e1f8ed
}

.coding-preview-panel iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 1px solid #dbe3ef;
  border-radius: 15px;
  background: #fff
}

.coding-preview-note,
.coding-practice-disclaimer {
  margin: 0;
  color: var(--muted, #667892);
  font-size: 12px;
  line-height: 1.6
}

.coding-history-panel {
  display: grid;
  gap: 14px
}

.coding-history-empty {
  color: var(--muted, #667892)
}

.coding-attempt-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #fafbfe
}

.coding-attempt-list time {
  color: var(--muted, #667892);
  font-size: 12px
}

.coding-practice-disclaimer {
  padding-top: 12px;
  border-top: 1px solid #edf1f7
}

@media(max-width:1050px) {
  .coding-workbench {
    grid-template-columns: minmax(0, 1fr)
  }

  .coding-preview-panel iframe {
    height: 460px
  }
}

@media(max-width:760px) {
  .coding-starter-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .coding-student-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px
  }

  .coding-card-mark {
    width: 42px;
    height: 42px
  }

  .coding-student-action {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap
  }

  .coding-editor-heading {
    flex-direction: column;
    gap: 12px
  }

  .coding-preview-panel iframe {
    height: 380px
  }
}

@media(max-width:520px) {
  .coding-admin-item summary {
    align-items: flex-start;
    padding: 14px
  }

  .coding-admin-item .coding-challenge-form {
    padding: 15px
  }

  .coding-student-card {
    align-items: start
  }

  .coding-student-copy h3 {
    font-size: 17px
  }

  .coding-student-action {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: column
  }

  .coding-editor-panel,
  .coding-preview-panel,
  .coding-history-panel {
    padding: 16px
  }

  .coding-editor-textarea {
    min-height: 125px;
    padding: 11px;
    font-size: 12px
  }

  .coding-editor-actions {
    align-items: stretch;
    flex-direction: column
  }

  .coding-editor-actions .button {
    justify-content: center
  }

  .coding-preview-panel iframe {
    height: 320px
  }

  .coding-attempt-list article {
    align-items: flex-start;
    flex-direction: column
  }

  .coding-test-result {
    grid-template-columns: 22px minmax(0, 1fr)
  }

  .coding-test-result strong {
    grid-column: 2
  }
}

/* Admin revenue and payment workspace */
.admin-revenue-page {
  display: grid;
  gap: 22px;
  min-width: 0
}

.revenue-page-header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px
}

.revenue-page-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px
}

.revenue-page-toolbar form {
  margin: 0
}

.revenue-page-toolbar .button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto
}

.revenue-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  min-width: 0
}

.revenue-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
  overflow: hidden
}

.revenue-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.revenue-kpi-label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
  color: #5b6b83
}

.revenue-kpi-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  background: #eef3ff;
  color: #002147
}

.revenue-kpi-icon svg {
  display: block;
  width: 22px;
  height: 22px
}

.revenue-kpi-value {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

.revenue-kpi-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap
}

.revenue-kpi-line i {
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  color: #94a3b8
}

.revenue-kpi-line b {
  font-size: 29px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy, #0f172a);
  overflow-wrap: anywhere
}

.revenue-kpi-foot {
  display: grid;
  gap: 2px;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7c8aa0;
  overflow-wrap: anywhere
}

.revenue-kpi-foot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9aa7ba
}

.revenue-kpi--hero {
  border-color: transparent;
  background: linear-gradient(150deg, #0d3a6b 0%, #002147 100%);
  box-shadow: 0 20px 44px rgba(0, 33, 71, .32)
}

.revenue-kpi--hero .revenue-kpi-label,
.revenue-kpi--hero .revenue-kpi-foot,
.revenue-kpi--hero .revenue-kpi-foot-label {
  color: #dbe6ff
}

.revenue-kpi--hero .revenue-kpi-foot {
  border-top-color: rgba(255, 255, 255, .22)
}

.revenue-kpi--hero .revenue-kpi-foot-label {
  color: #c3d3e8
}

.revenue-kpi--hero .revenue-kpi-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.revenue-kpi--hero .revenue-kpi-line b {
  color: #fff
}

.revenue-kpi--hero .revenue-kpi-line i {
  color: #c3d3e8
}

.revenue-kpi--developer {
  background: linear-gradient(150deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #bbf0d7
}

.revenue-kpi--developer .revenue-kpi-icon {
  background: #059669;
  color: #fff
}

.revenue-kpi--developer .revenue-kpi-line b {
  color: #047857
}

.revenue-kpi--developer .revenue-kpi-foot {
  border-top-color: #c9edd9;
  color: #3f7a63
}

.revenue-kpi--developer .revenue-kpi-foot-label {
  color: #0f9d6e
}

.revenue-kpi--payments .revenue-kpi-icon {
  background: #f3edff;
  color: #7c3aed
}

.revenue-kpi--students .revenue-kpi-icon {
  background: #fff5e6;
  color: #d97706
}

.payment-review-section {
  display: grid;
  gap: 18px;
  min-width: 0
}

.revenue-period-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  background: #f8faff;
  color: #43536c;
  font-size: 12px;
  font-weight: 800
}

.revenue-empty-state {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #d7e2f1;
  border-radius: 15px;
  background: #f8faff;
  color: #62738c
}

.revenue-empty-state strong {
  color: #1c2940;
  font-size: 15px
}

.revenue-empty-state span {
  font-size: 13px;
  line-height: 1.6
}

.payment-settings-card {
  margin: 0 0 0
}

.payment-review-section {
  margin-top: 2px
}

.payment-review-section .payment-review-list {
  display: grid;
  gap: 16px
}

.payment-review-section .payment-review-card {
  margin: 0
}

@media(max-width:1100px) {
  .revenue-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:903px) {
  .admin-revenue-page {
    gap: 18px
  }

  .revenue-page-toolbar {
    width: 100%
  }

  .revenue-page-toolbar .button {
    flex: 1 1 auto;
    justify-content: center
  }

  .revenue-kpi {
    padding: 18px
  }

  .payment-review-section,
  .payment-settings-card {
    padding: 20px
  }
}

@media(max-width:600px) {
  .revenue-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px
  }

  .revenue-kpi {
    padding: 16px;
    border-radius: 16px
  }

  .revenue-kpi-line b {
    font-size: 26px
  }

  .revenue-page-toolbar {
    flex-direction: column;
    align-items: stretch
  }

  .revenue-page-toolbar .button {
    width: 100%
  }

  .payment-review-section,
  .payment-settings-card {
    padding: 16px
  }

  .revenue-period-chip {
    align-self: flex-start
  }
}

/* Admin student directory: keep identity concise and make row actions easy to spot. */
.student-management-page .student-directory-table th:nth-child(1) {
  width: 60%
}

.student-management-page .student-directory-table th:nth-child(2) {
  width: 40%;
  text-align: right
}

.student-management-page .student-table-identity {
  gap: 0
}

.student-management-page .student-table-identity strong {
  display: block;
  color: #17233d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4
}

.student-management-page .student-table-identity small {
  display: block;
  margin-top: 5px;
  color: #718096;
  font-size: 12px;
  letter-spacing: .02em
}

.student-management-page .student-row-actions {
  justify-content: flex-end;
  gap: 10px
}

.student-management-page .student-row-actions .student-activity-link,
.student-management-page .student-row-actions .student-action-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease
}

.student-management-page .student-row-actions .student-activity-link {
  background: #002147;
  color: #fff;
  box-shadow: 0 6px 14px #0021471f
}

.student-management-page .student-row-actions .student-activity-link:hover {
  background: #0d3a6b;
  color: #fff;
  transform: translateY(-1px)
}

.student-management-page .student-row-actions .student-action-button.is-block {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318
}

.student-management-page .student-row-actions .student-action-button.is-block:hover {
  border-color: #fda4af;
  background: #fee4e2
}

.student-management-page .student-row-actions .student-action-button.is-unblock {
  border-color: #b7e4ca;
  background: #effaf4;
  color: #087443
}

.student-management-page .student-row-actions .student-action-button.is-unblock:hover {
  border-color: #86d4a8;
  background: #dcfce7
}

.student-management-page .student-row-actions .student-status-form {
  margin: 0
}

@media(max-width:760px) {
  .student-management-page .student-directory-table td[data-label="Student"] .student-table-identity {
    justify-content: flex-start;
    text-align: left
  }

  .student-management-page .student-directory-table .student-row-actions {
    justify-content: flex-end;
    gap: 8px
  }

  .student-management-page .student-directory-table .student-row-actions::before {
    margin-right: auto
  }

  .student-management-page .student-row-actions .student-activity-link,
  .student-management-page .student-row-actions .student-action-button {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 12px
  }

  .student-management-page .student-row-actions .student-status-form {
    margin-left: 0
  }
}

@media(max-width:420px) {
  .student-management-page .student-directory-table td[data-label="Actions"] {
    grid-template-columns: 1fr;
    gap: 9px
  }

  .student-management-page .student-directory-table .student-row-actions::before {
    margin: 0
  }

  .student-management-page .student-directory-table .student-row-actions {
    justify-content: flex-start
  }
}

/* ============================================================
   Certificate management & public verification
   ============================================================ */

/* Student workspace: certificate block inside each course card. */
.course-certificate {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #e6ecf6;
  border-radius: 14px;
  background: #f8fbff
}

.certificate-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: normal
}

.certificate-chip-issued {
  border: 1px solid #c9ead8;
  background: #e7f7ee;
  color: #087443
}

.certificate-chip-pending {
  border: 1px solid #d6e3ff;
  background: #eef4ff;
  color: #002147
}

.certificate-chip-expired {
  border: 1px solid #fde3bb;
  background: #fff7e8;
  color: #9a5b00
}

.certificate-chip-rejected {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318
}

.certificate-chip-revoked {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318
}

.certificate-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font-size: 12px
}

.certificate-line small {
  color: #8391a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase
}

.certificate-line strong {
  color: #17233d;
  font-size: 13px;
  overflow-wrap: anywhere
}

.certificate-note {
  margin: 0;
  color: #52627a;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.certificate-note-muted {
  color: #8391a6
}

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

.certificate-button {
  min-height: 38px;
  font-size: 12px
}

.certificate-link {
  color: #002147;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere
}

.certificate-link:hover {
  text-decoration: underline
}

.certificate-request-details {
  border: 1px dashed #cfdcf0;
  border-radius: 12px;
  background: #fff
}

.certificate-request-details>summary {
  padding: 9px 12px;
  color: #002147;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none
}

.certificate-request-details>summary::-webkit-details-marker {
  display: none
}

.certificate-request-details>summary::after {
  content: "＋";
  float: right
}

.certificate-request-details[open]>summary::after {
  content: "－"
}

.certificate-request-details>summary:hover {
  text-decoration: underline
}

.certificate-request-form {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #eef2f8
}

/* Admin queue. */
.certificate-page-search {
  width: min(340px, 42vw)
}

.certificate-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px
}

.certificate-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #52627a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease
}

.certificate-chip-link small {
  display: inline-flex;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-align: center
}

.certificate-chip-link:hover {
  border-color: #bfd3ff;
  background: #f7faff;
  color: #002147
}

.certificate-chip-link.is-active {
  border-color: #bfd3ff;
  background: #eff5ff;
  color: #002147
}

.certificate-chip-link.is-active small {
  background: #002147;
  color: #fff
}

.certificate-chip-clear {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318
}

.certificate-chip-clear:hover {
  border-color: #fca5a5;
  background: #fff1f1;
  color: #b42318
}

.certificate-table {
  min-width: 920px
}

.certificate-table th:nth-child(1) {
  width: 20%
}

.certificate-table th:nth-child(2) {
  width: 22%
}

.certificate-table th:nth-child(3) {
  width: 15%
}

.certificate-table th:nth-child(4) {
  width: 19%
}

.certificate-table th:nth-child(5) {
  width: 24%
}

.certificate-student,
.certificate-course,
.certificate-request,
.certificate-meta {
  display: grid;
  gap: 3px;
  min-width: 0
}

.certificate-student strong,
.certificate-course strong {
  color: #17233d;
  font-size: 13px;
  overflow-wrap: anywhere
}

.certificate-student small,
.certificate-course small,
.certificate-request small,
.certificate-meta small {
  color: #8391a6;
  font-size: 11px;
  overflow-wrap: anywhere
}

.certificate-request span {
  font-size: 12px;
  color: #52627a
}

.certificate-admin-remark {
  color: #b42318 !important
}

.certificate-status {
  display: inline-flex;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}

.certificate-status-requested {
  border: 1px solid #d6e3ff;
  background: #eef4ff;
  color: #002147
}

.certificate-status-issued {
  border: 1px solid #c9ead8;
  background: #e7f7ee;
  color: #087443
}

.certificate-status-rejected {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318
}

.certificate-status-expired {
  border: 1px solid #fde3bb;
  background: #fff7e8;
  color: #9a5b00
}

.certificate-status-revoked {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318
}

.certificate-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px
}

.certificate-row-actions .student-activity-link {
  margin: 0
}

.certificate-review {
  width: 100%;
  max-width: 340px;
  border: 1px solid #e6ecf6;
  border-radius: 12px;
  background: #fbfcfe
}

.certificate-review>summary {
  padding: 8px 11px;
  color: #002147;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none
}

.certificate-review>summary::-webkit-details-marker {
  display: none
}

.certificate-review>summary::after {
  content: "＋";
  float: right
}

.certificate-review[open]>summary::after {
  content: "－"
}

.certificate-review>summary:hover {
  text-decoration: underline
}

.certificate-review-form {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border-top: 1px solid #eef2f8;
  text-align: left
}

.certificate-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.certificate-file-input {
  padding: 8px 10px;
  border: 1px dashed #cfdcf0;
  border-radius: 10px;
  background: #fff;
  font-size: 12px
}

.certificate-file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: #eff5ff;
  color: #002147;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer
}

/* Certificate workspace: settings and eligibility now live on the certificates page itself. */
.certificate-admin-page>.admin-alert {
  margin-bottom: 20px
}

.certificate-settings-card {
  margin-top: 22px
}

.certificate-eligibility-card {
  margin-bottom: 22px
}

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

.certificate-eligibility-item {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e6ecf6;
  border-radius: 14px;
  background: #fbfcfe
}

.certificate-eligibility-value {
  color: #002147;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em
}

.certificate-eligibility-item strong {
  color: #17233d;
  font-size: 13px
}

.certificate-eligibility-item small {
  color: #718096;
  font-size: 11.5px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

/* The eligibility card joins the shared blue summary surface used by the other admin pages, so its
   header, lead and the three bars are re-tinted for the gradient background. */
.dashboard-summary-card .certificate-eligibility-lead {
  margin: 0 0 16px;
  color: #dbe8ff;
  font-size: 13px;
  line-height: 1.6
}

.dashboard-summary-card .certificate-eligibility-lead a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px
}

.dashboard-summary-card .certificate-eligibility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0
}

.dashboard-summary-card .certificate-eligibility-item {
  min-width: 0;
  padding: 2px 18px;
  border: 0;
  border-left: 1px solid #ffffff32;
  border-radius: 0;
  background: transparent
}

.dashboard-summary-card .certificate-eligibility-item:first-child {
  padding-left: 0;
  border-left: 0
}

.dashboard-summary-card .certificate-eligibility-value {
  color: #fff;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.05
}

.dashboard-summary-card .certificate-eligibility-item strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px
}

.dashboard-summary-card .certificate-eligibility-item small {
  color: #d5e3ff;
  font-size: 11.5px;
  line-height: 1.55
}

/* Students workspace: the attendance window is a student-facing tool, so it sits on this page. */
.student-attendance-card {
  margin-bottom: 22px
}

/* Security settings page: the note is a flex child of .admin-workspace, so it needs no top margin. */
.settings-scope-note {
  margin-top: 0
}

/* Account settings: the cards are plain block siblings with no margins of their own, so this
   page owns the rhythm between them - 22px, the gap every other dashboard workspace already uses. */
.account-settings-page>.admin-card+.admin-card {
  margin-top: 22px
}

.account-settings-page>.admin-alert {
  margin-bottom: 22px
}

.account-settings-page>.settings-scope-note {
  margin-top: 22px
}

/* The identity card's action row sat flush under the grid fields, so the button looked glued to the
   Account history box. Give it the same breathing room the other form action rows use. */
.account-settings-page .form-actions {
  margin-top: 18px
}

@media(max-width:640px) {
  .account-settings-page>.admin-card+.admin-card {
    margin-top: 16px
  }

  .account-settings-page>.admin-alert {
    margin-bottom: 16px
  }

  .account-settings-page>.settings-scope-note {
    margin-top: 16px
  }
}

/* The two ID dialogs on that page quote the number being replaced, so it is set in the same
   monospace face the certificates use and allowed to break across lines at any length. */
.admin-id-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  text-transform: uppercase
}

.identity-confirm-lead {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65
}

.identity-confirm-lead strong {
  color: #0f172a
}

.identity-confirm-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  word-break: break-all
}

.identity-confirm-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 20px;
  color: #52627a;
  font-size: 13.5px;
  line-height: 1.6
}

.identity-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc
}

.identity-confirm-grid dt {
  color: #8391a6;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.identity-confirm-grid dd {
  margin: 6px 0 0;
  color: #17233d;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere
}

/* Lesson library: watch-time rule and the inline lesson editors moved here from other pages. */
.lesson-rule-card {
  margin-bottom: 22px
}

.lesson-rule-card .admin-form {
  margin-top: 2px
}

.lesson-editor-card {
  margin-top: 22px
}

.lesson-editor-card .lesson-library-list {
  margin-top: 2px
}

/* Student portal: the certificate bars, quoted live from the grading settings. */
.my-courses-page>.admin-alert {
  margin-bottom: 20px
}

.certificate-criteria-panel {
  margin-bottom: 22px;
  padding: 0
}

.certificate-criteria-panel>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none
}

.certificate-criteria-panel>summary::-webkit-details-marker {
  display: none
}

.certificate-criteria-summary {
  display: grid;
  gap: 3px;
  min-width: 0
}

.certificate-criteria-summary strong {
  color: #17233d;
  font-size: 14px
}

.certificate-criteria-summary small {
  color: #718096;
  font-size: 12px
}

.certificate-criteria-toggle {
  flex: 0 0 auto;
  color: #002147;
  font-size: 16px;
  font-weight: 900
}

.certificate-criteria-panel[open]>summary {
  border-bottom: 1px solid #edf1f6
}

.certificate-criteria-panel[open]>summary .certificate-criteria-toggle {
  transform: rotate(45deg)
}

.certificate-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 0
}

.certificate-criteria-item {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #eaf0f8;
  border-radius: 13px;
  background: #f8fbff
}

.certificate-criteria-value {
  color: #002147;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em
}

.certificate-criteria-item strong {
  color: #17233d;
  font-size: 12.5px
}

.certificate-criteria-item small {
  color: #718096;
  font-size: 11.5px;
  line-height: 1.55
}

.certificate-criteria-note {
  margin: 14px 20px 16px;
  color: #52627a;
  font-size: 12px;
  line-height: 1.6
}

@media(max-width:903px) {

  .certificate-eligibility-grid,
  .certificate-criteria-grid {
    grid-template-columns: 1fr
  }
}

/* Student Certificate & Progress page. */
.progress-page .dashboard-metrics {
  margin-top: 16px
}

.progress-student-id {
  padding: 7px 13px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f4f8ff;
  color: #52627a;
  font-size: 12px;
  white-space: nowrap
}

.progress-student-id strong {
  color: #002147;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em
}

.progress-bars {
  display: grid;
  gap: 16px;
  margin-top: 20px
}

.progress-bar-block {
  min-width: 0
}

.progress-eligibility-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: #f4f8ff
}

.progress-eligibility-banner.is-ready {
  border-color: #d6f0e1;
  background: #f2fbf6
}

.progress-eligibility-banner strong {
  display: block;
  color: #17233d;
  font-size: 14px
}

.progress-eligibility-banner p {
  margin: 4px 0 0;
  color: #52627a;
  font-size: 12.5px;
  line-height: 1.55
}

.progress-eligibility-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  color: #087443;
  font-size: 16px;
  font-weight: 900
}

.progress-eligibility-banner.is-not-ready .progress-eligibility-mark {
  color: #b45309
}

.progress-course {
  margin-top: 4px
}

.progress-course-head {
  align-items: flex-start
}

.progress-course-sub {
  margin: 4px 0 0;
  color: #8391a6;
  font-size: 12px
}

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

.progress-course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 8px
}

.progress-modules h3,
.progress-block h3,
.progress-requirements h3 {
  margin: 0 0 12px;
  color: #17233d;
  font-size: 14px;
  font-weight: 800
}

.progress-module {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f8
}

.progress-module:last-child {
  border-bottom: 0
}

.progress-module-meta {
  display: block;
  margin-top: 5px;
  color: #8391a6;
  font-size: 11px
}

.progress-side {
  display: grid;
  gap: 16px
}

.progress-block {
  padding: 16px;
  border: 1px solid #eaf0f8;
  border-radius: 16px;
  background: #f8fbff
}

.progress-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px
}

.progress-metric-row:last-of-type {
  border-bottom: 0
}

.progress-metric-row span {
  color: #8391a6
}

.progress-metric-row strong {
  color: #17233d;
  text-align: right;
  overflow-wrap: anywhere
}

.progress-requirements {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e6ecf6;
  border-radius: 18px;
  background: #fafcff
}

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

.progress-requirements-head h3 {
  margin: 0
}

.progress-requirements-count {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff3e0;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap
}

.progress-requirements-count.is-done {
  background: #e7f7ee;
  color: #087443
}

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

.progress-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #eaf0f8;
  border-radius: 12px;
  background: #fff;
  font-size: 13px
}

.progress-check.is-met {
  border-color: #d6f0e1
}

.progress-check-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900
}

.progress-check.is-met .progress-check-mark {
  background: #e7f7ee;
  color: #087443
}

.progress-check.is-open .progress-check-mark {
  background: #fff3e0;
  color: #b45309
}

.progress-check-label {
  color: #17233d;
  overflow-wrap: anywhere
}

.progress-check-detail {
  color: #8391a6;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere
}

.progress-certificate {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6ecf6;
  font-size: 13px;
  color: #52627a
}

.progress-certificate p {
  margin: 8px 0 0;
  line-height: 1.6
}

.progress-certificate a {
  color: #002147;
  font-weight: 700
}

.progress-muted {
  margin: 0;
  color: #8391a6;
  font-size: 12.5px
}

@media(max-width:903px) {
  .progress-course-grid {
    grid-template-columns: 1fr
  }

  .progress-course-head {
    flex-wrap: wrap
  }

  .progress-course-badges {
    justify-content: flex-start
  }
}

@media(max-width:560px) {
  .progress-check {
    grid-template-columns: 22px minmax(0, 1fr)
  }

  .progress-check-detail {
    grid-column: 2;
    text-align: left
  }
}

/* Certificate ID format toggle on the admin settings card. */
.certificate-year-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #52627a;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
  overflow-wrap: anywhere
}

.certificate-year-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #002147
}

.certificate-year-toggle strong {
  color: #002147
}

/* Public verification page. */
.verify-hero {
  overflow: hidden;
  margin-top: 8px;
  padding: clamp(36px, 7vw, 68px) 22px clamp(58px, 9vw, 88px);
  border-radius: 24px;
  background: linear-gradient(140deg, #0f172a 0%, #002147 55%, #0d3a6b 100%);
  color: #fff;
  text-align: center
}

.verify-hero-inner {
  max-width: 760px;
  margin: 0 auto
}

.verify-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #ffffff1a;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase
}

.verify-hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.12
}

.verify-hero h1 span {
  color: #fbbf24
}

.verify-hero p {
  margin: 0;
  color: #dbe6ff;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.65;
  overflow-wrap: anywhere
}

.verify-search-section {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding: 0 4px
}

.verify-search-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px #0f172a1f
}

.verify-search-field {
  display: flex;
  gap: 10px
}

.verify-search-field input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 13px 15px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #17233d;
  font: inherit;
  font-size: 15px
}

.verify-search-field input:focus {
  outline: 2px solid #93b4ff;
  outline-offset: 1px;
  border-color: #bfd3ff;
  background: #fff
}

.verify-search-button {
  flex: 0 0 auto;
  min-width: 118px
}

.verify-search-hint {
  margin: 12px 0 0;
  color: #8391a6;
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere
}

.verify-search-hint strong {
  color: #002147
}

.verify-result-section {
  margin-top: 34px
}

/* One Academy ID can open several certificates, so the cards need a gap and a lead-in line. */
.verify-result-section>.verify-card+.verify-card {
  margin-top: 22px
}

.verify-multiple {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 13px 16px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: #f4f8ff;
  color: #52627a;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere
}

.verify-multiple strong {
  color: #17233d
}

.verify-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto
}

.verify-stats article {
  min-width: 0;
  padding: 20px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  text-align: center
}

.verify-stats strong {
  display: block;
  color: #17233d;
  font-size: 16px;
  overflow-wrap: anywhere
}

.verify-stats span {
  display: block;
  margin-top: 4px;
  color: #8391a6;
  font-size: 12px
}

.verify-card {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px #0f172a0f
}

.verify-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px
}

.verify-card-valid .verify-card-head {
  background: #eefaf2;
  border-bottom: 1px solid #d6f0e1
}

.verify-card-expired .verify-card-head {
  background: #fff7e8;
  border-bottom: 1px solid #fde3bb
}

.verify-card-revoked .verify-card-head {
  background: #fff5f5;
  border-bottom: 1px solid #fecaca
}

.verify-card-unknown .verify-card-head {
  background: #f6f8fc;
  border-bottom: 1px solid #e6ecf6
}

.verify-card-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900
}

.verify-card-valid .verify-card-mark {
  background: #087443
}

.verify-card-expired .verify-card-mark {
  background: #b45309
}

.verify-card-revoked .verify-card-mark {
  background: #b42318
}

.verify-card-unknown .verify-card-mark {
  background: #64748b
}

.verify-card-head h2 {
  margin: 0;
  color: #17233d;
  font-size: 19px
}

.verify-card-head p {
  margin: 4px 0 0;
  color: #52627a;
  font-size: 13px;
  overflow-wrap: anywhere
}

.verify-card-body {
  padding: 22px
}

.verify-awarded {
  margin: 0;
  color: #8391a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}

.verify-name {
  margin: 4px 0 2px;
  color: #111a2e;
  font-size: clamp(22px, 4vw, 30px);
  overflow-wrap: anywhere
}

.verify-course {
  margin: 0 0 18px;
  color: #002147;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere
}

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

.verify-grid div {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #eaf0f8;
  border-radius: 14px;
  background: #f8fbff
}

.verify-grid dt {
  color: #8391a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.verify-grid dd {
  margin: 5px 0 0;
  color: #17233d;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere
}

.verify-id {
  color: #002147 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em
}

.verify-ok {
  color: #087443 !important
}

.verify-lapsed {
  color: #b45309 !important
}

.verify-remarks {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 14px 15px;
  border-left: 3px solid #002147;
  border-radius: 0 14px 14px 0;
  background: #f4f8ff;
  font-size: 13px
}

.verify-remarks strong {
  color: #8391a6;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.verify-remarks span {
  color: #334155;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.verify-authenticity {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d6f0e1;
  border-radius: 16px;
  background: #f2fbf6
}

.verify-authenticity-icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1.2
}

.verify-authenticity h4 {
  margin: 0 0 2px;
  color: #0b5c39;
  font-size: 14px
}

.verify-authenticity p {
  margin: 0 0 8px;
  color: #52627a;
  font-size: 12px
}

.verify-authenticity ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.55
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.verify-download {
  min-width: 200px
}

.verify-card-foot {
  padding: 12px 22px;
  border-top: 1px solid #eef2f8;
  background: #fafcff;
  color: #8391a6;
  font-size: 11px;
  overflow-wrap: anywhere
}

.verify-help {
  margin: 0;
  color: #52627a;
  font-size: 13.5px;
  line-height: 1.65
}

.verify-help a {
  color: #002147;
  font-weight: 700;
  overflow-wrap: anywhere
}

.verify-tried {
  margin: 10px 0 0;
  color: #8391a6;
  font-size: 12px;
  overflow-wrap: anywhere
}

.verify-how {
  max-width: 900px;
  margin: 44px auto 8px;
  text-align: center
}

.verify-how h2 {
  color: #111a2e;
  font-size: 22px
}

.verify-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  text-align: left
}

.verify-how-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff
}

.verify-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #eff5ff;
  color: #002147;
  font-size: 13px;
  font-weight: 900
}

.verify-how-grid h3 {
  margin: 0 0 6px;
  color: #17233d;
  font-size: 15px
}

.verify-how-grid p {
  margin: 0;
  color: #52627a;
  font-size: 12.5px;
  line-height: 1.6
}

/* Certificate responsive rules — project convention: 903px, 760px, 560px. */
@media(max-width:1050px) {
  .certificate-page-search {
    width: min(300px, 38vw)
  }
}

@media(max-width:903px) {
  .verify-hero {
    border-radius: 18px;
    padding: 32px 16px 62px
  }

  .verify-search-section {
    margin-top: -36px
  }

  .verify-search-card {
    padding: 16px
  }

  .verify-stats,
  .verify-grid,
  .verify-how-grid {
    grid-template-columns: 1fr
  }

  .verify-how {
    text-align: left
  }

  .verify-card-head,
  .verify-card-body,
  .verify-card-foot {
    padding: 16px
  }

  .verify-actions .button {
    width: 100%
  }
}

@media(max-width:760px) {

  .certificate-table,
  .certificate-table tbody,
  .certificate-table tr,
  .certificate-table td {
    display: block;
    width: 100%
  }

  .certificate-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
  }

  .certificate-table tbody {
    padding: 10px
  }

  .certificate-table tr {
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fff
  }

  .certificate-table tbody tr:last-child {
    margin-bottom: 0
  }

  .certificate-table td {
    display: grid;
    grid-template-columns: minmax(88px, .34fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid #edf1f6;
    text-align: right;
    overflow-wrap: anywhere
  }

  .certificate-table td:last-child {
    border-bottom: 0
  }

  .certificate-table td::before {
    content: attr(data-label);
    color: #8391a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase
  }

  .certificate-table .certificate-row-actions {
    align-items: flex-end;
    gap: 10px
  }

  .certificate-table .certificate-status {
    justify-self: end
  }

  .certificate-review {
    max-width: 100%
  }

  .certificate-actions .button {
    width: 100%
  }

  .course-certificate .certificate-chip {
    justify-self: end
  }
}

@media(max-width:560px) {
  .verify-search-field {
    flex-direction: column
  }

  .verify-search-button {
    width: 100%
  }

  .verify-authenticity {
    flex-direction: column;
    gap: 8px
  }

  .certificate-filter-chips {
    gap: 6px
  }

  .certificate-chip-link {
    flex: 1 1 46%;
    justify-content: space-between
  }
}

.revenue-summary-shell {
  margin: 0 0 20px;
  padding: 20px;
  border-radius: 22px;
  background: #002147;
  box-shadow: none
}

.revenue-summary-shell .revenue-kpi-grid {
  gap: 10px
}

.revenue-summary-shell .revenue-kpi {
  min-height: 166px;
  padding: 17px;
  border: 1px solid #ffffff2b;
  border-radius: 15px;
  background: #ffffff12;
  box-shadow: none
}

.revenue-summary-shell .revenue-kpi--hero {
  background: #ffffff20;
  box-shadow: none
}

.revenue-summary-shell .revenue-kpi-label,
.revenue-summary-shell .revenue-kpi-foot,
.revenue-summary-shell .revenue-kpi-foot-label,
.revenue-summary-shell .revenue-kpi-line i {
  color: #dbeafe
}

.revenue-summary-shell .revenue-kpi-foot {
  border-top-color: #ffffff35
}

.revenue-summary-shell .revenue-kpi-icon,
.revenue-summary-shell .revenue-kpi--developer .revenue-kpi-icon,
.revenue-summary-shell .revenue-kpi--payments .revenue-kpi-icon,
.revenue-summary-shell .revenue-kpi--students .revenue-kpi-icon {
  background: #ffffff20;
  color: #fff
}

.revenue-summary-shell .revenue-kpi-line b {
  color: #fff
}

.revenue-summary-shell .revenue-kpi--developer .revenue-kpi-line b {
  color: #fff
}

.approved-payment-history {
  margin-top: 20px
}

.approved-payments-table td {
  vertical-align: middle
}

.approved-payments-table td small {
  display: block;
  margin-top: 3px;
  color: #718096
}

@media(max-width:600px) {
  .revenue-summary-shell {
    padding: 12px;
    border-radius: 17px
  }
}

/* =========================================================
   DASHBOARD ANALYTICS + STUDENT ATTENDANCE
   Admin overview charts and the daily attendance card.
   ========================================================= */

.dashboard-analytics-page {
  --att-blue: #002147;
  --att-blue-soft: #eff6ff;
  --att-emerald: #059669;
  --att-emerald-soft: #ecfdf5;
  --att-amber: #d97706;
  --att-amber-soft: #fffbeb;
  --att-rose: #e11d48;
  --att-rose-soft: #fff1f3;
  --att-violet: #7c3aed;
  --att-violet-soft: #f5f3ff;
  --att-indigo: #3f51b5;
  --att-indigo-soft: #eef2ff;
  --att-navy: #0f172a;
  --att-muted: #64748b;
  --att-border: #e2e8f0
}

.analytics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}

.analytics-ranges {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto
}

.analytics-ranges label {
  color: var(--att-muted, #64748b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}

.analytics-range-select {
  min-width: 158px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--att-border, #e2e8f0);
  border-radius: 11px;
  background: var(--surface, #fff);
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center
}

.analytics-range-select:focus {
  outline: 2px solid #00214733;
  border-color: var(--att-blue, #002147)
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0
}

.kpi-grid-student {
  grid-template-columns: repeat(6, minmax(0, 1fr))
}

.kpi-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 148px;
  flex-direction: column;
  padding: 16px 16px 15px;
  border: 1px solid var(--att-border);
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 12px 30px #0f172a08;
  transition: transform .2s ease, box-shadow .2s ease
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px #0f172a12
}

.kpi-card::after {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: currentColor;
  content: "";
  opacity: .85
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0
}

.kpi-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800
}

.kpi-label {
  min-width: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.kpi-value {
  margin-top: 12px;
  color: var(--att-navy);
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.045em
}

.kpi-hint {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere
}

.kpi-delta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  color: var(--att-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}

.kpi-blue {
  color: var(--att-blue)
}

.kpi-blue .kpi-icon {
  background: var(--att-blue-soft)
}

.kpi-emerald {
  color: var(--att-emerald)
}

.kpi-emerald .kpi-icon {
  background: var(--att-emerald-soft)
}

.kpi-amber {
  color: var(--att-amber)
}

.kpi-amber .kpi-icon {
  background: var(--att-amber-soft)
}

.kpi-rose {
  color: var(--att-rose)
}

.kpi-rose .kpi-icon {
  background: var(--att-rose-soft)
}

.kpi-violet {
  color: var(--att-violet)
}

.kpi-violet .kpi-icon {
  background: var(--att-violet-soft)
}

.kpi-indigo {
  color: var(--att-indigo)
}

.kpi-indigo .kpi-icon {
  background: var(--att-indigo-soft)
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  /* One shared row height per line keeps the space under every card in the row identical. */
  align-items: stretch
}

.chart-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: span 4;
  padding: 20px
}

.chart-card>.dashboard-panel-heading {
  flex: 0 0 auto
}

/* The main visual of a card swallows the spare height instead of leaving it under the content. */
.chart-card>.alert-list,
.chart-card>.chart-bars,
.chart-card>.chart-line,
.chart-card>.chart-spark,
.chart-card>.donut-wrap,
.chart-card>.meter-list,
.chart-card>.rank-list {
  flex: 1 1 auto
}

.chart-card>.chart-bars {
  height: auto;
  min-height: 212px
}

.chart-card>.chart-line {
  height: auto;
  min-height: 212px
}

.chart-card>.chart-spark {
  height: auto;
  min-height: 74px
}

/* Grid bodies centre their rows; the alert queue keeps reading from the top. */
.chart-card>.donut-wrap {
  align-items: center
}

.chart-card>.meter-list,
.chart-card>.rank-list {
  align-content: center
}

.chart-card>.alert-list {
  align-content: start
}

/* Footnotes, stat pairs and follow-up boxes are pinned to the bottom edge of the card. */
.chart-card>.chart-footnote,
.chart-card>.chart-stats,
.chart-card>.attention-box {
  flex: 0 0 auto;
  margin-top: auto
}

.chart-card>.dashboard-empty {
  flex: 0 0 auto;
  margin: auto 0
}

.chart-card-wide {
  grid-column: span 12
}

/* Admin attendance roster: summary, today's check-ins and individual rates share the analytics grid rhythm. */
.attendance-roster-card .dashboard-panel-heading .dashboard-inline-link {
  flex: 0 0 auto
}

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

.attendance-admin-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--att-border);
  border-radius: 15px;
  background: #f8fafc
}

.attendance-admin-metric strong {
  color: #10243f;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 850;
  line-height: 1
}

.attendance-admin-metric span {
  color: #64748b;
  font-size: 11px;
  font-weight: 750
}

.attendance-admin-metric.metric-present strong,
.attendance-student-status.is-present {
  color: #047857
}

.attendance-admin-metric.metric-absent strong,
.attendance-student-status.is-absent {
  color: #be123c
}

.attendance-admin-metric.metric-pending strong,
.attendance-student-status.is-pending {
  color: #b45309
}

.attendance-admin-metric.metric-rate strong {
  color: #1d4ed8
}

.attendance-admin-columns {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: 16px
}

.attendance-admin-present,
.attendance-admin-breakdown {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--att-border);
  border-radius: 16px;
  background: #fbfdff
}

.attendance-admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px
}

.attendance-admin-section-heading .eyebrow {
  margin: 0 0 3px;
  color: #8090a6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em
}

.attendance-admin-section-heading h3 {
  margin: 0;
  color: #10243f;
  font-size: 15px;
  font-weight: 800
}

.attendance-count-pill,
.attendance-range-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: #fff;
  color: #52627a;
  font-size: 10px;
  font-weight: 800
}

.attendance-count-pill {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5
}

.attendance-present-list,
.attendance-student-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none
}

.attendance-present-list {
  max-height: 342px;
  overflow: auto
}

.attendance-present-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fff
}

.attendance-student-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #e8f1ff;
  color: #2456a6;
  font-size: 12px;
  font-weight: 850
}

.attendance-present-name {
  min-width: 0;
  flex: 1 1 auto;
  color: #172b45;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere
}

.attendance-student-status {
  flex: 0 0 auto;
  color: #718096;
  font-size: 10px;
  font-weight: 750
}

.attendance-student-status.is-none {
  color: #718096
}

.attendance-student-list {
  max-height: 342px;
  overflow: auto;
  padding-right: 4px
}

.attendance-student-row {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fff
}

.attendance-student-row-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0
}

.attendance-student-row-top>strong {
  min-width: 0;
  flex: 1 1 auto;
  color: #172b45;
  font-size: 11.5px;
  overflow-wrap: anywhere
}

.attendance-student-rate {
  flex: 0 0 auto;
  color: #10243f;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums
}

.attendance-student-row-bottom {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 8px 0 0 40px;
  color: #718096;
  font-size: 10px
}

.attendance-student-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5
}

.attendance-student-meter span {
  display: block;
  width: var(--attendance-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #34d399)
}

.attendance-admin-empty {
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed #d4dfeb;
  border-radius: 12px;
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
  text-align: center
}

/* ---------- compact stat pair inside a card ---------- */

.chart-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px
}

.chart-stats>div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--att-border);
  border-radius: 14px;
  background: #f8fafc
}

.chart-stats strong {
  color: var(--att-navy);
  font-size: 18px;
  font-weight: 850;
  font-variant-numeric: tabular-nums
}

.chart-stats span {
  color: var(--att-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em
}

.chart-badge {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--att-emerald-soft);
  color: #047857;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap
}

.chart-footnote {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere
}

.chart-footnote span {
  margin-right: 10px;
  color: var(--att-muted);
  font-weight: 700
}

.chart-empty-line {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--att-border);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center
}

/* ---------- bar charts ---------- */

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 212px;
  margin-top: 18px;
  padding-top: 6px
}

.chart-col {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px
}

.chart-value {
  color: var(--att-navy);
  font-size: 11px;
  font-weight: 800
}

.chart-bar {
  display: block;
  width: 100%;
  max-width: 46px;
  height: var(--bar-height, 6%);
  border-radius: 10px 10px 6px 6px;
  transition: height .35s ease
}

.bar-blue {
  background: linear-gradient(180deg, #1f4f8f, #002147)
}

.chart-label {
  min-height: 14px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap
}

/* ---------- attendance line chart ---------- */

.chart-line {
  position: relative;
  display: flex;
  min-width: 0;
  height: 212px;
  margin-top: 18px;
  padding-top: 6px;
  flex-direction: column
}

.chart-line-plot {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px
}

.chart-line-svg {
  display: block;
  width: 100%;
  height: 100%
}

.line-grid {
  stroke: #e2e8f0;
  stroke-width: 1
}

/* Vertical band behind the highlighted (today) column. */
.line-band {
  fill: var(--att-blue);
  opacity: .08
}

.line-fill {
  fill: url(#attLineFill);
  stroke: none
}

.line-stroke {
  fill: none;
  stroke: var(--att-blue);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Absent trend reads as a lighter companion line under the present hero line. */
.line-stroke-secondary {
  fill: none;
  stroke: var(--att-rose);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 3;
  opacity: .7
}

.line-guide {
  stroke: var(--att-blue);
  stroke-width: 1.4;
  stroke-dasharray: 2 2;
  opacity: .55
}

.line-dot {
  position: absolute;
  top: var(--py, 50%);
  left: var(--px, 50%);
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--att-blue);
  border-radius: 50%;
  background: #fff
}

.chart-line-ylabels {
  position: absolute;
  /* Data band runs from viewBox y=10 (max) to y=60 (zero); 74-unit tall box. */
  top: 13.5%;
  bottom: 18.9%;
  left: 0;
  width: 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none
}

.chart-line-ylabels>span {
  line-height: 1
}

.chart-line-labels {
  position: relative;
  flex: 0 0 auto;
  height: 20px;
  margin-top: 6px
}

.chart-line-labels>span {
  position: absolute;
  top: 0;
  left: var(--px, 50%);
  transform: translateX(-50%);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap
}

.chart-line-labels>span.is-active {
  color: var(--att-blue)
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: var(--att-muted);
  font-size: 11px;
  font-weight: 700
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.chart-legend-months {
  justify-content: space-between;
  gap: 4px
}

.chart-legend-months span {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .06em
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%
}

.legend-emerald {
  background: var(--att-emerald)
}

.legend-rose {
  background: var(--att-rose)
}

.legend-amber {
  background: var(--att-amber)
}

.legend-blue {
  background: var(--att-blue)
}

.legend-white {
  background: #fff
}

/* ---------- revenue card ---------- */

.revenue-figure {
  display: grid;
  gap: 3px;
  margin-top: 16px
}

.revenue-figure span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.revenue-figure strong {
  color: var(--att-navy);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.045em;
  overflow-wrap: anywhere
}

.revenue-figure small {
  color: var(--att-emerald);
  font-size: 12px;
  font-weight: 700
}

.chart-spark {
  display: block;
  width: 100%;
  height: 74px;
  margin-top: 12px
}

.spark-line {
  fill: none;
  stroke: var(--att-emerald);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke
}

.spark-area {
  fill: #0596691a;
  stroke: none
}


/* ---------- donut charts ---------- */

.donut-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px
}

.donut {
  display: grid;
  width: 148px;
  height: 148px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--donut, #e2e8f0)
}

.donut-center {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--surface, #fff);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  text-align: center
}

.donut-center strong {
  color: var(--att-navy);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.04em
}

.donut-center small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.donut-legend {
  display: grid;
  min-width: 0;
  flex: 1 1 150px;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px
}

.donut-legend span {
  flex: 1 1 auto;
  min-width: 0;
  color: #475569;
  font-weight: 700;
  overflow-wrap: anywhere
}

.donut-legend strong {
  flex: 0 0 auto;
  color: var(--att-navy);
  font-weight: 850
}

/* ---------- meter rows ---------- */

.meter-list {
  display: grid;
  gap: 15px;
  margin-top: 18px
}

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

.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px
}

.meter-head span {
  color: #475569;
  font-weight: 700
}

.meter-head strong {
  color: var(--att-navy);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap
}

.meter {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9
}

.meter-fill {
  display: block;
  width: var(--meter-width, 0%);
  height: 100%;
  border-radius: 999px;
  transition: width .35s ease
}

.meter-emerald {
  background: linear-gradient(90deg, #34d399, #059669)
}

.meter-amber {
  background: linear-gradient(90deg, #fbbf24, #d97706)
}

.meter-blue {
  background: linear-gradient(90deg, #1f4f8f, #002147)
}

.meter-violet {
  background: linear-gradient(90deg, #a78bfa, #7c3aed)
}

.meter-indigo {
  background: linear-gradient(90deg, #1f4f8f, #0d3a6b)
}

.meter-rose {
  background: linear-gradient(90deg, #fb7185, #e11d48)
}

/* ---------- top course ranking ---------- */

.rank-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none
}

.rank-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0
}

.rank-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--att-blue-soft);
  color: var(--att-blue);
  font-size: 11px;
  font-weight: 850
}

.rank-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px
}

.rank-copy strong {
  color: var(--att-navy);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere
}

.rank-copy small {
  color: #94a3b8;
  font-size: 11px
}

.rank-track {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9
}

.rank-fill {
  display: block;
  width: var(--rank-width, 4%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4f8f, #002147)
}

/* ---------- operations alerts ---------- */

.alert-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--att-border);
  border-radius: 14px;
  background: #fbfdff
}

.alert-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--att-blue)
}

.alert-danger .alert-dot {
  background: var(--att-rose)
}

.alert-warning .alert-dot {
  background: var(--att-amber)
}

.alert-success .alert-dot {
  background: var(--att-emerald)
}

.alert-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px
}

.alert-copy strong {
  color: var(--att-navy);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere
}

.alert-copy small {
  color: #94a3b8;
  font-size: 11px;
  overflow-wrap: anywhere
}

.alert-link {
  flex: 0 0 auto;
  color: var(--att-blue);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap
}

.alert-link:hover {
  text-decoration: underline
}

.attention-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  background: var(--att-rose-soft)
}

.attention-box h3 {
  margin: 0 0 10px;
  color: #9f1239;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase
}

.attention-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none
}

.attention-box li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 12px
}

.attention-box span {
  min-width: 0;
  color: #881337;
  font-weight: 700;
  overflow-wrap: anywhere
}

.attention-box strong {
  flex: 0 0 auto;
  color: #9f1239;
  font-weight: 850;
  white-space: nowrap
}

/* ---------- admin performance snapshot (redesigned navy KPI surface) ---------- */

/* Each metric is a translucent tile with a tone-coloured accent bar, so the six figures read as one
   premium panel rather than a bordered spreadsheet grid. */
.admin-dashboard-snapshot .snapshot-range {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #ffffff14;
  color: #dbe8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap
}

/* Two columns: the trend chart reads on the left, the headline metrics sit on the right with no
   card of their own so the single navy surface stays the only background. */
.admin-dashboard-snapshot .snapshot-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 14px
}

/* ---------- left: multi-line trend chart ---------- */

.admin-dashboard-snapshot .snapshot-chart {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 262px;
  flex-direction: column
}

.admin-dashboard-snapshot .snapshot-plot {
  position: relative;
  flex: 1 1 auto;
  min-height: 190px
}

.admin-dashboard-snapshot .snapshot-svg {
  display: block;
  width: 100%;
  height: 100%
}

.admin-dashboard-snapshot .sn-grid {
  stroke: #ffffff22;
  stroke-width: 1
}

.admin-dashboard-snapshot .sn-guide {
  stroke: #ffffff5c;
  stroke-width: 1.2;
  stroke-dasharray: 3 3
}

.admin-dashboard-snapshot .sn-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Data band runs from viewBox y=10 (peak) to y=60 (zero) inside a 74-unit tall box. */
.admin-dashboard-snapshot .snapshot-ylabels {
  position: absolute;
  top: 13.5%;
  bottom: 18.9%;
  left: 0;
  width: 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 5px;
  color: #9fb6d6;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none
}

.admin-dashboard-snapshot .snapshot-ylabels>span {
  line-height: 1
}

.admin-dashboard-snapshot .snapshot-xlabels {
  position: relative;
  flex: 0 0 auto;
  height: 18px;
  margin-top: 6px
}

.admin-dashboard-snapshot .snapshot-xlabels>span {
  position: absolute;
  top: 0;
  left: var(--px, 50%);
  transform: translateX(-50%);
  color: #9fb6d6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap
}

.admin-dashboard-snapshot .snapshot-xlabels>span.is-active {
  color: #fff
}

/* ---------- right: compact KPI rows on the navy surface ---------- */

.admin-dashboard-snapshot .snapshot-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px
}

.admin-dashboard-snapshot .snapshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #ffffff1f
}

.admin-dashboard-snapshot .snapshot-row:last-child {
  border-bottom: 0
}

.admin-dashboard-snapshot .snapshot-key {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px
}

/* The dot carries each metric's own line colour so the chart and the number pair without labels. */
.admin-dashboard-snapshot .snapshot-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tile-accent, #7dd3fc);
  box-shadow: 0 0 0 3px #ffffff1f
}

.admin-dashboard-snapshot .snapshot-figure {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right
}

.admin-dashboard-snapshot .snapshot-label {
  min-width: 0;
  color: #dbe8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.admin-dashboard-snapshot .snapshot-value {
  color: #fff;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums
}

.admin-dashboard-snapshot .snapshot-hint {
  max-width: 160px;
  color: #a9c1e0;
  font-size: 10.5px;
  line-height: 1.4;
  overflow-wrap: anywhere
}

@media (max-width: 1080px) {
  .admin-dashboard-snapshot .snapshot-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px
  }

  .admin-dashboard-snapshot .snapshot-chart {
    min-height: 220px
  }

  .admin-dashboard-snapshot .snapshot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px
  }

  .admin-dashboard-snapshot .snapshot-row:last-child {
    border-bottom: 1px solid #ffffff1f
  }
}

@media (max-width: 620px) {
  .admin-dashboard-snapshot .snapshot-list {
    grid-template-columns: minmax(0, 1fr)
  }

  .admin-dashboard-snapshot .snapshot-row:last-child {
    border-bottom: 0
  }
}

/* Attendance day labels are thinned server-side to about six, but the card is narrow, so the
   type is reduced to keep the visible dates from colliding into one another. */
.admin-overview-layout .chart-line-labels>span {
  font-size: 9px;
  letter-spacing: .01em
}

/* ---------- student dashboard hero (attendance + snapshot on one navy surface) ---------- */

.student-dashboard-hero .attendance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 26px;
  padding: 18px 0 20px;
  border-bottom: 1px solid #ffffff26
}

/* Without the chart (attendance not configured yet) one tile would leave half the row empty. */
.student-dashboard-hero .attendance-hero-single {
  grid-template-columns: minmax(0, 1fr)
}

.student-dashboard-hero .attendance-main {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 14px
}

/* Today's attendance and the streak are metric tiles, so they read like the KPI cells below them. */
.hero-tile {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 17px 20px;
  border: 1px solid #ffffff2b;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff20, #ffffff0a);
  overflow: hidden
}

.hero-tile::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: currentColor;
  content: "";
  opacity: .9
}

.hero-tile-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0
}

.hero-tile-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ffffff2e;
  border-radius: 10px;
  background: #ffffff1f;
  color: #fff;
  font-size: 14px;
  font-weight: 800
}

.hero-tile-label {
  min-width: 0;
  color: #dbe8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.hero-tile-value {
  color: #fff;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.12;
  letter-spacing: -.04em
}

.hero-tile-hint {
  margin: 0;
  color: #b9d0ee;
  font-size: 11.5px;
  line-height: 1.55;
  overflow-wrap: anywhere
}

.hero-tile-emerald {
  color: #6ee7b7
}

.hero-tile-rose {
  color: #fda4af
}

.hero-tile-amber {
  color: #fcd34d
}

.hero-tile-slate {
  color: #a9c6ea
}

.hero-tile-day-streak {
  color: #7dd3fc
}

.student-dashboard-hero .attendance-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px
}

.student-dashboard-hero .attendance-mark-button {
  border: 1px solid #ffffff40;
  border-radius: 12px;
  background: #fff;
  color: #002147;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 10px 22px #0000003d;
  transition: transform .18s ease, box-shadow .18s ease
}

.student-dashboard-hero .attendance-mark-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px #0000004d
}

.student-dashboard-hero .attendance-mark-button:disabled {
  cursor: not-allowed;
  transform: none;
  background: #94a3b8;
  color: #475569;
  box-shadow: none
}

.student-dashboard-hero .attendance-mark-button:focus-visible {
  outline: 2px solid var(--att-indigo);
  outline-offset: 2px
}

.student-dashboard-hero .attendance-timer {
  color: #fcd34d;
  font-size: 12.5px;
  font-weight: 850;
  font-variant-numeric: tabular-nums
}

.student-dashboard-hero .attendance-timer.is-closed {
  color: #fda4af
}

.student-dashboard-hero .attendance-chart {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 14px
}

.attendance-progress-layout {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 18px;
  width: 100%
}

.attendance-rate-ring {
  display: grid;
  width: 148px;
  height: 148px;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--att-emerald) 0 var(--attendance-rate, 0%), #ffffff2b var(--attendance-rate, 0%) 100%);
  box-shadow: 0 12px 26px #00000033
}

.attendance-rate-ring-center {
  display: grid;
  width: 116px;
  height: 116px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px;
  border-radius: 50%;
  background: #002147;
  box-shadow: inset 0 0 0 1px #ffffff2b
}

.attendance-rate-ring-center strong {
  color: #fff;
  font-size: 26px
}

.attendance-rate-ring-center span {
  color: #d5e3ff;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums
}

.attendance-rate-ring-center small {
  color: #a9c6ea;
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.4
}

.student-dashboard-hero .attendance-progress-layout .donut-legend {
  width: 100%;
  margin: 0
}

.student-dashboard-hero .attendance-progress-layout .donut-legend span {
  color: #d5e3ff
}

.student-dashboard-hero .attendance-progress-layout .donut-legend strong {
  color: #fff
}

.student-dashboard-hero .chart-footnote {
  margin: 0;
  color: #a9c6ea
}

.student-dashboard-hero .kpi-grid {
  margin: 6px 0 0
}

/* ---------- weekly trend + forecast insight cards ---------- */

.attendance-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0 4px;
  padding: 18px 0 4px
}

.insight-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff1c, #ffffff08)
}

.insight-head .eyebrow {
  margin: 0 0 3px;
  color: #a9c6ea;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em
}

.insight-head h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em
}

.insight-empty {
  margin: 6px 0 0;
  color: #b9d0ee;
  font-size: 12px;
  line-height: 1.6
}

.week-bars {
  display: flex;
  flex: 1 1 auto;
  min-height: 118px;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px
}

.week-bar-col {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px
}

.week-bar-value {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums
}

.week-bar {
  display: block;
  width: 100%;
  max-width: 34px;
  height: var(--week-height, 6%);
  border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #34d399, #059669);
  box-shadow: inset 0 0 0 1px #ffffff1f;
  transition: height .35s ease
}

.week-bar-label {
  color: #a9c6ea;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap
}

.forecast-lead {
  margin: 0;
  color: #e6effc;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55
}

.forecast-meter {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff1f
}

.forecast-fill {
  display: block;
  width: var(--forecast-width, 0%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4f8f, #34d399);
  transition: width .4s ease
}

.forecast-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a9c6ea;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}

/* Donut hover tooltip — anchored to the wrap, moved and filled by the script. */
.donut-tooltip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 180px;
  padding: 7px 11px;
  border: 1px solid #ffffff33;
  border-radius: 10px;
  background: #06182ce6;
  box-shadow: 0 12px 26px #00000059;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -118%);
  transition: opacity .15s ease
}

.donut-tooltip.is-visible {
  opacity: 1
}

.donut-tooltip i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%
}

.donut-tooltip strong {
  margin-left: 2px;
  font-weight: 850
}

.attendance-history {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none
}

.attendance-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7
}

.attendance-history li:last-child {
  padding-bottom: 0;
  border-bottom: none
}

.attendance-history span {
  color: var(--att-navy);
  font-size: 12px;
  font-weight: 800
}

.attendance-history small {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 11px
}

.attendance-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap
}

.chip-present {
  background: var(--att-emerald-soft);
  color: #047857
}

.chip-absent {
  background: var(--att-rose-soft);
  color: #9f1239
}

.chip-pending {
  background: var(--att-amber-soft);
  color: #b45309
}

/* ---------- analytics table + list reuse ---------- */

.analytics-grid .dashboard-table-wrap {
  margin-top: 16px
}

.analytics-grid .dashboard-list {
  margin-top: 14px
}

/* ---------- responsive ---------- */

@media(max-width:1320px) {

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

  .chart-card {
    grid-column: span 6
  }
}

@media(max-width:1050px) {
  .analytics-grid {
    gap: 16px
  }

  .chart-bars {
    height: 190px
  }
}

@media(max-width:903px) {
  .analytics-heading {
    align-items: flex-start
  }

  .analytics-ranges {
    width: 100%;
    justify-content: space-between
  }

  .analytics-range-select {
    flex: 1;
    min-width: 0
  }

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

  .chart-card,
  .chart-card-wide {
    grid-column: span 12
  }

  .student-dashboard-hero .attendance-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px
  }

  .attendance-insights {
    grid-template-columns: minmax(0, 1fr)
  }

  .donut-wrap {
    justify-content: space-between
  }

  .revenue-figure strong {
    font-size: 26px
  }
}

@media(max-width:760px) {
  .chart-bars {
    gap: 7px;
    height: 168px
  }

  .chart-value {
    font-size: 10px
  }

  .chart-bar {
    max-width: 32px
  }

  .donut-wrap {
    flex-direction: column;
    align-items: center
  }

  .donut-legend {
    width: 100%
  }

  .alert-row {
    flex-wrap: wrap
  }

  .alert-link {
    margin-left: 20px
  }

  .student-dashboard-hero .attendance-hero {
    gap: 16px
  }

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

  .attendance-admin-columns {
    grid-template-columns: minmax(0, 1fr)
  }

  .hero-tile {
    padding: 15px 16px
  }
}

@media(max-width:560px) {

  .kpi-grid,
  .kpi-grid-student {
    grid-template-columns: minmax(0, 1fr)
  }

  .kpi-card {
    min-height: 0
  }

  .chart-card {
    padding: 16px
  }

  .chart-label {
    font-size: 8px;
    letter-spacing: .02em
  }

  .chart-line-labels>span {
    font-size: 8px
  }

  .donut,
  .donut-center {
    width: 132px;
    height: 132px
  }

  .donut-center {
    width: 94px;
    height: 94px
  }

  .attendance-rate-ring {
    width: 132px;
    height: 132px
  }

  .attendance-rate-ring-center {
    width: 102px;
    height: 102px
  }

  .attendance-rate-ring-center strong {
    font-size: 22px
  }

  .attendance-student-row-top {
    flex-wrap: wrap
  }

  .attendance-student-row-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px
  }

  .student-dashboard-hero .attendance-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }

  .student-dashboard-hero .attendance-mark-button {
    width: 100%
  }

  .student-dashboard-hero .attendance-timer {
    text-align: center
  }
}

/* ---- Course grading panel, grade badge and certificate grade snapshot ---- */
.grade-panel {
  margin-bottom: 22px
}

.grade-overall {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.grade-overall strong {
  color: #fbbf24
}

.grade-empty {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6
}

.grade-rows {
  display: grid;
  gap: 14px;
  margin-top: 4px
}

.grade-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px
}

.grade-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a
}

.grade-row-label small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b
}

.grade-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff8
}

.grade-bar span {
  display: block;
  height: 100%;
  width: var(--grade-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #002147, #7c3aed);
  transition: width .35s ease
}

.grade-row-value {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a
}

.grade-row-absent .grade-row-label,
.grade-row-absent .grade-row-value {
  color: #94a3b8
}

.grade-eligibility {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #e6ecf6;
  border-radius: 14px;
  background: #f8fbff
}

.grade-eligibility-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a
}

.grade-eligibility-ok {
  border-color: #bbf7d0;
  background: #ecfdf5
}

.grade-eligibility-ok .grade-eligibility-title {
  color: #047857
}

.grade-eligibility-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7
}

.course-grade-badge {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.course-grade-badge strong {
  color: #fbbf24
}

.certificate-grade {
  color: #475569;
  font-size: 12px
}

.certificate-grade strong {
  color: #0f172a
}

@media(max-width:720px) {
  .grade-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    row-gap: 6px
  }

  .grade-bar {
    grid-column: 1 / -1
  }
}

/* ==========================================================================
   Confirmation overlay (components/flash-toast.php) - the message every form and
   action on the site raises after it finishes. Floated over the page instead of
   pushing the layout down, because a confirmation nobody notices is not a
   confirmation. Green and red carry the outcome, the label and the button repeat
   it in words so the card still reads correctly without colour.
   ========================================================================== */
.flash-toast-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  animation: flash-layer-in .18s ease-out
}

/* Only the scripted version starts hidden - with JavaScript off the card simply appears and stays. */
.js .flash-toast-layer {
  display: none
}

.js .flash-toast-layer.is-open {
  display: grid
}

.flash-toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  cursor: pointer
}

.flash-toast-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(430px, 100%);
  padding: 30px 30px 28px;
  border: 1px solid #e6ecf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px -18px rgba(15, 23, 42, .38);
  text-align: center;
  transition: opacity .24s ease, transform .24s ease;
  animation: flash-card-in .28s cubic-bezier(.2, .9, .3, 1.15)
}

.flash-toast-card.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(.97)
}

.flash-toast-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%
}

.flash-toast-icon svg {
  width: 34px;
  height: 34px
}

.flash-toast-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

.flash-toast-copy {
  margin: 0 0 22px;
  color: #334155;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.62;
  overflow-wrap: anywhere
}

.flash-toast-action {
  display: inline-flex;
  width: min(240px, 100%);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s ease
}

.flash-toast-action:hover {
  filter: brightness(.93)
}

.flash-toast-action:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px
}

.flash-toast-card.is-success .flash-toast-icon {
  background: #ecfdf5;
  color: #16a34a
}

.flash-toast-card.is-success .flash-toast-label {
  color: #15803d
}

.flash-toast-card.is-success .flash-toast-action {
  /* The confirm button follows the platform blue, the colour every primary action on the site uses.
     The card itself still reads green through its icon and label. */
  background: var(--blue, #002147)
}

.flash-toast-card.is-error .flash-toast-icon {
  background: #fef2f2;
  color: #dc2626
}

.flash-toast-card.is-error .flash-toast-label {
  color: #b91c1c
}

.flash-toast-card.is-error .flash-toast-action {
  background: #dc2626
}

.flash-toast-card.is-info .flash-toast-icon {
  background: #eff6ff;
  color: #002147
}

.flash-toast-card.is-info .flash-toast-label {
  color: #002147
}

.flash-toast-card.is-info .flash-toast-action {
  background: #002147
}

.flash-toast-card.is-pending .flash-toast-icon {
  background: #fff7e6;
  color: #b45309
}

.flash-toast-card.is-pending .flash-toast-label {
  color: #92400e
}

.flash-toast-card.is-pending .flash-toast-action {
  width: min(320px, 100%);
  background: #b45309
}

@keyframes flash-layer-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes flash-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.96)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@media(max-width:520px) {
  .flash-toast-layer {
    padding: 16px
  }

  .flash-toast-card {
    padding: 26px 20px 24px;
    border-radius: 18px
  }

  .flash-toast-copy {
    font-size: 14px
  }
}

@media(prefers-reduced-motion:reduce) {

  .flash-toast-layer,
  .flash-toast-card {
    animation: none
  }

  .flash-toast-card.is-leaving {
    transform: none
  }
}

/* Final mobile sizing and task reminder placement, after legacy dashboard rules. */
@media(max-width:560px) {

  .dashboard-shell .dashboard-page .kpi-grid,
  .dashboard-shell .dashboard-page .kpi-grid-student {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .dashboard-shell .dashboard-page .kpi-card {
    padding: 13px;
    border-radius: 15px
  }

  .dashboard-shell .dashboard-page .kpi-value {
    font-size: clamp(24px, 7.5vw, 32px)
  }

  .dashboard-tools-rail {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media(max-width:360px) {

  .dashboard-shell .dashboard-page .kpi-grid,
  .dashboard-shell .dashboard-page .kpi-grid-student {
    grid-template-columns: minmax(0, 1fr)
  }
}

/* Todo card styling lives with the dashboard-tools component rules above (single source). */

/* One blue summary surface replaces disconnected KPI tiles across dashboard modules. */
.dashboard-summary-card {
  min-width: 0;
  margin: 0 0 22px;
  padding: 22px 24px;
  border: 1px solid #12385f;
  border-radius: 22px;
  background: #002147;
  box-shadow: 0 12px 28px #0021471f;
  color: #fff;
  overflow: hidden
}

.dashboard-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 8px;
  padding: 0 0 15px;
  border-bottom: 1px solid #ffffff35
}

.dashboard-summary-heading .eyebrow {
  margin: 0 0 4px;
  color: #dbe8ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em
}

.dashboard-summary-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em
}

.dashboard-summary-heading>span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #ffffff4a;
  border-radius: 999px;
  background: #ffffff18;
  color: #fff;
  font-size: 11px;
  font-weight: 750
}

.dashboard-summary-card .kpi-grid,
.dashboard-summary-card .student-overview-grid,
.dashboard-summary-card .dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0
}

.dashboard-summary-card .admin-stats-grid,
.dashboard-summary-card .lesson-lib-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0
}

.dashboard-summary-card .kpi-card,
.dashboard-summary-card .student-overview-card,
.dashboard-summary-card .dashboard-metric {
  display: flex;
  min-width: 0;
  min-height: 138px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid #ffffff32;
  border-bottom: 1px solid #ffffff32;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  overflow-wrap: anywhere
}

.dashboard-summary-card .kpi-card:nth-child(3n),
.dashboard-summary-card .student-overview-card:nth-child(3n),
.dashboard-summary-card .dashboard-metric:nth-child(3n) {
  border-right: 0
}

.dashboard-summary-card .admin-stat-card,
.dashboard-summary-card .lesson-lib-metric {
  display: flex;
  min-width: 0;
  min-height: 122px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-right: 1px solid #ffffff32;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff
}

.dashboard-summary-card .admin-stat-card:nth-child(4n),
.dashboard-summary-card .lesson-lib-metric:nth-child(4n) {
  border-right: 0
}

.dashboard-summary-card .admin-stat-icon,
.dashboard-summary-card .lesson-lib-metric .admin-stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #ffffff20;
  color: #fff
}

.dashboard-summary-card .admin-stat-icon.green,
.dashboard-summary-card .admin-stat-icon.purple,
.dashboard-summary-card .admin-stat-icon.amber {
  background: #ffffff20;
  color: #fff
}

.dashboard-summary-card .admin-stat-body,
.dashboard-summary-card .lesson-lib-metric-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px
}

.dashboard-summary-card .admin-stat-value,
.dashboard-summary-card .lesson-lib-metric .admin-stat-value {
  color: #fff;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 850;
  line-height: 1.08
}

.dashboard-summary-card .admin-stat-label,
.dashboard-summary-card .lesson-lib-metric .admin-stat-label {
  color: #e2ecff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4
}

.dashboard-summary-card .lesson-lib-panel-head {
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 0
}

.dashboard-summary-card .lesson-lib-panel-head .count-pill {
  border-color: #ffffff4a;
  background: #ffffff18;
  color: #fff
}

.dashboard-summary-card .kpi-card:nth-last-child(-n+3),
.dashboard-summary-card .student-overview-card:nth-last-child(-n+3),
.dashboard-summary-card .dashboard-metric:nth-last-child(-n+3) {
  border-bottom: 0
}

.dashboard-summary-card .kpi-card:hover,
.dashboard-summary-card .dashboard-metric:hover {
  transform: none;
  box-shadow: none
}

.dashboard-summary-card .kpi-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.dashboard-summary-card .kpi-icon,
.dashboard-summary-card .dashboard-metric-icon,
.dashboard-summary-card .student-overview-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  margin: 0;
  border-radius: 11px;
  background: #ffffff20;
  color: #fff;
  font-size: 15px
}

.dashboard-summary-card .kpi-icon svg,
.dashboard-summary-card .student-overview-icon svg {
  width: 18px;
  height: 18px
}

.dashboard-summary-card .kpi-label,
.dashboard-summary-card .student-overview-card>div>span,
.dashboard-summary-card .dashboard-metric-label {
  color: #e4edff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em
}

.dashboard-summary-card .kpi-value,
.dashboard-summary-card .student-overview-card strong,
.dashboard-summary-card .dashboard-metric strong {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.04em
}

.dashboard-summary-card .kpi-hint,
.dashboard-summary-card .kpi-delta,
.dashboard-summary-card .student-overview-card small,
.dashboard-summary-card .dashboard-metric small {
  margin: 0;
  padding: 0;
  color: #d5e3ff;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none
}

.dashboard-summary-card .kpi-delta {
  padding-top: 3px
}

.dashboard-summary-card .dashboard-metric {
  gap: 5px
}

.dashboard-payment-summary .dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.dashboard-payment-summary .dashboard-metric {
  border-bottom: 0
}

.dashboard-payment-summary .dashboard-metric {
  min-height: 128px
}

.dashboard-payment-summary .dashboard-metric:nth-child(3n) {
  border-right: 1px solid #ffffff32
}

.dashboard-payment-summary .dashboard-metric:nth-child(4n) {
  border-right: 0
}

.dashboard-payment-summary .dashboard-metric:nth-last-child(-n+3) {
  border-bottom: 0
}

.dashboard-summary-card .student-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

/* Quiz report totals join the same blue summary surface as the other admin pages. */
.dashboard-summary-card .quiz-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0
}

.dashboard-summary-card .quiz-report-metric {
  display: flex;
  min-width: 0;
  min-height: 138px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid #ffffff32;
  border-radius: 0;
  background: transparent;
  box-shadow: none
}

.dashboard-summary-card .quiz-report-metric:nth-child(3n) {
  border-right: 0
}

.dashboard-summary-card .quiz-report-metric span {
  color: #e4edff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em
}

.dashboard-summary-card .quiz-report-metric strong {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.04em
}

.dashboard-summary-card .quiz-report-metric small {
  margin: 0;
  padding: 0;
  color: #d5e3ff;
  font-size: 10px;
  line-height: 1.45
}

.dashboard-summary-card .quiz-report-metric-pass strong,
.dashboard-summary-card .quiz-report-metric-fail strong {
  color: #fff
}

.dashboard-summary-card .student-overview-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: center;
  gap: 10px
}

.dashboard-summary-card .student-overview-card:nth-child(3n) {
  border-right: 1px solid #ffffff32
}

.dashboard-summary-card .student-overview-card:nth-child(4n) {
  border-right: 0
}

.dashboard-summary-card .student-overview-card:nth-last-child(-n+3) {
  border-bottom: 0
}

/* The public and workspace blue accents read from one global brand token.
   Buttons sit dim at rest and snap to the full brand navy (plus the shared glow)
   on hover. The todo card owns its own button styling, so its controls are excluded. */
.button,
.nav-cta,
.verify-search-button {
  background: var(--btn-bg-dim)
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.verify-search-button:hover {
  background: var(--btn-bg)
}

.button {
  box-shadow: 0 8px 20px rgba(var(--blue-rgb), .16)
}

.button-secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: #c7d5e6
}

.button-secondary:hover {
  background: #f5f8fc;
  color: var(--blue-dark)
}

.button-ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: none
}

.button-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: none;
  box-shadow: var(--btn-glow-soft);
}

.panel-icon,
.eyebrow,
.dashboard-inline-link,
.dashboard-text-link,
.dashboard-search-result-type {
  color: var(--blue)
}

.dashboard-search-result-type,
.panel-icon {
  background: #eaf0f6
}

/* Sidebar logout card uses the centered overlapping-badge layout defined
   above; the old compact single-row grid overrides were removed. */

.dashboard-overview .bar-blue {
  background: linear-gradient(180deg, var(--blue), var(--blue))
}

.dashboard-overview .dashboard-side-nav .active {
  color: var(--blue-dark)
}

.dashboard-overview .dashboard-search-result-type {
  color: var(--blue-dark)
}

/* Student overview uses the same compact dashboard language: learning KPIs,
   attendance summary, and recent learning panels remain data-driven. */
.student-overview-layout {
  display: grid;
  gap: 20px
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) {
  padding: 22px 24px;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(var(--blue-rgb), .18)
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: 11px;
  row-gap: 4px;
  min-height: 132px;
  padding: 17px;
  border: 1px solid #ffffff40;
  border-radius: 15px;
  background: #ffffff14;
  box-shadow: none
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-card::after {
  display: none
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-top {
  display: contents
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  background: #ffffff20;
  color: #fff
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-label {
  grid-column: 2;
  grid-row: 1;
  color: #eaf1fa;
  font-size: 10px;
  letter-spacing: .04em
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-value {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2vw, 32px)
}

.dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-hint {
  grid-column: 2;
  grid-row: 3;
  color: #dbe7f3;
  font-size: 10px
}

.student-overview-layout .dashboard-panel,
.student-overview-layout .dashboard-columns>.dashboard-panel {
  border-radius: 18px;
  box-shadow: 0 8px 24px #10284b0a
}

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

.dashboard-student-overview .dashboard-course-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.student-overview-layout .attendance-history li {
  border-radius: 12px
}

@media(max-width:900px) {
  .dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-student-overview .dashboard-course-list {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media(max-width:560px) {
  .dashboard-summary-card:not(.admin-dashboard-snapshot) {
    padding: 17px 15px
  }

  .dashboard-summary-card:not(.admin-dashboard-snapshot) .kpi-card {
    min-height: 112px;
    padding: 13px 10px
  }

  .student-overview-layout {
    gap: 14px
  }
}

/* Admin overview: the six live academy statistics sit together on one navy hero panel. The card
   carries the navy surface and each metric is a translucent glass tile (styled by the snapshot
   rules above), so the block reads as a single dashboard header rather than detached boxes. */
.admin-dashboard-snapshot {
  padding: 22px 24px;
  border: 1px solid #12385f;
  background: linear-gradient(135deg, #002147, #062a52);
  box-shadow: 0 16px 34px #00214733;
  overflow: hidden
}

.admin-dashboard-snapshot .dashboard-summary-heading {
  margin: 0 0 8px;
  padding: 0 0 15px;
  border-bottom: 1px solid #ffffff35
}

.admin-dashboard-snapshot .dashboard-summary-heading .eyebrow {
  color: #dbe8ff
}

.admin-dashboard-snapshot .dashboard-summary-heading h2 {
  color: #fff
}

.admin-dashboard-snapshot .dashboard-summary-heading>span {
  border-color: #ffffff4a;
  background: #ffffff18;
  color: #fff
}

body.dashboard-shell .dashboard-analytics-page {
  --att-blue: #002147
}


.student-management-summary .student-overview-icon,
.student-management-summary .student-overview-icon.student-icon-active,
.student-management-summary .student-overview-icon.student-icon-pending,
.student-management-summary .student-overview-icon.student-icon-blocked {
  background: #ffffff20;
  color: #fff
}

.student-management-summary .student-overview-card {
  border-bottom: 0
}

/* Keep the content gutter balanced from the sidebar to the right edge. */
body.dashboard-shell>main.dashboard-container {
  padding-inline: clamp(18px, 2.1vw, 34px)
}

body.dashboard-shell .dashboard-breadcrumb {
  display: none !important
}

body.dashboard-shell:not(.dashboard-overview) .dashboard-search {
  display: none !important
}

body.dashboard-shell.dashboard-overview .dashboard-search {
  display: flex
}

.dashboard-topbar {
  justify-content: flex-end;
  min-height: 0;
  padding-top: 10px
}

.dashboard-topbar .dashboard-menu-toggle {
  margin-right: auto
}

@media(min-width:903px) {
  body.dashboard-shell:not(.dashboard-overview) .dashboard-topbar {
    display: none
  }
}

/* The universal search is scoped to Overview and searches role-visible records. */
.dashboard-search-wrap {
  position: relative;
  z-index: 30;
  width: min(470px, 48vw);
  margin-left: auto
}

.dashboard-search-wrap .dashboard-search {
  width: 100%;
  min-width: 0
}

.dashboard-search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(70vh, 540px);
  overflow: auto;
  border: 1px solid #dfe7f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 46px #11244022
}

.dashboard-search-results[hidden] {
  display: none
}

.dashboard-search-hint {
  margin: 0;
  padding: 16px;
  color: #718096;
  font-size: 13px;
  line-height: 1.5
}

.dashboard-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #edf1f6;
  color: #1b2a41;
  text-decoration: none;
  transition: background .15s ease
}

.dashboard-search-result:last-child {
  border-bottom: 0
}

.dashboard-search-result:hover,
.dashboard-search-result:focus-visible {
  outline: 0;
  background: #f4f7ff
}

.dashboard-search-result-copy {
  display: grid;
  min-width: 0;
  gap: 3px
}

.dashboard-search-result-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-search-result-copy small {
  overflow: hidden;
  color: #75849a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-search-result-type {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf0f8;
  color: #002147;
  font-size: 10px;
  font-weight: 800
}

/* Submission review is first on the admin assignment desk and gets a clear banner. */
.assignment-submissions-card {
  padding: 0;
  overflow: hidden
}

.assignment-submissions-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #002147, #0d3a6b);
  color: #fff
}

.assignment-submissions-banner .eyebrow {
  margin: 0 0 5px;
  color: #dbe8ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em
}

.assignment-submissions-banner h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -.035em
}

.assignment-submissions-banner p:last-child {
  margin: 6px 0 0;
  color: #e0eaff;
  font-size: 13px
}

.assignment-review-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #ffffff55;
  border-radius: 999px;
  background: #ffffff1a;
  color: #fff;
  font-size: 12px;
  font-weight: 800
}

.assignment-submissions-card>.admin-empty-state,
.assignment-submissions-card>.assignment-review-list {
  margin: 18px 22px 22px
}

.assignment-submissions-card .assignment-review-item {
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  box-shadow: 0 8px 22px #10284b0a
}

@media(max-width:900px) {
  body.dashboard-shell>main.dashboard-container {
    padding-inline: clamp(16px, 3vw, 24px)
  }

  .dashboard-summary-card .kpi-grid,
  .dashboard-summary-card .student-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-summary-card .kpi-card:nth-child(3n),
  .dashboard-summary-card .student-overview-card:nth-child(3n) {
    border-right: 1px solid #ffffff32
  }

  .dashboard-summary-card .kpi-card:nth-child(2n),
  .dashboard-summary-card .student-overview-card:nth-child(2n) {
    border-right: 0
  }

  .dashboard-summary-card .kpi-card:nth-last-child(-n+3),
  .dashboard-summary-card .student-overview-card:nth-last-child(-n+3) {
    border-bottom: 1px solid #ffffff32
  }

  .dashboard-summary-card .kpi-card:nth-last-child(-n+2),
  .dashboard-summary-card .student-overview-card:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .dashboard-summary-card .admin-stats-grid,
  .dashboard-summary-card .lesson-lib-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-summary-card .admin-stat-card:nth-child(2n),
  .dashboard-summary-card .lesson-lib-metric:nth-child(2n) {
    border-right: 0
  }

  .dashboard-summary-card .admin-stat-card:nth-child(-n+2),
  .dashboard-summary-card .lesson-lib-metric:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff32
  }

  .dashboard-summary-card .admin-stat-card:nth-last-child(-n+2),
  .dashboard-summary-card .lesson-lib-metric:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .dashboard-payment-summary .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-summary-card .dashboard-metric:nth-child(3n) {
    border-right: 1px solid #ffffff32
  }

  .dashboard-summary-card .dashboard-metric:nth-child(2n) {
    border-right: 0
  }

  .dashboard-summary-card .dashboard-metric:nth-last-child(-n+3) {
    border-bottom: 1px solid #ffffff32
  }

  .dashboard-summary-card .dashboard-metric:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .dashboard-payment-summary .dashboard-metric:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff32
  }

  .student-management-summary .student-overview-card:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff32
  }

  .dashboard-summary-card .quiz-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .dashboard-summary-card .quiz-report-metric:nth-child(3n) {
    border-right: 1px solid #ffffff32
  }

  .dashboard-summary-card .quiz-report-metric:nth-child(2n) {
    border-right: 0
  }

  .dashboard-summary-card .quiz-report-metric:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff32
  }

  .dashboard-summary-card .quiz-report-metric:nth-child(3) {
    border-right: 0;
    border-bottom: 0
  }
}

@media(max-width:560px) {
  body.dashboard-shell>main.dashboard-container {
    padding-inline: 14px
  }

  .dashboard-topbar {
    padding: 8px 0
  }

  .dashboard-search-wrap {
    width: 100%;
    max-width: none
  }

  .dashboard-summary-card {
    padding: 17px 15px;
    border-radius: 18px
  }

  .dashboard-summary-heading {
    align-items: flex-start
  }

  .dashboard-summary-heading h2 {
    font-size: 18px
  }

  .dashboard-summary-heading>span {
    padding: 6px 8px;
    font-size: 10px
  }

  .dashboard-summary-card .kpi-card,
  .dashboard-summary-card .student-overview-card,
  .dashboard-summary-card .dashboard-metric {
    min-height: 120px;
    padding: 13px 10px
  }

  .dashboard-summary-card .quiz-report-metric {
    min-height: 120px;
    padding: 13px 10px
  }

  .dashboard-summary-card .kpi-value,
  .dashboard-summary-card .student-overview-card strong,
  .dashboard-summary-card .dashboard-metric strong {
    font-size: 25px
  }

  .dashboard-summary-card .quiz-report-metric strong {
    font-size: 25px
  }

  .assignment-submissions-banner {
    align-items: flex-start;
    padding: 18px 16px
  }

  .assignment-submissions-banner h2 {
    font-size: 19px
  }

  .assignment-submissions-card>.admin-empty-state,
  .assignment-submissions-card>.assignment-review-list {
    margin: 12px
  }
}

@media(max-width:902px) {
  body.dashboard-shell:not(.dashboard-overview) .dashboard-topbar {
    display: flex !important;
    justify-content: flex-start;
    padding-top: 8px
  }
}

@media(max-width:380px) {

  .dashboard-summary-card .kpi-grid,
  .dashboard-summary-card .student-overview-grid,
  .dashboard-payment-summary .dashboard-metrics,
  .dashboard-summary-card .admin-stats-grid,
  .dashboard-summary-card .lesson-lib-metrics-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .dashboard-summary-card .quiz-report-metrics {
    grid-template-columns: minmax(0, 1fr)
  }

  .dashboard-summary-card .kpi-card,
  .dashboard-summary-card .student-overview-card,
  .dashboard-payment-summary .dashboard-metric,
  .dashboard-summary-card .quiz-report-metric {
    border-right: 0 !important;
    border-bottom: 1px solid #ffffff32 !important
  }

  .dashboard-summary-card .kpi-card:last-child,
  .dashboard-summary-card .student-overview-card:last-child,
  .dashboard-payment-summary .dashboard-metric:last-child,
  .dashboard-summary-card .quiz-report-metric:last-child {
    border-bottom: 0 !important
  }

  .dashboard-summary-card .admin-stat-card,
  .dashboard-summary-card .lesson-lib-metric {
    border-right: 0 !important;
    border-bottom: 1px solid #ffffff32 !important
  }

  .dashboard-summary-card .admin-stat-card:last-child,
  .dashboard-summary-card .lesson-lib-metric:last-child {
    border-bottom: 0 !important
  }
}

/* Payment desk: allow every review and account field to shrink inside narrow viewports. */
.admin-revenue-page,
.admin-revenue-page *,
.payment-page,
.payment-page * {
  box-sizing: border-box;
  min-width: 0
}

.admin-revenue-page {
  width: 100%;
  max-width: 100%
}

.revenue-page-header {
  align-items: center;
  padding: 24px 26px;
  border: 1px solid #dce7f7;
  border-radius: 22px;
  background: linear-gradient(140deg, #fff 0%, #f4f8ff 100%);
  box-shadow: 0 8px 24px #10284b08
}

.revenue-page-header>div:first-child {
  flex: 1 1 340px
}

.revenue-page-header .dashboard-menu-toggle {
  margin-bottom: 14px
}

.revenue-page-toolbar {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%
}

.revenue-page-toolbar form {
  min-width: 0;
  max-width: 100%
}

.revenue-page-toolbar .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere
}

.payment-review-section .admin-card-header,
.payment-review-card .dashboard-panel-heading {
  min-width: 0;
  flex-wrap: wrap
}

.payment-review-card .dashboard-panel-heading>div {
  min-width: 0;
  max-width: 100%
}

.payment-review-card h3,
.payment-review-meta strong,
.payment-review-meta a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word
}

.payment-review-card .payment-decision-form,
.payment-review-card .admin-label {
  min-width: 0;
  max-width: 100%
}

.payment-review-card .dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0
}

.payment-review-card .dashboard-actions .button {
  flex: 1 1 190px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere
}

.payment-account-editor-list {
  display: grid;
  gap: 14px;
  min-width: 0
}

.payment-account-editor {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 52px 20px 22px;
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  background: #f9fbff
}

.payment-account-editor legend {
  padding: 0 8px;
  color: #002147;
  font-size: 14px;
  font-weight: 850
}

.payment-account-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  z-index: 2
}

.payment-account-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px
}

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

.student-payment-account {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff
}

.student-payment-account h3 {
  margin: 0;
  color: #002147;
  font-size: 14px;
  overflow-wrap: anywhere
}

.student-payment-account .payment-account-details {
  gap: 4px
}

.student-payment-account .payment-account-details>div {
  grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
  gap: 8px
}

.payment-help {
  padding: 20px;
  border-color: #d7e5f4;
  background: linear-gradient(145deg, #f3f8ff 0%, #e7f1fc 100%);
  box-shadow: inset 0 1px 0 #fff
}

.payment-help>strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #173f68;
  font-size: 15px
}

.payment-help>strong::before {
  content: '▣';
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #d4e8fb;
  color: #1b5d91;
  font-size: 14px
}

.student-payment-accounts {
  gap: 14px
}

.student-payment-account {
  padding: 16px;
  border-color: #d4e2f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 18px rgba(23, 63, 104, .05)
}

.student-payment-account:only-child {
  grid-column: 1 / -1;
  padding: clamp(20px, 2.5vw, 30px);
  border-color: #bfd7ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 14px 30px rgba(23, 63, 104, .09)
}

.student-payment-account h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #173f68;
  font-size: 14px
}

.student-payment-account:only-child h3 {
  margin-bottom: 14px;
  font-size: 17px
}

.payment-bank-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #173f68;
  color: #fff;
  font-size: 13px
}

.student-payment-account .payment-account-details {
  gap: 0;
  margin: 0
}

.student-payment-account .payment-account-details>div {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2ebf4
}

.student-payment-account .payment-account-details>div:last-child {
  border-bottom: 0
}

.student-payment-account .payment-account-details dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #70839a;
  font-size: 11px;
  font-weight: 750
}

.student-payment-account .payment-account-details dd {
  color: #173f68;
  font-size: 12px;
  text-align: right
}

.payment-detail-symbol {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #c6dced;
  border-radius: 6px;
  background: #f1f7fd;
  color: #2b78b7;
  font-size: 10px;
  font-weight: 850
}

.student-payment-account>p {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px dashed #cbdbea;
  color: #637995;
  font-size: 11px;
  line-height: 1.55
}

/* Reports desk and its live summaries stay readable without a horizontal table on phones. */
.admin-reports-page {
  display: grid;
  gap: 20px;
  min-width: 0
}

/* The Reports title is a plain heading like every other workspace page - no card background -
   with the period filter as a simple dropdown docked at the top right. */
.admin-report-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none
}

.admin-report-heading>div {
  min-width: 0
}

.admin-report-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto
}

.admin-report-filter label {
  color: #566780;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}

.admin-report-period-select {
  min-width: 158px;
  padding: 10px 38px 10px 14px;
  border: 1px solid #d5e0f0;
  border-radius: 11px;
  background: #fff;
  color: #17233d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center
}

.admin-report-period-select:focus {
  outline: 2px solid #00214733;
  border-color: #002147
}

.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0
}

.admin-report-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
  padding: 20px
}

.admin-report-card>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0
}

.admin-report-card>header>div {
  min-width: 0
}

.admin-report-card>header .eyebrow {
  margin: 0 0 6px;
  color: #002147;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em
}

.admin-report-card h2 {
  margin: 0;
  color: #17233d;
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.admin-report-card>header>div>p:last-child {
  margin: 5px 0 0;
  color: #718096;
  font-size: 12px
}

.admin-report-download {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px
}

.admin-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px
}

.admin-report-metrics>div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border-radius: 12px;
  background: #f3f7ff
}

.admin-report-metrics span {
  color: #718096;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35
}

.admin-report-metrics strong {
  color: #002147;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.admin-report-preview {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 3px
}

.admin-report-row {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #fff
}

.admin-report-row>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45
}

.admin-report-row>div span {
  flex: 0 0 35%;
  color: #718096;
  font-weight: 700
}

.admin-report-row>div strong {
  min-width: 0;
  color: #25344d;
  text-align: right;
  overflow-wrap: anywhere
}

.admin-report-empty,
.admin-report-more {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.5
}

.admin-reports-page>.admin-usage-card {
  margin-top: 0
}

.admin-report-summary-body {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 16px
}

.admin-report-summary-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center
}

.admin-report-summary-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #ffffff33;
  border-radius: 12px;
  background: #ffffff14
}

.admin-report-summary-tile span {
  color: #dbe8ff;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.admin-report-summary-tile strong {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere
}

.admin-report-summary-chart {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid #ffffff33;
  border-radius: 14px;
  background: #ffffff10
}

.admin-report-summary-chart-title {
  margin: 0 0 2px;
  color: #dbe8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase
}

.admin-report-bar {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px
}

.admin-report-bar-label {
  min-width: 0;
  color: #eaf1ff;
  font-size: 11.5px;
  font-weight: 700;
  overflow-wrap: anywhere
}

.admin-report-bar-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #ffffff2e;
  overflow: hidden
}

.admin-report-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #fff
}

.admin-report-bar-value {
  color: #fff;
  font-size: 12.5px;
  font-weight: 850;
  text-align: right
}

.admin-report-all-card {
  /* Four desk cards fill an exact two-by-two, so the summary pack takes the whole row below them
     instead of leaving an empty cell beside it. */
  grid-column: 1 / -1;
  border-color: #bcd0f5;
  background: linear-gradient(180deg, #f6faff 0%, #fff 55%)
}

.admin-report-all-note {
  margin: 0;
  color: #5b6b86;
  font-size: 12.5px;
  line-height: 1.55
}

/* Sending one desk to one student sits on its own full-width row under the report cards, and its
   controls wrap by themselves instead of needing a breakpoint per screen width. */
.admin-report-send-card {
  grid-column: 1 / -1
}

.admin-report-send-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0
}

.admin-report-send-form label {
  display: grid;
  gap: 6px;
  min-width: 0
}

.admin-report-send-form label>span {
  color: #566780;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.admin-report-send-form select {
  width: 100%;
  min-width: 0;
  padding: 10px 38px 10px 14px;
  border: 1px solid #d5e0f0;
  border-radius: 11px;
  background: #fff;
  color: #17233d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center
}

.admin-report-send-form select:focus {
  outline: 2px solid #00214733;
  border-color: #002147
}

.admin-report-sent {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid #e6edf7
}

.admin-report-sent-title {
  margin: 0;
  color: #002147;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

/* The shelf heading and its clearing action share one line, and wrap instead of crowding on narrow
   cards. */
.admin-report-sent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px
}

.admin-report-sent-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none
}

.admin-report-sent-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 13px;
  border: 1px solid #e6edf7;
  border-radius: 10px;
  background: #f8fbff
}

.admin-report-sent-list strong {
  color: #17233d;
  font-size: 13.5px
}

.admin-report-sent-list span {
  color: #6b7a94;
  font-size: 12px
}

/* The student report shelf keeps a date range in a slot that usually holds a short number, so the
   value breaks instead of pushing the card wider. */
.student-reports-page .dashboard-metric strong {
  overflow-wrap: anywhere
}

@media(max-width:640px) {
  .student-reports-page .dashboard-metric strong {
    font-size: 21px
  }
}

@media(max-width:900px) {
  .admin-report-summary-body {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media(max-width:900px) {
  .revenue-page-header {
    align-items: flex-start;
    flex-direction: column
  }

  .revenue-page-toolbar {
    width: 100%
  }

  /* In the stacked (column) header the title block's 340px flex-basis would
     stretch into a tall empty gap, so let it hug its content instead. */
  .revenue-page-header>div:first-child {
    flex: 0 0 auto
  }

  .payment-account-editor .admin-form-row {
    grid-template-columns: minmax(0, 1fr)
  }

  .payment-review-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .admin-report-grid {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media(max-width:600px) {
  .admin-report-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px
  }

  .admin-report-filter {
    width: 100%
  }

  .admin-report-period-select {
    flex: 1;
    width: 100%
  }

  .revenue-page-header>div:first-child {
    width: 100%
  }

  .revenue-page-header h1 {
    font-size: clamp(25px, 8vw, 34px);
    overflow-wrap: anywhere
  }

  .revenue-page-header>div>p:last-child {
    font-size: 13px;
    line-height: 1.55
  }

  .revenue-page-header {
    padding: 18px 16px
  }

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

  .revenue-page-toolbar>* {
    width: 100%;
    max-width: 100%
  }

  .revenue-page-toolbar .button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    gap: 7px;
    font-size: 13px;
    justify-content: center;
    text-align: center
  }

  .revenue-page-toolbar .button svg {
    width: 16px;
    height: 16px
  }

  .revenue-summary-shell {
    max-width: 100%;
    overflow: hidden
  }

  .revenue-kpi-value,
  .revenue-kpi-foot,
  .revenue-kpi-line {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word
  }

  .payment-review-section,
  .payment-settings-card {
    padding: 15px
  }

  .payment-review-section .admin-card-header {
    align-items: flex-start
  }

  .payment-review-section .admin-card-title-group,
  .payment-review-section .admin-card-titles {
    min-width: 0;
    max-width: 100%
  }

  .payment-review-section .admin-card-titles h2 {
    font-size: 19px;
    overflow-wrap: anywhere
  }

  .payment-review-section .admin-card-titles p {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere
  }

  .payment-review-card {
    padding: 14px;
    gap: 14px
  }

  .payment-review-card .dashboard-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px
  }

  .payment-review-meta {
    grid-template-columns: minmax(0, 1fr)
  }

  .payment-review-card .dashboard-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
  }

  .payment-review-card .dashboard-actions .button {
    width: 100%;
    justify-content: center
  }

  .payment-account-editor {
    padding: 18px 13px 13px
  }

  .payment-account-editor .admin-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px
  }

  .payment-account-remove {
    position: static;
    justify-self: start;
    order: 1
  }

  .payment-account-editor legend {
    max-width: 70%;
    line-height: 1.4
  }

  .student-payment-accounts {
    grid-template-columns: minmax(0, 1fr)
  }

  .student-payment-account .payment-account-details>div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px
  }

  .admin-report-card {
    padding: 15px
  }

  .admin-report-card>header {
    flex-direction: column;
    align-items: stretch
  }

  .admin-report-download {
    width: 100%;
    justify-content: center
  }

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

  .admin-report-row>div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px
  }

  .admin-report-row>div span {
    flex-basis: auto
  }

  .admin-report-row>div strong {
    text-align: left
  }
}

/* Course catalogue: editorial why section with quiet abstract shapes */
.course-benefits {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 calc(50% - 50dvw);
  padding: clamp(52px, 7vw, 88px) max(20px, calc((100dvw - 1120px)/2));
  background: #f4f6fa
}

.course-benefits::before,
.course-benefits::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none
}

.course-benefits::before {
  top: -190px;
  right: -100px;
  width: clamp(360px, 48vw, 700px);
  height: clamp(360px, 48vw, 700px);
  border: 1px solid #dce5f1;
  border-radius: 42% 58% 64% 36% / 44% 38% 62% 56%;
  background: radial-gradient(ellipse at 35% 40%, #e8eef7 0%, #e8eef700 67%);
  transform: rotate(-17deg)
}

.course-benefits::after {
  right: 8%;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border: 1px solid #e0e7f1;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #e8edf555, 0 0 0 70px #e8edf533
}

.course-benefits-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr);
  gap: clamp(36px, 8vw, 120px);
  max-width: 1120px;
  margin: 0 auto clamp(48px, 7vw, 88px)
}

.course-benefits-aside .eyebrow {
  margin: 0 0 24px;
}

.course-benefits-aside h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 750;
  line-height: .96;
  letter-spacing: -.06em
}

.course-benefits-aside ul {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  color: #52647d;
  font-size: 13px;
  list-style: none
}

.course-benefits-aside li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-benefits-aside li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  content: ""
}

.course-benefits-copy {
  max-width: 850px;
  padding-top: 8px;
}

.course-benefits-copy p {
  max-width: 740px;
  margin: 20px 0 0;
  color: #60718a;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.7;
}

.course-benefits-copy .course-benefits-lead {
  margin-top: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.course-benefit-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto
}

.course-benefits .course-benefit-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #ffffff;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 30px #102a4a08;
  transition: transform .25s ease, box-shadow .25s ease
}

.course-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px #102a4a12;
}

.course-benefit-watermark {
  position: absolute;
  top: -4px;
  right: 12px;
  color: #f1f4f8;
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  white-space: nowrap;
}

.course-benefit-card strong {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}

.course-benefit-card strong span {
  color: var(--blue);
}

.course-benefit-card strong.course-benefit-word {
  font-size: clamp(30px, 4vw, 48px);
}

.course-benefit-caption {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 28px;
}

.course-benefit-caption h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.course-benefit-caption p {
  margin: 0;
  color: #5e6f86;
  font-size: 14px;
  line-height: 1.6;
}

.course-learning-path {
  max-width: 1120px;
  margin: clamp(58px, 8vw, 100px) auto 20px;
  padding-inline: 0
}

.course-format-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.course-format-heading .eyebrow {
  margin: 0 0 10px;
}

.course-format-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.course-format-heading>p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.course-path-card {
  display: flex;
  gap: 20px;
  min-height: 160px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px #102a4a08;
}

.course-path-card-accent {
  border-color: #cbd9eb;
  background: linear-gradient(140deg, #eff4fb, #fff 75%);
}

.course-path-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eaf1fa;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
}

.course-path-card h3 {
  margin: 1px 0 9px;
  color: var(--navy);
  font-size: 18px;
}

.course-path-card p {
  max-width: 440px;
  margin: 0;
  color: #60718a;
  font-size: 14px;
  line-height: 1.7;
}

@media(max-width:760px) {
  .course-benefits-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .course-benefits-aside h2 br {
    display: none;
  }

  .course-benefits-aside ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .course-benefit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .course-benefits .course-benefit-card {
    min-height: 180px;
  }

  .course-benefit-watermark {
    font-size: 82px;
  }

  .course-path-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  .course-benefits {
    padding-inline: 20px;
  }

  .course-benefits-intro {
    gap: 22px;
    margin-bottom: 34px;
  }

  .course-benefits-aside .eyebrow {
    margin-bottom: 18px;
  }

  .course-benefits-aside h2 {
    font-size: 42px;
  }

  .course-benefits-aside ul {
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }

  .course-benefits-copy .course-benefits-lead {
    font-size: 25px;
  }

  .course-benefits-copy p {
    font-size: 15px;
  }

  .course-benefits .course-benefit-card {
    min-height: 165px;
    padding: 24px;
  }

  .course-benefit-card p {
    margin-top: 28px;
    font-size: 14px;
  }

  .course-path-card {
    min-height: 0;
    gap: 15px;
    padding: 22px 18px;
  }

  .course-benefit-caption {
    margin-top: 22px;
  }

  .course-benefit-caption p {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------------------
   Danger Zone - refined admin surface for permanent, bulk-delete actions.
   Everything is scoped here so shared danger controls elsewhere are unchanged.
   --------------------------------------------------------------------------- */
.danger-zone-page .danger-zone-eyebrow {
  color: #64748b;
}

.danger-zone-page .danger-zone-header h1 {
  color: #0f172a;
}

.danger-guidelines {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #f1f5f9;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.danger-guidelines-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.danger-guidelines-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e0ecf8;
  color: #24527a;
}

.danger-guidelines-icon svg {
  width: 22px;
  height: 22px;
}

.danger-guidelines-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.danger-guidelines-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.45;
}

.danger-guidelines-list strong {
  color: #1e293b;
}

.danger-card-group {
  margin-bottom: 28px;
}

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

.danger-category-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.danger-source-link {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.danger-source-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.danger-zone-page .danger-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.danger-zone-page .danger-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.danger-zone-page .danger-card .admin-card-titles h2 {
  color: #1e293b;
}

.danger-zone-page .danger-card .admin-card-titles p {
  color: #64748b;
  line-height: 1.6;
}

.danger-zone-page .danger-card .admin-card-icon.danger {
  background: #fff1f2;
  color: #b42318;
}

.danger-zone-page .danger-card-caution {
  border-color: #e2e8f0;
}

.danger-zone-page .danger-card-caution .admin-card-icon.caution {
  background: #fef3c7;
  color: #b45309;
}

.danger-zone-page .button.button-danger {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.16);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.danger-zone-page .button.button-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 7px 18px rgba(220, 38, 38, 0.28);
}

.danger-zone-page .button.button-danger:active:not(:disabled) {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.24);
}

.danger-zone-page .button.button-danger:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.danger-zone-page .button.button-danger:disabled {
  background: #eaa3a3;
  border-color: #eaa3a3;
  color: #fff;
  box-shadow: none;
  opacity: 0.9;
  cursor: not-allowed;
}

.danger-moved-note {
  border-left: 4px solid #dc2626;
  background: #f8fafc;
}

.danger-console {
  padding: 24px;
}

.danger-console-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 20px;
  padding: 16px 18px;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  background: #fff7f7;
}

.danger-console-category {
  color: #b42318;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.danger-console-summary h3 {
  margin: 3px 0 4px;
  color: #1e293b;
  font-size: 19px;
}

.danger-console-summary p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.danger-console-summary > strong {
  flex: 0 0 auto;
  color: #b42318;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.danger-console-summary > strong small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.danger-console .form-actions {
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 620px) {
  .danger-console {
    padding: 18px;
  }

  .danger-console-summary {
    flex-direction: column;
  }

  .danger-console-summary > strong {
    text-align: left;
  }

  .danger-console .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

/* Keep reports and the developer notification together in one compact, vertical action card. */
.revenue-page-header {
  align-items: stretch;
}

.revenue-page-header>div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.revenue-page-header>div:first-child>p:last-of-type {
  margin-bottom: 0;
}

.revenue-reporting-tip {
  max-width: 620px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid #dce8fb;
  border-left: 3px solid #2563eb;
  border-radius: 12px;
  background: #f3f7ff;
}

.revenue-reporting-tip-label {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}

.revenue-reporting-tip p {
  margin: 0;
  color: #52647e;
  font-size: 13px;
  line-height: 1.55;
}

.revenue-page-header>.revenue-actions-card {
  display: grid;
  flex: 0 1 360px;
  gap: 12px;
  width: min(100%, 360px);
  max-width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid #dce7f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px #10284b0b;
}

.revenue-actions-heading .eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.revenue-actions-heading h2 {
  margin: 0;
  color: #17233d;
  font-size: 17px;
  line-height: 1.35;
}

.revenue-month-export,
.revenue-notify-form {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.revenue-month-export label {
  color: #566780;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-revenue-page .revenue-month-export select.admin-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 46px 10px 14px;
  border: 1px solid #cbd7e7;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5f7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  color: #17233d;
  cursor: pointer;
}

.admin-revenue-page .revenue-month-export select.admin-input:focus-visible {
  outline: 3px solid #2563eb33;
  outline-offset: 2px;
  border-color: #2563eb;
}

.revenue-actions-card .revenue-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.revenue-actions-card .revenue-six-month-download {
  color: #fff;
  background: #1d4ed8;
}

.revenue-actions-card .revenue-six-month-download:hover {
  background: #1e40af;
}

.revenue-notify-form {
  padding-top: 12px;
  border-top: 1px solid #e7edf5;
}

.revenue-notify-form .button {
  background: #0b1b3a;
}

@media(max-width:900px) {
  .revenue-page-header {
    align-items: stretch;
  }

  .revenue-page-header>div:first-child {
    flex: 0 0 auto;
    width: 100%;
  }

  .revenue-reporting-tip {
    margin-top: 20px;
  }

  .revenue-page-header>.revenue-actions-card {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media(max-width:600px) {
  .revenue-page-header>.revenue-actions-card {
    padding: 16px;
  }
}

.payment-review-section .payment-review-card {
  gap: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 12px 30px rgba(15, 35, 65, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.payment-review-section .payment-review-card:hover {
  border-color: #c9d8ea;
  box-shadow: 0 18px 38px rgba(15, 35, 65, .11);
  transform: translateY(-2px);
}

.payment-review-section .payment-review-card .payment-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border-color: #cbd9ea;
  border-radius: 11px;
  background: #f4f8fd;
  color: #173c68;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.payment-review-section .payment-review-card .payment-receipt-link:hover {
  border-color: #9eb8d7;
  background: #eaf2fb;
  color: #0b2f59;
}

.payment-review-section .payment-decision-form {
  gap: 16px;
  padding-top: 20px;
  border-color: #e4ebf3;
}

.payment-review-section .payment-review-note {
  display: grid;
  grid-template-columns: minmax(155px, .34fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.payment-review-section .payment-review-note .admin-label {
  margin: 0;
  white-space: nowrap;
}

.payment-review-section .payment-review-note .admin-label span {
  display: block;
  margin: 4px 0 0;
  color: #74839a;
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
}

.payment-review-section .payment-review-note .admin-textarea {
  min-width: 0;
  min-height: 72px;
}

.payment-review-section .payment-decision-form .dashboard-actions {
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.payment-review-section .payment-decision-form .payment-receipt-link,
.payment-review-section .payment-decision-form .payment-approve-button,
.payment-review-section .payment-decision-form .payment-reject-button {
  flex: 0 1 auto;
  justify-self: auto;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.payment-review-section .payment-decision-form .payment-approve-button {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid #087443;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b8c55 0%, #087443 100%);
  color: #fff;
  box-shadow: 0 7px 16px rgba(8, 116, 67, .22);
  font-size: 14px;
  font-weight: 800;
  transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
}

.payment-review-section .payment-decision-form .payment-reject-button {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .16);
  font-weight: 750;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.payment-review-section .payment-decision-form .payment-reject-button:hover:not(:disabled) {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 7px 18px rgba(220, 38, 38, .28);
}

.payment-review-section .payment-decision-form .payment-reject-button:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.payment-review-section .payment-decision-form .payment-approve-button:hover {
  box-shadow: 0 10px 22px rgba(8, 116, 67, .3);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.payment-review-section .payment-decision-form .payment-approve-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media(max-width:600px) {
  .payment-review-section .payment-review-card {
    padding: 16px;
  }

  .payment-review-section .payment-review-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .payment-review-section .payment-decision-form .dashboard-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-review-section .payment-decision-form .dashboard-actions .button,
  .payment-review-section .payment-decision-form .payment-receipt-link {
    width: 100%;
  }

  .payment-review-section .payment-decision-form .payment-approve-button {
    margin-left: 0;
  }
}

/* About page: company story, services and learning approach. */
.about-page {
  --about-ink: #10233f;
  --about-blue: #002147;
  --about-muted: #64748b;
  --about-line: #dce5ef;
  color: var(--about-ink)
}

.about-page .about-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(590px, 67vw, 760px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  margin: 8px calc(50% - 50vw) 0;
  border-radius: 0;
  background: #10243b;
  color: #fff
}

.about-hero::before,
.about-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none
}

.about-hero::before {
  background:
    linear-gradient(90deg, #07182de8 0%, #0b2038ce 36%, #0b20386e 69%, #07182d45 100%),
    linear-gradient(0deg, #07182db8 0%, transparent 36%)
}

.about-hero::after {
  background: radial-gradient(ellipse at 68% 38%, transparent 0, #07182d22 74%)
}

.about-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%
}

.about-hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 130px
}

.about-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #d9e5f3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em
}

.about-hero-kicker span {
  padding: 7px 10px;
  border: 1px solid #ffffff50;
  border-radius: 999px;
  background: #ffffff12;
  color: #fff;
  font-size: 9px;
  letter-spacing: .11em
}

.about-hero h1 {
  max-width: 1100px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance
}

.about-hero h1 span {
  color: #f7c96a
}

.about-hero-lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: #e0e8f2;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.75
}

.about-hero-actions,
.about-learning-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px
}

.about-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.about-button:hover {
  transform: translateY(-2px)
}

.about-button-primary {
  border-color: #fff;
  background: #fff;
  color: #102a49;
  box-shadow: 0 8px 22px #07182d30
}

.about-button-primary:hover {
  background: #f2f6fb;
  box-shadow: 0 12px 26px #07182d45
}

.about-button-quiet {
  border-color: #ffffff65;
  background: #ffffff0b;
  color: #fff
}

.about-button-quiet:hover {
  border-color: #fff;
  background: #ffffff18
}

.about-hero-signoff {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 40px 0 0;
  color: #d4dfeb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em
}

.about-hero-signoff span,
.about-purpose-footnote span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f7c96a;
  box-shadow: 0 0 0 5px #f7c96a20
}

.about-hero-note {
  position: absolute;
  right: max(16px, calc((100vw - 1120px) / 2));
  bottom: 76px;
  display: grid;
  width: 280px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid #ffffff40;
  border-radius: 17px;
  background: #10233f9c;
  box-shadow: 0 14px 36px #07182d30;
  backdrop-filter: blur(14px)
}

.about-hero-note-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffffff5c;
  border-radius: 13px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em
}

.about-hero-note p {
  margin: 0 0 5px;
  color: #c3d3e6;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em
}

.about-hero-note strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.45
}

.about-hero-note-index {
  grid-column: 2;
  margin-top: -6px;
  color: #c1ccda;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em
}

.about-hero-bottom {
  position: absolute;
  right: max(16px, calc((100vw - 1120px) / 2));
  bottom: 26px;
  left: max(16px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d0dbe8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  border: 1px solid var(--about-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px #10233f08
}

.about-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px 23px
}

.about-fact + .about-fact {
  border-left: 1px solid #e8edf3
}

.about-fact-label {
  color: #77869a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em
}

.about-fact strong {
  margin-top: 9px;
  color: #153659;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -.02em
}

.about-fact > span:last-child {
  margin-top: 4px;
  color: #718198;
  font-size: 11px;
  line-height: 1.55
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  padding: clamp(72px, 9vw, 112px) 0
}

.about-story-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 4.35;
  border-radius: 22px;
  background: #dce5ef;
  box-shadow: 0 22px 48px #10233f16
}

.about-story-media::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, #0b1c34db, transparent);
  content: "";
  pointer-events: none
}

.about-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

.about-story-media-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 9px
}

.about-story-media-caption span {
  color: #dbe8f6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em
}

.about-story-media-caption strong {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.04em;
  line-height: 1.1
}

.about-eyebrow {
  margin: 0 0 13px;
  color: #45698f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em
}

.about-story-copy h2,
.about-purpose-heading h2,
.about-section-heading h2,
.about-learning-copy h2 {
  margin: 0;
  color: var(--about-ink);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance
}

.about-story-lead {
  margin: 19px 0 12px !important;
  color: #304966 !important;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.65 !important
}

.about-story-copy > p:not(.about-eyebrow) {
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.85
}

.about-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #153f6a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none
}

.about-text-link:hover {
  color: #002147;
  text-decoration: underline;
  text-underline-offset: 4px
}

.about-purpose {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: clamp(58px, 8vw, 88px) max(20px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(ellipse at 85% 0, #234a74 0, transparent 38%),
    linear-gradient(130deg, #0b1c34, #002147 64%, #123a68);
  color: #fff
}

.about-purpose-heading,
.about-purpose-grid,
.about-purpose-footnote {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto
}

.about-purpose .about-eyebrow {
  color: #bdd0e5
}

.about-purpose-heading h2 {
  max-width: 660px;
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px)
}

.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px
}

.about-purpose-card {
  position: relative;
  min-width: 0;
  min-height: 250px;
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid #ffffff30;
  border-radius: 19px;
  background: #ffffff0d
}

.about-purpose-number {
  color: #c4d5e8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em
}

.about-purpose-symbol {
  position: absolute;
  top: 20px;
  right: 26px;
  color: #f7c96a;
  font-size: 28px;
  font-weight: 500
}

.about-purpose-card h3 {
  max-width: 430px;
  margin: 34px 0 10px;
  color: #fff;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2
}

.about-purpose-card p {
  max-width: 500px;
  margin: 0;
  color: #c7d4e4;
  font-size: 13px;
  line-height: 1.75
}

.about-purpose-footnote {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 27px;
  color: #d0ddeb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em
}

.about-services,
.about-standards {
  padding: clamp(76px, 9vw, 108px) 0 0
}

.about-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px
}

.about-section-heading h2 {
  max-width: 660px
}

.about-section-heading > p {
  max-width: 390px;
  margin: 0 0 3px;
  color: #6a7b90;
  font-size: 13px;
  line-height: 1.75
}

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

.about-service-card {
  position: relative;
  min-width: 0;
  min-height: 202px;
  padding: 23px;
  border: 1px solid var(--about-line);
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f8fafd);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.about-service-card:hover {
  transform: translateY(-3px);
  border-color: #c5d4e5;
  box-shadow: 0 14px 30px #10233f10
}

.about-card-number {
  color: #7a8ea7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em
}

.about-service-arrow {
  position: absolute;
  top: 19px;
  right: 22px;
  color: #7d93ad;
  font-size: 17px
}

.about-service-card h3 {
  margin: 31px 0 8px;
  color: #183757;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em
}

.about-service-card p {
  max-width: 330px;
  margin: 0;
  color: #697b91;
  font-size: 12px;
  line-height: 1.75
}

.about-standards {
  padding-bottom: clamp(76px, 9vw, 108px)
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--about-line)
}

.about-principle {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid var(--about-line)
}

.about-principle:nth-child(odd) {
  border-right: 1px solid var(--about-line)
}

.about-principle:nth-child(even) {
  padding-left: 24px
}

.about-principle > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce6f1;
  border-radius: 11px;
  background: #f3f7fb;
  color: #345b82;
  font-size: 9px;
  font-weight: 850
}

.about-principle h3 {
  margin: 1px 0 5px;
  color: #1a3858;
  font-size: 14px;
  font-weight: 800
}

.about-principle p {
  max-width: 440px;
  margin: 0;
  color: #6c7d91;
  font-size: 12px;
  line-height: 1.7
}

.about-learning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--about-line);
  border-radius: 22px;
  background: linear-gradient(140deg, #f4f8fc, #fff 64%);
  box-shadow: 0 16px 40px #10233f08
}

.about-learning-copy h2 {
  font-size: clamp(30px, 4vw, 44px)
}

.about-learning-copy h2 span {
  color: #315d89
}

.about-learning-copy > p:not(.about-eyebrow) {
  max-width: 510px;
  margin: 15px 0 0;
  color: #65778d;
  font-size: 13px;
  line-height: 1.8
}

.about-learning-copy ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  color: #334d69;
  font-size: 12px;
  font-weight: 650;
  list-style: none
}

.about-learning-copy li {
  position: relative;
  padding-left: 25px
}

.about-learning-copy li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e3eef8;
  color: #285581;
  content: "✓";
  font-size: 10px;
  font-weight: 900
}

.about-learning-actions {
  gap: 17px;
  margin-top: 24px
}

.about-learning-actions .about-button {
  min-height: 44px;
  padding-inline: 17px;
  background: #163d68;
  color: #fff
}

.about-learning-actions .about-button:hover {
  background: #002147
}

.about-learning-actions .about-text-link {
  margin: 0
}

.about-work {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dfe7f0;
  border-radius: 17px;
  background: #fff
}

.about-work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf4
}

.about-work-heading .about-eyebrow {
  margin: 0
}

.about-work-heading > span {
  color: #8190a3;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em
}

.about-work ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none
}

.about-work li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #e9eef4
}

.about-work li:last-child {
  padding-bottom: 0;
  border-bottom: 0
}

.about-work-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eff5fb;
  color: #315b85;
  font-size: 9px;
  font-weight: 850
}

.about-work h3 {
  margin: 1px 0 3px;
  color: #183757;
  font-size: 13px;
  font-weight: 800
}

.about-work li p {
  margin: 0;
  color: #6c7d91;
  font-size: 11px;
  line-height: 1.65
}

.about-registration {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 23px 25px;
  border: 1px solid #dce5ef;
  border-radius: 17px;
  background: #fff
}

.about-registration-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: #eff5fb;
  color: #204c78;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em
}

.about-registration-copy .about-eyebrow {
  margin-bottom: 6px
}

.about-registration-copy h2 {
  margin: 0;
  color: #183757;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -.02em
}

.about-registration-copy > p:last-child {
  max-width: 650px;
  margin: 5px 0 0;
  color: #6b7c91;
  font-size: 11px;
  line-height: 1.65
}

.about-registration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d8e3ef;
  border-radius: 11px;
  color: #244b73;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap
}

.about-registration-link:hover {
  border-color: #b6c9dd;
  background: #f5f8fc
}

.about-page .cta-banner {
  width: 100%;
  margin: clamp(52px, 7vw, 76px) 0 26px
}

@media(max-width:903px) {
  .about-page .about-hero {
    min-height: 650px
  }

  .about-hero-content {
    padding-block: 100px 140px
  }

  .about-hero h1 {
    max-width: 650px;
    font-size: clamp(52px, 8vw, 76px)
  }

  .about-hero-note {
    right: 20px;
    bottom: 66px;
    width: 250px
  }

  .about-hero-bottom {
    right: 20px;
    left: 20px
  }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .about-fact:nth-child(3) {
    border-left: 0
  }

  .about-fact:nth-child(n + 3) {
    border-top: 1px solid #e8edf3
  }

  .about-story {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 34px
  }

  .about-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px
  }

  .about-section-heading > p {
    max-width: 600px
  }

  .about-learning {
    grid-template-columns: 1fr;
    gap: 28px
  }
}

@media(max-width:820px) {
  .about-hero-content {
    width: calc(100% - 32px)
  }

  .about-hero-note {
    right: 16px
  }

  .about-hero-bottom {
    right: 16px;
    left: 16px
  }

  .about-purpose {
    padding-right: 16px;
    padding-left: 16px
  }
}

@media(max-width:760px) {
  .about-page .about-hero {
    min-height: 660px;
    border-radius: 0
  }

  .about-hero-content {
    width: calc(100% - 32px);
    padding-block: 92px 130px
  }

  .about-hero h1 {
    max-width: 600px;
    font-size: clamp(48px, 9.5vw, 70px)
  }

  .about-hero-note {
    display: none
  }

  .about-hero-bottom {
    right: 16px;
    left: 16px
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 64px
  }

  .about-story-media {
    max-height: 500px;
    aspect-ratio: 1.15 / 1
  }

  .about-purpose {
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 60px;
    padding-bottom: 60px
  }

  .about-purpose-grid {
    gap: 12px;
    margin-top: 26px
  }

  .about-purpose-card {
    min-height: 260px
  }

  .about-services,
  .about-standards {
    padding-top: 66px
  }

  .about-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .about-registration {
    grid-template-columns: 52px minmax(0, 1fr)
  }

  .about-registration-link {
    grid-column: 2;
    justify-self: start
  }
}

@media(max-width:560px) {
  .about-page .about-hero {
    min-height: 620px;
    margin-top: 4px;
    border-radius: 0
  }

  .about-hero-image {
    object-position: 58% center
  }

  .about-hero::before {
    background:
      linear-gradient(90deg, #07182de8 0%, #0b2038bd 58%, #0b203870 100%),
      linear-gradient(0deg, #07182dc2 0%, transparent 45%)
  }

  .about-hero-content {
    width: calc(100% - 32px);
    padding-block: 70px 115px
  }

  .about-hero-kicker {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 19px;
    font-size: 8px;
    letter-spacing: .11em
  }

  .about-hero-kicker span {
    padding: 6px 8px;
    font-size: 8px
  }

  .about-hero h1 {
    font-size: clamp(43px, 12vw, 58px);
    letter-spacing: -.06em
  }

  .about-hero-lead {
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.7
  }

  .about-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 22px
  }

  .about-hero-actions .about-button {
    width: 100%
  }

  .about-hero-signoff {
    margin-top: 23px;
    font-size: 8px;
    letter-spacing: .12em
  }

  .about-hero-bottom {
    bottom: 17px;
    font-size: 7px;
    letter-spacing: .08em
  }

  .about-facts {
    gap: 0;
    margin-top: 18px;
    border-radius: 14px
  }

  .about-fact {
    padding: 16px 13px
  }

  .about-fact:nth-child(2) {
    border-left: 1px solid #e8edf3
  }

  .about-fact:nth-child(3) {
    border-top: 1px solid #e8edf3
  }

  .about-fact strong {
    font-size: 14px
  }

  .about-fact > span:last-child {
    font-size: 10px
  }

  .about-fact-markets > span:last-child {
    max-width: 150px
  }

  .about-story {
    gap: 24px;
    padding-block: 54px
  }

  .about-story-media {
    aspect-ratio: 1 / .86
  }

  .about-story-media-caption {
    right: 18px;
    bottom: 18px;
    left: 18px
  }

  .about-story-copy h2,
  .about-purpose-heading h2,
  .about-section-heading h2,
  .about-learning-copy h2 {
    font-size: clamp(30px, 9vw, 38px)
  }

  .about-story-lead {
    font-size: 15px
  }

  .about-story-copy > p:not(.about-eyebrow) {
    font-size: 13px
  }

  .about-purpose {
    padding: 48px 16px
  }

  .about-purpose-heading h2 {
    font-size: 34px
  }

  .about-purpose-grid {
    grid-template-columns: 1fr;
    gap: 11px
  }

  .about-purpose-card {
    min-height: 0;
    padding: 21px
  }

  .about-purpose-card h3 {
    margin-top: 25px;
    font-size: 23px
  }

  .about-purpose-footnote {
    align-items: flex-start;
    font-size: 8px;
    line-height: 1.6
  }

  .about-services,
  .about-standards {
    padding-top: 56px
  }

  .about-section-heading {
    gap: 10px;
    margin-bottom: 21px
  }

  .about-section-heading > p {
    font-size: 12px
  }

  .about-services-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .about-service-card {
    min-height: 0;
    padding: 19px
  }

  .about-service-card h3 {
    margin-top: 22px
  }

  .about-principles-grid {
    grid-template-columns: 1fr
  }

  .about-principle,
  .about-principle:nth-child(even) {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
    border-right: 0
  }

  .about-principle > span {
    width: 32px;
    height: 32px
  }

  .about-learning {
    gap: 23px;
    padding: 22px 17px;
    border-radius: 17px
  }

  .about-learning-copy > p:not(.about-eyebrow) {
    font-size: 12px
  }

  .about-learning-copy ul {
    font-size: 11px
  }

  .about-learning-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px
  }

  .about-work {
    padding: 18px 15px
  }

  .about-work-heading > span {
    font-size: 7px
  }

  .about-registration {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-top: 19px;
    padding: 17px 14px
  }

  .about-registration-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 10px
  }

  .about-registration-copy h2 {
    font-size: 15px
  }

  .about-registration-copy > p:last-child {
    font-size: 10px
  }

  .about-registration-link {
    grid-column: 1 / -1;
    justify-self: stretch
  }

  .about-page .cta-banner {
    margin-top: 44px
  }
}

/* Public certificate verification refresh. */
.verify-page {
  --verify-ink: #10233f;
  --verify-muted: #63748b;
  --verify-line: #dce5f0;
  --verify-blue: #002147;
  color: var(--verify-ink)
}

.verify-page .verify-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100vw;
  min-height: clamp(340px, 38vw, 440px);
  place-items: center;
  margin: 8px calc(50% - 50vw) 0;
  padding: clamp(48px, 7vw, 76px) 24px;
  border: 1px solid #ffffff24;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 100%, #1b4a7b99 0, transparent 56%),
    linear-gradient(130deg, #0b1c34 0%, #002147 55%, #123e70 100%);
  box-shadow: 0 24px 60px #00214720;
  text-align: center
}

.verify-page .verify-hero::before,
.verify-page .verify-hero::after {
  position: absolute;
  z-index: 0;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  content: "";
  pointer-events: none
}

.verify-page .verify-hero::before {
  width: min(74vw, 760px);
  aspect-ratio: 1;
  opacity: .7
}

.verify-page .verify-hero::after {
  width: min(57vw, 590px);
  aspect-ratio: 1;
  opacity: .55
}

.verify-hero-wordmark {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 18px 0;
  pointer-events: none;
  user-select: none
}

.verify-hero-wordmark span {
  display: block;
  color: transparent;
  font-size: clamp(82px, 16vw, 190px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .78;
  text-align: center;
  -webkit-text-stroke: 1px #ffffff20
}

.verify-hero-wordmark span + span {
  margin-top: 10px;
  font-size: clamp(42px, 8.5vw, 100px);
  letter-spacing: .12em;
  -webkit-text-stroke-color: #ffffff19
}

.verify-page .verify-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px
}

.verify-page .verify-eyebrow {
  gap: 10px;
  padding: 8px 15px;
  border-color: #ffffff36;
  background: #ffffff12;
  color: #dbeafe;
  font-size: 10px;
  letter-spacing: .16em
}

.verify-eyebrow span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  color: #f7c96a;
  font-size: 9px;
  letter-spacing: 0
}

.verify-page .verify-hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 6.6vw, 72px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1.02
}

.verify-page .verify-hero h1 span {
  color: #f7c96a
}

.verify-page .verify-hero-inner > p:last-child {
  max-width: 610px;
  margin: 0 auto;
  color: #d1deef;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.75
}

.verify-page .verify-search-section {
  margin: 30px 0 0;
  padding: 0 22px
}

.verify-page .verify-search-card {
  max-width: none;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfe7f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 54px #10233f16
}

.verify-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px
}

.verify-section-kicker {
  margin: 0 0 8px;
  color: #52719a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
  line-height: 1.4
}

.verify-search-heading h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2
}

.verify-search-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #f4f8fd;
  color: #31577f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em
}

.verify-page .verify-search-label {
  display: block;
  margin-bottom: 8px;
  color: #344a66;
  font-size: 12px;
  font-weight: 750
}

.verify-page .verify-search-field {
  position: relative;
  align-items: stretch;
  gap: 12px
}

.verify-search-icon {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 18px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid #72849b;
  border-radius: 50%;
  pointer-events: none
}

.verify-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #72849b;
  content: ""
}

.verify-page .verify-search-field input {
  min-height: 56px;
  padding: 14px 18px 14px 48px;
  border: 1px solid #cfd9e6;
  border-radius: 13px;
  background: #f8fafd;
  color: #10233f;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease
}

.verify-page .verify-search-field input::placeholder {
  color: #8291a5
}

.verify-page .verify-search-field input:focus {
  outline: 0;
  border-color: #537da9;
  background: #fff;
  box-shadow: 0 0 0 4px #00214714
}

.verify-page .verify-search-button {
  display: inline-flex;
  min-width: 196px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 13px;
  background: #163d68;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px #00214722;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease
}

.verify-page .verify-search-button:hover,
.verify-page .verify-search-button:focus-visible {
  background: #002147;
  box-shadow: 0 10px 24px #00214730;
  transform: translateY(-1px)
}

.verify-page .verify-search-button span {
  font-size: 18px;
  line-height: 1
}

.verify-page .verify-search-hint {
  margin: 14px 0 0;
  color: #687b92;
  font-size: 12px;
  line-height: 1.7;
  text-align: left
}

.verify-page .verify-search-hint strong {
  color: #183c64
}

.verify-page .verify-result-section {
  margin-top: clamp(38px, 5vw, 56px)
}

.verify-stats-heading {
  margin-bottom: 20px;
  text-align: center
}

.verify-stats-heading h2,
.verify-page .verify-how h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.12
}

.verify-page .verify-stats {
  max-width: none;
  gap: 18px
}

.verify-page .verify-stats article {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 24px;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fafd);
  text-align: left;
  box-shadow: 0 8px 24px #10233f08
}

.verify-stat-number {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #dce6f2;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1
}

.verify-page .verify-stats strong {
  position: relative;
  display: block;
  max-width: 85%;
  margin-top: 26px;
  color: #16385f;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em
}

.verify-page .verify-stats article > span:last-child {
  display: block;
  margin-top: 4px;
  color: #718198;
  font-size: 12px
}

.verify-page .verify-card {
  max-width: none;
  border: 1px solid #dce5f0;
  border-radius: 22px;
  box-shadow: 0 16px 42px #10233f0e
}

.verify-page .verify-result-section > .verify-card + .verify-card {
  margin-top: 20px
}

.verify-page .verify-card-head {
  align-items: center;
  gap: 16px;
  padding: 23px 26px
}

.verify-page .verify-card-valid .verify-card-head {
  background: linear-gradient(110deg, #edf8f2, #f8fcf9);
  border-bottom-color: #d9eee1
}

.verify-page .verify-card-expired .verify-card-head {
  background: linear-gradient(110deg, #fff7e9, #fffdfa);
  border-bottom-color: #f2e3c7
}

.verify-page .verify-card-revoked .verify-card-head {
  background: linear-gradient(110deg, #fff2f1, #fffafa);
  border-bottom-color: #f3d9d7
}

.verify-page .verify-card-unknown .verify-card-head {
  background: linear-gradient(110deg, #f2f6fb, #fbfcfe);
  border-bottom: 1px solid #e3eaf3
}

.verify-page .verify-card-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 5px 12px #10233f18
}

.verify-page .verify-card-valid .verify-card-mark {
  background: #087443
}

.verify-page .verify-card-expired .verify-card-mark {
  background: #a76613
}

.verify-page .verify-card-head h2 {
  color: #132945;
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 800;
  letter-spacing: -.025em
}

.verify-page .verify-card-head p {
  max-width: 820px;
  margin-top: 5px;
  color: #5e7086;
  font-size: 13px;
  line-height: 1.65
}

.verify-page .verify-card-body {
  padding: clamp(22px, 3vw, 32px)
}

.verify-page .verify-awarded {
  color: #708198;
  font-size: 10px;
  letter-spacing: .15em
}

.verify-page .verify-name {
  margin-top: 6px;
  color: #10233f;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.15
}

.verify-page .verify-course {
  margin: 6px 0 24px;
  color: #244e78;
  font-size: 15px;
  font-weight: 750
}

.verify-page .verify-grid {
  gap: 12px
}

.verify-page .verify-grid div {
  padding: 15px 17px;
  border-color: #e4eaf2;
  border-radius: 13px;
  background: #f8fafd
}

.verify-page .verify-grid dt {
  color: #77879b;
  font-size: 9px;
  letter-spacing: .12em
}

.verify-page .verify-grid dd {
  color: #203650;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5
}

.verify-page .verify-id {
  color: #1d4976 !important
}

.verify-page .verify-remarks {
  border-left-color: #315f8e;
  border-radius: 0 12px 12px 0;
  background: #f3f7fc
}

.verify-page .verify-authenticity {
  gap: 16px;
  padding: 19px;
  border-color: #d8eadf;
  border-radius: 15px;
  background: #f5faf7
}

.verify-page .verify-authenticity h4 {
  color: #14583a;
  font-size: 14px;
  font-weight: 800
}

.verify-page .verify-authenticity p,
.verify-page .verify-authenticity ul {
  font-size: 12px;
  line-height: 1.65
}

.verify-page .verify-actions {
  gap: 12px
}

.verify-page .verify-actions .button {
  min-height: 46px;
  border-radius: 11px;
  font-weight: 750
}

.verify-page .verify-card-foot {
  padding: 13px 26px;
  border-top-color: #e8edf4;
  background: #fafbfd;
  color: #74849a;
  font-size: 11px;
  line-height: 1.55
}

.verify-page .verify-multiple {
  max-width: none;
  margin: 0 0 20px;
  padding: 15px 18px;
  border-color: #d8e4f2;
  border-radius: 14px;
  background: #f2f7fc;
  color: #526a84;
  text-align: left
}

.verify-page .verify-how {
  max-width: none;
  margin: clamp(52px, 7vw, 78px) 0 8px;
  text-align: center
}

.verify-page .verify-how > .verify-section-kicker {
  margin-bottom: 9px
}

.verify-page .verify-how-intro {
  max-width: 620px;
  margin: 12px auto 0;
  color: #697b91;
  font-size: 14px;
  line-height: 1.7
}

.verify-page .verify-how-grid {
  gap: 18px;
  margin-top: 28px;
  text-align: left
}

.verify-page .verify-how-grid article {
  position: relative;
  overflow: hidden;
  min-height: 222px;
  padding: 25px;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fafd);
  box-shadow: 0 8px 24px #10233f08;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.verify-page .verify-how-grid article:hover {
  transform: translateY(-3px);
  border-color: #c4d4e6;
  box-shadow: 0 14px 30px #10233f12
}

.verify-page .verify-step {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid #d5e2f0;
  border-radius: 13px;
  background: #eff5fb;
  color: #244d78;
  font-size: 11px;
  letter-spacing: .04em
}

.verify-page .verify-how-grid h3 {
  margin-bottom: 8px;
  color: #17314f;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em
}

.verify-page .verify-how-grid p {
  color: #65778d;
  font-size: 12.5px;
  line-height: 1.7
}

.verify-page .verify-how-grid p strong {
  color: #294d73
}

.verify-page .cta-banner {
  width: 100%;
  margin: 56px 0 24px;
  border-radius: 24px
}

@media(max-width:903px) {
  .verify-page .verify-hero {
    min-height: 340px;
    padding: 48px 20px 68px
  }

  .verify-page .verify-search-section {
    margin-top: 26px;
    padding-inline: 14px
  }

  .verify-page .verify-search-card {
    padding: 23px
  }

  .verify-page .verify-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
  }

  .verify-page .verify-stats article {
    min-height: 138px;
    padding: 18px
  }

  .verify-page .verify-how {
    text-align: center
  }

  .verify-page .verify-how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
  }

  .verify-page .verify-how-grid article {
    min-height: 240px;
    padding: 19px
  }
}

@media(max-width:760px) {
  .verify-page .verify-hero {
    min-height: 320px
  }

  .verify-hero-wordmark span {
    font-size: clamp(72px, 19vw, 138px)
  }

  .verify-hero-wordmark span + span {
    font-size: clamp(38px, 10vw, 76px)
  }

  .verify-page .verify-search-field {
    flex-direction: row
  }

  .verify-page .verify-search-button {
    width: auto
  }

  .verify-page .verify-stats {
    grid-template-columns: 1fr
  }

  .verify-page .verify-stats article {
    min-height: 118px
  }

  .verify-page .verify-stats strong {
    margin-top: 14px
  }

  .verify-page .verify-how-grid {
    grid-template-columns: 1fr
  }

  .verify-page .verify-how-grid article {
    min-height: 0
  }

  .verify-page .verify-how {
    text-align: left
  }

  .verify-page .verify-how-intro {
    margin-left: 0
  }

  .verify-page .verify-card-head {
    padding: 19px
  }

  .verify-page .verify-card-body {
    padding: 20px
  }

  .verify-page .verify-card-foot {
    padding: 12px 20px
  }
}

@media(max-width:560px) {
  .verify-page .verify-hero {
    min-height: 300px;
    margin-top: 4px;
    padding: 38px 16px 58px
  }

  .verify-page .verify-eyebrow {
    gap: 7px;
    padding: 7px 11px;
    font-size: 8px;
    letter-spacing: .11em
  }

  .verify-page .verify-hero h1 {
    margin-top: 18px;
    font-size: clamp(38px, 11vw, 54px)
  }

  .verify-page .verify-search-section {
    margin-top: 22px;
    padding-inline: 7px
  }

  .verify-page .verify-search-card {
    padding: 19px 16px;
    border-radius: 17px
  }

  .verify-search-heading {
    align-items: flex-start;
    margin-bottom: 18px
  }

  .verify-search-heading h2 {
    font-size: 21px
  }

  .verify-search-badge {
    padding: 7px 9px;
    font-size: 8px
  }

  .verify-page .verify-search-field {
    flex-direction: column
  }

  .verify-page .verify-search-field input {
    min-height: 54px
  }

  .verify-page .verify-search-button {
    width: 100%;
    min-height: 50px
  }

  .verify-page .verify-result-section {
    margin-top: 38px
  }

  .verify-page .verify-grid {
    grid-template-columns: 1fr
  }

  .verify-page .verify-card-head {
    align-items: flex-start;
    gap: 12px;
    padding: 17px
  }

  .verify-page .verify-card-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px
  }

  .verify-page .verify-card-body {
    padding: 18px 16px
  }

  .verify-page .verify-card-foot {
    padding: 12px 16px
  }

  .verify-page .verify-actions .button {
    width: 100%
  }

  .verify-page .cta-banner {
    margin-top: 42px;
    border-radius: 18px
  }
}
