/* ============================================================
   CMO 3.0 — Design tokens
   ============================================================ */
:root {
  --ink:        #0B0417;
  --ink-soft:   #150B2E;
  --violet:     #1E0B52;
  --violet-2:   #2B1370;
  --cyan:       #17BEF2;
  --lime:       #3FE07A;
  --magenta:    #EC1876;
  --paper:      #F3F1EC;
  --white:      #FFFFFF;
  --muted:      rgba(243, 241, 236, 0.62);
  --muted-soft: rgba(243, 241, 236, 0.38);

  /* single system font family — weight carries the hierarchy */
  --font: 'Segoe UI', 'Segoe UI Semibold', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --display:    var(--font);
  --frame:      var(--font);
  --body:       var(--font);
  --mono:       var(--font);

  /* Segoe UI weight scale used across the page */
  --w-light:     300;
  --w-regular:   400;
  --w-semibold:  600;
  --w-bold:      700;
  --w-black:     900; /* Segoe UI Black — hero headline only */

  --max: 1180px;
}

* { box-sizing: border-box; }
/* Any element given the [hidden] attribute must actually disappear,
   regardless of what display value its own class sets (flex, grid,
   inline-flex, etc. all quietly beat the browser's built-in [hidden]
   handling on their own). This exact bug has independently surfaced in
   three unrelated components on this site — a modal, buttons, and the
   registration success screen — so this is a permanent, blanket fix
   rather than something to keep patching one class at a time. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* subtle grain / atmosphere so the flat ink bg isn't dead */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(30, 11, 82, 0.55), transparent 60%),
    radial-gradient(45% 40% at 88% 18%, rgba(23, 190, 242, 0.10), transparent 65%),
    radial-gradient(55% 45% at 50% 100%, rgba(236, 24, 118, 0.10), transparent 70%);
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 56px) 0;
}

.brand-left,
.brand-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;      /* never squeeze the logo's box */
  min-width: 0;
}

/* Logos keep their natural aspect ratio everywhere: fixed height,
   automatic width, never allowed to shrink or be clamped sideways. */
.mfm-logo,
.cmo-logo,
.dfm-logo {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  aspect-ratio: auto;
}

.mfm-logo {
  height: clamp(26px, 4.4vw, 42px);
  display: block;
}

.cmo-logo {
  height: clamp(30px, 4vw, 40px);
  display: block;
  /* logo art is a soft lavender mark cut for dark backgrounds */
  filter: drop-shadow(0 0 18px rgba(23, 190, 242, 0.10));
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) clamp(20px, 5vw, 56px) clamp(64px, 8vw, 88px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 22px;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.05s;
}

.headline {
  font-family: var(--display);
  font-weight: var(--w-black);
  font-size: clamp(40px, 8.4vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.headline .line {
  display: block;
}
.headline .line > * { display: inline-block; }
.line-1 { opacity: 0; animation: rise 0.75s cubic-bezier(.2,.7,.2,1) forwards 0.18s; }
.line-2 { opacity: 0; animation: rise 0.75s cubic-bezier(.2,.7,.2,1) forwards 0.34s; }

.headline em {
  font-style: italic;
  font-weight: var(--w-bold);
  color: var(--cyan);
}
.headline strong {
  font-weight: var(--w-black);
  background: linear-gradient(92deg, var(--lime) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-copy {
  max-width: 640px;
  font-weight: var(--w-light);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.5s;
}

.detail-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 20px clamp(20px, 4vw, 36px);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.62s;
}
.detail { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.detail-label {
  font-family: var(--mono);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.detail-value {
  font-family: var(--frame);
  font-size: 14px;
  font-weight: var(--w-semibold);
  color: var(--paper);
  max-width: 34ch;
  line-height: 1.4;
}
.detail-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.14);
}
@media (max-width: 640px) {
  .detail-divider { display: none; }
  .detail { text-align: center; align-items: center; }
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.74s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--frame);
  font-weight: var(--w-semibold);
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
/* display:inline-flex above overrides the browser's native [hidden]
   handling (same root cause as the out-of-range modal bug found earlier)
   — without this, any .btn given the hidden attribute stays visible. */
.btn[hidden] { display: none; }
.btn-large {
  padding: 20px 32px;
  font-size: 17px;
}
.btn-primary {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(236,24,118,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(236,24,118,0.75); }
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .line-1, .line-2, .sub-copy, .detail-strip, .cta-row {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ============================================================
   Reel / Carousel — the signature element
   ============================================================ */
.reel {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

/* quiet single-tone hairline used as the section break, instead of
   a multicolour "film sprocket" bar */
.reel-divider {
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 18%,
    rgba(255, 255, 255, 0.16) 82%,
    transparent 100%
  );
}

.reel-heading {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px) 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.reel-heading h2 {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 6px;
}
.reel-heading p {
  margin: 0;
  font-weight: var(--w-light);
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
}
.reel-controls { display: flex; gap: 10px; }
.reel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.reel-btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.reel-btn:active { transform: translateY(0); }

.carousel-viewport {
  overflow: hidden;
  padding: 10px clamp(20px, 5vw, 56px) 4px;
}
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 20px;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }
.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: none;
  width: min(78vw, 300px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--violet);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(20, 8, 60, 0.7);
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  -webkit-user-drag: none;
  user-select: none;
}

/* schedule posters carry small text — show them uncropped rather
   than cover-cropping like the speaker headshots */
.slide--poster {
  background: var(--ink-soft);
}
.slide--poster img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

/* ============================================================
   Location / Map
   ============================================================ */
.location {
  position: relative;
  z-index: 2;
  padding: 56px clamp(20px, 5vw, 56px) 64px;
}
.location-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}
.location-copy .eyebrow { margin-bottom: 14px; }
.location-copy h2 {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 14px;
  line-height: 1.1;
}
.location-desc {
  font-weight: var(--w-light);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 42ch;
}
.location-address {
  font-family: var(--mono);
  font-weight: var(--w-semibold);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 26px;
  max-width: 38ch;
  padding-left: 14px;
  border-left: 2px solid var(--magenta);
}

.location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--violet);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 40px -18px rgba(20, 8, 60, 0.7);
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* recolour Google's light basemap to sit naturally in the dark theme */
  filter: invert(94%) contrast(88%) brightness(95%) hue-rotate(180deg) saturate(0.85);
}

@media (max-width: 860px) {
  .location-inner {
    grid-template-columns: 1fr;
  }
  .location-map { aspect-ratio: 16 / 10; }
  .location-desc, .location-address { max-width: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 30px 20px 44px;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: var(--w-regular);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted-soft);
}
.dfm-logo {
  height: 20px;
  width: auto;
  display: block;
}

.footer-people {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.person-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.person-card img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(255,255,255,0.18);
  flex: none;
}
.person-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.person-name {
  font-family: var(--frame);
  font-weight: var(--w-semibold);
  font-size: 12.5px;
  color: var(--paper);
}
.person-title {
  font-family: var(--mono);
  font-weight: var(--w-regular);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted-soft);
}

@media (max-width: 560px) {
  .footer-people { flex-direction: column; align-items: stretch; }
  .person-card { justify-content: flex-start; }
}

/* ============================================================
   Form pages — Register & Sign In (shared shell)
   ============================================================ */
.form-page {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) clamp(20px, 5vw, 32px) 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Flex items default to min-width:auto, which refuses to shrink below the
   content's intrinsic size — e.g. a wide image inside a card can silently
   blow out the whole column width. Reset it on every direct child so nothing
   nested inside can ever force this page wider than its own max-width. */
/* .form-page uses align-items:center, which means each direct child sizes
   itself to fit its own content (not stretched) unless it declares its own
   width — most existing children set width:100% themselves (e.g.
   .signin-panel), but a bare <section> doesn't, so it silently fit-content
   sizes to whatever's inside it. That's invisible normally, but wide
   content (e.g. two full-size images side by side) can blow the whole
   column out sideways. Force every direct child to the column's own width
   and forbid it from refusing to shrink below its content's size. */
.form-page > * { width: 100%; min-width: 0; }
.form-page.wide { max-width: 900px; }
.form-page.schedule-page { max-width: 1240px; }

