/* Levio styling — extends Tailwind theme. Roboto + teal/green palette match the master template. */

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', system-ui, sans-serif; }

/* ----- Markdown prose styles (Levio look) ----- */
.prose-levio { color: #0E0E1A; line-height: 1.65; }
.prose-levio h1, .prose-levio h2, .prose-levio h3, .prose-levio h4 {
  font-weight: 300; color: #0E4D5E; margin-top: 1.5em; margin-bottom: 0.5em;
}
.prose-levio h1 { font-size: 2rem; }
.prose-levio h2 { font-size: 1.5rem; }
.prose-levio h3 { font-size: 1.25rem; font-weight: 500; }
.prose-levio h4 { font-size: 1.05rem; font-weight: 500; color: #5CC540; }
.prose-levio p { margin: 0.8em 0; }
.prose-levio a { color: #0E4D5E; text-decoration: underline; text-decoration-color: #5CC540; text-underline-offset: 3px; }
.prose-levio a:hover { color: #5CC540; }
.prose-levio strong { color: #0E4D5E; font-weight: 600; }
.prose-levio em { font-style: italic; }
.prose-levio ul, .prose-levio ol { margin: 0.8em 0; padding-left: 1.5em; }
.prose-levio ul { list-style: none; }
.prose-levio ul > li { position: relative; padding-left: 1.2em; margin: 0.4em 0; }
.prose-levio ul > li::before { content: '▶'; position: absolute; left: 0; color: #5CC540; font-size: 0.7em; top: 0.4em; }
.prose-levio ol > li { margin: 0.4em 0; }
.prose-levio code:not(pre code) {
  background: #E6EEEF; color: #0A3A47; padding: 0.1em 0.35em;
  border-radius: 3px; font-size: 0.9em; font-family: 'Roboto Mono', ui-monospace, monospace;
}
.prose-levio pre {
  background: #f7f9fa; border: 1px solid #E6EEEF; border-left: 3px solid #5CC540;
  padding: 1em 1.2em; border-radius: 6px; overflow-x: auto;
  font-size: 0.9em; margin: 1.2em 0;
}
.prose-levio pre code { font-family: 'Roboto Mono', ui-monospace, monospace; }
.prose-levio blockquote {
  border-left: 3px solid #0E4D5E; padding: 0.4em 1em;
  margin: 1em 0; background: #E6EEEF; color: #0E4D5E; font-style: italic;
}
.prose-levio table {
  width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95em;
}
.prose-levio th { background: #0E4D5E; color: white; padding: 0.6em 0.8em; text-align: left; font-weight: 500; }
.prose-levio td { border-top: 1px solid #E6EEEF; padding: 0.6em 0.8em; vertical-align: top; }
.prose-levio tr:nth-child(even) td { background: #f7f9fa; }
.prose-levio hr { border: none; border-top: 1px solid #E6EEEF; margin: 2em 0; }

/* ----- Day-card hover ----- */
.day-card:hover { transform: translateY(-2px); }

/* ----- Chatbot message bubbles ----- */
.cb-msg-user {
  background: #0E4D5E; color: white; align-self: flex-end; padding: 0.5em 0.8em;
  border-radius: 12px 12px 0 12px; max-width: 90%;
}
.cb-msg-model {
  background: #E6EEEF; color: #0E0E1A; align-self: flex-start; padding: 0.5em 0.8em;
  border-radius: 12px 12px 12px 0; max-width: 90%;
}
.cb-msg-model code { background: white; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em; }
.cb-msg-model pre { background: white; padding: 0.5em 0.8em; border-radius: 4px; margin: 0.4em 0; overflow-x: auto; font-size: 0.8em; }

#chatbot-messages { display: flex; flex-direction: column; }

/* ----- Modal show state ----- */
#api-key-modal.show { display: flex; }

/* ===== Phase 1 — guided-session delivery ===== */

[x-cloak] { display: none !important; }

/* ----- Meta chips (day header: time · pillar · objectives) ----- */
.meta-chip {
  display: inline-flex; align-items: center; gap: 0.35em;
  background: #E6EEEF; color: #0E4D5E; font-size: 0.72rem; font-weight: 500;
  padding: 0.28em 0.7em; border-radius: 999px; line-height: 1.2;
}
.meta-chip-accent { background: #0E4D5E; color: #fff; }

/* ----- In-page navigation rail ----- */
.day-toc { gap: 0.75rem; font-size: 0.8rem; }
.toc-head {
  color: #0E4D5E; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.7;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.toc-link {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem;
  color: #52555C; text-decoration: none; border-radius: 6px; border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.toc-link:hover { background: #E6EEEF; color: #0E4D5E; }
.toc-dot {
  width: 7px; height: 7px; border-radius: 999px; background: #CBD5D8; flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s;
}
.toc-link.toc-seen .toc-dot { background: #5CC540; }
.toc-link.toc-active {
  color: #0E4D5E; font-weight: 600; background: #E6EEEF; border-left-color: #5CC540;
}
.toc-link.toc-active .toc-dot { background: #0E4D5E; box-shadow: 0 0 0 3px rgba(92,197,64,0.25); }

.toc-dod {
  display: block; margin-top: 0.5rem; padding: 0.7rem 0.75rem;
  background: #fff; border: 1px solid #E6EEEF; border-radius: 8px; text-decoration: none;
}
.toc-dod:hover { border-color: #5CC540; }
.toc-dod-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #0E4D5E; font-weight: 600;
}
.toc-dod-count { font-size: 0.85rem; letter-spacing: 0; }
.toc-dod-bar { height: 5px; background: #E6EEEF; border-radius: 999px; overflow: hidden; margin: 0.45rem 0 0.35rem; }
.toc-dod-bar > div { height: 100%; transition: width 0.4s; }
.toc-dod-msg { font-size: 0.66rem; color: #52555C; }
.toc-reading {
  display: flex; justify-content: space-between; font-size: 0.66rem; color: #52555C;
  border-top: 1px solid #E6EEEF; padding-top: 0.5rem; margin-top: 0.25rem;
}

/* ----- Collapsible section headers ----- */
.section-head {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  background: none; border: none; cursor: pointer; padding: 0 0 0.75rem; margin-bottom: 0.75rem;
  border-bottom: 1px solid #E6EEEF; text-align: left;
}
.section-eyebrow {
  color: #0E4D5E; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.section-chevron { width: 16px; height: 16px; color: #5CC540; margin-left: auto; transition: transform 0.2s; }

/* ----- Activity cards (Frame · Demo · Lab · Reflect) ----- */
.activity-card {
  border: 1px solid #E6EEEF; border-left: 4px solid #0E4D5E; border-radius: 8px;
  margin: 1.4em 0; overflow: hidden; background: #fff;
}
.activity-head {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem;
  background: #f3f7f8; border-bottom: 1px solid #E6EEEF;
}
.activity-name {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0E4D5E;
}
.timebox {
  margin-left: auto; font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 0.72rem;
  background: #0E4D5E; color: #fff; padding: 0.15em 0.6em; border-radius: 999px;
}
.activity-body { padding: 0.4em 1rem 0.8em; }
.activity-body > :first-child { margin-top: 0.4em; }
.activity-body > :last-child { margin-bottom: 0.2em; }
/* Per-type accents */
.activity-frame   { border-left-color: #0E4D5E; }
.activity-demo    { border-left-color: #0078D4; }
.activity-demo  .timebox { background: #0078D4; }
.activity-demo  .activity-name { color: #0078D4; }
.activity-lab     { border-left-color: #5CC540; }
.activity-lab   .timebox { background: #3FA42C; }
.activity-lab   .activity-head { background: #f1faef; }
.activity-reflect { border-left-color: #0A3A47; }
.activity-reflect .activity-head { background: #eef3f4; }

/* ----- Lab-step tables ----- */
table.lab-steps td:first-child {
  font-family: 'Roboto Mono', ui-monospace, monospace; font-weight: 700; color: #0E4D5E;
  text-align: center; width: 2.5em; background: #f1faef;
}
table.lab-steps th:first-child { text-align: center; width: 2.5em; }

/* ----- Reveal-to-answer knowledge-check cards ----- */
.qa-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #E6EEEF; color: #0E4D5E; border-radius: 8px; padding: 0.6em 0.9em;
  font-size: 0.85rem; margin: 0.8em 0 1em;
}
.qa-revealall {
  background: none; border: 1px solid #0E4D5E; color: #0E4D5E; border-radius: 6px;
  padding: 0.25em 0.7em; font-size: 0.78rem; cursor: pointer; white-space: nowrap;
}
.qa-revealall:hover { background: #0E4D5E; color: #fff; }
.prose-levio li.qa-item { margin: 0.7em 0 1em; }
.qa-q { color: #0E0E1A; }
.qa-reveal {
  margin-top: 0.5em; background: #fff; border: 1px solid #5CC540; color: #0E4D5E;
  border-radius: 6px; padding: 0.3em 0.85em; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qa-reveal:hover { background: #5CC540; color: #0E4D5E; }
.qa-answer {
  margin-top: 0.6em; background: #f7f9fa; border: 1px solid #E6EEEF; border-left: 3px solid #5CC540;
  border-radius: 6px; padding: 0.7em 0.9em;
}
.qa-a-label {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5CC540; margin-bottom: 0.3em;
}
.qa-a-body > :first-child { margin-top: 0; }
.qa-rate {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.7em; padding-top: 0.6em; border-top: 1px dashed #E6EEEF;
}
.qa-rate-label { font-size: 0.72rem; color: #52555C; margin-right: 0.2rem; }
.qa-rate-btn {
  background: #fff; border: 1px solid #CBD5D8; color: #52555C; border-radius: 999px;
  padding: 0.2em 0.7em; font-size: 0.75rem; cursor: pointer; transition: all 0.15s;
}
.qa-rate-btn:hover { border-color: #0E4D5E; color: #0E4D5E; }
.qa-rate-btn.active[data-r="got"] { background: #5CC540; border-color: #5CC540; color: #0E4D5E; font-weight: 600; }
.qa-rate-btn.active[data-r="unsure"] { background: #0E4D5E; border-color: #0E4D5E; color: #fff; font-weight: 600; }
.qa-item.qa-rated-unsure { border-left: 2px solid #0E4D5E; padding-left: 0.6em; }

/* ----- Accessibility: larger task checkboxes ----- */
#tasks input[type="checkbox"] { width: 1.4rem; height: 1.4rem; }

/* ===== Phase 2 — structured retrieval practice + capstone trail ===== */

/* Spaced-repetition warm-up */
.warmup {
  background: #f1faef; border: 1px solid #cdebc4; border-left: 4px solid #5CC540;
  border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.5rem;
}
.warmup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.warmup-eyebrow { color: #3FA42C; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.warmup-sub { color: #52555C; font-size: 0.82rem; margin-top: 0.2rem; }
.warmup-dismiss { background: none; border: none; color: #52555C; font-size: 0.75rem; cursor: pointer; white-space: nowrap; }
.warmup-dismiss:hover { color: #0E4D5E; }
.warmup-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.7rem; }

/* Test-yourself block */
.testyourself { margin-top: 1.4em; border-top: 1px dashed #cbd5d8; padding-top: 1.2em; }
.ty-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.ty-eyebrow { color: #0E4D5E; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ty-sub { color: #52555C; font-size: 0.82rem; margin-top: 0.2rem; }
.ty-revealall { background: none; border: 1px solid #0E4D5E; color: #0E4D5E; border-radius: 6px; padding: 0.25em 0.7em; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.ty-revealall:hover { background: #0E4D5E; color: #fff; }
.ty-cards { display: grid; gap: 0.7rem; }

/* Shared question card (used by warm-up + test-yourself) */
.qcard { background: #fff; border: 1px solid #E6EEEF; border-radius: 8px; padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.qcard-from { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #3FA42C; }
.qcard-q { color: #0E0E1A; font-weight: 500; font-size: 0.92rem; line-height: 1.5; }
.qcard-q > :first-child, .qcard-a > :first-child { margin-top: 0; }
.qcard-q > :last-child, .qcard-a > :last-child { margin-bottom: 0; }
.qcard-reveal { align-self: flex-start; background: #fff; border: 1px solid #5CC540; color: #0E4D5E; border-radius: 6px; padding: 0.28em 0.8em; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s; }
.qcard-reveal:hover { background: #5CC540; color: #0E4D5E; }
.qcard-a { background: #f7f9fa; border-left: 3px solid #5CC540; border-radius: 0 6px 6px 0; padding: 0.55em 0.8em; font-size: 0.88rem; }
.qcard-rate { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.qcard-rate-label { font-size: 0.7rem; color: #52555C; }
.qcard-rate-btn { background: #fff; border: 1px solid #CBD5D8; color: #52555C; border-radius: 999px; padding: 0.18em 0.65em; font-size: 0.74rem; cursor: pointer; transition: all 0.15s; }
.qcard-rate-btn:hover { border-color: #0E4D5E; color: #0E4D5E; }
.qcard-rate-btn.active[data-r="got"] { background: #5CC540; border-color: #5CC540; color: #0E4D5E; font-weight: 600; }
.qcard-rate-btn.active[data-r="unsure"] { background: #0E4D5E; border-color: #0E4D5E; color: #fff; font-weight: 600; }
.qcard.qcard-unsure { border-left: 3px solid #0E4D5E; }
.qcard.qcard-got { border-left: 3px solid #5CC540; }

/* Capstone artifact trail */
.trail { border: 1px solid #E6EEEF; border-radius: 10px; padding: 1rem 1.1rem; }
.trail-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.trail-eyebrow { color: #0E4D5E; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.trail-note { color: #52555C; font-size: 0.78rem; }
.trail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.trail-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0.5rem; border-radius: 6px; border-left: 3px solid transparent; font-size: 0.85rem; }
.trail-day { font-family: 'Roboto Mono', ui-monospace, monospace; font-weight: 700; color: #9aa6a9; width: 1.8em; flex-shrink: 0; text-align: center; }
.trail-artifact { color: #52555C; flex: 1; }
.trail-milestone { font-size: 0.66rem; font-weight: 700; color: #3FA42C; white-space: nowrap; }
.trail-item.trail-done { border-left-color: #5CC540; }
.trail-item.trail-done .trail-day { color: #5CC540; }
.trail-item.trail-done .trail-artifact { color: #0E4D5E; }
.trail-item.trail-current { background: #E6EEEF; border-left-color: #0E4D5E; }
.trail-item.trail-current .trail-day, .trail-item.trail-current .trail-artifact { color: #0E4D5E; font-weight: 600; }
.trail-item.trail-future { opacity: 0.6; }
.trail-youarehere { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #0E4D5E; padding: 0.12em 0.55em; border-radius: 999px; white-space: nowrap; }

/* ===== Phase 3 — mastery badges · cohort pace · completion moment ===== */

/* Mastery badges (dashboard) */
.mastery-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  border: 1px solid #cbd5d8; color: #52555C; background: #fff;
  font-size: 0.72rem; font-weight: 500; padding: 0.3em 0.7em; border-radius: 999px;
}
.mastery-badge .mastery-num { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 0.66rem; color: #9aa6a9; }
.mastery-badge.mastery-earned { background: #5CC540; border-color: #5CC540; color: #0E4D5E; font-weight: 600; }
.mastery-badge.mastery-earned .mastery-check { font-weight: 700; }

/* Day-completion moment */
.completion-card {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #0E4D5E, #0A3A47); color: #fff;
  border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: 0 8px 24px rgba(14, 77, 94, 0.25);
}
.completion-check {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 999px; background: #5CC540; color: #0E4D5E;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700;
  animation: completion-pop 0.45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes completion-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.completion-body { flex: 1; min-width: 180px; }
.completion-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #BCF9FC; }
.completion-title { font-weight: 300; font-size: 1.35rem; line-height: 1.2; margin: 0.15em 0; color: #fff; }
.completion-mastered { font-size: 0.82rem; color: #CBFFCB; margin: 0; }
.completion-cta {
  background: #5CC540; color: #0E4D5E; font-weight: 600; font-size: 0.9rem;
  padding: 0.6em 1.1em; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background 0.15s;
}
.completion-cta:hover { background: #CBFFCB; }
.completion-cta-grad { background: #BCF9FC; cursor: default; }
@media (prefers-reduced-motion: reduce) { .completion-check { animation: none; } }

/* ===== Embedded educational animations (anims.js) ===== */
.cursus-anim { margin: 1.4em 0; }
.anim-figure {
  margin: 0; border: 1px solid #E6EEEF; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(14, 77, 94, 0.06);
}
.anim-host { line-height: 0; display: flex; justify-content: center; background: #fff; }
.anim-host canvas { display: block; max-width: 100%; height: auto; }
.anim-caption {
  font-size: 0.76rem; color: #52555C; line-height: 1.4; padding: 0.55em 0.9em;
  border-top: 1px solid #E6EEEF; background: #f7f9fa;
}
.anim-caption::before { content: '▶ '; color: #5CC540; font-size: 0.8em; }
.anim-missing {
  font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 0.78rem; color: #9aa6a9;
  padding: 1.2em; text-align: center; line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .anim-caption::before { content: '▣ '; }
}

/* ===== Foundations / "Core Concepts" module ===== */
/* Intro band above the 10-day grid on the dashboard */
.fnd-band {
  background: linear-gradient(135deg, #0E4D5E, #0A3A47); color: #fff;
  border-radius: 12px; padding: 1.3rem 1.4rem; margin-bottom: 1.1rem;
}
.fnd-band-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #BCF9FC; }
.fnd-band h2 { font-weight: 300; font-size: 1.7rem; line-height: 1.2; margin: 0.2em 0 0.3em; color: #fff; }
.fnd-band p { color: #CBE9ED; font-size: 0.92rem; max-width: 52rem; margin: 0; }

/* Foundation chapter cards */
.fnd-card {
  display: flex; flex-direction: column; gap: 0.55rem; height: 100%;
  border: 1px solid #cdebc4; border-left: 4px solid #5CC540; border-radius: 10px;
  background: #fff; padding: 1rem 1.1rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.fnd-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14, 77, 94, 0.12); border-left-color: #0E4D5E; }
.fnd-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.fnd-card-num { font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 0.7rem; font-weight: 700; color: #3FA42C; letter-spacing: 0.08em; }
.fnd-card-topics { font-size: 0.66rem; color: #9aa6a9; }
.fnd-card h3 { color: #0E4D5E; font-weight: 500; font-size: 1.02rem; line-height: 1.25; margin: 0; }
.fnd-card p { color: #52555C; font-size: 0.82rem; line-height: 1.45; margin: 0; }
.fnd-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; padding-top: 0.4rem; }
.fnd-tag { font-size: 0.66rem; color: #0E4D5E; background: #f1faef; border: 1px solid #cdebc4; border-radius: 999px; padding: 0.12em 0.55em; }

/* Foundation page header band */
.fnd-hero-eyebrow { color: #3FA42C; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* ===== Trainings hub — path cards ===== */
.path-card {
  display: flex; flex-direction: column; gap: 0.7rem; min-height: 16rem;
  border: 1px solid #E6EEEF; border-left: 5px solid #0E4D5E; border-radius: 12px;
  background: #fff; padding: 1.5rem 1.6rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.path-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(14, 77, 94, 0.13); }
.path-card-green { border-left-color: #5CC540; }
.path-card-teal { border-left-color: #0E4D5E; }
.path-card-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #3FA42C; }
.path-card-teal .path-card-eyebrow { color: #0E4D5E; }
.path-card-title { font-weight: 300; font-size: 1.7rem; line-height: 1.2; color: #0E4D5E; margin: 0.1em 0; }
.path-card-desc { color: #52555C; font-size: 0.92rem; line-height: 1.55; flex: 1; }
.path-card-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.path-chip { font-size: 0.7rem; color: #0E4D5E; background: #E6EEEF; border-radius: 999px; padding: 0.2em 0.7em; }
.path-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid #E6EEEF; flex-wrap: wrap; }
.path-progress { flex: 1; min-width: 150px; }
.path-progress-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.72rem; color: #52555C; margin-bottom: 0.3rem; }
.path-progress-pct { color: #0E4D5E; font-weight: 600; }
.path-progress-bar { height: 6px; background: #E6EEEF; border-radius: 999px; overflow: hidden; }
.path-progress-bar > div { height: 100%; background: #5CC540; border-radius: 999px; transition: width 0.5s; }
.path-selfpaced { font-size: 0.74rem; color: #52555C; font-style: italic; }
.path-cta { font-size: 0.9rem; font-weight: 600; color: #0E4D5E; background: #CBFFCB; padding: 0.5em 1em; border-radius: 8px; white-space: nowrap; transition: background 0.15s; }
.path-card:hover .path-cta { background: #5CC540; }

/* ===== Admin console ===== */
.admin-error { background: #fdecea; border: 1px solid #f5c6c2; color: #9a2820; border-radius: 8px; padding: 0.7em 0.9em; font-size: 0.88rem; }
.admin-stats { display: flex; gap: 0.6rem; }
.admin-stat { text-align: center; background: #E6EEEF; border-radius: 10px; padding: 0.7rem 1.2rem; min-width: 92px; }
.admin-stat-num { display: block; font-size: 1.7rem; font-weight: 300; color: #0E4D5E; line-height: 1.1; }
.admin-stat-label { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #52555C; }

.admin-table-wrap { overflow-x: auto; border: 1px solid #E6EEEF; border-radius: 12px; box-shadow: 0 2px 12px rgba(14, 77, 94, 0.05); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 760px; }
.admin-table th { background: #0E4D5E; color: #fff; text-align: left; padding: 0.85em 1.1em; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.04em; white-space: nowrap; vertical-align: bottom; }
.admin-table th.admin-col-access { text-align: center; }
.admin-th-sub { font-size: 0.58rem; font-weight: 400; color: #BCF9FC; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-table td { border-top: 1px solid #E6EEEF; padding: 0.95em 1.1em; vertical-align: middle; }
.admin-table tbody tr:hover td { background: #f1faef; }
.admin-user-email { color: #0E4D5E; font-weight: 600; }
.admin-user-name { font-size: 0.78rem; color: #52555C; margin-top: 0.1em; }

.admin-badge { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25em 0.65em; border-radius: 999px; }
.admin-badge-approved { background: #5CC540; color: #0E4D5E; }
.admin-badge-pending { background: #fff4d6; color: #8a6d1b; border: 1px solid #f0dca0; }
.admin-badge-denied { background: #fdecea; color: #9a2820; border: 1px solid #f5c6c2; }

.admin-prog { display: flex; align-items: center; gap: 0.6rem; min-width: 160px; }
.admin-prog-bar { flex: 1; height: 7px; background: #E6EEEF; border-radius: 999px; overflow: hidden; min-width: 80px; }
.admin-prog-bar > div { height: 100%; border-radius: 999px; }
.admin-prog-label { font-size: 0.72rem; color: #52555C; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* per-path access toggle */
.admin-switch { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; }
.admin-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.admin-slider { position: absolute; inset: 0; background: #cbd5d8; border-radius: 999px; transition: background 0.15s, box-shadow 0.15s; }
.admin-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.admin-switch input:checked + .admin-slider { background: #5CC540; }
.admin-switch input:checked + .admin-slider::before { transform: translateX(22px); }
.admin-switch input:focus-visible + .admin-slider { box-shadow: 0 0 0 3px rgba(14,77,94,0.3); }
.admin-switch input:disabled + .admin-slider { opacity: 0.6; cursor: default; }
.admin-switch.saved .admin-slider { box-shadow: 0 0 0 3px rgba(92,197,64,0.45); }

.admin-actions { display: flex; gap: 0.5rem; }
.admin-btn-approve, .admin-btn-deny { font-size: 0.78rem; font-weight: 600; border-radius: 7px; padding: 0.42em 0.95em; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: all 0.15s; }
.admin-btn-approve { background: #5CC540; color: #0E4D5E; box-shadow: 0 1px 2px rgba(14,77,94,0.12); }
.admin-btn-approve:hover:not(:disabled) { background: #3FA42C; color: #fff; }
.admin-btn-deny { background: #fff; border-color: #cbd5d8; color: #52555C; }
.admin-btn-deny:hover:not(:disabled) { border-color: #9a2820; color: #9a2820; background: #fdecea; }
.admin-btn-approve:disabled, .admin-btn-deny:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

/* ----- Print-friendly content sections ----- */
@media print {
  #chatbot, header, footer, #bg-art, .day-toc, .qa-reveal, .qa-revealall,
  .warmup-dismiss, .ty-revealall, .qcard-reveal, .qcard-rate { display: none; }
  .qa-answer, .qcard-a { display: block !important; }
}