.page-title {
  font-family: var(--display);
  font-weight: var(--w-black);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.page-sub {
  font-weight: var(--w-light);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 32px;
}
.page-sub strong { color: var(--paper); font-weight: var(--w-semibold); }
.page-sub.small { font-size: 13px; margin: 14px 0 0; max-width: 48ch; }

.form-page-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Same [hidden]-override issue as .btn and .modal-overlay above — without
   this, a hidden .form-page-inner (e.g. register.html's success screen)
   stays visible the whole time instead of only appearing after submit. */
.form-page-inner[hidden] { display: none; }

.stack-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-weight: var(--w-semibold);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.field input {
  font-family: var(--font);
  font-weight: var(--w-regular);
  font-size: 15px;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: var(--muted-soft); }
.field input:focus {
  border-color: var(--cyan);
  background: rgba(23,190,242,0.06);
}

.field-error {
  font-weight: var(--w-semibold);
  font-size: 13px;
  color: var(--magenta);
  margin: -4px 0 0;
}
.field-success {
  font-weight: var(--w-semibold);
  font-size: 13px;
  color: var(--lime);
  margin: -4px 0 0;
}

/* CMO 3.0 Mail Center */
.mail-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .mail-cards { grid-template-columns: 1fr 1fr; }
}
.mail-card { text-align: left; padding: 22px; }
.mail-card .field { margin-bottom: 14px; }
.mail-card select,
.mail-card textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--paper);
  font-family: var(--font);
  font-size: 14px;
}
.mail-card textarea { min-height: 90px; resize: vertical; }
/* The closed <select> picks up the dark styling above, but most browsers
   render the open dropdown's <option> list using OS defaults regardless —
   white background, black text — unless styled explicitly here too. */
.mail-card select option {
  background: var(--ink-soft);
  color: var(--paper);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--paper);
  padding: 6px 0;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; }
.mail-recipient-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* Password field with show/hide toggle */
.field-input-wrap { position: relative; display: flex; }
.field-input-wrap input { width: 100%; padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.password-toggle:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.password-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.password-toggle svg { display: block; pointer-events: none; }

.btn-block { width: 100%; justify-content: center; }

.form-footnote {
  font-weight: var(--w-light);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
}
.form-footnote a { color: var(--cyan); font-weight: var(--w-semibold); }
.form-footnote a:hover { text-decoration: underline; }

.success-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63,224,122,0.14);
  color: var(--lime);
  margin: 0 0 20px;
}
.success-badge.small { width: 46px; height: 46px; margin: 0 auto 12px; }

.code-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 20px;
  border-radius: 18px;
  background: var(--violet);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 22px;
}
.code-card-label {
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.code-card-value {
  font-family: var(--font);
  font-weight: var(--w-black);
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 0.05em;
  color: var(--white);
}
.code-copy {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  font-weight: var(--w-semibold);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.code-copy:hover { border-color: var(--cyan); color: var(--cyan); }

.site-footer.thin { padding-top: 30px; }

/* ============================================================
   Sign In — status banner
   ============================================================ */
.status-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: var(--w-semibold);
  font-size: 13.5px;
  color: var(--paper);
  margin-bottom: 34px;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--muted-soft);
}
.status-dot--live { background: var(--lime); box-shadow: 0 0 0 4px rgba(63,224,122,0.18); }
.status-dot--idle { background: var(--cyan); }

/* ============================================================
   Day slider (12 sessions, date-gated)
   ============================================================ */
.day-slider-wrap {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}
.day-slider-controls {
  justify-content: flex-end;
  margin-bottom: 12px;
}
.day-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.day-track::-webkit-scrollbar { display: none; }

/* ============================================================
   Schedule page — desktop table (Week | Friday | Saturday) and
   tablet/mobile week-cards (one card per week, Fri + Sat stacked
   inside with a divider). CSS toggles which one is visible —
   only one is ever rendered on screen at a time.
   ============================================================ */
.schedule-table-wrap { display: none; }
.week-cards-wrap { display: flex; flex-direction: column; gap: 18px; }

@media (min-width: 900px) {
  .schedule-table-wrap { display: block; }
  .week-cards-wrap { display: none; }
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}
.schedule-table thead th {
  text-align: left;
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0 14px 8px;
}
.schedule-table-week {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 17px;
  color: var(--paper);
  white-space: nowrap;
  padding: 0 14px;
  vertical-align: top;
  width: 110px;
}
.schedule-table td { padding: 0 8px; vertical-align: top; }

.schedule-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 108px;
}
.schedule-cell:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 10px 24px -12px rgba(23,190,242,0.4);
}
.schedule-cell-topic { font-weight: var(--w-semibold); font-size: 14.5px; line-height: 1.4; }
.schedule-cell-meta { font-size: 12.5px; color: var(--muted); }
.schedule-cell-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: var(--w-semibold);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
.schedule-cell--today .schedule-cell-badge { background: rgba(236,24,118,0.18); color: var(--magenta); }
.schedule-cell--past .schedule-cell-badge { background: rgba(63,224,122,0.15); color: var(--lime); }

/* Tablet & mobile week-cards */
.week-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
}
.week-card-title {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 16px;
  color: var(--cyan);
  margin: 0 0 12px;
}
.week-card-divider {
  border: none;
  border-top: 1px dashed rgba(255,255,255,0.14);
  margin: 14px 0;
}
.week-day-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: var(--paper);
  padding: 6px 4px;
  border-radius: 10px;
  min-height: 44px; /* touch target */
  transition: background 0.2s ease;
}
.week-day-block:hover, .week-day-block:active { background: rgba(255,255,255,0.05); }
.week-day-name {
  font-weight: var(--w-bold);
  font-size: 13px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.week-day-topic { font-weight: var(--w-semibold); font-size: 15px; }
.week-day-meta { font-size: 13px; color: var(--muted); }
.week-day-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: var(--w-semibold);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
.week-day-block--today .week-day-badge { background: rgba(236,24,118,0.18); color: var(--magenta); }
.week-day-block--past .week-day-badge { background: rgba(63,224,122,0.15); color: var(--lime); }

@media (min-width: 700px) and (max-width: 899px) {
  .week-cards-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .week-card { padding: 22px; }
}

.day-card {
  flex: none;
  width: 190px;
  scroll-snap-align: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-family: var(--font);
  color: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* When a .day-card is a <button> (e.g. the exam picker), reset the
   browser's default button chrome so it matches the div/anchor cards. */
button.day-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  outline: none;
}
button.day-card:hover { border-color: var(--cyan); }

.day-card-weekend {
  font-weight: var(--w-bold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.day-card-daydate {
  font-weight: var(--w-semibold);
  font-size: 13.5px;
}
.day-card-topic {
  font-weight: var(--w-regular);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.day-card-time {
  font-weight: var(--w-regular);
  font-size: 12px;
  color: var(--muted-soft);
}
.day-card-badge {
  align-self: flex-start;
  margin-top: 6px;
  font-weight: var(--w-semibold);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.day-card--past {
  opacity: 0.55;
}
.day-card--past .day-card-badge {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}

.day-card--upcoming { cursor: not-allowed; }
.day-card--upcoming .day-card-badge {
  background: rgba(255,255,255,0.06);
  color: var(--muted-soft);
}

.day-card--today {
  border-color: var(--lime);
  background: rgba(63,224,122,0.08);
  box-shadow: 0 0 0 1px rgba(63,224,122,0.25), 0 14px 30px -16px rgba(63,224,122,0.45);
  cursor: pointer;
}
.day-card--today:hover { transform: translateY(-4px); }
.day-card--today .day-card-badge {
  background: var(--lime);
  color: #06210f;
}

/* Participant "My Schedule" status states */
.day-card--attended {
  border-color: var(--lime);
  background: rgba(63,224,122,0.06);
}
.day-card--attended .day-card-badge {
  background: rgba(63,224,122,0.16);
  color: var(--lime);
}
.day-card--missed {
  border-color: rgba(236,24,118,0.35);
  opacity: 0.75;
}
.day-card--missed .day-card-badge {
  background: rgba(236,24,118,0.14);
  color: var(--magenta);
}
.day-card-tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #06210f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day-card { position: relative; }

/* ============================================================
   Sign-in panel
   ============================================================ */
.signin-panel {
  width: 100%;
  padding: 30px clamp(18px, 4vw, 32px);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  text-align: left;
}

.signin-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
  padding: 20px 10px;
}
.signin-locked svg { color: var(--muted-soft); }
.signin-locked p { margin: 0; font-weight: var(--w-regular); font-size: 14px; max-width: 44ch; }

.signin-heading {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 20px;
  margin: 0 0 20px;
}

.map-wrap {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}
#venueMap { width: 100%; height: 100%; }

.signin-result {
  margin-top: 22px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(63,224,122,0.08);
  border: 1px solid rgba(63,224,122,0.25);
  text-align: center;
}
.signin-result-title {
  font-weight: var(--w-bold);
  font-size: 15px;
  margin: 0 0 4px;
}

/* ============================================================
   Out-of-range modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 2, 16, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.modal-card h3 {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 19px;
  margin: 0 0 10px;
}
.modal-card p {
  font-weight: var(--w-regular);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 560px) {
  .day-slider-controls { display: none; }
}

/* scope pill — clarifies main vs test/off-schedule sign-in */
.scope-pill {
  display: inline-block;
  font-weight: var(--w-bold);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.scope-pill--main { background: rgba(63,224,122,0.16); color: var(--lime); }
.scope-pill--test { background: rgba(23,190,242,0.14); color: var(--cyan); }

/* ============================================================
   Admin — shared bits
   ============================================================ */
.page-title.left, .page-sub.left { text-align: left; margin-left: 0; }

.admin-who {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: var(--w-semibold);
  font-size: 13.5px;
  color: var(--paper);
}
.admin-logout {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  font-weight: var(--w-semibold);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.admin-logout:hover { border-color: var(--magenta); color: var(--magenta); }

.dash {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 32px) 80px;
  text-align: left;
}
/* On larger desktop viewports, let the dashboard use more of the actual
   screen so wide content (like the participants table) can spread out at
   full width instead of always being squeezed into 1080px and needing to
   scroll. Narrower viewports keep the original width, where
   .table-wrap's overflow-x:auto already provides horizontal scrolling. */
@media (min-width: 1300px) { .dash { max-width: 1400px; } }
@media (min-width: 1650px) { .dash { max-width: 1600px; } }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}
.stat-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value {
  font-family: var(--display);
  font-weight: var(--w-black);
  font-size: 34px;
}
.stat-label {
  font-weight: var(--w-regular);
  font-size: 12.5px;
  color: var(--muted);
}
.stat-card--main { border-color: rgba(63,224,122,0.3); }
.stat-card--main .stat-value { color: var(--lime); }
.stat-card--test { border-color: rgba(23,190,242,0.3); }
.stat-card--test .stat-value { color: var(--cyan); }

.dash-block {
  padding: 26px clamp(18px, 4vw, 28px);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.dash-block-head h2 {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 19px;
  margin: 0 0 4px;
}
.dash-block-head p {
  font-weight: var(--w-regular);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.export-row { display: flex; gap: 12px; flex-wrap: wrap; }

.daily-controls {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.daily-controls .field input {
  padding: 11px 14px;
  font-size: 14px;
}
.daily-summary {
  font-weight: var(--w-semibold);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 3px;
}

.table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.dash-table th {
  text-align: left;
  font-weight: var(--w-semibold);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.dash-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: var(--w-regular);
  color: var(--paper);
  white-space: nowrap;
}
.dash-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.empty-row { text-align: center; color: var(--muted-soft); white-space: normal; }

.code-chip {
  font-family: var(--font);
  font-weight: var(--w-semibold);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 3px 9px;
  border-radius: 999px;
}
.btn-inline-danger {
  font-family: var(--font);
  font-size: 12px;
  font-weight: var(--w-semibold);
  color: var(--magenta);
  background: rgba(236,24,118,0.08);
  border: 1px solid rgba(236,24,118,0.3);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-inline-danger:hover { background: rgba(236,24,118,0.18); }
.btn-inline-danger:disabled { opacity: 0.6; cursor: default; }
.btn-inline {
  font-family: var(--font);
  font-size: 12px;
  font-weight: var(--w-semibold);
  color: var(--cyan);
  background: rgba(23,190,242,0.08);
  border: 1px solid rgba(23,190,242,0.3);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-inline:hover { background: rgba(23,190,242,0.18); }
.btn-inline:disabled { opacity: 0.4; cursor: default; }

/* Exam Center */
.exam-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.exam-tab {
  font-family: var(--font);
  font-size: 13px;
  font-weight: var(--w-semibold);
  color: var(--paper);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.exam-tab:hover { border-color: var(--cyan); }
.exam-tab.active { border-color: var(--cyan); background: rgba(23,190,242,0.12); }
.exam-tab-meta { display: block; font-size: 11px; color: var(--muted); font-weight: var(--w-regular); margin-top: 2px; }
.exam-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
}
.exam-question-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.exam-question-item:last-child { border-bottom: none; }
.exam-question-text { font-weight: var(--w-semibold); margin: 0 0 6px; }
.exam-question-options { font-size: 12.5px; color: var(--muted); margin: 0; }
.exam-question-options .correct { color: var(--lime); font-weight: var(--w-semibold); }
.exam-question-actions { display: flex; gap: 8px; flex-shrink: 0; }
.option-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.option-input-row input[type="text"] { flex: 1; }

/* Progressive exam navigation */
.exam-progress-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.exam-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.exam-dot--answered { background: var(--lime); }
.exam-dot--current { transform: scale(1.3); box-shadow: 0 0 0 3px rgba(23,190,242,0.3); background: var(--cyan); }
.exam-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.exam-nav-row .btn { flex: 1; justify-content: center; }
.type-chip {
  font-weight: var(--w-semibold);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.type-chip--main { background: rgba(63,224,122,0.16); color: var(--lime); }
.type-chip--test { background: rgba(23,190,242,0.14); color: var(--cyan); }

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .export-row { flex-direction: column; }
  .export-row .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Splash / preloader — gray logo fills bottom-to-top with
   brand color over ~2.4s, then reveals the homepage
   ============================================================ */
body.preloading { overflow: hidden; height: 100vh; }
body.preloading .eyebrow,
body.preloading .line-1,
body.preloading .line-2,
body.preloading .sub-copy,
body.preloading .detail-strip,
body.preloading .cta-row {
  animation-play-state: paused;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-wrap {
  position: relative;
  width: min(72vw, 440px);
  aspect-ratio: 1000 / 477;
}

@media (max-width: 640px) {
  .splash-logo-wrap {
    width: min(36vw, 220px); /* 50% of the desktop/tablet size */
  }
}

.splash-logo-base,
.splash-logo-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.splash-logo-base {
  opacity: 0.28;
  filter: grayscale(1) brightness(1.6);
}

.splash-logo-fill {
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  animation: splashFill 1.5s cubic-bezier(0.45, 0, 0.2, 1) forwards 0.25s;
  filter: drop-shadow(0 0 0 rgba(23,190,242,0));
}

@keyframes splashFill {
  0%   { clip-path: inset(100% 0 0 0); -webkit-clip-path: inset(100% 0 0 0); filter: drop-shadow(0 0 0 rgba(23,190,242,0)); }
  60%  { filter: drop-shadow(0 0 14px rgba(23,190,242,0.55)); }
  100% { clip-path: inset(0% 0 0 0); -webkit-clip-path: inset(0% 0 0 0); filter: drop-shadow(0 0 4px rgba(63,224,122,0.35)); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo-fill { animation: none; clip-path: inset(0% 0 0 0); -webkit-clip-path: inset(0% 0 0 0); }
}

/* Participant dashboard cards — welcome animation, progress ring,
   inspiration, speaker lineup, announcements (used on my-dashboard.html). */
.lineup-images {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}
.lineup-images a {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.lineup-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.lineup-images a:hover img { transform: scale(1.03); }

.announcement-item {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announcement-item:last-child { border-bottom: none; }
.announcement-subject {
  display: block;
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 15px;
  color: var(--paper);
}
.announcement-date {
  display: block;
  font-size: 11.5px;
  color: var(--muted-soft);
  margin: 2px 0 6px;
}
.announcement-message {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* Prevent the dashboard page from ever forcing horizontal scroll on the
   page itself (the day-track slider still scrolls internally — this only
   clips overflow at the page level). */
.dash-page { overflow-x: hidden; }

.dashboard-card {
  border: 1px solid rgba(23, 190, 242, 0.35);
  border-radius: 18px;
  margin: 16px 0;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s ease;
}
.dashboard-card:hover { border-color: rgba(23, 190, 242, 0.65); }
.dashboard-card-title {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: 18px;
  color: var(--paper);
  margin: 0 0 4px;
}

/* Attendance progress + weekly inspiration side by side to use the width
   better — stacks on narrow screens where two columns wouldn't fit. */
.dash-cards-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.dash-cards-row .dashboard-card {
  flex: 1 1 0;
  min-width: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 640px) {
  .dash-cards-row { flex-direction: column; }
}

/* Weekly Inspiration text — bumped to 1.5x the base .page-sub.small size
   (13px -> 19.5px) per request, scoped to this card only so other pages
   using .page-sub.small are unaffected. */
#inspirationText {
  font-size: 19.5px;
  line-height: 1.5;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}
.welcome-overlay.show { opacity: 1; pointer-events: auto; }
.welcome-overlay h1 {
  font-family: var(--display);
  font-weight: var(--w-bold);
  font-size: clamp(28px, 6vw, 48px);
  color: var(--paper);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: scale(0.9);
  transition: transform 0.6s ease;
}
.welcome-overlay.show h1 { transform: scale(1); }

.progress-circle {
  --progress: 0%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,0.12) 0);
  position: relative;
}
.progress-circle::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--ink);
  border-radius: 50%;
}
.progress-circle span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 28px;
  font-weight: var(--w-bold);
  color: var(--paper);
}
.progress-circle--fail {
  background: conic-gradient(var(--magenta) var(--progress), rgba(255,255,255,0.12) 0);
}
.requirement-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(236, 24, 118, 0.14);
  border: 1px solid rgba(236, 24, 118, 0.4);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.requirement-banner strong { color: var(--magenta); }

@media (max-width: 700px) {
  .dashboard-card { padding: 18px; margin: 12px 0; }
  .progress-circle { width: 130px; height: 130px; }
}


/* ===== Leaderboard (podium + rows), shared by homepage, dashboard, schedule ===== */
.lb-card { max-width: 720px; margin: 0 auto; padding: 24px 24px 20px; border-radius: 28px; background: var(--ink-soft); border: 2px solid var(--violet-2); display: flex; flex-direction: column; gap: 20px; text-align: left; }
.lb-ribbon { align-self: center; padding: 8px 32px; border-radius: 12px; background: var(--magenta); color: #fff; font-weight: var(--w-bold); font-size: 18px; letter-spacing: .06em; }
.lb-podium { display: flex; align-items: flex-end; gap: 12px; }
.lb-pod { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lb-pod-name { font-weight: var(--w-semibold); font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-step { width: 100%; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 2px; font-weight: var(--w-bold); background: var(--violet-2); }
.lb-step b { font-size: 28px; line-height: 1; }
.lb-step span { font-size: 13px; color: var(--paper); font-weight: var(--w-semibold); }
.lb-pod--1 .lb-step { height: 124px; background: #3a1a8f; }
.lb-pod--2 .lb-step { height: 94px; }
.lb-pod--3 .lb-step { height: 78px; }
.lb-pod--1 b { color: #F5B83D; } .lb-pod--2 b { color: #C9D3E6; } .lb-pod--3 b { color: #E08A4A; }
.lb-pod--1 .lb-av { width: 88px; height: 88px; font-size: 30px; border-color: #F5B83D; }
.lb-pod--2 .lb-av { border-color: #C9D3E6; } .lb-pod--3 .lb-av { border-color: #E08A4A; }
.lb-crown { width: 36px; height: 27px; }
.lb-av { width: 68px; height: 68px; border-radius: 50%; border: 4px solid transparent; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-weight: var(--w-bold); font-size: 24px; color: var(--ink); flex: none; overflow: hidden; }
.lb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-rows { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 16px; background: var(--violet); border: 1px solid rgba(255,255,255,.1); }
.lb-row .lb-av { width: 44px; height: 44px; font-size: 16px; border: 0; }
.lb-rk { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-2); display: flex; align-items: center; justify-content: center; font-weight: var(--w-bold); font-size: 15px; color: var(--paper); flex: none; }
.lb-nm { flex: 1; min-width: 0; font-weight: var(--w-semibold); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pill { display: flex; align-items: baseline; gap: 5px; padding: 7px 14px; border-radius: 999px; background: var(--ink); border: 1px solid rgba(245,184,61,.5); color: #F5B83D; font-weight: var(--w-bold); font-size: 17px; flex: none; }
.lb-pill small { font-size: 12px; font-weight: var(--w-semibold); color: var(--muted); }
.lb-you { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lb-you .lb-rk { background: var(--ink); color: var(--lime); min-width: 48px; width: auto; padding: 0 10px; border-radius: 999px; box-sizing: border-box; }
.lb-you .lb-pill { background: transparent; border-color: rgba(11,4,23,.45); color: var(--ink); }
.lb-you .lb-pill small { color: rgba(11,4,23,.75); }
.lb-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.lb-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 12px 0; }
.lb-section { padding: 64px 20px; text-align: center; }
.lb-section h2 { font-family: var(--display); font-weight: var(--w-bold); font-size: clamp(28px, 4vw, 40px); margin: 6px 0 8px; }
.lb-section .lb-sub { color: var(--muted); font-size: 16px; margin: 0 auto 28px; max-width: 560px; }
@media (max-width: 520px) {
  .lb-card { padding: 18px 14px 16px; }
  .lb-av { width: 54px; height: 54px; font-size: 19px; }
  .lb-pod--1 .lb-av { width: 68px; height: 68px; font-size: 24px; }
  .lb-pod-name { font-size: 13px; }
  .lb-step b { font-size: 22px; } .lb-step span { font-size: 11px; }
  .lb-pod--1 .lb-step { height: 104px; } .lb-pod--2 .lb-step { height: 80px; } .lb-pod--3 .lb-step { height: 66px; }
  .lb-row { padding: 8px 10px; gap: 8px; } .lb-nm { font-size: 14px; } .lb-pill { padding: 6px 10px; font-size: 15px; }
}

/* ===== Training Hub tiles + profile photo card (participant dashboard) ===== */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.hub-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--violet); border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: var(--white); text-align: left; min-height: 128px; box-sizing: border-box; transition: border-color .2s ease, transform .2s ease; }
.hub-tile:hover, .hub-tile:focus-visible { border-color: var(--cyan); transform: translateY(-2px); }
.hub-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.hub-tt { font-weight: var(--w-bold); font-size: 17px; }
.hub-st { font-size: 13px; color: var(--muted); }
.hub-go { margin-top: auto; font-weight: var(--w-bold); font-size: 13px; }
@media (max-width: 380px) { .hub-grid { grid-template-columns: 1fr; } }
.photo-card .photo-av { position: relative; width: 120px; height: 120px; margin: 12px auto; }
.photo-card .photo-av .lb-av { width: 120px; height: 120px; font-size: 40px; border: 4px solid var(--cyan); background: var(--violet-2); color: var(--paper); }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.photo-actions .btn { min-height: 44px; }
.photo-card .field-error, .photo-card .field-success { margin: 12px 0 0; }
/* With an odd number of tiles the last one spans the row so there is no gap. */
.hub-grid .hub-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }

/* Top 3 on the leaderboard: a clear ring around the profile picture, with a gap, in gold / silver / bronze. */
.lb-pod .lb-av { border: 4px solid var(--ink-soft); }
.lb-pod--1 .lb-av { box-shadow: 0 0 0 4px #F5B83D, 0 0 22px rgba(245,184,61,.55); }
.lb-pod--2 .lb-av { box-shadow: 0 0 0 4px #C9D3E6, 0 0 18px rgba(201,211,230,.4); }
.lb-pod--3 .lb-av { box-shadow: 0 0 0 4px #E08A4A, 0 0 18px rgba(224,138,74,.45); }
.lb-pod { padding-top: 6px; }

/* "Back to My Dashboard" button shown on every page opened from the dashboard */
.back-dashboard { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin: 0 0 16px; border-radius: 999px; border: 1px solid rgba(23,190,242,.5); color: var(--cyan); text-decoration: none; font-weight: var(--w-semibold); font-size: 14px; background: rgba(23,190,242,.08); transition: background .2s ease, border-color .2s ease; }
.back-dashboard:hover, .back-dashboard:focus-visible { background: rgba(23,190,242,.18); border-color: var(--cyan); }

/* ===== Dashboard section headers, exam progress table ===== */
.dash-section-title { text-align: center; font-size: 20px; margin: 0 0 6px; }
.dash-section-sub { text-align: center; margin: 0 auto 16px; max-width: 560px; }
.day-slider-wrap > .dash-section-title { margin-top: 28px; }
.lb-section--entry { padding: 32px 0 8px; }

.exam-table-wrap { overflow-x: auto; border: 1px solid rgba(23,190,242,.35); border-radius: 14px; }
.exam-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; }
.exam-table thead th { background: var(--violet-2); color: var(--paper); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: var(--w-bold); padding: 12px 10px; }
.exam-table tbody th { text-align: left; font-weight: var(--w-semibold); color: var(--paper); padding: 12px 14px; white-space: nowrap; }
.exam-table td { padding: 12px 10px; color: var(--paper); }
.exam-table tbody tr { border-top: 1px solid rgba(255,255,255,.1); }
.exam-table tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
.exam-table thead th:first-child { text-align: left; padding-left: 14px; }
.exam-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: var(--w-bold); white-space: nowrap; }
.exam-chip--pass { background: rgba(63,224,122,.18); color: var(--lime); }
.exam-chip--fail { background: rgba(236,24,118,.18); color: #FF7DB4; }
.exam-chip--none { background: rgba(255,255,255,.08); color: var(--muted); }
@media (max-width: 520px) {
  .exam-table { font-size: 13px; }
  .exam-table thead th { font-size: 10px; padding: 10px 6px; }
  .exam-table tbody th, .exam-table td { padding: 10px 6px; }
  .exam-chip { font-size: 11px; padding: 4px 8px; }
}

/* ===== Profile photo cropper ===== */
.crop-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(5,2,12,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.crop-box { width: 100%; max-width: 380px; background: var(--ink-soft); border: 2px solid var(--violet-2); border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; color: var(--paper); }
.crop-box h3 { margin: 0; font-size: 18px; font-weight: var(--w-bold); }
.crop-box p { margin: 0; font-size: 13px; color: var(--muted); }
.crop-stage { position: relative; width: 280px; height: 280px; max-width: 100%; touch-action: none; cursor: grab; border-radius: 16px; overflow: hidden; background: #000; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-zoom { width: 100%; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--magenta); min-height: 44px; }
.crop-actions { display: flex; gap: 10px; width: 100%; }
.crop-actions .btn { flex: 1; min-height: 46px; }

/* ===== Weekly pictures gallery ===== */
.pic-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; padding: 14px 18px; border-radius: 18px; background: var(--violet); border: 2px solid var(--violet-2); }
.pic-count { display: flex; align-items: baseline; gap: 10px; }
.pic-count b { font-size: 40px; line-height: 1; font-weight: var(--w-black, 900); color: #F5B83D; }
.pic-count span { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--w-bold); color: var(--paper); }
.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .pic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 380px) { .pic-grid { grid-template-columns: 1fr; } }
.pic-card { margin: 0; border: 3px solid var(--cyan); border-radius: 18px; overflow: hidden; background: var(--ink-soft); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pic-card:hover { transform: translateY(-3px); border-color: #F5B83D; box-shadow: 0 8px 28px rgba(23,190,242,.25); }
.pic-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--violet-2); cursor: zoom-in; }
.pic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--violet-2); border-top: 3px solid var(--cyan); }
.pic-card:hover .pic-bar { border-top-color: #F5B83D; }
.pic-no { font-weight: var(--w-bold); font-size: 14px; color: var(--paper); }
.pic-dl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #F5B83D; color: var(--ink); font-weight: var(--w-bold); font-size: 14px; text-decoration: none; }
.pic-dl:hover, .pic-dl:focus-visible { background: #ffd067; }
.pic-dl svg { width: 16px; height: 16px; }
.pic-more { text-align: center; margin: 22px 0 6px; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,2,12,.94); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(1000px, 86vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-fig img { max-width: 100%; max-height: 74vh; border: 3px solid var(--cyan); border-radius: 14px; background: var(--violet-2); }
.lb-fig figcaption { display: flex; align-items: center; gap: 16px; color: var(--paper); font-weight: var(--w-semibold); }
.lb-x { position: absolute; top: 10px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav { width: 48px; height: 64px; border-radius: 14px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 38px; cursor: pointer; flex: none; }
@media (max-width: 600px) { .lb-nav { width: 38px; } }
.pic-no { white-space: nowrap; }
.exam-table-wrap { margin-top: 14px; }
@media (max-width: 520px) {
  .pic-bar { padding: 8px; gap: 6px; }
  .pic-no { font-size: 13px; }
  .pic-dl { padding: 0 11px; font-size: 13px; min-height: 38px; }
}

/* Full names everywhere on the board (wrap instead of cutting off) */
.lb-pod-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; max-width: 100%; }
.lb-nm { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }

/* Ring colours: 1st green, 2nd blue, 3rd bronze */
.lb-pod--1 .lb-av { box-shadow: 0 0 0 4px #3FE07A, 0 0 22px rgba(63,224,122,.55); }
.lb-pod--2 .lb-av { box-shadow: 0 0 0 4px #17BEF2, 0 0 18px rgba(23,190,242,.5); }
.lb-pod--1 .lb-step b { color: #3FE07A; }
.lb-pod--2 .lb-step b { color: #17BEF2; }

/* ===== Admin: 20 per page ===== */
.pg-hidden { display: none !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; }
.pager-label { font-size: 13px; color: var(--muted); min-width: 170px; text-align: center; }
.pager-btn { min-height: 40px; padding: 0 16px; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Leaderboard criteria ===== */
.lb-criteria { border: 1px solid rgba(23,190,242,.35); border-radius: 14px; background: rgba(255,255,255,.04); padding: 0 14px; text-align: left; }
.lb-criteria summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: var(--w-bold); font-size: 14px; color: var(--cyan); list-style: none; }
.lb-criteria summary::-webkit-details-marker { display: none; }
.lb-criteria summary::after { content: "+"; margin-left: auto; font-size: 20px; }
.lb-criteria[open] summary::after { content: "–"; }
.lb-criteria ul { margin: 0 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--paper); }
.lb-criteria li b { color: #F5B83D; }

/* ===== My Activity Board ===== */
.act-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.act-stat { background: var(--violet); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.act-stat b { font-size: 28px; line-height: 1; color: #F5B83D; font-weight: 900; }
.act-stat b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.act-stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.act-weeks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; }
.act-week { border: 2px solid var(--violet-2); border-radius: 18px; background: var(--ink-soft); padding: 14px 14px 6px; }
.act-week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.act-week-head h3 { margin: 0; font-size: 17px; font-weight: var(--w-bold); color: var(--paper); }
.act-week-pts { font-weight: var(--w-bold); color: #F5B83D; font-size: 16px; }
.act-week-pts small { font-size: 12px; color: var(--muted); font-weight: 600; }
.act-week-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 10px 0 6px; overflow: hidden; }
.act-week-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.act-items { list-style: none; margin: 0; padding: 0; }
.act-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.act-item:first-child { border-top: 0; }
.act-item-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-item-name { font-weight: var(--w-semibold); font-size: 15px; color: var(--paper); }
.act-item-detail { margin-top: 3px; font-size: 13px; color: var(--muted); }
.act-item--upcoming .act-item-name { color: var(--muted); }
.exam-chip--open { background: rgba(23,190,242,.18); color: var(--cyan); }
.exam-chip--late { background: rgba(245,184,61,.18); color: #F5B83D; }
.act-sub { margin: 26px 0 4px; font-size: 18px; text-align: center; color: var(--paper); }
.act-video { text-align: left; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: var(--violet); margin-bottom: 10px; }
.act-video-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .act-weeks { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .act-stat b { font-size: 22px; } .act-stat span { font-size: 11px; } }

/* Homepage: bring the leaderboard card up closer to the Register button */
main.hero-tight { padding-bottom: 32px; }
#leaderboardHome.lb-section { padding-top: 12px; padding-bottom: 40px; }
#leaderboardHome .lb-sub { margin-bottom: 18px; }
@media (max-width: 520px) { main.hero-tight { padding-bottom: 20px; } #leaderboardHome.lb-section { padding-top: 8px; padding-bottom: 28px; } }

/* ===== Admin: sections open as popups from a launcher ===== */
.dash-launcher { margin: 6px 0 30px; }
.dash-launcher-title { font-family: var(--display); font-weight: var(--w-bold); font-size: 22px; margin: 0 0 4px; }
.dash-launcher-sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.dash-launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .dash-launcher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dash-launcher-grid { grid-template-columns: 1fr; gap: 10px; } }
.dash-launch-btn { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 84px; padding: 14px 16px; border-radius: 18px; background: var(--violet); border: 1px solid rgba(255,255,255,.14); color: var(--white); font: inherit; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.dash-launch-btn:hover, .dash-launch-btn:focus-visible { border-color: var(--cyan); background: var(--violet-2); transform: translateY(-2px); outline: none; }
.dash-launch-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.dash-launch-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-launch-name { font-weight: var(--w-bold); font-size: 16px; line-height: 1.25; }
.dash-launch-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }

.dash-popup:not(.is-open) { display: none; }
.dash-backdrop { position: fixed; inset: 0; z-index: 1400; background: rgba(5,2,12,.82); backdrop-filter: blur(3px); }
.dash-backdrop[hidden] { display: none; }
body.dash-popup-open { overflow: hidden; }
.dash-popup.is-open { position: fixed; z-index: 1500; top: 3vh; left: 50%; transform: translateX(-50%); width: min(1100px, 94vw); max-height: 94vh; overflow-y: auto; margin: 0; padding-top: 0; background: var(--ink-soft); border: 2px solid var(--violet-2); border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.6); overscroll-behavior: contain; }
.dash-popup-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(-1 * clamp(18px, 4vw, 28px)) 18px; padding: 12px clamp(18px, 4vw, 28px); background: var(--violet); border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 20px 20px 0 0; }
.dash-popup-name { font-weight: var(--w-bold); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-popup-close { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--paper); font: inherit; font-weight: var(--w-bold); font-size: 14px; cursor: pointer; flex: none; }
.dash-popup-close:hover, .dash-popup-close:focus-visible { background: var(--magenta); border-color: var(--magenta); color: #fff; outline: none; }
@media (max-width: 700px) { .dash-popup.is-open { top: 1.5vh; width: 97vw; max-height: 97vh; border-radius: 18px; } }

/* ===== Reminders (push notifications) opt-in card ===== */
.reminders-ios-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); text-align: left; }
.reminders-ios-steps { margin: 8px 0 0; padding-left: 20px; }
.reminders-ios-steps li { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 2px; }

/* ===== Admin: Reminders section ===== */
.reminder-audience-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.reminder-audience-row > * { flex: 1 1 180px; }
.reminder-toggle-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.reminder-starter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.reminder-starter-chip { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: var(--paper); cursor: pointer; }
.reminder-starter-chip:hover, .reminder-starter-chip:focus-visible { border-color: var(--cyan); outline: none; }
.reminder-stat-row { display: flex; gap: 18px; margin: 0 0 14px; flex-wrap: wrap; }
.reminder-stat { font-size: 13px; color: var(--muted); }
.reminder-stat strong { color: var(--paper); font-size: 16px; display: block; }

/* ===== Reviews: participant Review Center, homepage wall ===== */
.rv-group { margin: 0 0 22px; text-align: left; }
.rv-group-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.rv-block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.rv-block-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rv-block-head h3 { margin: 0; font-size: 16px; }
.rv-block-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.rv-done { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(63,224,122,0.15); color: #3FE07A; margin-left: 6px; }
.rv-stars { display: flex; gap: 4px; }
.rv-star { background: none; border: 0; padding: 2px; font-size: 30px; line-height: 1; color: rgba(255,255,255,0.25); cursor: pointer; }
.rv-star.on { color: #F5B83D; }
.rv-star:focus-visible { outline: 2px solid var(--cyan); border-radius: 6px; }
.rv-text { width: 100%; min-height: 90px; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.25); color: var(--paper); font: inherit; box-sizing: border-box; }
.rv-week { margin: 0 0 10px; border-radius: 16px; }
.rv-week > summary { cursor: pointer; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05); font-size: 14.5px; list-style: none; }
.rv-week[open] > summary { margin-bottom: 8px; }

.rv-card-wrap { gap: 18px; }
.rv-summary { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rv-avg { font-size: 34px; font-weight: 700; }
.rv-summary-stars { color: #F5B83D; font-size: 22px; letter-spacing: 2px; }
.rv-count { color: var(--muted); font-size: 14px; }
.rv-list { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.rv-card { padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); text-align: left; }
.rv-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rv-name { font-weight: 600; }
.rv-card-stars { color: #F5B83D; letter-spacing: 2px; font-size: 16px; }
.rv-comment { margin: 0; line-height: 1.55; color: var(--paper); font-size: 15px; }

/* ===== Quiz and slides pickers: a grid of cards instead of a swipe track ===== */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-x: visible; scroll-snap-type: none; padding: 4px 0 10px; }
.pick-list .day-card { width: 100% !important; box-sizing: border-box; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; min-height: 110px; scroll-snap-align: none; }
.pick-list .day-card-badge { margin-top: auto; }

/* ===== Website feedback ===== */
.fb-item { text-align: center; padding: 12px; margin-top: 8px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.fb-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.fb-item-top { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-tag { font-size: 12px; color: var(--muted); }

/* ===== Subtext on cards: centred so it is easier to read ===== */
.hub-tile { align-items: center; text-align: center; }
.hub-st { text-align: center; }
.day-card { align-items: center; text-align: center; }
.dashboard-card .page-sub:not(.left) { text-align: center; margin-left: auto; margin-right: auto; }
.dashboard-card .field-label { text-align: center; display: block; }
.dashboard-card select, .dashboard-card .rv-text { text-align: left; }
.rv-group, .rv-group-label, .rv-block-head, .rv-week > summary { text-align: center; }
.rv-block-head { justify-content: center; }
.rv-card-head { justify-content: center; text-align: center; flex-direction: column; }
.rv-comment { text-align: center; }
.rv-stars { justify-content: center; }
.reminders-ios-note { text-align: center; }
.reminders-ios-steps { display: inline-block; text-align: left; }
.lb-sub { text-align: center; }

/* ===== Community chat ===== */
.chat-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 10px; }
.chat-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: var(--paper); font: inherit; font-size: 14px; cursor: pointer; }
.chat-tab.on { background: var(--cyan); color: #0B0417; border-color: var(--cyan); font-weight: 700; }
.chat-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chat-room-desc { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.chat-log { height: 56vh; min-height: 320px; overflow-y: auto; padding: 14px; border-radius: 20px; background: var(--ink-soft); border: 2px solid var(--violet-2); display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; }
.chat-day { text-align: center; margin: 6px 0 2px; }
.chat-day span { font-size: 11.5px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--muted); }
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-av { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--violet-2); }
.chat-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-av-team { background: #EC1876; color: #fff; font-size: 10px; }
.chat-bubble-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-name { font-size: 12px; color: var(--muted); }
.chat-badge { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #EC1876; color: #fff; margin-left: 4px; }
.chat-bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--violet); color: var(--paper); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.mine .chat-bubble { background: var(--cyan); color: #0B0417; border-radius: 18px 18px 6px 18px; }
.chat-msg.team .chat-bubble { border: 1px solid #EC1876; }
.chat-meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; }
.chat-msg.mine .chat-meta { justify-content: flex-end; }
.chat-del { background: none; border: 0; padding: 0; font: inherit; font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.chat-compose { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; }
.chat-compose textarea { flex: 1; resize: none; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.25); color: var(--paper); font: inherit; box-sizing: border-box; }
.chat-compose .btn { min-width: 84px; }
.chat-count { text-align: right; font-size: 11.5px; color: var(--muted); margin: 4px 4px 0; }

/* ===== Dropdowns follow the site theme (they were showing white) ===== */
select {
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
  background-color: rgba(255,255,255,0.06);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317BEF2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  padding: 10px 36px 10px 12px;
  color: var(--paper); font-family: var(--font); font-size: 14px;
  max-width: 100%; cursor: pointer;
}
select:hover { border-color: rgba(23,190,242,0.6); }
select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
select option, select optgroup { background: var(--ink-soft); color: var(--paper); }
select:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Pager buttons: no movement on hover, so the cursor never slips off ===== */
.pager { position: relative; z-index: 3; }
.pager-btn, .pager-btn:hover, .pager-btn:active, .pager-btn:focus-visible { transform: none !important; }
.pager-btn { min-width: 112px; min-height: 42px; cursor: pointer; touch-action: manipulation; }
.pager-btn:disabled { cursor: not-allowed; }
.pager-btn span { pointer-events: none; }

/* ===== Chat: who you are chatting as ===== */
.chat-as { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.chat-as strong { color: var(--cyan); }

/* ===== Participant dashboard: ALL sub text centred, including anything added later ===== */
.participant-dash :is(p, summary, small, .page-sub, .field-label, .field-error, .field-success,
  [class*="-sub"], [class*="-note"], [class*="-desc"], [class*="-hint"], [class*="-caption"],
  [class^="day-card-"], [class*=" day-card-"], .hub-tt, .hub-st, .hub-go) { text-align: center !important; }
.participant-dash :is(p, .page-sub):not(.left) { margin-left: auto !important; margin-right: auto !important; }
.participant-dash :is(.field-label) { display: block; }
.participant-dash :is(input, textarea, select) { text-align: left; }

/* Admin: connection tester */
.diag-box { margin-top: 24px; padding: 16px 18px; border: 1px dashed rgba(23,190,242,.45); border-radius: 16px; background: rgba(23,190,242,.05); }
.diag-box h3 { margin: 0 0 6px; font-size: 15px; font-weight: var(--w-bold); color: var(--paper); }
.diag-result { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: var(--paper); }
.diag-result p { margin: 0 0 8px; } .diag-result p:last-child { margin: 0; }
.diag-ok { border-color: rgba(63,224,122,.6); background: rgba(63,224,122,.1); }
.diag-bad { border-color: rgba(236,24,118,.6); background: rgba(236,24,118,.1); }

/* ===== My Exam Progress: a list of cards (no sideways scrolling) ===== */
.exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; text-align: left; }
@media (max-width: 520px) { .exam-cards { grid-template-columns: 1fr; } }
.exam-card { border: 2px solid var(--violet-2); border-radius: 18px; background: var(--ink-soft); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.exam-card--pass { border-color: rgba(63,224,122,.55); }
.exam-card--fail { border-color: rgba(236,24,118,.5); }
.exam-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.exam-card-head h3 { margin: 0; font-size: 17px; font-weight: var(--w-bold); color: var(--paper); }
.exam-card-score { display: flex; align-items: baseline; gap: 10px; }
.exam-card-score b { font-size: 34px; line-height: 1; font-weight: 900; color: var(--paper); }
.exam-card-score span { font-size: 13px; color: var(--muted); }
.exam-card--pass .exam-card-score b { color: var(--lime); }
.exam-card--fail .exam-card-score b { color: #FF7DB4; }
.exam-card-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.exam-card-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.exam-card--fail .exam-card-bar i { background: #EC1876; }
.exam-card-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--paper); border-radius: 2px; }
.exam-card-foot { margin: 0; font-size: 13px; color: var(--muted); }
.exam-card-foot { text-align: left; }

/* ===== Two board leaderboard tabs ===== */
.lb-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 14px; max-width: 720px; }
.lb-tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--paper); font: inherit; font-weight: var(--w-bold); font-size: 14px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.lb-tab:hover, .lb-tab:focus-visible { border-color: var(--cyan); outline: none; }
.lb-tab.is-active { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

/* ===== Post CMO: upgrade offer ===== */
.pu-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(5,2,12,.88); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pu-box { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--ink-soft); border: 2px solid var(--violet-2); border-radius: 24px; padding: 0 22px 22px; color: var(--paper); text-align: left; }
.pu-head { position: sticky; top: 0; background: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 10px; }
.pu-head h3 { margin: 0; font-size: 20px; font-weight: var(--w-bold); }
.pu-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.pu-body h4 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.pu-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.pu-lead { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.pu-safe { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(63,224,122,.1); border: 1px solid rgba(63,224,122,.5); font-size: 14px; line-height: 1.5; }
.pu-actions { display: flex; gap: 10px; margin-top: 18px; }
.pu-actions .btn { flex: 1; min-height: 48px; }

/* ===== Post CMO dashboard ===== */
.pc-hello { margin: 0 0 14px; font-size: 18px; font-weight: var(--w-bold); color: var(--paper); text-align: center; }
.pc-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; text-align: left; }
@media (max-width: 520px) { .pc-sessions { grid-template-columns: 1fr; } }
.pc-session { border: 2px solid var(--violet-2); border-radius: 20px; background: var(--ink-soft); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.pc-session--today, .pc-session--in-progress { border-color: var(--cyan); box-shadow: 0 0 22px rgba(23,190,242,.25); }
.pc-session--completed { border-color: rgba(63,224,122,.6); }
.pc-session--missed { border-color: rgba(236,24,118,.5); }
.pc-session-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-session-head h3 { margin: 0; font-size: 20px; font-weight: var(--w-bold); color: var(--paper); }
.pc-days { margin: 0; font-weight: var(--w-bold); color: #F5B83D; font-size: 14px; }
.pc-topics { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; min-height: 1.4em; }
.pc-when { margin: 4px 0 0; font-size: 14px; font-weight: var(--w-semibold); color: var(--paper); }
.pc-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--paper); }
.pc-check em { margin-left: auto; font-style: normal; font-weight: var(--w-bold); color: var(--lime); }
.pc-mark { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.pc-check--done .pc-mark { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 900; }
.pc-check--late .pc-mark { background: rgba(245,184,61,.25); border-color: #F5B83D; color: #F5B83D; }
.pc-check--na { color: var(--muted); }
.pc-points { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pc-points b { font-size: 20px; color: #F5B83D; }
.pc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.pc-actions .btn { min-height: 46px; }
.pc-link { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: var(--w-semibold); cursor: pointer; min-height: 44px; padding: 0 6px; text-decoration: underline; }
.pc-picker { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.pc-picker[hidden] { display: none; }
.pc-picker-actions { display: flex; gap: 10px; }
.pc-picker-actions .btn { flex: 1; min-height: 46px; }
.pc-how { margin-top: 14px; text-align: left; }
.pc-how summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: var(--w-bold); color: var(--cyan); }
.pu-inline h4 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.pu-inline ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.5; text-align: left; }
.pu-inline .pu-lead { text-align: left; font-size: 15px; line-height: 1.55; }
.pu-inline .pu-safe { margin: 18px 0; padding: 12px 14px; border-radius: 12px; background: rgba(63,224,122,.1); border: 1px solid rgba(63,224,122,.5); font-size: 14px; text-align: left; }

/* ===== Post CMO session page ===== */
.ps-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; text-align: left; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--paper); }
.ps-banner a { color: var(--cyan); font-weight: var(--w-bold); }
.ps-banner--info { border-color: rgba(23,190,242,.5); background: rgba(23,190,242,.08); }
.ps-banner--warn { border-color: rgba(245,184,61,.55); background: rgba(245,184,61,.1); }
.ps-banner--good { border-color: rgba(63,224,122,.55); background: rgba(63,224,122,.1); }
.ps-steps { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.ps-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--violet-2); border-radius: 18px; background: var(--ink-soft); text-align: left; }
.ps-step--todo { border-color: var(--cyan); }
.ps-step--done { border-color: rgba(63,224,122,.6); }
.ps-step--late { border-color: rgba(245,184,61,.6); }
.ps-step--locked, .ps-step--na { opacity: .7; }
.ps-step-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; flex: none; color: var(--paper); }
.ps-step--done .ps-step-num { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.ps-step--late .ps-step-num { background: rgba(245,184,61,.25); border-color: #F5B83D; color: #F5B83D; }
.ps-step-main { flex: 1; min-width: 0; }
.ps-step-main h3 { margin: 0; font-size: 17px; font-weight: var(--w-bold); color: var(--paper); }
.ps-step-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ps-step-meta { margin: 4px 0 0; font-size: 13px; color: var(--paper); line-height: 1.4; }
.ps-step-action .btn { min-height: 46px; white-space: nowrap; }
.ps-step-action .is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 600px) {
  .ps-step { flex-wrap: wrap; }
  .ps-step-main { flex-basis: calc(100% - 56px); }
  .ps-step-action { width: 100%; }
  .ps-step-action .btn { width: 100%; }
}
.ps-viewer { margin-top: 18px; }
.ps-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ps-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 220px; border: 0; border-radius: 12px; background: #000; display: block; }
.ps-quiz { margin-top: 18px; text-align: left; }
.ps-q { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px 8px; margin: 0 0 12px; background: var(--violet); }
.ps-q legend { font-weight: var(--w-bold); font-size: 15px; line-height: 1.45; padding: 0 6px; color: var(--paper); }
.ps-q-n { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--ink); align-items: center; justify-content: center; font-size: 13px; font-weight: 900; margin-right: 6px; }
.ps-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--paper); }
.ps-opt:hover { background: rgba(255,255,255,.06); }
.ps-opt input { width: 20px; height: 20px; accent-color: var(--magenta); flex: none; }
.ps-result { text-align: center; padding: 18px 12px; border-radius: 16px; border: 2px solid var(--violet-2); }
.ps-result--pass { border-color: rgba(63,224,122,.6); background: rgba(63,224,122,.08); }
.ps-result--fail { border-color: rgba(236,24,118,.5); background: rgba(236,24,118,.07); }
.ps-result-score { display: block; font-size: 54px; line-height: 1; font-weight: 900; color: var(--paper); }
.ps-result--pass .ps-result-score { color: var(--lime); }
.ps-result--fail .ps-result-score { color: #FF7DB4; }
.ps-result p { margin: 8px 0; font-size: 14.5px; color: var(--paper); }

.post-card { border-color: var(--cyan); box-shadow: 0 0 24px rgba(23,190,242,.22); }


/* ===== Participant dashboard: tap-to-open sections (same pattern as the admin dashboard) ===== */
.participant-dash .dash-launcher { margin: 22px 0 10px; text-align: center; }
.participant-dash .dash-launcher-sub { margin-left: auto; margin-right: auto; }
.participant-dash .dash-launcher-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .participant-dash .dash-launcher-grid { grid-template-columns: 1fr; } }
.participant-dash .dash-launch-btn[hidden] { display: none; }
.participant-dash .dash-popup.is-open { width: min(760px, 94vw); padding: 0 24px 24px; }
.participant-dash .dash-popup .dash-popup-bar { margin: 0 -24px 18px; padding: 12px 24px; }
.participant-dash .dash-popup.is-open > .dashboard-card-title:first-of-type { margin-top: 0; }
@media (max-width: 700px) {
  .participant-dash .dash-popup.is-open { padding: 0 14px 20px; }
  .participant-dash .dash-popup .dash-popup-bar { margin: 0 -14px 14px; padding: 10px 14px; }
}
.participant-dash .dash-launch-text,
.participant-dash .dash-launch-text > * { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
.participant-dash .dash-launcher-title,
.participant-dash .dash-launcher-sub { text-align: center !important; }

/* ===== Share sheet (social sharing) ===== */
body.share-open { overflow: hidden; }
.share-sheet { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-sheet[hidden] { display: none; }
.share-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 12, .78); backdrop-filter: blur(4px); }
.share-panel {
  position: relative; width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--panel, #150A2E); color: var(--paper, #F3F1EC);
  border: 2px solid var(--violet-2, #5B3FD0); border-radius: 20px; padding: 20px 20px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.share-title { margin: 0; font-size: 20px; }
.share-close { background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.share-preview { text-align: center; margin: 0 0 12px; }
.share-preview img { width: min(240px, 60%); height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); }
.share-text { margin: 0 0 16px; padding: 12px 14px; background: rgba(255,255,255,.06); border-radius: 12px; font-size: 14px; line-height: 1.55; color: rgba(243,241,236,.9); text-align: left; white-space: pre-line; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
.share-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; transition: transform .15s ease; }
.share-tile:hover .share-ic, .share-tile:focus-visible .share-ic { transform: translateY(-2px) scale(1.05); }
.share-lbl { font-size: 12px; text-align: center; color: rgba(243,241,236,.85); }
.share-status { margin: 14px 0 0; font-size: 13px; color: var(--green, #3FE07A); text-align: center; line-height: 1.5; }
@media (max-width: 420px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }

/* Share-my-progress section on the participant dashboard */
.share-sum { margin: 12px 0 14px; font-size: 15px; color: rgba(243,241,236,.85); text-align: center; }
.share-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; text-align: left; }
.share-row-main { min-width: 0; }
.share-row-main b { display: block; font-size: 14px; }
.share-row-main span { display: block; font-size: 12px; color: rgba(243,241,236,.6); margin-top: 2px; }
.share-row .btn { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; }
.share-empty { text-align: center; color: rgba(243,241,236,.6); font-size: 14px; margin: 16px 0 0; }
.share-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }


/* ---------- Capstone project card ---------- */
.cap-steps{margin:0 0 16px;padding-left:20px;text-align:left;display:flex;flex-direction:column;gap:14px;font-size:14px;line-height:1.5;color:var(--text-dim,#cfc8e0);}
.cap-steps strong{color:#fff;}
.cap-open{display:inline-flex;margin-top:8px;text-decoration:none;}
.cap-name{display:block;margin-top:6px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);word-break:break-all;}
.cap-name code{font-size:13px;color:#fff;}
.cap-saved{text-align:left;padding:14px;border-radius:14px;background:rgba(63,224,122,.08);border:1px solid rgba(63,224,122,.28);margin-bottom:14px;}
.cap-file{margin:8px 0 0;font-weight:600;word-break:break-word;}
.cap-saved a,.cap-link{color:#17BEF2;}
.cap-tick{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:rgba(63,224,122,.18);color:#3FE07A;font-weight:700;}
.cap-cross{color:#8f86a8;}
.cap-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-bottom:14px;}

/* ---------- Certification requirements checklist ---------- */
.req-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;text-align:left;}
.req-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);}
.req-item--ok{background:rgba(63,224,122,.08);border-color:rgba(63,224,122,.3);}
.req-mark{flex:none;width:26px;height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.25);display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:#0B0417;}
.req-item--ok .req-mark{background:#3FE07A;border-color:#3FE07A;}
.req-text{display:flex;flex-direction:column;gap:2px;}
.req-text small{color:#a9a1c0;font-size:12.5px;}
.req-link{background:none;border:0;padding:0;color:#17BEF2;cursor:pointer;font:inherit;text-decoration:underline;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

.cap-progress{height:10px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:14px;}
.cap-progress-bar{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#17BEF2,#3FE07A);transition:width .2s ease;}

/* Legal pages (Privacy Policy, Terms of Service) and the participant footer links */
.legal-doc .legal-h{margin:22px 0 6px;font-size:1.05rem;}
.legal-doc .legal-h:first-child{margin-top:0;}
.legal-doc .page-sub{margin:0 0 12px;line-height:1.7;}
.legal-doc ul{margin:0 0 14px 20px;padding:0;}
.legal-doc li{margin:0 0 6px;line-height:1.7;opacity:.9;}
.legal-doc a,.footer-legal a{color:var(--cyan,#17BEF2);}
.footer-legal{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;font-size:.82rem;opacity:.85;margin-top:10px;}
.footer-legal span{opacity:.5;}

/* ---------- Capstone banner (top of My Dashboard) ---------- */
.cap-banner{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 20px;padding:18px 20px;border-radius:18px;text-align:left;
  background:linear-gradient(135deg,rgba(236,24,118,.22),rgba(23,190,242,.16));border:1px solid rgba(236,24,118,.55);box-shadow:0 0 28px rgba(236,24,118,.22);}
.cap-banner[hidden]{display:none;}
.cap-banner--done{background:rgba(63,224,122,.08);border-color:rgba(63,224,122,.35);box-shadow:none;padding:12px 16px;}
.cap-banner-text{flex:1 1 220px;display:flex;flex-direction:column;gap:3px;min-width:0;}
.cap-banner-text strong{font-size:18px;color:#fff;}
.cap-banner-text span{font-size:13.5px;color:#cfc8e0;line-height:1.45;}
.cap-banner-text .cap-banner-eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#17BEF2;}
.cap-banner-mark{flex:none;width:30px;height:30px;border-radius:50%;background:#3FE07A;color:#0B0417;font-weight:700;display:inline-flex;align-items:center;justify-content:center;}
.cap-banner-btn{flex:none;}
@media (max-width:520px){.cap-banner-btn{width:100%;}}

/* ---------- Demo access (admin) ---------- */
.btn-inline {
  font-family: var(--font);
  font-size: 12px;
  font-weight: var(--w-semibold);
  color: #17BEF2;
  background: rgba(23,190,242,0.08);
  border: 1px solid rgba(23,190,242,0.3);
  border-radius: 8px;
  padding: 5px 12px;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-inline:hover { background: rgba(23,190,242,0.18); }

/* ---------- Profile photo: always open at the top of My Dashboard ---------- */
.photo-card.photo-top { display: flex; align-items: center; gap: 18px; text-align: left; padding: 16px 18px; margin-bottom: 16px; }
.photo-card.photo-top .photo-av { flex: none; margin: 0; width: 104px; height: 104px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.photo-card.photo-top .photo-av .lb-av { width: 104px; height: 104px; font-size: 36px; }
.photo-card.photo-top .photo-av:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.photo-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-name { margin: 0; font-size: 19px; font-weight: var(--w-bold); color: #fff; overflow-wrap: anywhere; }
.photo-card.photo-top .photo-actions { justify-content: flex-start; }
.photo-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.photo-card.photo-top .field-error, .photo-card.photo-top .field-success { margin: 0; }
@media (max-width: 460px) {
  .photo-card.photo-top { gap: 14px; padding: 14px; }
  .photo-card.photo-top .photo-av, .photo-card.photo-top .photo-av .lb-av { width: 84px; height: 84px; font-size: 30px; }
  .photo-name { font-size: 17px; }
}

/* Certification Deployment table: on desktop and wider tablets everything fits inside the frame
   (cells wrap and shrink instead of forcing a sideways scroll). Phones keep the scrolling table. */
@media (min-width: 861px) {
  .table-wrap.fit-desktop #certifyTable { table-layout: auto; width: 100%; font-size: 12.5px; }
  .table-wrap.fit-desktop #certifyTable th,
  .table-wrap.fit-desktop #certifyTable td { white-space: normal; padding: 10px 7px; vertical-align: middle; overflow-wrap: anywhere; }
  .table-wrap.fit-desktop #certifyTable th { font-size: 10.5px; letter-spacing: 0.02em; overflow-wrap: normal; }
  .table-wrap.fit-desktop #certifyTable .code-chip { white-space: nowrap; font-size: 11.5px; padding: 3px 8px; }
  .table-wrap.fit-desktop #certifyTable .type-chip { white-space: normal; display: inline-block; }
  .table-wrap.fit-desktop #certifyTable .btn-inline,
  .table-wrap.fit-desktop #certifyTable .btn-inline-danger,
  .table-wrap.fit-desktop #certifyTable .type-chip { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .table-wrap.fit-desktop #certifyTable .btn-inline,
  .table-wrap.fit-desktop #certifyTable .btn-inline-danger { white-space: normal; margin-right: 0; line-height: 1.25; padding: 5px 9px; }
}


/* ============================================================
   Sign in page: hamburger menu + forgot credentials dropdown
   ============================================================ */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #F3F1EC; transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topbar { flex-wrap: wrap; }
.menu-panel {
  position: absolute; z-index: 50; right: clamp(20px, 5vw, 56px); top: 82px;
  width: min(320px, calc(100vw - 40px)); padding: 8px;
  background: #1E0B52; border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 10px;
  color: #F3F1EC; font-weight: 600; font-size: 15px; text-decoration: none;
}
.menu-panel a:hover, .menu-panel a:focus-visible { background: rgba(255,255,255,0.08); }
.menu-panel a svg { color: #17BEF2; flex: 0 0 auto; }

.show-pw { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: -2px 0 6px; color: rgba(243,241,236,0.8); cursor: pointer; }
.show-pw input { width: auto; height: auto; }

.forgot-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; margin: 10px 0 14px; padding: 0 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid rgba(23,190,242,0.55); background: rgba(23,190,242,0.08);
  color: #17BEF2; font-weight: 700; font-size: 16px; font-family: inherit;
}
.forgot-btn:hover { background: rgba(23,190,242,0.16); }
.forgot-chevron { transition: transform .25s ease; }
.forgot-btn[aria-expanded="true"] .forgot-chevron { transform: rotate(180deg); }
.forgot-panel { margin-bottom: 14px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.02); }
.forgot-panel[hidden], #passwordBlock[hidden], #recoverCodeForm[hidden], #recoverPwForm[hidden] { display: none; }
.forgot-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.forgot-tab {
  flex: 1; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-family: inherit;
  border: 1px solid rgba(255,255,255,0.18); background: transparent; color: rgba(243,241,236,0.75); font-weight: 600; font-size: 13px;
}
.forgot-tab.is-active { background: #EC1876; border-color: #EC1876; color: #fff; }
