:root {
  --primary: var(--blue);
  --card: var(--panel);
  --theme-learning-image: none;
  --theme-learning-image-alt: none;
  --theme-learning-image-third: none;
  --theme-sidebar-start: #0f172a;
  --theme-sidebar-end: #14203b;
  --theme-sidebar-active: rgba(45, 127, 249, 0.22);
  --theme-sidebar-line: #60a5fa;
  --theme-focus: #2d7ff9;
  --theme-card-tint: #f8fbff;
  --theme-weight-bg: #eef5ff;
  --theme-hover-soft: #f1f6ff;
  --theme-progress-track: color-mix(in srgb, var(--blue, #1f4f9f) 12%, #f0f4fa);
  --theme-progress-fill: linear-gradient(90deg, var(--blue, #1f4f9f), var(--blue-2, #2d7ff9));
  --vulpus-learning-card-gap: 12px;
  --vulpus-learning-card-action-gap: 8px;
  --vulpus-learning-card-counter-min-height: 64px;
  --vulpus-learning-card-action-min-height: 42px;
  --vulpus-learning-card-max-blank-before-lower: 96px;
  --vulpus-learning-card-radius: 18px;
  --vulpus-learning-card-padding: 20px;
}

.vulpus-progress { width: 100%; min-width: 0; margin-top: 12px; }
.vulpus-progress-label { text-align: right; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.vulpus-progress-track { display: block; width: 100%; height: 8px; overflow: hidden; border-radius: 4px; background: var(--theme-progress-track); }
.vulpus-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--theme-progress-fill); }
.osce-progress-summary { grid-column: 1 / -1; }

@media (min-width: 861px) and (max-width: 1180px) {
  :root {
    --vulpus-learning-card-counter-min-height: 140px;
  }
}

html[data-vulpus-theme="bleu-ardoise"] {
  --bg: #f4f7fb;
  --muted: #52637a;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --border: #dbe5f0;
  --blue: #1f4f9f;
  --blue-2: #2d7ff9;
  --blue-soft: #eaf2ff;
  --purple: #6d28d9;
  --purple-soft: #f0e9ff;
  --orange: #ff6a00;
  --orange-soft: #fff1e6;
  --theme-sidebar-start: #0f172a;
  --theme-sidebar-end: #14203b;
  --theme-sidebar-active: rgba(45, 127, 249, 0.22);
  --theme-sidebar-line: #60a5fa;
  --theme-focus: #2d7ff9;
  --theme-card-tint: #f8fbff;
  --theme-weight-bg: #eef5ff;
  --theme-hover-soft: #f1f6ff;
  --theme-primary-on: #ffffff;
  --theme-primary-shadow: 0 10px 22px rgba(31, 79, 159, 0.18);
}

html[data-vulpus-theme="prune-velours"] {
  --theme-learning-image: var(--plum-course-1-flower-image);
  --theme-learning-image-alt: var(--plum-course-2-sprig-image);
  --theme-learning-image-third: var(--plum-course-3-flower-image);
  --plum-page-bg: #fcf7f9;
  --plum-page-bg-soft: #f8f0f4;
  --plum-surface: #fff9fb;
  --plum-surface-soft: #faf0f5;
  --plum-surface-muted: #f5e7ef;
  --plum-sidebar-top: #854b70;
  --plum-sidebar-middle: #71385f;
  --plum-sidebar-bottom: #542742;
  --plum-primary: #813760;
  --plum-primary-hover: #6e2c52;
  --plum-primary-deep: #59203f;
  --plum-text: #4b243b;
  --plum-text-strong: #3f1e33;
  --plum-text-muted: #796572;
  --plum-text-on-dark: #fff9fc;
  --plum-border: #ebcfda;
  --plum-border-soft: #f0dde5;
  --plum-chip: #f7e9f0;
  --plum-chip-border: #e8cbd8;
  --plum-progress-track: #e9dde4;
  --plum-progress-fill: #c781a1;
  --plum-warm-accent: #b86b1b;
  --plum-warm-soft: #fff6e9;
  --plum-sidebar-top-branch-image: url("../themes/plum-velvet/plum-sidebar-top-branch.webp?v=20260802-plumwebp");
  --plum-sidebar-mid-flower-image: url("../themes/plum-velvet/plum-sidebar-mid-flower.webp?v=20260802-plumwebp");
  --plum-sidebar-bottom-berries-image: url("../themes/plum-velvet/plum-sidebar-bottom-berries.webp?v=20260802-plumwebp");
  --plum-info-sprig-image: url("../themes/plum-velvet/plum-info-sprig.webp?v=20260802-plumwebp");
  --plum-progress-left-flower-image: url("../themes/plum-velvet/plum-progress-left-flower.webp?v=20260802-plumwebp");
  --plum-progress-right-branch-image: url("../themes/plum-velvet/plum-progress-right-branch.webp?v=20260802-plumwebp");
  --plum-course-1-flower-image: url("../themes/plum-velvet/plum-course-1-flower.webp?v=20260802-plumwebp");
  --plum-course-2-sprig-image: url("../themes/plum-velvet/plum-course-2-sprig.webp?v=20260802-plumwebp");
  --plum-course-3-flower-image: url("../themes/plum-velvet/plum-course-3-flower.webp?v=20260802-plumwebp");
  --plum-flower-icon-image: url("../themes/plum-velvet/plum-flower-icon.webp?v=20260802-plumwebp");
  --plum-primary-gradient: linear-gradient(180deg, #8a416b 0%, #743058 100%);
  --plum-primary-gradient-hover: linear-gradient(180deg, #944a74 0%, #79345e 100%);
  --bg: var(--plum-page-bg);
  --panel: var(--plum-surface);
  --panel-soft: var(--plum-surface-soft);
  --border: var(--plum-border);
  --text: var(--plum-text);
  --muted: var(--plum-text-muted);
  --blue: var(--plum-primary);
  --blue-2: var(--plum-primary-hover);
  --blue-soft: var(--plum-chip);
  --purple: var(--plum-primary);
  --purple-soft: var(--plum-surface-soft);
  --orange: var(--plum-warm-accent);
  --orange-soft: var(--plum-warm-soft);
  --theme-sidebar-start: var(--plum-sidebar-top);
  --theme-sidebar-end: var(--plum-sidebar-bottom);
  --theme-sidebar-active: rgba(255, 232, 243, 0.18);
  --theme-sidebar-line: rgba(255, 226, 240, 0.72);
  --theme-focus: var(--plum-primary);
  --theme-card-tint: var(--plum-surface-soft);
  --theme-weight-bg: var(--plum-surface-muted);
  --theme-hover-soft: #faedf3;
  --theme-progress-track: var(--plum-progress-track);
  --theme-progress-fill: linear-gradient(90deg, #b96f94 0%, #cb8ba7 100%);
  --theme-primary-on: var(--plum-text-on-dark);
  --theme-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 15px rgba(86, 35, 65, 0.18);
  --shadow: 0 10px 26px rgba(91, 42, 72, 0.07);
}

html[data-vulpus-theme="vert-sauge"] {
  --theme-learning-image: var(--sage-course1-foliage-image);
  --theme-learning-image-alt: var(--sage-small-sprig-image);
  --theme-learning-image-third: var(--sage-course3-foliage-image);
  --sage-bg: #f8fbf6;
  --sage-bg-soft: #f2f7ef;
  --sage-surface: #fefffc;
  --sage-surface-soft: #f7faf4;
  --sage-surface-2: #eef4e8;
  --sage-border: #d7e4d1;
  --sage-border-soft: #e6efe1;
  --sage-green-100: #dde9d9;
  --sage-green-200: #d4e2ce;
  --sage-green-300: #bfd3b9;
  --sage-green-400: #8fa883;
  --sage-green-500: #77966f;
  --sage-green-600: #5c845e;
  --sage-green-700: #4f7a56;
  --sage-green-800: #3e6647;
  --sage-green-900: #284430;
  --sage-text: #284430;
  --sage-text-soft: #526b57;
  --sage-text-muted: #7c9180;
  --sage-on-dark: #f8faf5;
  --sage-accent-warm: #ede7d7;
  --sage-hero-branch-image: url("../themes/sage/sage-hero-branch.webp?v=20260804-webp-opt");
  --sage-sidebar-pattern-image: url("../themes/sage/sage-sidebar-pattern.webp?v=20260804-webp-opt");
  --sage-weighting-side-image: url("../themes/sage/sage-weighting-side-foliage.webp?v=20260804-webp-opt");
  --sage-progress-medallion-image: url("../themes/sage/sage-progress-medallion.webp?v=20260804-webp-opt");
  --sage-course1-foliage-image: url("../themes/sage/sage-course1-foliage.webp?v=20260804-webp-opt");
  --sage-course3-foliage-image: url("../themes/sage/sage-course3-foliage.webp?v=20260804-webp-opt");
  --sage-small-sprig-image: url("../themes/sage/sage-small-sprig.webp?v=20260804-webp-opt");
  --sage-primary-gradient: linear-gradient(180deg, #4f7652 0%, #446b48 100%);
  --sage-primary-gradient-hover: linear-gradient(180deg, #446b48 0%, #3d6241 100%);
  --sage-shadow: rgba(57, 87, 62, 0.08);
  --bg: #f8fbf6;
  --panel: #fefffc;
  --panel-soft: #f7faf4;
  --border: #d7e4d1;
  --text: #284430;
  --muted: #506854;
  --blue: #3e6647;
  --blue-2: #3e6647;
  --blue-soft: #dde9d9;
  --purple: #3e6647;
  --purple-soft: #eef4e8;
  --orange: #735f31;
  --orange-soft: #fbf7ed;
  --theme-sidebar-start: #6c8a67;
  --theme-sidebar-end: #34543a;
  --theme-sidebar-active: rgba(225, 235, 218, 0.34);
  --theme-sidebar-line: rgba(226, 236, 219, 0.78);
  --theme-focus: #4f7a56;
  --theme-card-tint: #f7faf4;
  --theme-weight-bg: #eef4e8;
  --theme-hover-soft: #eef4e9;
  --theme-progress-track: #dfe9da;
  --theme-progress-fill: linear-gradient(90deg, #4f7a56 0%, #76976f 100%);
  --shadow: 0 12px 30px rgba(57, 87, 62, 0.08);
}

html[data-vulpus-theme="dore"] {
  --bg: #f7f5ef;
  --text: #302b24;
  --muted: #696153;
  --panel: #fffefa;
  --panel-soft: #faf7ef;
  --border: #e4dccb;
  --blue: #795b26;
  --blue-2: #926f32;
  --blue-soft: #f5edda;
  --purple: #795b26;
  --purple-soft: #f5edda;
  --orange: #a86524;
  --orange-soft: #faf0df;
  --theme-sidebar-start: #f5e7c1;
  --theme-sidebar-end: #dfc58b;
  --theme-sidebar-active: #e8cd91;
  --theme-sidebar-line: #b59a62;
  --theme-focus: #795b26;
  --theme-card-tint: #faf7ef;
  --theme-weight-bg: #f5efdf;
  --theme-hover-soft: #f6f0e2;
  --theme-primary-on: #ffffff;
  --theme-primary-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 4px 12px rgba(99,74,31,.14);
  --theme-progress-track: #eae2d2;
  --theme-progress-fill: linear-gradient(105deg, #96743b 0%, #c4a367 32%, #e5d2a0 54%, #bd995a 78%, #97733a 100%);
  --theme-gold-metal: var(--theme-progress-fill);
  --theme-gold-metal-hover: linear-gradient(105deg, #ac8950, #ecdab0 54%, #ba9657);
  --theme-gold-action: linear-gradient(112deg, #d2b16b 0%, #e8cd91 28%, #f5e6bb 48%, #dfbd77 70%, #cba65b 100%);
  --theme-gold-action-hover: linear-gradient(112deg, #ddbf80 0%, #f2dfb3 28%, #fcf0ce 48%, #e8cd91 70%, #d5b372 100%);
  --shadow: 0 8px 24px rgba(53,43,25,.06);
}

html[data-vulpus-theme="terracotta"] {
  --terracotta-page-bg: #fbf6f1;
  --terracotta-page-bg-soft: #f7eee8;
  --terracotta-surface: #fffdfc;
  --terracotta-surface-soft: #fcf5f0;
  --terracotta-surface-muted: #f7e9e0;
  --terracotta-primary: #b85d3d;
  --terracotta-primary-hover: #a64e32;
  --terracotta-primary-dark: #8f402c;
  --terracotta-primary-deep: #733423;
  --terracotta-sidebar-top: #ad5032;
  --terracotta-sidebar-middle: #9c442e;
  --terracotta-sidebar-bottom: #743022;
  --terracotta-text: #3b2923;
  --terracotta-text-strong: #2f211d;
  --terracotta-text-muted: #78655d;
  --terracotta-text-on-dark: #fff9f5;
  --terracotta-border: #e9c7b8;
  --terracotta-border-soft: #f0d9cf;
  --terracotta-chip: #fcede5;
  --terracotta-chip-border: #ebcdbf;
  --terracotta-progress-track: #efe0d9;
  --terracotta-progress-fill: #c96847;
  --terracotta-warm-accent: #c06c33;
  --terracotta-beige: #e9d4c4;
  --terracotta-cream: #fff8f2;
  --terracotta-sidebar-top-branch-image: url("../themes/terracotta/terracotta-sidebar-top-branch.webp?v=20260804-webp-opt");
  --terracotta-sidebar-main-flower-image: url("../themes/terracotta/terracotta-sidebar-main-flower.webp?v=20260804-webp-opt");
  --terracotta-sidebar-bottom-flower-image: url("../themes/terracotta/terracotta-sidebar-bottom-flower.webp?v=20260804-webp-opt");
  --terracotta-hero-pottery-image: url("../themes/terracotta/terracotta-hero-pottery.webp?v=20260804-webp-opt");
  --terracotta-weighting-sprig-image: url("../themes/terracotta/terracotta-weighting-sprig.webp?v=20260804-webp-opt");
  --terracotta-progress-branch-image: url("../themes/terracotta/terracotta-progress-branch.webp?v=20260804-webp-opt");
  --terracotta-course-1-flower-image: url("../themes/terracotta/terracotta-course-1-flower.webp?v=20260804-webp-opt");
  --theme-learning-image: var(--terracotta-course-1-flower-image);
  --theme-learning-image-alt: var(--terracotta-course-2-leaves-image);
  --theme-learning-image-third: var(--terracotta-course-3-vase-image);
  --terracotta-course-2-leaves-image: url("../themes/terracotta/terracotta-course-2-leaves.webp?v=20260804-webp-opt");
  --terracotta-course-3-vase-image: url("../themes/terracotta/terracotta-course-3-vase.webp?v=20260804-webp-opt");
  --terracotta-small-accent-image: url("../themes/terracotta/terracotta-small-accent.webp?v=20260804-webp-opt");
  --terracotta-primary-gradient: linear-gradient(180deg, #b45535 0%, #a94c31 100%);
  --terracotta-primary-gradient-hover: linear-gradient(180deg, #a94c31 0%, #943e29 100%);
  --bg: var(--terracotta-page-bg);
  --panel: var(--terracotta-surface);
  --panel-soft: var(--terracotta-surface-soft);
  --border: var(--terracotta-border);
  --text: var(--terracotta-text);
  --muted: var(--terracotta-text-muted);
  --blue: var(--terracotta-primary-dark);
  --blue-2: var(--terracotta-primary-hover);
  --blue-soft: var(--terracotta-chip);
  --purple: var(--terracotta-primary-dark);
  --purple-soft: var(--terracotta-chip);
  --orange: var(--terracotta-warm-accent);
  --orange-soft: var(--terracotta-cream);
  --theme-sidebar-start: var(--terracotta-sidebar-top);
  --theme-sidebar-end: var(--terracotta-sidebar-bottom);
  --theme-sidebar-active: rgba(255, 226, 208, 0.2);
  --theme-sidebar-line: rgba(255, 225, 207, 0.86);
  --theme-focus: var(--terracotta-primary);
  --theme-card-tint: var(--terracotta-surface-soft);
  --theme-weight-bg: var(--terracotta-surface-muted);
  --theme-hover-soft: #faece5;
  --theme-progress-track: var(--terracotta-progress-track);
  --theme-progress-fill: linear-gradient(90deg, #b94f2f, #d2724e);
  --theme-primary-on: var(--terracotta-text-on-dark);
  --theme-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 15px rgba(120, 53, 31, 0.19);
  --shadow: 0 10px 26px rgba(101, 54, 35, 0.06);
}

.sidebar {
  background: linear-gradient(180deg, var(--theme-sidebar-start), var(--theme-sidebar-end));
}

.nav-btn.active {
  background: var(--theme-sidebar-active);
  box-shadow: inset 3px 0 0 var(--theme-sidebar-line);
}

html[data-vulpus-theme="vert-sauge"] body {
  background:
    radial-gradient(circle at 15% 20%, rgba(195, 214, 192, 0.14), transparent 28%),
    radial-gradient(circle at 90% 70%, rgba(210, 225, 206, 0.14), transparent 26%),
    linear-gradient(135deg, #fafcf8 0%, #f4f8f1 55%, #fbfcfa 100%);
  color: var(--sage-text);
}

html[data-vulpus-theme="vert-sauge"] .main {
  background:
    radial-gradient(circle at 86% 8%, rgba(205, 220, 198, 0.16), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(218, 230, 212, 0.2), transparent 34%);
  isolation: isolate;
  overflow-x: clip;
  position: relative;
}

html[data-vulpus-theme="vert-sauge"] .main::before {
  background: var(--sage-small-sprig-image) right center / contain no-repeat;
  content: "";
  height: min(460px, 48vh);
  opacity: 0.11;
  pointer-events: none;
  position: fixed;
  right: -72px;
  top: 42vh;
  transform: rotate(5deg);
  user-select: none;
  width: clamp(170px, 15vw, 250px);
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .content,
html[data-vulpus-theme="vert-sauge"] body:not(.vulpus-mcq-reader) .topbar {
  position: relative;
  z-index: 1;
}

html[data-vulpus-theme="vert-sauge"] .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #6c8a67 0%, #557753 42%, #416343 76%, #34543a 100%);
  box-shadow: inset -1px 0 0 rgba(232, 238, 225, 0.24), inset 0 0 60px rgba(35, 54, 38, 0.2);
  isolation: isolate;
}

html[data-vulpus-theme="vert-sauge"] .sidebar::before {
  background: var(--sage-sidebar-pattern-image) center bottom / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  position: absolute;
  user-select: none;
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .sidebar > * {
  position: relative;
  z-index: 1;
}

html[data-vulpus-theme="vert-sauge"] .brand-title,
html[data-vulpus-theme="vert-sauge"] .nav-btn {
  color: #f7faf4;
}

html[data-vulpus-theme="vert-sauge"] .brand-subtitle,
html[data-vulpus-theme="vert-sauge"] .nav-label {
  color: rgba(232, 238, 225, 0.76);
}

html[data-vulpus-theme="vert-sauge"] .nav-icon {
  background: rgba(252, 252, 248, 0.15);
  color: #f7faf4;
}

html[data-vulpus-theme="vert-sauge"] .nav-btn:hover {
  background: rgba(252, 252, 248, 0.12);
}

html[data-vulpus-theme="vert-sauge"] .nav-btn.active {
  background:
    linear-gradient(135deg, rgba(252, 252, 248, 0.26), rgba(220, 232, 211, 0.2)),
    rgba(252, 252, 248, 0.14);
  border: 1px solid rgba(220, 232, 211, 0.36);
  box-shadow: inset 3px 0 0 rgba(220, 232, 211, 0.9), 0 10px 24px rgba(37, 51, 38, 0.13);
  color: #ffffff;
}

html[data-vulpus-theme="vert-sauge"] .nav-btn.active .nav-icon {
  background: rgba(252, 252, 248, 0.24);
}

.subnav {
  border-left-color: color-mix(in srgb, var(--theme-sidebar-line) 55%, transparent);
}

.brand-logo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-logo img {
  filter: brightness(0) invert(1);
}

html[data-vulpus-theme="bleu-ardoise"] .brand-logo {
  background: #ffffff;
  border-color: rgba(191, 219, 254, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

html[data-vulpus-theme="bleu-ardoise"] .brand-logo img {
  filter: none;
}

.topbar-mini-logo {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--theme-focus) 32%, #ffffff);
}

.topbar-mini-logo img {
  filter: none;
}

.btn-primary,
.action-btn-course,
.action-btn.action-btn-course,
.offer-plan-essential .offer-cta.btn-primary,
.offer-plan-essential .offer-cta.btn-purple {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--theme-primary-on, #ffffff);
}

.btn-primary:hover,
.action-btn-course:hover,
.action-btn.action-btn-course:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: var(--theme-primary-on, #ffffff);
}

html[data-vulpus-theme="bleu-ardoise"] .btn-primary,
html[data-vulpus-theme="bleu-ardoise"] .action-btn-course,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course.is-complete {
  color: #ffffff;
  background: linear-gradient(180deg, #2f64bb 0%, #1f4f9f 100%);
  border-color: #1f4f9f;
  box-shadow: var(--theme-primary-shadow);
}

html[data-vulpus-theme="bleu-ardoise"] .btn-primary *,
html[data-vulpus-theme="bleu-ardoise"] .action-btn-course *,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course * {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="bleu-ardoise"] .btn-primary:hover,
html[data-vulpus-theme="bleu-ardoise"] .action-btn-course:hover,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #3574d6 0%, #2558ad 100%);
  border-color: #2558ad;
}

html[data-vulpus-theme="bleu-ardoise"] .btn-primary:focus-visible,
html[data-vulpus-theme="bleu-ardoise"] .action-btn-course:focus-visible,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

html[data-vulpus-theme="dore"] .btn-primary,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="dore"] .language-switcher__button.is-active {
  background: var(--theme-gold-action);
  border-color: #b9821e;
  color: #fffaf0;
  background-size: 145% 100%;
  background-position: 44% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 22px rgba(137, 91, 15, 0.2);
  text-shadow: 0 1px 1px rgba(67, 43, 7, 0.28);
}

html[data-vulpus-theme="dore"] .btn-primary:hover,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="dore"] .language-switcher__button.is-active:hover {
  background: var(--theme-gold-action-hover);
  border-color: #c99528;
}

.progress,
.structure-bar,
.structure-showcase.qe .structure-bar,
.qcm-progress-bar {
  background: var(--theme-progress-track);
}

.progress > div,
.progress.purple > div,
.structure-bar > div,
.structure-showcase.qe .structure-bar > div,
.qcm-progress-bar div {
  background: var(--theme-progress-fill);
}

.domain-progress-page {
  --domain-progress-primary: var(--blue, #1f4f9f);
  --domain-progress-primary-2: var(--blue-2, #2d7ff9);
  --domain-progress-teal: #1aa6a6;
  --domain-progress-warning: #f59e0b;
  --domain-progress-success: #16a34a;
  --domain-progress-track: var(--theme-progress-track, #e6edf5);
  color: var(--text, #0f172a);
  gap: 20px;
}

.domain-progress-page.active {
  display: grid;
}

.domain-progress-breadcrumb {
  align-items: center;
  color: var(--muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  margin: 4px 0 8px;
}

.domain-progress-breadcrumb a {
  color: var(--domain-progress-primary);
  text-decoration: none;
}

.domain-progress-breadcrumb a:hover {
  text-decoration: underline;
}

.domain-progress-header {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.domain-progress-eyebrow {
  color: var(--domain-progress-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.domain-progress-header h2 {
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.domain-progress-header h3 {
  color: var(--domain-progress-primary);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.18;
  margin: 0;
}

.domain-progress-header p {
  color: var(--muted, #64748b);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.domain-progress-overview,
.domain-progress-metric,
.domain-progress-recommendation {
  background: linear-gradient(145deg, #ffffff, var(--theme-card-tint, #f8fbff));
  border: 1px solid var(--border, #dbe5f0);
  border-radius: 20px;
  box-shadow: var(--shadow, 0 10px 28px rgba(15, 23, 42, 0.08));
}

.domain-progress-overview {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.domain-progress-overview-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.domain-progress-overview-head h3,
.domain-progress-metric h3,
.domain-progress-recommendation h3 {
  margin: 0;
}

.domain-progress-overview-head strong {
  color: var(--domain-progress-primary);
  font-size: 28px;
  font-weight: 950;
}

.domain-progress-track {
  background: var(--domain-progress-track);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.domain-progress-track > div {
  background: linear-gradient(90deg, var(--domain-progress-primary), var(--domain-progress-primary-2));
  border-radius: inherit;
  height: 100%;
}

.domain-progress-insights {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domain-progress-insights div {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border, #dbe5f0);
  border-radius: 14px;
  color: var(--text, #0f172a);
  display: flex;
  font-size: 14px;
  font-weight: 850;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
}

.domain-progress-insights span,
.domain-progress-icon,
.domain-progress-recommendation-icon {
  align-items: center;
  background: var(--blue-soft, #eaf2ff);
  border-radius: 14px;
  color: var(--domain-progress-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

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

.domain-progress-metric {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 170px;
  padding: 22px 26px;
}

.domain-progress-metric[data-tone="blue"] {
  --domain-progress-tone: var(--domain-progress-primary);
  --domain-progress-tone-soft: var(--blue-soft, #eaf2ff);
}

.domain-progress-metric[data-tone="teal"] {
  --domain-progress-tone: var(--domain-progress-teal);
  --domain-progress-tone-soft: rgba(26, 166, 166, 0.12);
}

.domain-progress-metric[data-tone="orange"] {
  --domain-progress-tone: var(--domain-progress-warning);
  --domain-progress-tone-soft: rgba(245, 158, 11, 0.13);
}

.domain-progress-metric[data-tone="score"] {
  --domain-progress-tone: var(--domain-progress-primary-2);
  --domain-progress-tone-soft: color-mix(in srgb, var(--domain-progress-primary-2) 13%, #ffffff);
}

@media (min-width: 981px) {
  .domain-progress-metric[data-tone="score"] {
    grid-column: 1 / -1;
    min-height: 148px;
  }
}

.domain-progress-gauge {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--domain-progress-tone) calc(var(--value, 0) * 1%), var(--domain-progress-track) 0);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  position: relative;
  width: 132px;
}

.domain-progress-gauge::after {
  background: var(--panel, #ffffff);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  content: "";
  inset: 13px;
  position: absolute;
}

.domain-progress-gauge-value {
  color: var(--domain-progress-tone);
  font-size: 28px;
  font-weight: 950;
  position: relative;
  z-index: 1;
}

.domain-progress-metric-copy {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
}

.domain-progress-icon {
  background: var(--domain-progress-tone-soft);
  color: var(--domain-progress-tone);
  height: 52px;
  width: 52px;
}

.domain-progress-metric p,
.domain-progress-recommendation p {
  color: var(--domain-progress-primary);
  line-height: 1.45;
  margin: 4px 0 12px;
}

.domain-progress-status {
  background: var(--domain-progress-tone-soft);
  border: 1px solid color-mix(in srgb, var(--domain-progress-tone) 18%, transparent);
  border-radius: 999px;
  color: var(--domain-progress-tone);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 12px;
}

.domain-progress-status[data-state="complete"] {
  --domain-progress-tone: var(--domain-progress-success);
  --domain-progress-tone-soft: rgba(22, 163, 74, 0.12);
}

.domain-progress-status[data-state="review"] {
  --domain-progress-tone: #dc2626;
  --domain-progress-tone-soft: rgba(220, 38, 38, 0.1);
}

.domain-progress-recommendation {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 22px 24px;
}

.domain-progress-recommendation-icon {
  border-radius: 999px;
  height: 58px;
  width: 58px;
}

.domain-progress-recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

html[data-vulpus-theme="vert-sauge"] .domain-progress-page {
  --domain-progress-primary: #557b50;
  --domain-progress-primary-2: #78966e;
  --domain-progress-teal: #5e8058;
  --domain-progress-warning: #9a6a16;
  --domain-progress-success: #4c744d;
  --domain-progress-track: #e2eadf;
}

html[data-vulpus-theme="vert-sauge"] .domain-progress-overview,
html[data-vulpus-theme="vert-sauge"] .domain-progress-metric,
html[data-vulpus-theme="vert-sauge"] .domain-progress-recommendation {
  background: linear-gradient(160deg, #fdfefb 0%, #f8faf5 100%);
  border-color: #d8e3d2;
  box-shadow: 0 9px 24px rgba(68, 94, 67, 0.06);
}

html[data-vulpus-theme="dore"] .domain-progress-page {
  --domain-progress-primary: #9c711f;
  --domain-progress-primary-2: #d1a23a;
  --domain-progress-warning: #c58b25;
  --domain-progress-success: #9c711f;
}

html[data-vulpus-theme="dore"] .domain-progress-track > div {
  background: var(--theme-gold-metal);
}

@media (max-width: 980px) {
  .domain-progress-insights,
  .domain-progress-metric-grid {
    grid-template-columns: 1fr;
  }

  .domain-progress-recommendation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .domain-progress-recommendation-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .domain-progress-overview,
  .domain-progress-metric,
  .domain-progress-recommendation {
    border-radius: 16px;
    padding: 18px;
  }

  .domain-progress-metric {
    gap: 18px;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 138px;
  }

  .domain-progress-gauge {
    width: 108px;
  }

  .domain-progress-gauge::after {
    inset: 11px;
  }

  .domain-progress-gauge-value {
    font-size: 23px;
  }

  .domain-progress-icon {
    height: 42px;
    width: 42px;
  }

  .domain-progress-header h2 {
    font-size: 28px;
  }
}

html[data-vulpus-theme="dore"] .progress > div,
html[data-vulpus-theme="dore"] .structure-bar > div,
html[data-vulpus-theme="dore"] .qcm-progress-bar div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 10px rgba(201, 150, 37, 0.1);
  overflow: hidden;
  position: relative;
}

html[data-vulpus-theme="dore"] .progress > div::after,
html[data-vulpus-theme="dore"] .structure-bar > div::after,
html[data-vulpus-theme="dore"] .qcm-progress-bar div::after {
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 0 46%, rgba(255, 238, 166, 0.24) 58%, rgba(255, 255, 255, 0) 74%);
  content: "";
  inset: 0;
  opacity: 0.5;
  position: absolute;
}

.topbar,
.user-chip,
.card,
.domain-hero,
.course-card,
.v3-course-hero,
.v3-flash-hero,
.v3-course-panel,
.v3-flash-panel,
.modal,
.question-box,
.answer-option,
.tool-card,
.qcm-domain-progress,
.qcm-domain-row {
  border-color: var(--border);
}

.domain-hero,
.v3-course-hero,
.v3-flash-hero,
.offer-hero,
.qcm-domain-progress {
  background: linear-gradient(135deg, #ffffff, var(--theme-card-tint));
}

.weight-box,
.metric-card,
.next-card {
  background: var(--theme-weight-bg);
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border));
}

html[data-vulpus-theme="dore"] .domain-banner,
html[data-vulpus-theme="dore"] .dashboard-hero,
html[data-vulpus-theme="dore"] .weight-box,
html[data-vulpus-theme="dore"] .course-card,
html[data-vulpus-theme="dore"] .card {
  border-color: color-mix(in srgb, var(--theme-focus) 36%, var(--border));
}

html[data-vulpus-theme="dore"] .weight-box {
  background: linear-gradient(145deg, #fffaf0, #fff3cf);
}

html[data-vulpus-theme="dore"] .weight-box .big,
html[data-vulpus-theme="dore"] .metric .value,
html[data-vulpus-theme="dore"] .series-progress-percent {
  color: #ad7c22;
  text-shadow: 0 1px 0 #fff5c8;
}

.pill-blue,
.hero-badge,
.v3-course-badge,
.v3-flash-badge {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.pill-orange,
.btn-orange {
  background: var(--orange-soft);
  color: #9a5b00;
  border-color: color-mix(in srgb, var(--orange) 24%, var(--border));
}

.btn-outline:hover,
.action-btn:hover,
.resource-mark-btn:hover,
.theme-option-card:hover {
  background: var(--theme-hover-soft);
}

.topbar-mini-logo,
.user-chip,
.card,
.course-card,
.modal,
.question-box,
.answer-option,
.tool-card {
  box-shadow: var(--shadow);
}

.topbar,
.mcq-topbar {
  border-bottom-color: var(--border);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.theme-option-card:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.theme-settings-card {
  margin: 0 0 18px;
}

.theme-settings-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.theme-settings-head h3 {
  margin: 0 0 6px;
}

.theme-settings-head p {
  margin: 0;
}

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

.theme-option-card {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 110px;
  padding: 16px;
  text-align: left;
}

.theme-option-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent);
}

.theme-option-card strong {
  display: block;
  font-size: 15px;
}

.theme-option-copy {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.theme-option-copy strong {
  color: var(--text);
}

.theme-card-main {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.theme-icon-wrap {
  display: grid;
  flex: 0 0 54px;
  height: 54px;
  place-items: center;
}

.theme-icon {
  display: block;
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.theme-swatch-row {
  display: flex;
  gap: 6px;
  margin-left: 68px;
}

.theme-swatch {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  height: 14px;
  width: 32px;
}

.theme-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-card-footer .theme-swatch-row { margin-left: 0; }
.theme-card-footer .theme-active-mark { gap: 4px; font-style: normal; }

.theme-active-mark {
  align-self: end;
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  margin-left: auto;
  padding: 5px 9px;
  white-space: nowrap;
}

html[data-vulpus-theme="vert-sauge"] .topbar,
html[data-vulpus-theme="vert-sauge"] .mcq-topbar {
  background:
    linear-gradient(180deg, rgba(252, 252, 248, 0.94), rgba(249, 250, 246, 0.88)),
    radial-gradient(circle at 72% 0%, rgba(220, 232, 211, 0.25), transparent 34%);
  border-bottom-color: var(--sage-border);
  box-shadow: 0 8px 26px rgba(74, 96, 69, 0.06);
}

html[data-vulpus-theme="vert-sauge"] .topbar h1,
html[data-vulpus-theme="vert-sauge"] .section-head h2,
html[data-vulpus-theme="vert-sauge"] .course-group h3,
html[data-vulpus-theme="vert-sauge"] .domain-banner h2,
html[data-vulpus-theme="vert-sauge"] .pricing-hero h2,
html[data-vulpus-theme="vert-sauge"] .hero h2,
html[data-vulpus-theme="vert-sauge"] .card h3,
html[data-vulpus-theme="vert-sauge"] .course-card h4,
html[data-vulpus-theme="vert-sauge"] .v3-course-hero h1,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero h1 {
  color: var(--sage-text);
}

html[data-vulpus-theme="vert-sauge"] .domain-banner h2,
html[data-vulpus-theme="vert-sauge"] .course-group h3,
html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress h3,
html[data-vulpus-theme="vert-sauge"] .course-card h4,
html[data-vulpus-theme="vert-sauge"] .domain-progress-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

html[data-vulpus-theme="vert-sauge"] .topbar p,
html[data-vulpus-theme="vert-sauge"] .muted,
html[data-vulpus-theme="vert-sauge"] .section-head p,
html[data-vulpus-theme="vert-sauge"] .hero p,
html[data-vulpus-theme="vert-sauge"] .domain-banner p,
html[data-vulpus-theme="vert-sauge"] .plan-subtitle,
html[data-vulpus-theme="vert-sauge"] .theme-option-copy {
  color: var(--sage-text-soft);
}

html[data-vulpus-theme="vert-sauge"] .user-chip,
html[data-vulpus-theme="vert-sauge"] .language-switcher,
html[data-vulpus-theme="vert-sauge"] .vulpus-trace-topbar-chip,
html[data-vulpus-theme="vert-sauge"] .topbar-mini-logo,
html[data-vulpus-theme="vert-sauge"] .sidebar-floating-hide,
html[data-vulpus-theme="vert-sauge"] .sidebar-restore {
  background: rgba(252, 252, 248, 0.92);
  border-color: color-mix(in srgb, var(--sage-green-700) 28%, var(--sage-border));
  color: var(--sage-text);
  box-shadow: 0 10px 26px rgba(74, 96, 69, 0.08);
}

html[data-vulpus-theme="vert-sauge"] .user-chip__icon,
html[data-vulpus-theme="vert-sauge"] .vulpus-trace-topbar-chip strong {
  color: var(--sage-green-800);
}

html[data-vulpus-theme="vert-sauge"] .language-switcher__button {
  color: var(--sage-green-800);
}

html[data-vulpus-theme="vert-sauge"] .language-switcher__button:hover,
html[data-vulpus-theme="vert-sauge"] .language-switcher__button:focus-visible {
  background: var(--sage-green-100);
  color: var(--sage-green-900);
}

html[data-vulpus-theme="vert-sauge"] .language-switcher__button.is-active,
html[data-vulpus-theme="vert-sauge"] .mcq-language-toggle .is-active,
html[data-vulpus-theme="vert-sauge"] .mcq-language-toggle button[aria-pressed="true"] {
  background: var(--sage-primary-gradient);
  border-color: var(--sage-green-800);
  color: var(--sage-on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 9px 20px rgba(58, 87, 60, 0.18);
}

html[data-vulpus-theme="vert-sauge"] .nav-btn.active {
  background:
    linear-gradient(135deg, rgba(252, 252, 248, 0.68), rgba(220, 232, 211, 0.48));
  border-color: rgba(220, 232, 211, 0.58);
  box-shadow: inset 3px 0 0 rgba(232, 238, 225, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(36, 51, 40, 0.16);
  color: #203923;
}

html[data-vulpus-theme="vert-sauge"] .nav-btn.active .nav-icon {
  background: rgba(252, 252, 248, 0.22);
  color: #203923;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner,
html[data-vulpus-theme="vert-sauge"] .hero,
html[data-vulpus-theme="vert-sauge"] .dashboard-hero,
html[data-vulpus-theme="vert-sauge"] .pricing-hero,
html[data-vulpus-theme="vert-sauge"] .domain-hero,
html[data-vulpus-theme="vert-sauge"] .v3-course-hero,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero,
html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress,
html[data-vulpus-theme="vert-sauge"] .card,
html[data-vulpus-theme="vert-sauge"] .course-card,
html[data-vulpus-theme="vert-sauge"] .exam-card,
html[data-vulpus-theme="vert-sauge"] .sub-card,
html[data-vulpus-theme="vert-sauge"] .path-card,
html[data-vulpus-theme="vert-sauge"] .roadmap-card,
html[data-vulpus-theme="vert-sauge"] .theme-option-card,
html[data-vulpus-theme="vert-sauge"] .modal,
html[data-vulpus-theme="vert-sauge"] .question-box,
html[data-vulpus-theme="vert-sauge"] .answer-option,
html[data-vulpus-theme="vert-sauge"] .tool-card,
html[data-vulpus-theme="vert-sauge"] .metric,
html[data-vulpus-theme="vert-sauge"] .activity {
  background:
    linear-gradient(155deg, var(--sage-surface) 0%, var(--sage-surface-soft) 100%);
  border-color: var(--sage-border);
  box-shadow: 0 9px 24px rgba(57, 87, 62, 0.06);
  color: var(--sage-text);
}

html[data-vulpus-theme="vert-sauge"] .domain-banner,
html[data-vulpus-theme="vert-sauge"] .hero,
html[data-vulpus-theme="vert-sauge"] .dashboard-hero,
html[data-vulpus-theme="vert-sauge"] .pricing-hero,
html[data-vulpus-theme="vert-sauge"] .weight-box,
html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress,
html[data-vulpus-theme="vert-sauge"] .course-card,
html[data-vulpus-theme="vert-sauge"] .card {
  overflow: hidden;
  position: relative;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner > *,
html[data-vulpus-theme="vert-sauge"] .hero > *,
html[data-vulpus-theme="vert-sauge"] .dashboard-hero > *,
html[data-vulpus-theme="vert-sauge"] .pricing-hero > *,
html[data-vulpus-theme="vert-sauge"] .weight-box > *,
html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress > *,
html[data-vulpus-theme="vert-sauge"] .course-card > *,
html[data-vulpus-theme="vert-sauge"] .card > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner {
  background:
    linear-gradient(145deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 244, 0.96));
  border-color: #d5e0cf;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(66, 92, 65, 0.08);
  isolation: isolate;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner > div:first-child {
  max-width: 780px;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner::after,
html[data-vulpus-theme="vert-sauge"] .hero::after,
html[data-vulpus-theme="vert-sauge"] .v3-course-hero::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero::after {
  aspect-ratio: 3 / 2;
  background: var(--sage-hero-branch-image) right bottom / contain no-repeat;
  content: "";
  opacity: 0.64;
  pointer-events: none;
  position: absolute;
  right: 1rem;
  bottom: -25px;
  user-select: none;
  width: clamp(260px, 25vw, 390px);
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .hero::after,
html[data-vulpus-theme="vert-sauge"] .v3-course-hero::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero::after {
  right: 1rem;
  bottom: -1rem;
}

html[data-vulpus-theme="vert-sauge"] .domain-banner::after {
  aspect-ratio: auto;
  background-position: center bottom;
  background-size: contain;
  bottom: 6px;
  height: clamp(220px, 21vw, 320px);
  opacity: 0.66;
  right: clamp(315px, 21vw, 420px);
  width: clamp(230px, 18vw, 330px);
}

html[data-vulpus-theme="vert-sauge"] .course-card::after {
  background: var(--sage-small-sprig-image) center / contain no-repeat;
  content: none;
}

html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(1)::after,
html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(3)::after {
  background: var(--sage-course1-foliage-image) center / contain no-repeat;
  content: "";
  height: 160px;
  opacity: 0.23;
  pointer-events: none;
  position: absolute;
  right: -10px;
  top: 18px;
  transform: rotate(0deg);
  user-select: none;
  width: 150px;
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(3)::after {
  background-image: var(--sage-course3-foliage-image);
  bottom: 54px;
  opacity: 0.25;
  top: auto;
  transform: rotate(0deg);
}

html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress {
  padding: 20px;
}

html[data-vulpus-theme="vert-sauge"] .course-card h4,
html[data-vulpus-theme="vert-sauge"] .course-card .muted,
html[data-vulpus-theme="vert-sauge"] .course-card .course-meta,
html[data-vulpus-theme="vert-sauge"] .course-card .course-status-row,
html[data-vulpus-theme="vert-sauge"] .course-card .course-actions {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="vert-sauge"] .weight-box {
  background:
    linear-gradient(145deg, #f1f6ec, #e8f0e2);
  border-color: color-mix(in srgb, var(--sage-green-700) 26%, var(--sage-border));
  box-shadow: 0 16px 38px rgba(74, 96, 69, 0.08);
}

html[data-vulpus-theme="vert-sauge"] .weight-box::after,
html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress::after {
  background: var(--sage-weighting-side-image) right center / contain no-repeat;
  content: "";
  height: 165px;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
  right: -16px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  width: 118px;
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress::after {
  content: none;
  background: none;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-hero::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero::after {
  bottom: -1.6rem;
  opacity: 0.28;
  right: 0.85rem;
  width: clamp(180px, 18vw, 300px);
}

html[data-vulpus-theme="vert-sauge"] .v3-course-outline,
html[data-vulpus-theme="vert-sauge"] .v3-course-outline-chapter,
html[data-vulpus-theme="vert-sauge"] .v3-course-chapter,
html[data-vulpus-theme="vert-sauge"] .v3-course-callout,
html[data-vulpus-theme="vert-sauge"] .v3-course-example,
html[data-vulpus-theme="vert-sauge"] .v3-course-empty,
html[data-vulpus-theme="vert-sauge"] .v3-flash-side,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head,
html[data-vulpus-theme="vert-sauge"] .v3-flash-section,
html[data-vulpus-theme="vert-sauge"] .v3-flash-empty {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-outline > *,
html[data-vulpus-theme="vert-sauge"] .v3-course-outline-chapter > *,
html[data-vulpus-theme="vert-sauge"] .v3-course-chapter > *,
html[data-vulpus-theme="vert-sauge"] .v3-course-callout > *,
html[data-vulpus-theme="vert-sauge"] .v3-course-example > *,
html[data-vulpus-theme="vert-sauge"] .v3-course-empty > *,
html[data-vulpus-theme="vert-sauge"] .v3-flash-side > *,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main > *,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head > *,
html[data-vulpus-theme="vert-sauge"] .v3-flash-section > *,
html[data-vulpus-theme="vert-sauge"] .v3-flash-empty > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-outline::after,
html[data-vulpus-theme="vert-sauge"] .v3-course-chapter::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-side::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head::after,
html[data-vulpus-theme="vert-sauge"] .v3-flash-section::after {
  background: var(--sage-small-sprig-image) center / contain no-repeat;
  content: "";
  pointer-events: none;
  position: absolute;
  user-select: none;
  z-index: 0;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-outline::after {
  background-image: var(--sage-small-sprig-image);
  background-size: contain;
  bottom: 12px;
  height: 82px;
  opacity: 0.055;
  right: 18px;
  width: 82px;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-main .v3-course-chapter::after {
  bottom: -26px;
  height: 154px;
  opacity: 0.07;
  right: -22px;
  width: 154px;
}

html[data-vulpus-theme="vert-sauge"] .v3-course-main .v3-course-chapter:nth-child(3n+1)::after {
  background-image: var(--sage-course1-foliage-image);
}

html[data-vulpus-theme="vert-sauge"] .v3-course-main .v3-course-chapter:nth-child(3n+3)::after {
  background-image: var(--sage-course3-foliage-image);
  opacity: 0.06;
}

html[data-vulpus-theme="vert-sauge"] .v3-flash-side::after {
  background-image: var(--sage-small-sprig-image);
  background-size: contain;
  bottom: 14px;
  height: 78px;
  opacity: 0.055;
  right: 14px;
  width: 78px;
}

html[data-vulpus-theme="vert-sauge"] .v3-flash-main::after {
  background-image: var(--sage-course3-foliage-image);
  bottom: 10px;
  height: 210px;
  opacity: 0.045;
  right: -42px;
  width: 190px;
}

html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head::after {
  background-image: var(--sage-small-sprig-image);
  height: 78px;
  opacity: 0.09;
  right: 18px;
  top: 16px;
  width: 78px;
}

html[data-vulpus-theme="vert-sauge"] .v3-flash-section::after {
  height: 64px;
  opacity: 0.055;
  right: 18px;
  top: 14px;
  width: 64px;
}

html[data-vulpus-theme="vert-sauge"] .weight-box .big,
html[data-vulpus-theme="vert-sauge"] .metric .value,
html[data-vulpus-theme="vert-sauge"] .series-progress-percent,
html[data-vulpus-theme="vert-sauge"] .plan-price {
  color: #4c744d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-vulpus-theme="vert-sauge"] .btn-primary,
html[data-vulpus-theme="vert-sauge"] .btn-purple,
html[data-vulpus-theme="vert-sauge"] .btn-green,
html[data-vulpus-theme="vert-sauge"] .action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="vert-sauge"] .offer-plan-essential .offer-cta.btn-primary,
html[data-vulpus-theme="vert-sauge"] .offer-plan-essential .offer-cta.btn-purple {
  background: var(--sage-primary-gradient);
  border-color: #466846;
  color: var(--sage-on-dark) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 13px rgba(58, 85, 58, 0.16);
  text-shadow: 0 1px 1px rgba(37, 51, 38, 0.18);
}

html[data-vulpus-theme="vert-sauge"] .btn-primary *,
html[data-vulpus-theme="vert-sauge"] .btn-purple *,
html[data-vulpus-theme="vert-sauge"] .btn-green *,
html[data-vulpus-theme="vert-sauge"] .action-btn-course *,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course *,
html[data-vulpus-theme="vert-sauge"] .offer-plan-essential .offer-cta.btn-primary *,
html[data-vulpus-theme="vert-sauge"] .offer-plan-essential .offer-cta.btn-purple * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="vert-sauge"] .btn-primary:hover,
html[data-vulpus-theme="vert-sauge"] .btn-purple:hover,
html[data-vulpus-theme="vert-sauge"] .btn-green:hover,
html[data-vulpus-theme="vert-sauge"] .action-btn-course:hover,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course:hover {
  background: var(--sage-primary-gradient-hover);
  border-color: #507650;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html[data-vulpus-theme="vert-sauge"] .btn-primary:focus-visible,
html[data-vulpus-theme="vert-sauge"] .btn-purple:focus-visible,
html[data-vulpus-theme="vert-sauge"] .btn-green:focus-visible,
html[data-vulpus-theme="vert-sauge"] .action-btn-course:focus-visible,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

html[data-vulpus-theme="vert-sauge"] .btn-outline,
html[data-vulpus-theme="vert-sauge"] .btn-soft,
html[data-vulpus-theme="vert-sauge"] .domain-mini-assessment-btn,
html[data-vulpus-theme="vert-sauge"] .action-btn,
html[data-vulpus-theme="vert-sauge"] .resource-mark-btn,
html[data-vulpus-theme="vert-sauge"] .sidebar-floating-hide,
html[data-vulpus-theme="vert-sauge"] .sidebar-restore {
  background: rgba(252, 253, 249, 0.94);
  border-color: #bfcfb8;
  color: #3f5f42;
}

html[data-vulpus-theme="vert-sauge"] .btn-outline:hover,
html[data-vulpus-theme="vert-sauge"] .btn-soft:hover,
html[data-vulpus-theme="vert-sauge"] .domain-mini-assessment-btn:hover,
html[data-vulpus-theme="vert-sauge"] .action-btn:hover,
html[data-vulpus-theme="vert-sauge"] .resource-mark-btn:hover,
html[data-vulpus-theme="vert-sauge"] .theme-option-card:hover {
  background: #eef4e9;
  border-color: #8ea886;
  color: var(--sage-green-900);
}

html[data-vulpus-theme="vert-sauge"] .btn-orange {
  background: linear-gradient(180deg, #fcfcf8 0%, #f1f4eb 100%);
  border-color: color-mix(in srgb, var(--sage-green-700) 22%, var(--sage-border));
  color: var(--sage-green-900);
  box-shadow: 0 8px 18px rgba(74, 96, 69, 0.06);
}

html[data-vulpus-theme="vert-sauge"] .domain-mini-assessment-btn {
  background: rgba(252, 253, 249, 0.94) !important;
  border-color: #bfcfb8 !important;
  box-shadow: 0 8px 18px rgba(74, 96, 69, 0.06) !important;
  color: #3f5f42 !important;
}

html[data-vulpus-theme="vert-sauge"] a:not(.btn):not(.action-btn) {
  color: var(--sage-green-800);
}

html[data-vulpus-theme="vert-sauge"] .pill,
html[data-vulpus-theme="vert-sauge"] .pill-blue,
html[data-vulpus-theme="vert-sauge"] .pill-purple,
html[data-vulpus-theme="vert-sauge"] .pill-green,
html[data-vulpus-theme="vert-sauge"] .hero-badge,
html[data-vulpus-theme="vert-sauge"] .v3-course-badge,
html[data-vulpus-theme="vert-sauge"] .v3-flash-badge,
html[data-vulpus-theme="vert-sauge"] .theme-active-mark,
html[data-vulpus-theme="vert-sauge"] .plan-badge {
  background: #f7f9f4;
  border: 1px solid #d1dec9;
  color: #526d51;
}

html[data-vulpus-theme="vert-sauge"] .pill-orange,
html[data-vulpus-theme="vert-sauge"] .plan-badge.gold {
  background: #fbf7ed;
  border-color: #e4d5ad;
  color: #735f31;
}

html[data-vulpus-theme="vert-sauge"] .progress,
html[data-vulpus-theme="vert-sauge"] .structure-bar,
html[data-vulpus-theme="vert-sauge"] .structure-showcase.qe .structure-bar,
html[data-vulpus-theme="vert-sauge"] .qcm-progress-bar {
  background: var(--theme-progress-track);
  box-shadow: inset 0 1px 2px rgba(58, 87, 60, 0.08);
}

html[data-vulpus-theme="vert-sauge"] .progress > div,
html[data-vulpus-theme="vert-sauge"] .progress.purple > div,
html[data-vulpus-theme="vert-sauge"] .structure-bar > div,
html[data-vulpus-theme="vert-sauge"] .structure-showcase.qe .structure-bar > div,
html[data-vulpus-theme="vert-sauge"] .qcm-progress-bar div {
  background: var(--theme-progress-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 10px rgba(95, 127, 85, 0.1);
}

html[data-vulpus-theme="vert-sauge"] .course-card .pill,
html[data-vulpus-theme="vert-sauge"] .course-card .pill-blue {
  background: linear-gradient(90deg, #e7efe2, #dde8d7);
  border-color: #d1dec9;
  color: #466347;
}

html[data-vulpus-theme="vert-sauge"] .course-status-chip {
  background: #f7f9f4;
  border-color: #d1dec9;
  color: #526d51;
}

html[data-vulpus-theme="vert-sauge"] .course-status-row .course-status-chip:first-child {
  background: #fbf7ed;
  border-color: #e4d5ad;
  color: #735f31;
}

html[data-vulpus-theme="vert-sauge"] .next-card {
  border-left-color: var(--sage-green-700);
}

html[data-vulpus-theme="vert-sauge"] .activity {
  background: rgba(252, 252, 248, 0.74);
}

html[data-vulpus-theme="vert-sauge"] .dot,
html[data-vulpus-theme="vert-sauge"] .dot.purple,
html[data-vulpus-theme="vert-sauge"] .check {
  background: var(--sage-green-100);
  color: var(--sage-green-800);
}

html[data-vulpus-theme="vert-sauge"] .theme-option-card.is-active {
  border-color: var(--sage-green-700);
  box-shadow: 0 0 0 3px rgba(88, 124, 82, 0.16), 0 14px 30px rgba(74, 96, 69, 0.08);
}

html[data-vulpus-theme="vert-sauge"] .answer-option.selected,
html[data-vulpus-theme="vert-sauge"] .answer-option:hover {
  border-color: var(--sage-green-500);
  background: rgba(232, 238, 225, 0.55);
}

@media (max-width: 1000px) {
  html[data-vulpus-theme="vert-sauge"] .domain-banner > div:first-child {
    max-width: none;
  }

  html[data-vulpus-theme="vert-sauge"] .domain-banner::after,
  html[data-vulpus-theme="vert-sauge"] .hero::after,
  html[data-vulpus-theme="vert-sauge"] .v3-course-hero::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-hero::after {
    bottom: 0.5rem;
    height: clamp(150px, 26vw, 210px);
    opacity: 0.42;
    right: -1rem;
    width: clamp(130px, 22vw, 190px);
  }

  html[data-vulpus-theme="vert-sauge"] .main::before {
    opacity: 0.24;
    right: -42px;
    width: clamp(180px, 22vw, 240px);
  }
}

@media (max-width: 768px) {
  html[data-vulpus-theme="vert-sauge"] .main::before,
  html[data-vulpus-theme="vert-sauge"] .domain-banner::after,
  html[data-vulpus-theme="vert-sauge"] .hero::after,
  html[data-vulpus-theme="vert-sauge"] .v3-course-hero::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-hero::after {
    display: none;
  }

  html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(1)::after,
  html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(3)::after,
  html[data-vulpus-theme="vert-sauge"] .weight-box::after,
  html[data-vulpus-theme="vert-sauge"] .qcm-domain-progress::after,
  html[data-vulpus-theme="vert-sauge"] .v3-course-outline::after,
  html[data-vulpus-theme="vert-sauge"] .v3-course-chapter::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-side::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-main::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-section::after {
    height: 48px;
    opacity: 0.34;
    width: 48px;
  }

  html[data-vulpus-theme="vert-sauge"] .v3-course-outline::after,
  html[data-vulpus-theme="vert-sauge"] .v3-course-chapter::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-side::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-main::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-main-head::after,
  html[data-vulpus-theme="vert-sauge"] .v3-flash-section::after {
    display: none;
  }
}

@media (max-width: 860px) {
  html[data-vulpus-theme="vert-sauge"] body:not(.vulpus-mcq-reader) .topbar {
    align-items: center;
    display: grid;
    gap: 10px 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 0;
    padding: 10px;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar .mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar .language-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar .vulpus-trace-topbar-chip {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar .vulpus-trace-topbar-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar .vulpus-trace-topbar-chip small {
    display: none;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar-left-area {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    width: 100%;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar-left-area > div:last-child {
    min-width: 0;
  }

  html[data-vulpus-theme="vert-sauge"] .topbar h1,
  html[data-vulpus-theme="vert-sauge"] .topbar p {
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
  }
}

@media (max-width: 1180px) {
  .theme-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .theme-settings-head {
    display: grid;
  }

  .theme-options-grid {
    grid-template-columns: 1fr;
  }

  .theme-swatch-row {
    margin-left: 68px;
  }
}

/* Prune Velours botanical treatment. Scoped to this theme only. */
html[data-vulpus-theme="prune-velours"] body {
  background:
    radial-gradient(circle at 11% 18%, rgba(203, 139, 167, 0.18), transparent 31%),
    radial-gradient(circle at 92% 68%, rgba(235, 207, 218, 0.24), transparent 34%),
    linear-gradient(135deg, #fffafb 0%, var(--plum-page-bg) 52%, #fff8fa 100%);
  color: var(--plum-text);
}

html[data-vulpus-theme="prune-velours"] .main {
  background:
    radial-gradient(circle at 86% 9%, rgba(232, 203, 216, 0.22), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(203, 139, 167, 0.16), transparent 34%);
  overflow-x: clip;
  position: relative;
}

html[data-vulpus-theme="prune-velours"] .content {
  background: transparent;
  position: relative;
  z-index: 1;
}

html[data-vulpus-theme="prune-velours"] .topbar,
html[data-vulpus-theme="prune-velours"] .mcq-topbar {
  background:
    linear-gradient(180deg, rgba(255, 251, 252, 0.94), rgba(252, 246, 249, 0.9)),
    radial-gradient(circle at 70% 0%, rgba(235, 207, 218, 0.25), transparent 36%);
  border-bottom-color: var(--plum-border-soft);
  box-shadow: 0 8px 26px rgba(91, 42, 72, 0.055);
  color: var(--plum-text);
}

html[data-vulpus-theme="prune-velours"] .topbar h1,
html[data-vulpus-theme="prune-velours"] .section-head h2,
html[data-vulpus-theme="prune-velours"] .course-group h3,
html[data-vulpus-theme="prune-velours"] .domain-banner h2,
html[data-vulpus-theme="prune-velours"] .pricing-hero h2,
html[data-vulpus-theme="prune-velours"] .hero h2,
html[data-vulpus-theme="prune-velours"] .card h3,
html[data-vulpus-theme="prune-velours"] .course-card h4,
html[data-vulpus-theme="prune-velours"] .v3-course-hero h1,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero h1,
html[data-vulpus-theme="prune-velours"] .v3-course-hero h2,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero h2,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter h3,
html[data-vulpus-theme="prune-velours"] .v3-course-section h4,
html[data-vulpus-theme="prune-velours"] .v3-flash-main-head h3,
html[data-vulpus-theme="prune-velours"] .v3-flash-side h3,
html[data-vulpus-theme="prune-velours"] .v3-flash-section-top h4,
html[data-vulpus-theme="prune-velours"] .domain-progress-header h2,
html[data-vulpus-theme="prune-velours"] .domain-progress-header h3 {
  color: var(--plum-text-strong);
}

html[data-vulpus-theme="prune-velours"] .domain-banner h2,
html[data-vulpus-theme="prune-velours"] .section-head h2,
html[data-vulpus-theme="prune-velours"] .course-group h3,
html[data-vulpus-theme="prune-velours"] .course-card h4,
html[data-vulpus-theme="prune-velours"] .qcm-domain-progress h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

html[data-vulpus-theme="prune-velours"] .topbar p,
html[data-vulpus-theme="prune-velours"] .muted,
html[data-vulpus-theme="prune-velours"] .section-head p,
html[data-vulpus-theme="prune-velours"] .hero p,
html[data-vulpus-theme="prune-velours"] .domain-banner p,
html[data-vulpus-theme="prune-velours"] .plan-subtitle,
html[data-vulpus-theme="prune-velours"] .theme-option-copy,
html[data-vulpus-theme="prune-velours"] .domain-progress-header p {
  color: var(--plum-text-muted);
}

html[data-vulpus-theme="prune-velours"] .sidebar {
  background:
    var(--plum-sidebar-top-branch-image) right -42px top 72px / 270px auto no-repeat,
    var(--plum-sidebar-mid-flower-image) right -66px top 292px / 330px auto no-repeat,
    var(--plum-sidebar-bottom-berries-image) right -58px bottom -28px / 350px auto no-repeat,
    radial-gradient(circle at 88% 20%, rgba(255, 235, 245, 0.13), transparent 28%),
    linear-gradient(180deg, var(--plum-sidebar-top) 0%, var(--plum-sidebar-middle) 42%, var(--plum-sidebar-bottom) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 235, 245, 0.26), inset 0 0 72px rgba(53, 20, 42, 0.22);
  color: var(--plum-text-on-dark);
  isolation: isolate;
}

html[data-vulpus-theme="prune-velours"] body:not(.vulpus-mcq-reader) .sidebar {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

html[data-vulpus-theme="prune-velours"] .sidebar > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="prune-velours"] .brand-title,
html[data-vulpus-theme="prune-velours"] .nav-btn {
  color: #fff8fc;
}

html[data-vulpus-theme="prune-velours"] .brand-subtitle,
html[data-vulpus-theme="prune-velours"] .nav-label {
  color: rgba(255, 241, 247, 0.8);
}

html[data-vulpus-theme="prune-velours"] .nav-section {
  border-left-color: rgba(255, 224, 238, 0.45);
}

html[data-vulpus-theme="prune-velours"] .nav-section-title {
  color: rgba(255, 235, 245, 0.72);
}

html[data-vulpus-theme="prune-velours"] .brand-logo,
html[data-vulpus-theme="prune-velours"] .nav-icon {
  background: rgba(255, 245, 250, 0.16);
  border-color: rgba(255, 232, 243, 0.2);
  color: #fff8fc;
}

html[data-vulpus-theme="prune-velours"] .brand-logo img {
  filter: brightness(0) invert(1);
}

html[data-vulpus-theme="prune-velours"] .nav-btn:hover {
  background: rgba(255, 245, 250, 0.12);
}

html[data-vulpus-theme="prune-velours"] .nav-btn.active {
  background:
    linear-gradient(135deg, rgba(255, 240, 247, 0.32), rgba(229, 173, 197, 0.2)),
    rgba(255, 245, 250, 0.12);
  border: 1px solid rgba(255, 230, 242, 0.44);
  box-shadow: inset 3px 0 0 rgba(255, 227, 241, 0.9), 0 12px 28px rgba(56, 18, 41, 0.16);
  color: #ffffff;
}

html[data-vulpus-theme="prune-velours"] .nav-btn.active .nav-icon {
  background: rgba(255, 245, 250, 0.22);
  color: #ffffff;
}

html[data-vulpus-theme="prune-velours"] .user-chip,
html[data-vulpus-theme="prune-velours"] .language-switcher,
html[data-vulpus-theme="prune-velours"] .vulpus-trace-topbar-chip,
html[data-vulpus-theme="prune-velours"] .topbar-mini-logo,
html[data-vulpus-theme="prune-velours"] .sidebar-floating-hide,
html[data-vulpus-theme="prune-velours"] .sidebar-restore {
  background: rgba(255, 251, 252, 0.9);
  border-color: var(--plum-border);
  box-shadow: 0 10px 26px rgba(91, 42, 72, 0.07);
  color: var(--plum-text);
}

html[data-vulpus-theme="prune-velours"] .user-chip__icon,
html[data-vulpus-theme="prune-velours"] .vulpus-trace-topbar-chip strong,
html[data-vulpus-theme="prune-velours"] .language-switcher__button {
  color: var(--plum-primary);
}

html[data-vulpus-theme="prune-velours"] .language-switcher__button:hover,
html[data-vulpus-theme="prune-velours"] .language-switcher__button:focus-visible {
  background: var(--plum-chip);
  color: var(--plum-primary-deep);
}

html[data-vulpus-theme="prune-velours"] .language-switcher__button.is-active,
html[data-vulpus-theme="prune-velours"] .mcq-language-toggle .is-active,
html[data-vulpus-theme="prune-velours"] .mcq-language-toggle button[aria-pressed="true"] {
  background: var(--plum-primary-gradient);
  border-color: var(--plum-primary-deep);
  color: var(--plum-text-on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 9px 20px rgba(86, 35, 65, 0.18);
}

html[data-vulpus-theme="prune-velours"] .domain-banner,
html[data-vulpus-theme="prune-velours"] .hero,
html[data-vulpus-theme="prune-velours"] .dashboard-hero,
html[data-vulpus-theme="prune-velours"] .pricing-hero,
html[data-vulpus-theme="prune-velours"] .domain-hero,
html[data-vulpus-theme="prune-velours"] .v3-course-hero,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero,
html[data-vulpus-theme="prune-velours"] .v3-course-outline,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-chapter,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter,
html[data-vulpus-theme="prune-velours"] .v3-course-callout,
html[data-vulpus-theme="prune-velours"] .v3-course-example,
html[data-vulpus-theme="prune-velours"] .v3-course-empty,
html[data-vulpus-theme="prune-velours"] .v3-flash-side,
html[data-vulpus-theme="prune-velours"] .v3-flash-main,
html[data-vulpus-theme="prune-velours"] .v3-flash-main-head,
html[data-vulpus-theme="prune-velours"] .v3-flash-section,
html[data-vulpus-theme="prune-velours"] .v3-flash-question,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-inner,
html[data-vulpus-theme="prune-velours"] .v3-flash-empty,
html[data-vulpus-theme="prune-velours"] .qcm-domain-progress,
html[data-vulpus-theme="prune-velours"] .card,
html[data-vulpus-theme="prune-velours"] .course-card,
html[data-vulpus-theme="prune-velours"] .exam-card,
html[data-vulpus-theme="prune-velours"] .sub-card,
html[data-vulpus-theme="prune-velours"] .path-card,
html[data-vulpus-theme="prune-velours"] .roadmap-card,
html[data-vulpus-theme="prune-velours"] .theme-option-card,
html[data-vulpus-theme="prune-velours"] .modal,
html[data-vulpus-theme="prune-velours"] .question-box,
html[data-vulpus-theme="prune-velours"] .answer-option,
html[data-vulpus-theme="prune-velours"] .tool-card,
html[data-vulpus-theme="prune-velours"] .metric,
html[data-vulpus-theme="prune-velours"] .activity,
html[data-vulpus-theme="prune-velours"] .domain-progress-overview,
html[data-vulpus-theme="prune-velours"] .domain-progress-metric,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation {
  background: linear-gradient(155deg, #fffdfd 0%, var(--plum-surface) 100%);
  border-color: var(--plum-border);
  box-shadow: 0 9px 24px rgba(91, 42, 72, 0.06);
  color: var(--plum-text);
}

html[data-vulpus-theme="prune-velours"] .domain-banner,
html[data-vulpus-theme="prune-velours"] .hero,
html[data-vulpus-theme="prune-velours"] .dashboard-hero,
html[data-vulpus-theme="prune-velours"] .pricing-hero,
html[data-vulpus-theme="prune-velours"] .weight-box,
html[data-vulpus-theme="prune-velours"] .v3-course-hero,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero,
html[data-vulpus-theme="prune-velours"] .v3-course-outline,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-chapter,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter,
html[data-vulpus-theme="prune-velours"] .v3-course-callout,
html[data-vulpus-theme="prune-velours"] .v3-course-example,
html[data-vulpus-theme="prune-velours"] .v3-course-empty,
html[data-vulpus-theme="prune-velours"] .v3-flash-side,
html[data-vulpus-theme="prune-velours"] .v3-flash-main,
html[data-vulpus-theme="prune-velours"] .v3-flash-main-head,
html[data-vulpus-theme="prune-velours"] .v3-flash-section,
html[data-vulpus-theme="prune-velours"] .v3-flash-question,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-inner,
html[data-vulpus-theme="prune-velours"] .v3-flash-empty,
html[data-vulpus-theme="prune-velours"] .card,
html[data-vulpus-theme="prune-velours"] .exam-card,
html[data-vulpus-theme="prune-velours"] .sub-card,
html[data-vulpus-theme="prune-velours"] .path-card,
html[data-vulpus-theme="prune-velours"] .roadmap-card,
html[data-vulpus-theme="prune-velours"] .theme-option-card,
html[data-vulpus-theme="prune-velours"] .qcm-domain-progress,
html[data-vulpus-theme="prune-velours"] .course-card,
html[data-vulpus-theme="prune-velours"] .domain-progress-overview,
html[data-vulpus-theme="prune-velours"] .domain-progress-metric,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation {
  overflow: hidden;
  position: relative;
}

html[data-vulpus-theme="prune-velours"] .domain-banner > *,
html[data-vulpus-theme="prune-velours"] .hero > *,
html[data-vulpus-theme="prune-velours"] .dashboard-hero > *,
html[data-vulpus-theme="prune-velours"] .pricing-hero > *,
html[data-vulpus-theme="prune-velours"] .weight-box > *,
html[data-vulpus-theme="prune-velours"] .v3-course-hero > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero > *,
html[data-vulpus-theme="prune-velours"] .v3-course-outline > *,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-chapter > *,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter > *,
html[data-vulpus-theme="prune-velours"] .v3-course-callout > *,
html[data-vulpus-theme="prune-velours"] .v3-course-example > *,
html[data-vulpus-theme="prune-velours"] .v3-course-empty > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-side > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-main > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-main-head > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-section > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-question > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-inner > *,
html[data-vulpus-theme="prune-velours"] .v3-flash-empty > *,
html[data-vulpus-theme="prune-velours"] .card > *,
html[data-vulpus-theme="prune-velours"] .exam-card > *,
html[data-vulpus-theme="prune-velours"] .sub-card > *,
html[data-vulpus-theme="prune-velours"] .path-card > *,
html[data-vulpus-theme="prune-velours"] .roadmap-card > *,
html[data-vulpus-theme="prune-velours"] .theme-option-card > *,
html[data-vulpus-theme="prune-velours"] .qcm-domain-progress > *,
html[data-vulpus-theme="prune-velours"] .course-card > *,
html[data-vulpus-theme="prune-velours"] .domain-progress-overview > *,
html[data-vulpus-theme="prune-velours"] .domain-progress-metric > *,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="prune-velours"] .domain-banner {
  background: linear-gradient(145deg, rgba(255, 252, 253, 0.99), rgba(250, 241, 246, 0.98));
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(91, 42, 72, 0.075);
}

html[data-vulpus-theme="prune-velours"] .section-head h2,
html[data-vulpus-theme="prune-velours"] .course-group > h3 {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

html[data-vulpus-theme="prune-velours"] .section-head h2::before,
html[data-vulpus-theme="prune-velours"] .course-group > h3::before {
  background: var(--plum-flower-icon-image) center / 96px auto no-repeat;
  content: "";
  flex: 0 0 auto;
  height: 28px;
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
  width: 32px;
}

html[data-vulpus-theme="prune-velours"] .weight-box {
  background: linear-gradient(145deg, #fff6fa, #f8eaf1);
  border-color: #e9c7d6;
  box-shadow: 0 16px 38px rgba(91, 42, 72, 0.08);
  padding-left: clamp(18px, 7vw, 110px);
}

html[data-vulpus-theme="prune-velours"] .weight-box::after {
  background: var(--plum-info-sprig-image) center / 160px auto no-repeat;
  bottom: 10px;
  content: "";
  height: 82px;
  left: 10px;
  opacity: 0.74;
  pointer-events: none;
  position: absolute;
  user-select: none;
  width: 92px;
  z-index: 1;
}

html[data-vulpus-theme="prune-velours"] .weight-box .big,
html[data-vulpus-theme="prune-velours"] .metric .value,
html[data-vulpus-theme="prune-velours"] .series-progress-percent,
html[data-vulpus-theme="prune-velours"] .plan-price {
  color: var(--plum-primary);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-vulpus-theme="prune-velours"] .qcm-domain-progress {
  background: linear-gradient(145deg, #fffbfc 0%, #fbf1f6 100%);
  border-color: #e8c8d6;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(91, 42, 72, 0.065);
  padding-left: clamp(24px, 8vw, 126px);
  padding-right: clamp(24px, 20vw, 320px);
}

html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::before,
html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::after {
  content: "";
  pointer-events: none;
  position: absolute;
  user-select: none;
  z-index: 1;
}

html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::before {
  background: var(--plum-progress-left-flower-image) center / 230px auto no-repeat;
  bottom: -22px;
  height: 138px;
  left: -28px;
  opacity: 0.72;
  width: 128px;
}

html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::after {
  background: var(--plum-progress-right-branch-image) right center / 430px auto no-repeat;
  bottom: -42px;
  height: 170px;
  opacity: 0.5;
  right: -30px;
  width: clamp(230px, 25vw, 420px);
}

html[data-vulpus-theme="prune-velours"] .course-card {
  background: linear-gradient(160deg, #fffdfd 0%, #fff8fb 100%);
  border-color: #e8c8d6;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(91, 42, 72, 0.06);
  color: var(--plum-text);
}

html[data-vulpus-theme="prune-velours"] .course-card::after {
  background: var(--plum-course-1-flower-image) right top / 245px auto no-repeat;
  content: "";
  height: 120px;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  right: -18px;
  top: -18px;
  user-select: none;
  width: 122px;
  z-index: 1;
}

html[data-vulpus-theme="prune-velours"] .course-grid .course-card:nth-child(3n+2)::after {
  background-image: var(--plum-course-2-sprig-image);
  background-size: 250px auto;
  opacity: 0.7;
}

html[data-vulpus-theme="prune-velours"] .course-grid .course-card:nth-child(3n+3)::after {
  background-image: var(--plum-course-3-flower-image);
  background-size: 270px auto;
  height: 132px;
  opacity: 0.76;
  width: 132px;
}

html[data-vulpus-theme="prune-velours"] .course-card h4,
html[data-vulpus-theme="prune-velours"] .course-card > .pill:first-child {
  margin-right: 96px;
}

html[data-vulpus-theme="prune-velours"] .hero::after,
html[data-vulpus-theme="prune-velours"] .dashboard-hero::after,
html[data-vulpus-theme="prune-velours"] .pricing-hero::after,
html[data-vulpus-theme="prune-velours"] .v3-course-hero::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero::after,
html[data-vulpus-theme="prune-velours"] .v3-course-outline::after,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-side::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-main-head::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-section::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-question::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-inner::after,
html[data-vulpus-theme="prune-velours"] .card::after,
html[data-vulpus-theme="prune-velours"] .exam-card::after,
html[data-vulpus-theme="prune-velours"] .sub-card::after,
html[data-vulpus-theme="prune-velours"] .path-card::after,
html[data-vulpus-theme="prune-velours"] .roadmap-card::after,
html[data-vulpus-theme="prune-velours"] .theme-option-card::after,
html[data-vulpus-theme="prune-velours"] .domain-progress-overview::after,
html[data-vulpus-theme="prune-velours"] .domain-progress-metric::after,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation::after {
  content: "";
  pointer-events: none;
  position: absolute;
  user-select: none;
  z-index: 1;
}

html[data-vulpus-theme="prune-velours"] .v3-course-hero,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero {
  background: linear-gradient(145deg, rgba(255, 253, 253, 0.99), rgba(250, 241, 246, 0.98));
  border: 1px solid #e8c8d6;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(91, 42, 72, 0.075);
  padding: 28px;
}

html[data-vulpus-theme="prune-velours"] .v3-course-hero {
  align-items: start;
  display: grid;
  gap: 18px clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(430px, max-content);
  padding-right: 28px;
}

html[data-vulpus-theme="prune-velours"] .v3-course-actions {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  min-width: 0;
}

html[data-vulpus-theme="prune-velours"] .v3-course-actions .btn,
html[data-vulpus-theme="prune-velours"] .v3-course-actions .resource-mark-btn {
  min-height: 46px;
  white-space: nowrap;
}

html[data-vulpus-theme="prune-velours"] .v3-course-actions .vulpus-page-mark {
  grid-column: 1 / -1;
  justify-self: end;
}

html[data-vulpus-theme="prune-velours"] .v3-course-hero::after {
  background: var(--plum-progress-right-branch-image) right center / 420px auto no-repeat;
  bottom: -62px;
  height: 210px;
  opacity: 0.2;
  right: -72px;
  width: clamp(220px, 22vw, 380px);
}

html[data-vulpus-theme="prune-velours"] .v3-flash-hero::after {
  background: var(--plum-info-sprig-image) right center / 330px auto no-repeat;
  bottom: -38px;
  height: 170px;
  opacity: 0.42;
  right: -30px;
  width: clamp(220px, 24vw, 350px);
}

html[data-vulpus-theme="prune-velours"] .hero::after,
html[data-vulpus-theme="prune-velours"] .dashboard-hero::after,
html[data-vulpus-theme="prune-velours"] .pricing-hero::after {
  background: var(--plum-progress-right-branch-image) right bottom / 390px auto no-repeat;
  bottom: -54px;
  height: 170px;
  opacity: 0.18;
  right: -36px;
  width: clamp(220px, 24vw, 390px);
}

html[data-vulpus-theme="prune-velours"] .v3-course-outline,
html[data-vulpus-theme="prune-velours"] .v3-course-chapter,
html[data-vulpus-theme="prune-velours"] .v3-course-callout,
html[data-vulpus-theme="prune-velours"] .v3-course-example,
html[data-vulpus-theme="prune-velours"] .v3-course-empty {
  border-color: #e8c8d6;
}

html[data-vulpus-theme="prune-velours"] .v3-course-outline::after {
  background: var(--plum-progress-right-branch-image) right center / 360px auto no-repeat;
  bottom: -56px;
  height: 148px;
  opacity: 0.14;
  right: -36px;
  width: 330px;
}

html[data-vulpus-theme="prune-velours"] .v3-course-chapter::after {
  background: var(--plum-course-2-sprig-image) right top / 260px auto no-repeat;
  height: 112px;
  opacity: 0.15;
  right: -24px;
  top: -24px;
  width: 118px;
}

html[data-vulpus-theme="prune-velours"] .v3-course-main .v3-course-chapter:nth-child(3n+1)::after {
  background-image: var(--plum-course-1-flower-image);
  background-size: 250px auto;
  opacity: 0.18;
}

html[data-vulpus-theme="prune-velours"] .v3-course-main .v3-course-chapter:nth-child(3n+3)::after {
  background-image: var(--plum-course-3-flower-image);
  background-size: 270px auto;
  opacity: 0.18;
}

html[data-vulpus-theme="prune-velours"] .v3-course-callout,
html[data-vulpus-theme="prune-velours"] .v3-course-example {
  background: linear-gradient(145deg, #fffafa 0%, #fbf1f6 100%);
}

html[data-vulpus-theme="prune-velours"] .v3-course-callout strong,
html[data-vulpus-theme="prune-velours"] .v3-course-example strong,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-chapter > a,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-sections a,
html[data-vulpus-theme="prune-velours"] .v3-flash-chevron {
  color: var(--plum-primary);
}

html[data-vulpus-theme="prune-velours"] .v3-flash-side::after {
  background: var(--plum-sidebar-mid-flower-image) right bottom / 300px auto no-repeat;
  bottom: -48px;
  height: 190px;
  opacity: 0.13;
  right: -64px;
  width: 210px;
}

html[data-vulpus-theme="prune-velours"] .v3-flash-main-head::after {
  background: var(--plum-progress-right-branch-image) right center / 330px auto no-repeat;
  bottom: -42px;
  height: 136px;
  opacity: 0.16;
  right: -34px;
  width: 280px;
}

html[data-vulpus-theme="prune-velours"] .v3-flash-section::after {
  background: var(--plum-course-3-flower-image) right top / 250px auto no-repeat;
  height: 116px;
  opacity: 0.13;
  right: -24px;
  top: -24px;
  width: 120px;
}

html[data-vulpus-theme="prune-velours"] .v3-flash-question::after,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-inner::after {
  background: var(--plum-info-sprig-image) right bottom / 220px auto no-repeat;
  bottom: -44px;
  height: 120px;
  opacity: 0.1;
  right: -34px;
  width: 132px;
}

html[data-vulpus-theme="prune-velours"] .v3-flash-question,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer {
  background: linear-gradient(145deg, #fffdfd 0%, #fff8fb 100%);
}

html[data-vulpus-theme="prune-velours"] .v3-flash-question:hover {
  background: linear-gradient(145deg, #fff7fa 0%, #faedf3 100%);
}

html[data-vulpus-theme="prune-velours"] .v3-flash-question-label,
html[data-vulpus-theme="prune-velours"] .v3-flash-answer-title,
html[data-vulpus-theme="prune-velours"] .v3-flash-filters button,
html[data-vulpus-theme="prune-velours"] .v3-flash-nav button,
html[data-vulpus-theme="prune-velours"] .v3-course-outline-sections a {
  background: var(--plum-chip);
  border-color: var(--plum-chip-border);
  color: var(--plum-primary-deep);
}

html[data-vulpus-theme="prune-velours"] .v3-flash-filters button.active,
html[data-vulpus-theme="prune-velours"] .v3-flash-nav button.active {
  background: var(--plum-primary-gradient);
  border-color: var(--plum-primary-deep);
  color: var(--plum-text-on-dark);
}

html[data-vulpus-theme="prune-velours"] .card::after,
html[data-vulpus-theme="prune-velours"] .exam-card::after,
html[data-vulpus-theme="prune-velours"] .sub-card::after,
html[data-vulpus-theme="prune-velours"] .path-card::after,
html[data-vulpus-theme="prune-velours"] .roadmap-card::after,
html[data-vulpus-theme="prune-velours"] .theme-option-card::after,
html[data-vulpus-theme="prune-velours"] .domain-progress-metric::after {
  background: var(--plum-course-2-sprig-image) right top / 230px auto no-repeat;
  height: 104px;
  opacity: 0.12;
  right: -26px;
  top: -26px;
  width: 108px;
}

html[data-vulpus-theme="prune-velours"] .card:nth-of-type(3n+1)::after,
html[data-vulpus-theme="prune-velours"] .exam-card:nth-of-type(3n+1)::after,
html[data-vulpus-theme="prune-velours"] .sub-card:nth-of-type(3n+1)::after,
html[data-vulpus-theme="prune-velours"] .path-card:nth-of-type(3n+1)::after,
html[data-vulpus-theme="prune-velours"] .roadmap-card:nth-of-type(3n+1)::after {
  background-image: var(--plum-course-1-flower-image);
}

html[data-vulpus-theme="prune-velours"] .card:nth-of-type(3n+3)::after,
html[data-vulpus-theme="prune-velours"] .exam-card:nth-of-type(3n+3)::after,
html[data-vulpus-theme="prune-velours"] .sub-card:nth-of-type(3n+3)::after,
html[data-vulpus-theme="prune-velours"] .path-card:nth-of-type(3n+3)::after,
html[data-vulpus-theme="prune-velours"] .roadmap-card:nth-of-type(3n+3)::after {
  background-image: var(--plum-course-3-flower-image);
}

html[data-vulpus-theme="prune-velours"] .domain-progress-overview::after,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation::after {
  background: var(--plum-progress-right-branch-image) right center / 390px auto no-repeat;
  bottom: -58px;
  height: 150px;
  opacity: 0.16;
  right: -36px;
  width: 320px;
}

html[data-vulpus-theme="prune-velours"] .pill,
html[data-vulpus-theme="prune-velours"] .pill-blue,
html[data-vulpus-theme="prune-velours"] .pill-purple,
html[data-vulpus-theme="prune-velours"] .pill-green,
html[data-vulpus-theme="prune-velours"] .hero-badge,
html[data-vulpus-theme="prune-velours"] .v3-course-badge,
html[data-vulpus-theme="prune-velours"] .v3-flash-badge,
html[data-vulpus-theme="prune-velours"] .theme-active-mark,
html[data-vulpus-theme="prune-velours"] .plan-badge,
html[data-vulpus-theme="prune-velours"] .course-status-chip {
  background: var(--plum-chip);
  border: 1px solid var(--plum-chip-border);
  color: var(--plum-primary-deep);
}

html[data-vulpus-theme="prune-velours"] .pill-orange,
html[data-vulpus-theme="prune-velours"] .plan-badge.gold,
html[data-vulpus-theme="prune-velours"] .course-status-row .course-status-chip:first-child {
  background: var(--plum-warm-soft);
  border-color: #edc98d;
  color: #8a520e;
}

html[data-vulpus-theme="prune-velours"] .progress,
html[data-vulpus-theme="prune-velours"] .structure-bar,
html[data-vulpus-theme="prune-velours"] .structure-showcase.qe .structure-bar,
html[data-vulpus-theme="prune-velours"] .qcm-progress-bar,
html[data-vulpus-theme="prune-velours"] .domain-progress-track {
  background: var(--plum-progress-track);
  box-shadow: inset 0 1px 2px rgba(91, 42, 72, 0.08);
}

html[data-vulpus-theme="prune-velours"] .progress > div,
html[data-vulpus-theme="prune-velours"] .progress.purple > div,
html[data-vulpus-theme="prune-velours"] .structure-bar > div,
html[data-vulpus-theme="prune-velours"] .structure-showcase.qe .structure-bar > div,
html[data-vulpus-theme="prune-velours"] .qcm-progress-bar div,
html[data-vulpus-theme="prune-velours"] .domain-progress-track > div {
  background: var(--theme-progress-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 10px rgba(185, 111, 148, 0.1);
}

html[data-vulpus-theme="prune-velours"] .btn-primary,
html[data-vulpus-theme="prune-velours"] .btn-purple,
html[data-vulpus-theme="prune-velours"] .btn-green,
html[data-vulpus-theme="prune-velours"] .action-btn-course,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="prune-velours"] .domain-progress-btn,
html[data-vulpus-theme="prune-velours"] .offer-plan-essential .offer-cta.btn-primary,
html[data-vulpus-theme="prune-velours"] .offer-plan-essential .offer-cta.btn-purple {
  background: var(--plum-primary-gradient);
  border-color: var(--plum-primary-deep);
  box-shadow: var(--theme-primary-shadow);
  color: var(--plum-text-on-dark) !important;
  text-shadow: 0 1px 1px rgba(56, 18, 41, 0.2);
}

html[data-vulpus-theme="prune-velours"] .btn-primary *,
html[data-vulpus-theme="prune-velours"] .btn-purple *,
html[data-vulpus-theme="prune-velours"] .btn-green *,
html[data-vulpus-theme="prune-velours"] .action-btn-course *,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course *,
html[data-vulpus-theme="prune-velours"] .domain-progress-btn *,
html[data-vulpus-theme="prune-velours"] .offer-plan-essential .offer-cta.btn-primary *,
html[data-vulpus-theme="prune-velours"] .offer-plan-essential .offer-cta.btn-purple * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="prune-velours"] .btn-primary:hover,
html[data-vulpus-theme="prune-velours"] .btn-purple:hover,
html[data-vulpus-theme="prune-velours"] .btn-green:hover,
html[data-vulpus-theme="prune-velours"] .action-btn-course:hover,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="prune-velours"] .domain-progress-btn:hover {
  background: var(--plum-primary-gradient-hover);
  border-color: #79345e;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html[data-vulpus-theme="prune-velours"] .btn-primary:focus-visible,
html[data-vulpus-theme="prune-velours"] .btn-purple:focus-visible,
html[data-vulpus-theme="prune-velours"] .btn-green:focus-visible,
html[data-vulpus-theme="prune-velours"] .action-btn-course:focus-visible,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course:focus-visible,
html[data-vulpus-theme="prune-velours"] .domain-progress-btn:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

html[data-vulpus-theme="prune-velours"] .btn-outline,
html[data-vulpus-theme="prune-velours"] .btn-soft,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero .btn-course,
html[data-vulpus-theme="prune-velours"] .domain-mini-assessment-btn,
html[data-vulpus-theme="prune-velours"] .action-btn:not(.action-btn-course),
html[data-vulpus-theme="prune-velours"] .resource-mark-btn {
  background: rgba(255, 251, 252, 0.94);
  border-color: #e4c2d1;
  color: var(--plum-primary-deep);
}

html[data-vulpus-theme="prune-velours"] .btn-outline:hover,
html[data-vulpus-theme="prune-velours"] .btn-soft:hover,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero .btn-course:hover,
html[data-vulpus-theme="prune-velours"] .domain-mini-assessment-btn:hover,
html[data-vulpus-theme="prune-velours"] .action-btn:not(.action-btn-course):hover,
html[data-vulpus-theme="prune-velours"] .resource-mark-btn:hover,
html[data-vulpus-theme="prune-velours"] .theme-option-card:hover {
  background: #faedf3;
  border-color: #c990aa;
  color: var(--plum-primary-deep);
}

html[data-vulpus-theme="prune-velours"] a:not(.btn):not(.action-btn) {
  color: var(--plum-primary);
}

html[data-vulpus-theme="prune-velours"] .next-card {
  border-left-color: var(--plum-primary);
}

html[data-vulpus-theme="prune-velours"] .dot,
html[data-vulpus-theme="prune-velours"] .dot.purple,
html[data-vulpus-theme="prune-velours"] .check,
html[data-vulpus-theme="prune-velours"] .domain-progress-icon,
html[data-vulpus-theme="prune-velours"] .domain-progress-recommendation-icon {
  background: var(--plum-chip);
  color: var(--plum-primary);
}

html[data-vulpus-theme="prune-velours"] .domain-progress-page {
  --domain-progress-primary: var(--plum-primary);
  --domain-progress-primary-2: #b96f94;
  --domain-progress-teal: #9e6b88;
  --domain-progress-warning: var(--plum-warm-accent);
  --domain-progress-track: var(--plum-progress-track);
}

html[data-vulpus-theme="prune-velours"] .domain-progress-metric[data-tone="teal"] {
  --domain-progress-tone: #9d5d82;
  --domain-progress-tone-soft: #f5e7ef;
}

html[data-vulpus-theme="prune-velours"] .domain-progress-metric[data-tone="orange"] {
  --domain-progress-tone: var(--plum-warm-accent);
  --domain-progress-tone-soft: var(--plum-warm-soft);
}

html[data-vulpus-theme="prune-velours"] .answer-option.selected,
html[data-vulpus-theme="prune-velours"] .answer-option:hover {
  background: rgba(250, 237, 243, 0.72);
  border-color: #c990aa;
}

@media (max-width: 1000px) {
  html[data-vulpus-theme="prune-velours"] .v3-course-hero {
    display: block;
    padding-right: 28px;
  }

  html[data-vulpus-theme="prune-velours"] .v3-course-actions {
    justify-content: start;
    margin-top: 14px;
  }

  html[data-vulpus-theme="prune-velours"] .qcm-domain-progress {
    padding-left: 24px;
    padding-right: 24px;
  }

  html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::before {
    height: 112px;
    opacity: 0.45;
    width: 104px;
  }

  html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::after {
    height: 130px;
    opacity: 0.24;
    width: 220px;
  }

  html[data-vulpus-theme="prune-velours"] .course-card::after {
    height: 100px;
    opacity: 0.54;
    width: 100px;
  }
}

@media (max-width: 768px) {
  html[data-vulpus-theme="prune-velours"] .sidebar {
    background:
      var(--plum-sidebar-top-branch-image) right -46px top 70px / 230px auto no-repeat,
      var(--plum-sidebar-bottom-berries-image) right -54px bottom -24px / 280px auto no-repeat,
      linear-gradient(180deg, var(--plum-sidebar-top) 0%, var(--plum-sidebar-middle) 45%, var(--plum-sidebar-bottom) 100%);
  }

  html[data-vulpus-theme="prune-velours"] .weight-box {
    padding-left: 18px;
  }

  html[data-vulpus-theme="prune-velours"] .v3-course-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  html[data-vulpus-theme="prune-velours"] .v3-course-actions .btn,
  html[data-vulpus-theme="prune-velours"] .v3-course-actions .resource-mark-btn,
  html[data-vulpus-theme="prune-velours"] .v3-course-actions .vulpus-page-mark {
    justify-self: stretch;
    width: 100%;
  }

  html[data-vulpus-theme="prune-velours"] .weight-box::after,
  html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::after {
    display: none;
  }

  html[data-vulpus-theme="prune-velours"] .qcm-domain-progress::before {
    height: 86px;
    opacity: 0.32;
    width: 80px;
  }

  html[data-vulpus-theme="prune-velours"] .course-card::after {
    height: 82px;
    opacity: 0.36;
    width: 82px;
  }

  html[data-vulpus-theme="prune-velours"] .course-card h4,
  html[data-vulpus-theme="prune-velours"] .course-card > .pill:first-child {
    margin-right: 48px;
  }

html[data-vulpus-theme="prune-velours"] .section-head h2::before,
  html[data-vulpus-theme="prune-velours"] .course-group > h3::before {
    height: 22px;
    width: 24px;
  }
}

/* Cross-theme stability fixes: course pages, progress gauges and key action contrast. */
.v3-course-hero,
.v3-flash-hero {
  align-items: start;
  display: grid !important;
  gap: 20px 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.v3-course-hero > *,
.v3-flash-hero > * {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.v3-course-hero > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.v3-course-actions {
  grid-column: 2;
  grid-row: 1;
}

.v3-course-actions {
  align-content: flex-start;
  display: grid !important;
  gap: 10px;
  grid-template-columns: 1fr;
  justify-self: end;
  max-width: 360px;
  min-width: 0;
  width: min(100%, 360px);
}

.v3-flash-hero .v3-flash-badges {
  grid-column: 1;
  grid-row: 1;
}

.v3-flash-hero > div:not(.v3-flash-badges):not(.v3-flash-actions):not(.hero-actions) {
  grid-column: 1;
  grid-row: 2;
}

.v3-flash-actions,
.v3-flash-hero .hero-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.v3-flash-actions,
.v3-flash-hero .hero-actions {
  align-content: flex-start;
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
  max-width: 720px;
  min-width: 0;
}

.v3-course-actions .btn,
.v3-course-actions .resource-mark-btn,
.v3-course-actions .vulpus-page-mark,
.v3-flash-actions .btn,
.v3-flash-actions .resource-mark-btn,
.v3-flash-actions .vulpus-page-mark,
.v3-flash-hero .hero-actions .btn,
.v3-flash-hero .hero-actions .resource-mark-btn,
.v3-flash-hero .hero-actions .vulpus-page-mark {
  flex: 0 0 auto;
  min-height: 46px;
  text-align: center;
  white-space: normal;
}

.v3-course-actions .vulpus-page-mark,
.v3-course-actions .resource-mark-btn:last-child,
.v3-flash-actions .vulpus-page-mark,
.v3-flash-actions .resource-mark-btn:last-child,
.v3-flash-hero .hero-actions .vulpus-page-mark,
.v3-flash-hero .hero-actions .resource-mark-btn:last-child {
  display: inline-flex;
  justify-self: auto;
}

/* Route guard: the circular progress gauges belong only to the dedicated domain progress page. */
#course-content .qcm-domain-progress,
#course-content .domain-progress-page,
#course-content .domain-progress-overview,
#course-content .domain-progress-metric-grid,
#course-content .domain-progress-metric,
#course-content .domain-progress-gauge,
#flashcards .qcm-domain-progress,
#flashcards .domain-progress-page,
#flashcards .domain-progress-overview,
#flashcards .domain-progress-metric-grid,
#flashcards .domain-progress-metric,
#flashcards .domain-progress-gauge {
  display: none !important;
}

html[data-vulpus-theme] .action-btn-course,
html[data-vulpus-theme] .action-btn.action-btn-course,
html[data-vulpus-theme] .action-btn.action-btn-course.is-complete {
  background: linear-gradient(180deg, #2f64bb 0%, #1f4f9f 100%) !important;
  border-color: #1f4f9f !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(31, 79, 159, 0.18) !important;
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.22);
}

html[data-vulpus-theme] .action-btn-course *,
html[data-vulpus-theme] .action-btn.action-btn-course *,
html[data-vulpus-theme] .action-btn.action-btn-course.is-complete * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme] .action-btn-course:hover,
html[data-vulpus-theme] .action-btn.action-btn-course:hover {
  background: linear-gradient(180deg, #3574d6 0%, #2558ad 100%) !important;
  border-color: #2558ad !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html[data-vulpus-theme] .action-btn-course:focus-visible,
html[data-vulpus-theme] .action-btn.action-btn-course:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

html[data-vulpus-theme] .resource-mark-btn,
html[data-vulpus-theme] .vulpus-page-mark {
  background: #fff7ed !important;
  border-color: #f3c77a !important;
  color: #92400e !important;
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.08);
}

html[data-vulpus-theme] .resource-mark-btn:hover,
html[data-vulpus-theme] .vulpus-page-mark:hover {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #78350f !important;
}

html[data-vulpus-theme] .resource-mark-btn *,
html[data-vulpus-theme] .vulpus-page-mark * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course.is-complete {
  background: var(--sage-primary-gradient) !important;
  border-color: #466846 !important;
  color: var(--sage-on-dark) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(58, 85, 58, 0.17) !important;
  text-shadow: 0 1px 1px rgba(37, 51, 38, 0.18);
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course *,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course *,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course.is-complete * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course:hover,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course:hover {
  background: var(--sage-primary-gradient-hover) !important;
  border-color: #507650 !important;
  color: #ffffff !important;
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course:focus-visible,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

html[data-vulpus-theme] .action-btn-course,
html[data-vulpus-theme] .action-btn.action-btn-course,
html[data-vulpus-theme] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme] .v3-flash-hero .btn-course {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--border, #dbe5f0) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
  color: var(--text, #0f172a) !important;
  text-shadow: none !important;
}

html[data-vulpus-theme] .action-btn-course *,
html[data-vulpus-theme] .action-btn.action-btn-course *,
html[data-vulpus-theme] .action-btn.action-btn-course.is-complete *,
html[data-vulpus-theme] .v3-flash-hero .btn-course * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme] .action-btn-course:hover,
html[data-vulpus-theme] .action-btn.action-btn-course:hover,
html[data-vulpus-theme] .v3-flash-hero .btn-course:hover {
  background: var(--theme-hover-soft, #f8fafc) !important;
  border-color: color-mix(in srgb, var(--theme-focus, #2d7ff9) 32%, var(--border, #dbe5f0)) !important;
  color: var(--text, #0f172a) !important;
  transform: translateY(-1px);
}

html[data-vulpus-theme="bleu-ardoise"] .action-btn-course,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="bleu-ardoise"] .v3-flash-hero .btn-course {
  background: #ffffff !important;
  border-color: #cbdcf3 !important;
  color: #1f314f !important;
}

html[data-vulpus-theme="bleu-ardoise"] .action-btn-course:hover,
html[data-vulpus-theme="bleu-ardoise"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="bleu-ardoise"] .v3-flash-hero .btn-course:hover {
  background: #f6f9ff !important;
  border-color: #94b7e4 !important;
  color: #162a48 !important;
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero .btn-course {
  background: rgba(252, 253, 249, 0.94) !important;
  border-color: #bfcfb8 !important;
  color: #3f5f42 !important;
}

html[data-vulpus-theme="vert-sauge"] .action-btn-course:hover,
html[data-vulpus-theme="vert-sauge"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="vert-sauge"] .v3-flash-hero .btn-course:hover {
  background: #eef4e9 !important;
  border-color: #8ea886 !important;
  color: var(--sage-green-900) !important;
}

html[data-vulpus-theme="dore"] .action-btn-course,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="dore"] .v3-flash-hero .btn-course {
  background: rgba(255, 250, 240, 0.94) !important;
  border-color: #d8b45a !important;
  color: #6f4d08 !important;
}

html[data-vulpus-theme="dore"] .action-btn-course:hover,
html[data-vulpus-theme="dore"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="dore"] .v3-flash-hero .btn-course:hover {
  background: #fff4d8 !important;
  border-color: #bd8715 !important;
  color: #5e3d04 !important;
}

html[data-vulpus-theme="terracotta"] .action-btn-course,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="terracotta"] .v3-flash-hero .btn-course {
  background: rgba(255, 249, 246, 0.94) !important;
  border-color: #e5b8a4 !important;
  color: #7c3e2a !important;
}

html[data-vulpus-theme="terracotta"] .action-btn-course:hover,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="terracotta"] .v3-flash-hero .btn-course:hover {
  background: #fff0e8 !important;
  border-color: #ca7456 !important;
  color: #6a321f !important;
}

html[data-vulpus-theme="prune-velours"] .action-btn-course,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course.is-complete,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero .btn-course {
  background: rgba(255, 248, 251, 0.94) !important;
  border-color: #e8bfd0 !important;
  color: #6d2f52 !important;
}

html[data-vulpus-theme="prune-velours"] .action-btn-course:hover,
html[data-vulpus-theme="prune-velours"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="prune-velours"] .v3-flash-hero .btn-course:hover {
  background: #fff0f6 !important;
  border-color: #c990aa !important;
  color: #54223f !important;
}

html[data-vulpus-theme] .action-btn-course .status-star,
html[data-vulpus-theme] .action-btn.action-btn-course .status-star,
html[data-vulpus-theme] .action-btn.action-btn-course.is-complete .status-star,
html[data-vulpus-theme] .v3-flash-hero .btn-course .status-star {
  color: #d97706 !important;
  fill: currentColor;
  stroke: currentColor;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.status-star {
  color: #d97706;
  display: inline-flex;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.foundation-status-star-after {
  margin-left: 6px;
  margin-right: 0;
}

.foundation-progress-meter {
  display: grid;
  gap: 6px;
  margin: 10px 0 8px;
  min-width: 0;
  width: 100%;
}

.foundation-progress-meter-head {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.foundation-progress-percent {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.foundation-progress-bar {
  height: 8px;
  margin: 0;
  width: 100%;
}

.route-card .action-btn {
  align-items: center;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  min-height: 42px;
  text-align: left;
  width: 100%;
}

.route-card .action-btn > span:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.route-card .action-btn > span:last-child {
  justify-self: end;
}

html[data-vulpus-theme="dore"] .domain-progress-page {
  --domain-progress-track: #f1e7ca;
  --domain-progress-teal: #a17616;
}

html[data-vulpus-theme="dore"] .domain-progress-gauge {
  background: conic-gradient(var(--domain-progress-tone) calc(var(--value, 0) * 1%), #f1e7ca 0);
  box-shadow: inset 0 0 0 1px rgba(156, 113, 31, 0.08);
}

html[data-vulpus-theme="dore"] .domain-progress-gauge::after {
  background: #fffaf0;
}

@media (max-width: 1000px) {
  .v3-course-hero,
  .v3-flash-hero {
    grid-template-columns: 1fr;
  }

  .v3-course-actions,
  .v3-flash-actions,
  .v3-flash-hero .hero-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    justify-self: start;
    margin-top: 14px;
    max-width: none;
    width: 100%;
  }

  .v3-course-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .v3-course-actions,
  .v3-flash-actions,
  .v3-flash-hero .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .v3-course-actions .btn,
  .v3-course-actions .resource-mark-btn,
  .v3-course-actions .vulpus-page-mark,
  .v3-flash-actions .btn,
  .v3-flash-actions .resource-mark-btn,
  .v3-flash-actions .vulpus-page-mark,
  .v3-flash-hero .hero-actions .btn,
  .v3-flash-hero .hero-actions .resource-mark-btn,
  .v3-flash-hero .hero-actions .vulpus-page-mark {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 860px) {
  html[data-vulpus-theme] body:not(.vulpus-mcq-reader) .sidebar {
    height: 100vh;
    left: -305px;
    position: fixed;
    top: 0;
    width: 300px;
    z-index: 60;
  }

  html[data-vulpus-theme] body:not(.vulpus-mcq-reader) .sidebar.open {
    left: 0;
  }

  html[data-vulpus-theme] body:not(.vulpus-mcq-reader) .topbar {
    align-items: center;
    display: grid;
    gap: 8px 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 68px;
    padding: 10px 12px;
  }

  html[data-vulpus-theme] .topbar .mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  html[data-vulpus-theme] .topbar .language-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  html[data-vulpus-theme] .topbar .vulpus-trace-topbar-chip {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  html[data-vulpus-theme] .topbar .vulpus-trace-topbar-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-vulpus-theme] .topbar .vulpus-trace-topbar-chip small {
    display: none;
  }

  html[data-vulpus-theme] .topbar-left-area {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    width: 100%;
  }

  html[data-vulpus-theme] .topbar-left-area > div:last-child {
    min-width: 0;
  }
}

/* Terracotta reference theme, scoped to avoid touching other visual themes. */
html[data-vulpus-theme="terracotta"] body {
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 113, 78, 0.1), transparent 30%),
    radial-gradient(circle at 90% 72%, rgba(225, 172, 140, 0.11), transparent 28%),
    linear-gradient(135deg, #fcf8f4 0%, #f8f0ea 54%, #fff9f5 100%);
  color: var(--terracotta-text);
}

html[data-vulpus-theme="terracotta"] .main {
  background:
    radial-gradient(circle at 18% 16%, rgba(199, 113, 78, 0.08), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(225, 172, 140, 0.1), transparent 30%),
    linear-gradient(135deg, #fcf8f4 0%, #f8f0ea 54%, #fff9f5 100%);
  min-width: 0;
  overflow-x: clip;
  position: relative;
}

html[data-vulpus-theme="terracotta"] .domain-banner h2,
html[data-vulpus-theme="terracotta"] .section-head h2,
html[data-vulpus-theme="terracotta"] .course-group h3,
html[data-vulpus-theme="terracotta"] .course-card h4,
html[data-vulpus-theme="terracotta"] .qcm-domain-progress h3,
html[data-vulpus-theme="terracotta"] .domain-progress-page h1,
html[data-vulpus-theme="terracotta"] .domain-progress-page h2,
html[data-vulpus-theme="terracotta"] .domain-progress-page h3,
html[data-vulpus-theme="terracotta"] .v3-course-hero h1,
html[data-vulpus-theme="terracotta"] .v3-course-hero h2,
html[data-vulpus-theme="terracotta"] .v3-flash-hero h1,
html[data-vulpus-theme="terracotta"] .v3-flash-hero h2,
html[data-vulpus-theme="terracotta"] .card h3 {
  color: var(--terracotta-text-strong);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

html[data-vulpus-theme="terracotta"] .topbar p,
html[data-vulpus-theme="terracotta"] .muted,
html[data-vulpus-theme="terracotta"] .section-head p,
html[data-vulpus-theme="terracotta"] .domain-banner p,
html[data-vulpus-theme="terracotta"] .hero p,
html[data-vulpus-theme="terracotta"] .plan-subtitle,
html[data-vulpus-theme="terracotta"] .theme-option-copy,
html[data-vulpus-theme="terracotta"] .domain-progress-header p {
  color: var(--terracotta-text-muted);
}

html[data-vulpus-theme="terracotta"] .sidebar {
  background:
    var(--terracotta-sidebar-top-branch-image) right -18px top 90px / 145px auto no-repeat,
    var(--terracotta-sidebar-main-flower-image) right -20px top 330px / 170px auto no-repeat,
    var(--terracotta-sidebar-bottom-flower-image) right -14px bottom -12px / 175px auto no-repeat,
    radial-gradient(circle at 85% 14%, rgba(246, 172, 119, 0.15), transparent 28%),
    linear-gradient(180deg, var(--terracotta-sidebar-top) 0%, var(--terracotta-sidebar-middle) 42%, #8b3b2a 72%, var(--terracotta-sidebar-bottom) 100%);
  box-shadow: 16px 0 44px rgba(88, 37, 22, 0.16);
  color: var(--terracotta-text-on-dark);
  isolation: isolate;
  overflow: hidden auto;
  position: sticky;
}

html[data-vulpus-theme="terracotta"] .sidebar > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="terracotta"] .brand-logo,
html[data-vulpus-theme="terracotta"] .topbar-mini-logo {
  background: var(--terracotta-primary-gradient);
  border: 1px solid rgba(255, 244, 238, 0.42);
  box-shadow: 0 12px 28px rgba(115, 52, 35, 0.24);
}

html[data-vulpus-theme="terracotta"] .brand-logo img,
html[data-vulpus-theme="terracotta"] .topbar-mini-logo img {
  filter: brightness(0) invert(1);
}

html[data-vulpus-theme="terracotta"] .brand-subtitle,
html[data-vulpus-theme="terracotta"] .nav-label {
  color: rgba(255, 244, 238, 0.78);
}

html[data-vulpus-theme="terracotta"] .nav-btn {
  color: #fff7f2;
}

html[data-vulpus-theme="terracotta"] .nav-btn:hover {
  background: rgba(255, 226, 208, 0.13);
}

html[data-vulpus-theme="terracotta"] .nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 226, 208, 0.2), rgba(244, 167, 123, 0.14));
  border: 1px solid rgba(255, 225, 207, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 5px 14px rgba(74, 28, 16, 0.14);
  color: #ffffff;
}

html[data-vulpus-theme="terracotta"] .nav-icon {
  background: rgba(255, 235, 224, 0.17);
  color: #fff9f5;
}

html[data-vulpus-theme="terracotta"] .subnav {
  border-left-color: rgba(255, 233, 220, 0.25);
}

html[data-vulpus-theme="terracotta"] .topbar,
html[data-vulpus-theme="terracotta"] .mcq-topbar {
  background: rgba(255, 252, 249, 0.96);
  border-bottom-color: #ebcfc2;
  box-shadow: 0 4px 14px rgba(107, 52, 31, 0.045);
}

html[data-vulpus-theme="terracotta"] .topbar h1 {
  color: var(--terracotta-text-strong);
}

html[data-vulpus-theme="terracotta"] .user-chip,
html[data-vulpus-theme="terracotta"] .language-switcher,
html[data-vulpus-theme="terracotta"] .vulpus-trace-topbar-chip,
html[data-vulpus-theme="terracotta"] .sidebar-floating-hide,
html[data-vulpus-theme="terracotta"] .sidebar-restore {
  background: rgba(255, 252, 249, 0.96);
  border-color: #ebcfc2;
  color: var(--terracotta-text);
  box-shadow: 0 9px 22px rgba(115, 52, 35, 0.08);
}

html[data-vulpus-theme="terracotta"] .language-switcher button.active,
html[data-vulpus-theme="terracotta"] .lang-btn.active {
  background: var(--terracotta-primary-gradient);
  color: #ffffff;
}

html[data-vulpus-theme="terracotta"] .vulpus-trace-topbar-chip strong {
  color: var(--terracotta-primary-dark);
}

html[data-vulpus-theme="terracotta"] .domain-banner,
html[data-vulpus-theme="terracotta"] .hero,
html[data-vulpus-theme="terracotta"] .dashboard-hero,
html[data-vulpus-theme="terracotta"] .pricing-hero,
html[data-vulpus-theme="terracotta"] .domain-hero,
html[data-vulpus-theme="terracotta"] .v3-course-hero,
html[data-vulpus-theme="terracotta"] .v3-flash-hero,
html[data-vulpus-theme="terracotta"] .qcm-domain-progress,
html[data-vulpus-theme="terracotta"] .card,
html[data-vulpus-theme="terracotta"] .course-card,
html[data-vulpus-theme="terracotta"] .exam-card,
html[data-vulpus-theme="terracotta"] .sub-card,
html[data-vulpus-theme="terracotta"] .path-card,
html[data-vulpus-theme="terracotta"] .roadmap-card,
html[data-vulpus-theme="terracotta"] .theme-option-card,
html[data-vulpus-theme="terracotta"] .modal,
html[data-vulpus-theme="terracotta"] .question-box,
html[data-vulpus-theme="terracotta"] .answer-option,
html[data-vulpus-theme="terracotta"] .domain-progress-overview,
html[data-vulpus-theme="terracotta"] .domain-progress-metric,
html[data-vulpus-theme="terracotta"] .domain-progress-recommendation {
  background: linear-gradient(145deg, rgba(255, 253, 251, 0.99), rgba(252, 244, 238, 0.97));
  border-color: var(--terracotta-border);
  box-shadow: 0 12px 30px rgba(108, 54, 32, 0.08);
  color: var(--terracotta-text);
}

html[data-vulpus-theme="terracotta"] .domain-banner,
html[data-vulpus-theme="terracotta"] .hero,
html[data-vulpus-theme="terracotta"] .dashboard-hero,
html[data-vulpus-theme="terracotta"] .pricing-hero,
html[data-vulpus-theme="terracotta"] .weight-box,
html[data-vulpus-theme="terracotta"] .v3-course-hero,
html[data-vulpus-theme="terracotta"] .v3-flash-hero,
html[data-vulpus-theme="terracotta"] .qcm-domain-progress,
html[data-vulpus-theme="terracotta"] .course-card,
html[data-vulpus-theme="terracotta"] .domain-progress-overview,
html[data-vulpus-theme="terracotta"] .domain-progress-metric,
html[data-vulpus-theme="terracotta"] .domain-progress-recommendation {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

html[data-vulpus-theme="terracotta"] .domain-banner > *,
html[data-vulpus-theme="terracotta"] .hero > *,
html[data-vulpus-theme="terracotta"] .dashboard-hero > *,
html[data-vulpus-theme="terracotta"] .pricing-hero > *,
html[data-vulpus-theme="terracotta"] .weight-box > *,
html[data-vulpus-theme="terracotta"] .v3-course-hero > *,
html[data-vulpus-theme="terracotta"] .v3-flash-hero > *,
html[data-vulpus-theme="terracotta"] .qcm-domain-progress > *,
html[data-vulpus-theme="terracotta"] .course-card > *,
html[data-vulpus-theme="terracotta"] .domain-progress-overview > *,
html[data-vulpus-theme="terracotta"] .domain-progress-metric > *,
html[data-vulpus-theme="terracotta"] .domain-progress-recommendation > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme="terracotta"] .domain-banner {
  border-radius: 22px;
  min-height: 304px;
}

html[data-vulpus-theme="terracotta"] .domain-banner > div:first-child {
  padding-right: clamp(20rem, 31vw, 37rem);
}

html[data-vulpus-theme="terracotta"] .domain-banner::before {
  aspect-ratio: 16 / 10;
  background: var(--terracotta-hero-pottery-image) center / contain no-repeat;
  bottom: -28px;
  content: "";
  opacity: 0.88;
  pointer-events: none;
  position: absolute;
  right: clamp(245px, 18vw, 335px);
  user-select: none;
  width: clamp(300px, 27vw, 430px);
  z-index: 1;
}

html[data-vulpus-theme="terracotta"] .hero-badge,
html[data-vulpus-theme="terracotta"] .v3-course-badge,
html[data-vulpus-theme="terracotta"] .v3-flash-badge,
html[data-vulpus-theme="terracotta"] .pill,
html[data-vulpus-theme="terracotta"] .course-status-chip {
  background: var(--terracotta-chip);
  border: 1px solid var(--terracotta-chip-border);
  color: var(--terracotta-primary-dark);
}

html[data-vulpus-theme="terracotta"] .pill-blue {
  background: linear-gradient(90deg, #fcece4, #f7e2d8);
  border-color: #edd0c2;
  color: #9a432d;
}

html[data-vulpus-theme="terracotta"] .pill-orange,
html[data-vulpus-theme="terracotta"] .course-status-chip.is-active {
  background: #fff6ea;
  border-color: #e4bc87;
  color: #9b5714;
}

html[data-vulpus-theme="terracotta"] .btn-primary,
html[data-vulpus-theme="terracotta"] .domain-progress-btn,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course,
html[data-vulpus-theme="terracotta"] .action-btn-course,
html[data-vulpus-theme="terracotta"] .v3-flash-hero .btn-course {
  background: var(--terracotta-primary-gradient) !important;
  border: 1px solid #a3472e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 15px rgba(120, 53, 31, 0.19) !important;
  color: #ffffff !important;
}

html[data-vulpus-theme="terracotta"] .btn-primary:hover,
html[data-vulpus-theme="terracotta"] .domain-progress-btn:hover,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course:hover,
html[data-vulpus-theme="terracotta"] .action-btn-course:hover,
html[data-vulpus-theme="terracotta"] .v3-flash-hero .btn-course:hover {
  background: var(--terracotta-primary-gradient-hover) !important;
  border-color: #9f422b !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html[data-vulpus-theme="terracotta"] .btn-primary *,
html[data-vulpus-theme="terracotta"] .domain-progress-btn *,
html[data-vulpus-theme="terracotta"] .action-btn.action-btn-course *,
html[data-vulpus-theme="terracotta"] .action-btn-course *,
html[data-vulpus-theme="terracotta"] .v3-flash-hero .btn-course * {
  color: inherit !important;
  fill: currentColor;
  stroke: currentColor;
}

html[data-vulpus-theme="terracotta"] .btn-outline,
html[data-vulpus-theme="terracotta"] .btn-soft,
html[data-vulpus-theme="terracotta"] .resource-mark-btn,
html[data-vulpus-theme="terracotta"] .vulpus-page-mark,
html[data-vulpus-theme="terracotta"] .action-btn {
  background: rgba(255, 252, 249, 0.96);
  border-color: #e2ae93;
  color: #8c3f2b;
}

html[data-vulpus-theme="terracotta"] .btn-outline:hover,
html[data-vulpus-theme="terracotta"] .btn-soft:hover,
html[data-vulpus-theme="terracotta"] .resource-mark-btn:hover,
html[data-vulpus-theme="terracotta"] .vulpus-page-mark:hover,
html[data-vulpus-theme="terracotta"] .action-btn:hover {
  background: #fcede5;
  border-color: #c87852;
  color: #733423;
}

html[data-vulpus-theme="terracotta"] .weight-box {
  background: linear-gradient(145deg, #fff9f5 0%, #f9e9e0 100%);
  border-color: #e6bca8;
  border-radius: 19px;
  min-height: 210px;
}

html[data-vulpus-theme="terracotta"] .weight-box::after {
  background: var(--terracotta-weighting-sprig-image) center / contain no-repeat;
  bottom: -4px;
  content: "";
  height: 92px;
  opacity: 0.66;
  pointer-events: none;
  position: absolute;
  right: 8px;
  user-select: none;
  width: 76px;
  z-index: 1;
}

html[data-vulpus-theme="terracotta"] .weight-box .big {
  color: #b84e2e;
}

html[data-vulpus-theme="terracotta"] .progress {
  background: var(--terracotta-progress-track);
}

html[data-vulpus-theme="terracotta"] .progress > div,
html[data-vulpus-theme="terracotta"] .weight-box .progress > div,
html[data-vulpus-theme="terracotta"] .qcm-domain-progress .progress > div {
  background: linear-gradient(90deg, #b94f2f, #d2724e);
}

html[data-vulpus-theme="terracotta"] .qcm-domain-progress {
  background: linear-gradient(145deg, #fffdfc 0%, #fcf4ee 100%);
  border-color: #e9c9ba;
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(102, 52, 32, 0.055);
  padding-right: clamp(24px, 22vw, 340px);
}

html[data-vulpus-theme="terracotta"] .qcm-domain-progress::after {
  background: var(--terracotta-progress-branch-image) right bottom / contain no-repeat;
  bottom: -14px;
  content: "";
  height: 158px;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
  right: 0;
  user-select: none;
  width: clamp(240px, 25vw, 360px);
  z-index: 1;
}

html[data-vulpus-theme="terracotta"] .course-card {
  background: linear-gradient(155deg, #fffdfc 0%, #fcf5f0 100%);
  border-color: #eacbbb;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(101, 54, 35, 0.06);
  color: var(--terracotta-text);
  padding-right: clamp(18px, 7vw, 116px);
}

html[data-vulpus-theme="terracotta"] .course-card::after {
  background: var(--terracotta-course-1-flower-image) right top / contain no-repeat;
  content: "";
  height: 116px;
  opacity: 0.78;
  pointer-events: none;
  position: absolute;
  right: -6px;
  top: 5px;
  user-select: none;
  width: 102px;
  z-index: 1;
}

html[data-vulpus-theme="terracotta"] .course-grid .course-card:nth-child(3n+2)::after {
  background-image: var(--terracotta-course-2-leaves-image);
  opacity: 0.76;
  right: -3px;
  top: 5px;
  width: 96px;
}

html[data-vulpus-theme="terracotta"] .course-grid .course-card:nth-child(3n+3)::after {
  background-image: var(--terracotta-course-3-vase-image);
  opacity: 0.84;
  right: -4px;
  top: 6px;
  width: 104px;
}

html[data-vulpus-theme="terracotta"] .course-card h4,
html[data-vulpus-theme="terracotta"] .course-card > .pill:first-child {
  margin-right: 86px;
}

html[data-vulpus-theme="terracotta"] .section-head h2,
html[data-vulpus-theme="terracotta"] .course-group > h3 {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

html[data-vulpus-theme="terracotta"] .section-head h2::before,
html[data-vulpus-theme="terracotta"] .course-group:first-of-type > h3::before {
  background: var(--terracotta-small-accent-image) center / contain no-repeat;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 28px;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  width: 42px;
}

html[data-vulpus-theme="terracotta"] .course-group:not(:first-of-type) > h3::before {
  content: none;
}

html[data-vulpus-theme="terracotta"] .theme-option-card.is-active,
html[data-vulpus-theme="terracotta"] .answer-option.selected {
  background: #fff3ed;
  border-color: var(--terracotta-primary);
}

html[data-vulpus-theme="terracotta"] .answer-option.correct {
  border-color: #b7791f;
}

html[data-vulpus-theme="terracotta"] .answer-option.wrong {
  border-color: #b84e2e;
}

html[data-vulpus-theme="terracotta"] a:focus-visible,
html[data-vulpus-theme="terracotta"] button:focus-visible,
html[data-vulpus-theme="terracotta"] input:focus-visible,
html[data-vulpus-theme="terracotta"] select:focus-visible,
html[data-vulpus-theme="terracotta"] textarea:focus-visible,
html[data-vulpus-theme="terracotta"] .answer-option:focus-visible,
html[data-vulpus-theme="terracotta"] .theme-option-card:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  html[data-vulpus-theme="terracotta"] .domain-banner {
    min-height: 0;
  }

  html[data-vulpus-theme="terracotta"] .domain-banner > div:first-child {
    padding-right: clamp(12rem, 38vw, 28rem);
  }

  html[data-vulpus-theme="terracotta"] .domain-banner::before {
    bottom: 0;
    right: clamp(1rem, 12vw, 8rem);
    width: clamp(220px, 34vw, 340px);
  }
}

@media (max-width: 900px) {
  html[data-vulpus-theme="terracotta"] .sidebar {
    background:
      var(--terracotta-sidebar-top-branch-image) right -26px top 82px / 120px auto no-repeat,
      var(--terracotta-sidebar-main-flower-image) right -36px top 314px / 138px auto no-repeat,
      var(--terracotta-sidebar-bottom-flower-image) right -28px bottom -18px / 142px auto no-repeat,
      radial-gradient(circle at 85% 14%, rgba(246, 172, 119, 0.15), transparent 28%),
      linear-gradient(180deg, var(--terracotta-sidebar-top) 0%, var(--terracotta-sidebar-middle) 42%, #8b3b2a 72%, var(--terracotta-sidebar-bottom) 100%);
  }

  html[data-vulpus-theme="terracotta"] .qcm-domain-progress {
    padding-right: clamp(24px, 16vw, 220px);
  }

  html[data-vulpus-theme="terracotta"] .qcm-domain-progress::after {
    height: 126px;
    opacity: 0.32;
    width: 230px;
  }
}

@media (max-width: 860px) {
  html[data-vulpus-theme="terracotta"] body:not(.vulpus-mcq-reader) .sidebar {
    height: 100vh;
    left: -305px;
    position: fixed;
    top: 0;
    width: 300px;
    z-index: 60;
  }

  html[data-vulpus-theme="terracotta"] body:not(.vulpus-mcq-reader) .sidebar.open {
    left: 0;
  }
}

@media (max-width: 700px) {
  html[data-vulpus-theme="terracotta"] .domain-banner > div:first-child {
    padding-right: 0;
  }

  html[data-vulpus-theme="terracotta"] .domain-banner::before,
  html[data-vulpus-theme="terracotta"] .qcm-domain-progress::after {
    display: none;
  }

  html[data-vulpus-theme="terracotta"] .course-card {
    padding-right: 78px;
  }

  html[data-vulpus-theme="terracotta"] .course-card::after {
    height: 78px;
    opacity: 0.58;
    width: 72px;
  }

  html[data-vulpus-theme="terracotta"] .course-card h4,
  html[data-vulpus-theme="terracotta"] .course-card > .pill:first-child {
    margin-right: 46px;
  }

  html[data-vulpus-theme="terracotta"] .section-head h2::before,
  html[data-vulpus-theme="terracotta"] .course-group:first-of-type > h3::before {
    height: 22px;
    width: 30px;
  }
}

/* 2026-08-04: keep EE/QE progress cards visually homogeneous in every theme. */
.legal-note-link {
  color: var(--blue, #1f4f9f);
  font-weight: 950;
  margin-left: 1px;
  text-decoration: none;
  vertical-align: super;
}

.legal-note-link:hover,
.legal-note-link:focus-visible {
  text-decoration: underline;
}

.hero-badge .legal-note-link {
  margin-left: 0;
  margin-right: 3px;
}

.legal-disclaimer {
  scroll-margin-top: 96px;
}

.auth-shell-v3 {
  grid-template-columns: minmax(320px, 0.84fr) minmax(520px, 1.16fr);
}

.auth-card--primary {
  position: sticky;
  top: 96px;
}

.site-sidebar-close { display: none; }
@media (max-width: 860px) {
  .site-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 12px auto;
    padding: 0;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
  }
}

.auth-actions {
  align-items: center;
}

.auth-form-status {
  background: var(--blue-soft, #eaf2ff);
  border: 1px solid var(--border, #dbe5f0);
  border-radius: 14px;
  color: var(--blue, #1f4f9f);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 14px;
  padding: 10px 12px;
}

.auth-form-status[data-status="success"] {
  background: var(--green-soft, #e8f7ef);
  color: var(--green, #15803d);
}

.auth-form-status[data-status="error"] {
  background: var(--red-soft, #fdecec);
  color: var(--red, #b91c1c);
}

.auth-form-status[data-status="busy"] {
  background: var(--orange-soft, #fff1e6);
  color: #9a5b00;
}

.auth-field input,
.auth-field select {
  min-height: 46px;
}

.auth-field select {
  cursor: pointer;
}

.auth-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qcm-progress-grid .next-card,
#dashboard .next-card {
  border-left-color: var(--blue, #1f4f9f) !important;
}

.qcm-progress-grid .progress.purple > div,
#dashboard .progress.purple > div,
.domain-banner .progress.purple > div,
.structure-showcase.qe .structure-bar > div {
  background: var(--theme-progress-fill, linear-gradient(90deg, var(--blue, #1f4f9f), var(--blue-2, #2d7ff9))) !important;
}

.domain-banner .weight-box.purple,
.weight-box.purple {
  background: linear-gradient(135deg, var(--blue-soft, #eaf2ff), var(--panel-soft, #f8fbff)) !important;
  border-color: var(--border, #dbe5f0) !important;
}

.domain-banner .weight-box.purple .big,
.weight-box.purple .big,
.structure-showcase.qe .structure-percent {
  color: var(--blue, #1f4f9f) !important;
}

.domain-banner .weight-box.purple .pill-purple,
.qcm-progress-grid .pill-purple,
#dashboard .pill-purple,
.structure-showcase.qe .structure-code {
  background: var(--blue-soft, #eaf2ff) !important;
  border-color: var(--border, #dbe5f0) !important;
  color: var(--blue, #1f4f9f) !important;
}

.structure-showcase.qe {
  background: linear-gradient(180deg, #ffffff 0%, var(--panel-soft, #f8fbff) 100%) !important;
}

.home-exam-card.qe,
.commercial-offer-panel.qe,
.structure-item.qe {
  background: #ffffff !important;
  border-color: var(--border, #dbe5f0) !important;
}

.home-exam-card.qe .pill-purple,
.commercial-offer-panel.qe .pill-purple,
.structure-item.qe .pill-purple {
  background: var(--blue-soft, #eaf2ff) !important;
  border-color: var(--border, #dbe5f0) !important;
  color: var(--blue, #1f4f9f) !important;
}

@media (max-width: 1180px) {
  .auth-shell-v3,
  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-card--primary {
    position: static;
  }
}

/* 2026-08-05: keep course study buttons aligned with flashcard and QCM actions. */
html[data-vulpus-theme] .course-card .action-btn.action-btn-course,
html[data-vulpus-theme] .course-card .action-btn.action-btn-course.is-complete {
  background: var(--panel-soft, #f8fbff) !important;
  border-color: var(--border, #dbe5f0) !important;
  box-shadow: none !important;
  color: inherit !important;
  text-shadow: none !important;
}

html[data-vulpus-theme] .course-card .action-btn.action-btn-course:hover,
html[data-vulpus-theme] .course-card .action-btn.action-btn-course.is-complete:hover {
  background: var(--theme-hover-soft, var(--blue-soft, #eaf2ff)) !important;
  border-color: color-mix(in srgb, var(--theme-focus, var(--blue, #1f4f9f)) 32%, var(--border, #dbe5f0)) !important;
  box-shadow: none !important;
  color: var(--theme-focus, var(--blue, #1f4f9f)) !important;
  text-shadow: none !important;
}

/* 2026-08-07: final course-card layout guard across all visual themes. */
.course-grid {
  align-items: stretch;
}

.course-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 328px;
  min-width: 0;
  overflow: hidden;
}

.course-card > .pill:first-child {
  align-self: flex-start;
  max-width: 100%;
}

.course-card h4,
.course-card .muted,
.course-card .course-status-row,
.course-card .course-actions,
.course-card .action-btn,
.osce-station-card .action-btn,
.course-card .resource-mark-btn {
  min-width: 0;
  max-width: 100%;
}

.course-card h4 {
  line-height: 1.28;
  overflow-wrap: break-word;
  word-break: normal;
}

.course-card > .learning-card-lower {
  display: grid;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
  width: 100%;
}
.course-card > .learning-card-lower > :is(p, .course-status-row, .course-actions) {
  margin: 0;
}
@supports (grid-template-rows: subgrid) {
  .course-grid > .course-card:has(> .learning-card-lower) {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  .course-card > .pill:first-child {
    justify-self: start;
  }
  .course-card > .learning-card-lower {
    grid-row: span 3;
    grid-template-rows: subgrid;
    margin-top: 0;
  }
  .course-card > .learning-card-lower > .course-actions {
    grid-template-rows: repeat(var(--course-action-rows, 5), minmax(42px, auto));
  }
  @media (max-width: 860px) {
    .course-card > .learning-card-lower > .course-actions {
      grid-template-rows: none;
      grid-auto-rows: minmax(42px, auto);
    }
  }
}
html[data-vulpus-theme] :is(.course-card h4, .learning-architecture-page .route-card h3, .osce-resource h3) {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.28;
}
html[data-vulpus-theme] .qcm-domain-progress > h3 {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.course-card .muted {
  overflow-wrap: break-word;
}

.course-status-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
}

.course-status-chip {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.course-actions {
  align-self: stretch;
  display: grid !important;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.course-card .action-btn,
.course-card .resource-mark-btn {
  align-items: center;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.course-card .action-btn > span:first-child,
.course-card .resource-mark-btn > span:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.course-card .action-btn > span:last-child,
.course-card .resource-mark-btn > span:last-child {
  justify-self: end;
}

.v3-course-actions,
.v3-flash-actions,
.v3-flash-hero .hero-actions {
  min-width: 0;
}

.v3-course-actions .btn,
.v3-course-actions .resource-mark-btn,
.v3-flash-actions .btn,
.v3-flash-actions .resource-mark-btn,
.v3-flash-hero .hero-actions .btn,
.v3-flash-hero .hero-actions .resource-mark-btn {
  justify-content: center;
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
}

.v3-course-actions .vulpus-page-mark,
.v3-flash-actions .vulpus-page-mark,
.v3-flash-hero .hero-actions .vulpus-page-mark {
  display: block !important;
  min-width: 0;
  width: 100%;
}

.v3-course-actions .vulpus-page-mark .resource-mark-btn,
.v3-flash-actions .vulpus-page-mark .resource-mark-btn,
.v3-flash-hero .hero-actions .vulpus-page-mark .resource-mark-btn {
  width: 100%;
}

html[data-vulpus-theme="terracotta"] .course-card {
  padding-right: 18px;
}

html[data-vulpus-theme="terracotta"] .course-card h4,
html[data-vulpus-theme="terracotta"] .course-card > .pill:first-child {
  margin-right: 76px;
}

html[data-vulpus-theme="terracotta"] .course-card .muted,
html[data-vulpus-theme="terracotta"] .course-card .course-status-row,
html[data-vulpus-theme="terracotta"] .course-card .course-actions {
  margin-right: 0;
}

html[data-vulpus-theme="terracotta"] .course-card::after {
  max-height: 112px;
  max-width: 100px;
  right: 8px;
}

html[data-vulpus-theme="terracotta"] .course-grid .course-card:nth-child(3n+2)::after,
html[data-vulpus-theme="terracotta"] .course-grid .course-card:nth-child(3n+3)::after {
  right: 8px;
}

html[data-vulpus-theme="prune-velours"] .course-card::after,
html[data-vulpus-theme="prune-velours"] .course-grid .course-card:nth-child(3n+2)::after,
html[data-vulpus-theme="prune-velours"] .course-grid .course-card:nth-child(3n+3)::after,
html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(1)::after,
html[data-vulpus-theme="vert-sauge"] .course-grid .course-card:nth-child(3)::after {
  max-width: 100px;
  right: 8px;
}

@media (max-width: 1180px) {
  .course-card {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .course-card {
    min-height: 0;
  }

  html[data-vulpus-theme="terracotta"] .course-card {
    padding-right: 18px;
  }

  html[data-vulpus-theme="terracotta"] .course-card h4,
  html[data-vulpus-theme="terracotta"] .course-card > .pill:first-child {
    margin-right: 48px;
  }
}

/* Keep Terracotta domain banners readable on medium desktop widths. */
@media (max-width: 1500px) {
  html[data-vulpus-theme="terracotta"] .domain-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-vulpus-theme="terracotta"] .domain-banner > div:first-child {
    padding-right: 0;
  }

  html[data-vulpus-theme="terracotta"] .domain-banner::before {
    bottom: -24px;
    opacity: 0.2;
    right: 18px;
    width: clamp(210px, 28vw, 320px);
  }

  html[data-vulpus-theme="terracotta"] .domain-banner .weight-box {
    justify-self: start;
    width: min(100%, 360px);
  }
}

/* Course page header: keep text comfortable and actions below the summary in every theme. */
.v3-course-hero,
html[data-vulpus-theme] .v3-course-hero {
  gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: clamp(22px, 2.4vw, 34px) !important;
}

.v3-course-hero > div:first-child,
html[data-vulpus-theme] .v3-course-hero > div:first-child {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  max-width: none;
  min-width: 0;
}

.v3-course-actions,
html[data-vulpus-theme] .v3-course-actions {
  align-items: stretch !important;
  align-content: stretch !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-content: flex-start !important;
  justify-self: stretch !important;
  margin-top: 18px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

.v3-course-actions .btn,
.v3-course-actions .resource-mark-btn,
html[data-vulpus-theme] .v3-course-actions .btn,
html[data-vulpus-theme] .v3-course-actions .resource-mark-btn {
  flex: 1 1 145px !important;
  justify-content: center !important;
  max-width: 210px !important;
  min-height: 46px;
  min-width: min(140px, 100%) !important;
  text-align: center !important;
  white-space: normal !important;
}

.v3-course-actions .vulpus-page-mark,
html[data-vulpus-theme] .v3-course-actions .vulpus-page-mark {
  display: flex !important;
  flex: 1 1 145px !important;
  grid-column: auto !important;
  justify-self: stretch !important;
  max-width: 220px !important;
  min-width: min(140px, 100%) !important;
  width: auto !important;
}

.v3-course-actions .vulpus-page-mark .resource-mark-btn,
html[data-vulpus-theme] .v3-course-actions .vulpus-page-mark .resource-mark-btn {
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  #course-content,
  #course-content .v3-course-hero,
  #course-content .v3-course-shell,
  #course-content .v3-course-outline,
  #course-content .v3-course-main,
  #course-content .v3-course-chapter,
  html[data-vulpus-theme] #course-content,
  html[data-vulpus-theme] #course-content .v3-course-hero,
  html[data-vulpus-theme] #course-content .v3-course-shell,
  html[data-vulpus-theme] #course-content .v3-course-outline,
  html[data-vulpus-theme] #course-content .v3-course-main,
  html[data-vulpus-theme] #course-content .v3-course-chapter {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #course-content .v3-course-outline-grid,
  html[data-vulpus-theme] #course-content .v3-course-outline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .v3-course-actions .btn,
  .v3-course-actions .resource-mark-btn,
  .v3-course-actions .vulpus-page-mark,
  html[data-vulpus-theme] .v3-course-actions .btn,
  html[data-vulpus-theme] .v3-course-actions .resource-mark-btn,
  html[data-vulpus-theme] .v3-course-actions .vulpus-page-mark {
    max-width: none !important;
  }
}

@media (max-width: 700px) {
  .v3-course-hero,
  html[data-vulpus-theme] .v3-course-hero {
    padding: 18px !important;
  }

  .v3-course-actions,
  html[data-vulpus-theme] .v3-course-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .v3-course-actions .btn,
  .v3-course-actions .resource-mark-btn,
  .v3-course-actions .vulpus-page-mark,
  html[data-vulpus-theme] .v3-course-actions .btn,
  html[data-vulpus-theme] .v3-course-actions .resource-mark-btn,
  html[data-vulpus-theme] .v3-course-actions .vulpus-page-mark {
    width: 100% !important;
  }
}

.v3-flash-actions,
html[data-vulpus-theme] .v3-flash-actions,
.v3-flash-hero .v3-flash-actions,
html[data-vulpus-theme] .v3-flash-hero .v3-flash-actions {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: flex-start;
  margin-top: 12px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.v3-flash-actions .btn,
.v3-flash-actions .resource-mark-btn,
html[data-vulpus-theme] .v3-flash-actions .btn,
html[data-vulpus-theme] .v3-flash-actions .resource-mark-btn {
  flex: 0 1 auto;
  width: auto;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.v3-flash-actions .vulpus-page-mark,
html[data-vulpus-theme] .v3-flash-actions .vulpus-page-mark {
  display: flex;
  flex: 0 1 auto;
  grid-column: auto;
  max-width: 100%;
  min-width: 0;
  width: auto;
}

.v3-flash-actions .vulpus-page-mark .resource-mark-btn,
html[data-vulpus-theme] .v3-flash-actions .vulpus-page-mark .resource-mark-btn {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 700px) {
  .v3-flash-actions,
  html[data-vulpus-theme] .v3-flash-actions,
  .v3-flash-hero .v3-flash-actions,
  html[data-vulpus-theme] .v3-flash-hero .v3-flash-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .v3-flash-actions .btn,
  .v3-flash-actions .resource-mark-btn,
  .v3-flash-actions .vulpus-page-mark,
  html[data-vulpus-theme] .v3-flash-actions .btn,
  html[data-vulpus-theme] .v3-flash-actions .resource-mark-btn,
  html[data-vulpus-theme] .v3-flash-actions .vulpus-page-mark {
    width: 100%;
  }
  html[data-vulpus-theme] .v3-flash-actions .btn,
  html[data-vulpus-theme] .v3-flash-actions .resource-mark-btn {
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
  }
}

/* 2026-08-12: canonical pedagogical card contract for Foundations route cards. */
.learning-architecture-page .grid-3,
html[data-vulpus-theme] .learning-architecture-page .grid-3 {
  align-items: stretch !important;
}

.learning-architecture-page .grid-3 > .route-card,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card {
  align-items: stretch !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--vulpus-learning-card-gap, 12px) !important;
  height: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.learning-architecture-page .grid-3 > .route-card > .structure-item-top,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .structure-item-top {
  align-items: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  min-inline-size: 0 !important;
}

.learning-architecture-page .grid-3 > .route-card > h3,
.learning-architecture-page .grid-3 > .route-card > .muted,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > h3,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .muted {
  margin: 0 !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  overflow-wrap: break-word !important;
}

.learning-architecture-page .grid-3 > .route-card > h3,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > h3 {
  line-height: 1.28 !important;
  min-height: 0 !important;
}

.learning-architecture-page .grid-3 > .route-card > .muted,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .muted {
  line-height: 1.55 !important;
  min-height: 0 !important;
}

.learning-architecture-page .grid-3 > .route-card > .foundation-card-lower,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .foundation-card-lower {
  align-self: stretch !important;
  display: grid !important;
  flex: 0 0 auto !important;
  gap: var(--vulpus-learning-card-action-gap, 8px) !important;
  grid-template-rows: minmax(var(--vulpus-learning-card-counter-min-height, 64px), auto) auto !important;
  margin-top: auto !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  width: 100% !important;
}

.course-resource-counts,
.learning-architecture-page .foundation-resource-counts,
html[data-vulpus-theme] .learning-architecture-page .foundation-resource-counts {
  align-content: flex-start !important;
  align-items: flex-start !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  max-inline-size: 100% !important;
  min-height: var(--vulpus-learning-card-counter-min-height, 64px) !important;
  min-inline-size: 0 !important;
}

.course-resource-counts .pill,
.learning-architecture-page .foundation-resource-counts .pill,
html[data-vulpus-theme] .learning-architecture-page .foundation-resource-counts .pill {
  column-gap: 4px;
  align-items: center !important;
  display: inline-flex !important;
  line-height: 1.25 !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  height: 100% !important;
  box-sizing: border-box !important;
}
.foundation-resource-counts [data-foundation-qcm-count] {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Shared resource counts and reading status across F, QE and OSCE. */
.course-resource-counts .pill > span { flex: 0 0 auto; white-space: nowrap; }
html[data-vulpus-theme="vert-sauge"] .course-resource-counts .pill { background: #f7f9f4; border: 1px solid #d1dec9; color: #526d51; }
.course-status-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.course-status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border, #dbeafe); background: var(--theme-card-tint, #f8fbff); color: #48607f; font-size: 12px; font-weight: 800; }
.course-status-chip.is-saved { border-color: #f9d69b; background: #fff7ed; color: #9a5a04; }
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .foundation-card-lower { grid-template-rows: auto auto auto !important; }
html[data-vulpus-theme] .foundation-card-lower > .course-status-row { margin: 0; }

.learning-architecture-page .grid-3 > .route-card > .course-actions,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .course-actions {
  align-self: stretch !important;
  display: grid !important;
  gap: var(--vulpus-learning-card-action-gap, 8px) !important;
  margin-top: auto !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .grid-3 > .route-card > .foundation-card-lower > .course-actions,
html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .foundation-card-lower > .course-actions {
  align-self: stretch !important;
  display: grid !important;
  gap: var(--vulpus-learning-card-action-gap, 8px) !important;
  margin-top: 0 !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .route-card .foundation-progress-meter,
html[data-vulpus-theme] .learning-architecture-page .route-card .foundation-progress-meter {
  display: grid !important;
  gap: 6px !important;
  margin: 10px 0 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .route-card .foundation-progress-meter-head,
html[data-vulpus-theme] .learning-architecture-page .route-card .foundation-progress-meter-head {
  align-items: center !important;
  display: flex !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

.learning-architecture-page .route-card .foundation-progress-percent,
html[data-vulpus-theme] .learning-architecture-page .route-card .foundation-progress-percent {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.learning-architecture-page .route-card .foundation-progress-bar,
html[data-vulpus-theme] .learning-architecture-page .route-card .foundation-progress-bar {
  background: var(--theme-progress-track, #e6edf5) !important;
  border-radius: 999px !important;
  height: 8px !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.learning-architecture-page .route-card .foundation-progress-bar > div,
html[data-vulpus-theme] .learning-architecture-page .route-card .foundation-progress-bar > div {
  background: var(--theme-progress-fill, linear-gradient(90deg, var(--blue, #1f4f9f), var(--blue-2, #2d7ff9))) !important;
  border-radius: 999px !important;
  height: 100% !important;
}

.learning-architecture-page .route-card .action-btn,
html[data-vulpus-theme] .learning-architecture-page .route-card .action-btn {
  align-items: center !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  justify-content: stretch !important;
  min-height: var(--vulpus-learning-card-action-min-height, 42px) !important;
  overflow: hidden !important;
  padding: 10px 12px !important;
  text-align: left !important;
  width: 100% !important;
}

.learning-architecture-page .route-card .action-btn.is-complete,
html[data-vulpus-theme] .learning-architecture-page .route-card .action-btn.is-complete {
  background: var(--panel-soft, #f8fbff) !important;
  border-color: var(--border, #d6e3f3) !important;
  color: inherit !important;
}

.learning-architecture-page .route-card .action-btn > span:first-child,
html[data-vulpus-theme] .learning-architecture-page .route-card .action-btn > span:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
  overflow-wrap: break-word !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.learning-architecture-page .route-card .action-btn > span:last-child,
html[data-vulpus-theme] .learning-architecture-page .route-card .action-btn > span:last-child {
  flex: 0 0 auto !important;
  justify-self: end !important;
  min-width: 16px !important;
  text-align: right !important;
}

.learning-architecture-page .route-card .action-btn .status-star,
html[data-vulpus-theme] .learning-architecture-page .route-card .action-btn .status-star {
  color: #d97706 !important;
  margin-left: 6px !important;
  margin-right: 0 !important;
}

.learning-architecture-page .foundation-part-progress,
html[data-vulpus-theme] .learning-architecture-page .foundation-part-progress {
  display: grid !important;
  gap: 6px !important;
  margin: 12px 0 10px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .foundation-part-progress .foundation-progress-meter-head,
html[data-vulpus-theme] .learning-architecture-page .foundation-part-progress .foundation-progress-meter-head {
  align-items: center !important;
  display: flex !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

.learning-architecture-page .foundation-part-progress .foundation-progress-percent,
html[data-vulpus-theme] .learning-architecture-page .foundation-part-progress .foundation-progress-percent {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.learning-architecture-page .foundation-part-progress .foundation-progress-bar,
html[data-vulpus-theme] .learning-architecture-page .foundation-part-progress .foundation-progress-bar {
  background: var(--theme-progress-track, #e6edf5) !important;
  border-radius: 999px !important;
  height: 8px !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.learning-architecture-page .foundation-part-progress .foundation-progress-bar > div,
html[data-vulpus-theme] .learning-architecture-page .foundation-part-progress .foundation-progress-bar > div {
  background: var(--theme-progress-fill, linear-gradient(90deg, var(--blue, #1f4f9f), var(--blue-2, #2d7ff9))) !important;
  border-radius: 999px !important;
  height: 100% !important;
}

.learning-architecture-page .foundation-progress-meter,
html[data-vulpus-theme] .learning-architecture-page .foundation-progress-meter {
  align-self: stretch !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-self: stretch !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .foundation-section-progress-card,
html[data-vulpus-theme] .learning-architecture-page .foundation-section-progress-card {
  box-sizing: border-box !important;
  margin: 0 0 26px !important;
  width: 100% !important;
}

.learning-architecture-page .foundation-section-progress-card .foundation-progress-meter,
html[data-vulpus-theme] .learning-architecture-page .foundation-section-progress-card .foundation-progress-meter {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
}

.learning-architecture-page .foundation-progress-meter .foundation-progress-bar,
html[data-vulpus-theme] .learning-architecture-page .foundation-progress-meter .foundation-progress-bar {
  background: var(--theme-progress-track, #e6edf5) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: block !important;
  height: 8px !important;
  inline-size: 100% !important;
  margin: 0 !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}

.learning-architecture-page .foundation-progress-meter .foundation-progress-bar > div,
html[data-vulpus-theme] .learning-architecture-page .foundation-progress-meter .foundation-progress-bar > div {
  background: var(--theme-progress-fill, linear-gradient(90deg, var(--blue, #1f4f9f), var(--blue-2, #2d7ff9))) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Shared theme surfaces for the cards introduced after the EE migration. */
html[data-vulpus-theme] :is(.route-card, .osce-resource) {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html[data-vulpus-theme] :is(.route-card, .osce-resource) > * {
  position: relative;
  z-index: 2;
}

html[data-vulpus-theme] :is(.route-card, .osce-resource)::after {
  content: "";
  position: absolute;
  inset: 12px 8px auto auto;
  width: 100px;
  height: 110px;
  background: var(--theme-learning-image) center / contain no-repeat;
  opacity: .72;
  pointer-events: none;
  z-index: 0;
}

html[data-vulpus-theme] :is(.route-card, .osce-resource):nth-child(3n+2)::after {
  background-image: var(--theme-learning-image-alt);
}

html[data-vulpus-theme] :is(.route-card, .osce-resource):nth-child(3n+3)::after {
  background-image: var(--theme-learning-image-third);
}

html[data-vulpus-theme="vert-sauge"] .foundation-section-progress-card::after {
  content: none;
  background: none;
}

/* New outline controls use theme tokens; completion/flag colours retain meaning. */
/* Route cards replaced legacy course cards in Foundations; retain the same artwork. */
html[data-vulpus-theme="prune-velours"] :is(.route-card, .osce-resource)::after {
  background-position: right top;
  background-size: 245px auto;
  height: 120px;
  top: -18px;
  opacity: .72;
}
html[data-vulpus-theme="prune-velours"] :is(.route-card, .osce-resource):nth-child(3n+2)::after {
  background-size: 250px auto;
}
html[data-vulpus-theme="prune-velours"] :is(.route-card, .osce-resource):nth-child(3n+3)::after {
  background-size: 270px auto;
  height: 132px;
}
html[data-vulpus-theme="vert-sauge"] :is(.course-grid .course-card, .route-card, .osce-resource):nth-child(n)::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto auto;
  width: 100px;
  height: 120px;
  background: var(--sage-course1-foliage-image) right center / 180px auto no-repeat;
  opacity: .16;
  transform: none;
  pointer-events: none;
  z-index: 0;
}
html[data-vulpus-theme="vert-sauge"] :is(.course-grid .course-card, .route-card, .osce-resource):nth-child(3n+2)::after {
  background-image: var(--sage-small-sprig-image);
}
html[data-vulpus-theme="vert-sauge"] :is(.course-grid .course-card, .route-card, .osce-resource):nth-child(3n+3)::after {
  background-image: var(--sage-course3-foliage-image);
}
html:is([data-vulpus-theme="prune-velours"], [data-vulpus-theme="vert-sauge"]) :is(.route-card, .osce-resource) > h3 {
  padding-right: 80px;
}
html[data-vulpus-theme="vert-sauge"] .course-card h4 {
  margin-right: 80px;
}
html[data-vulpus-theme="vert-sauge"] :is(.domain-banner, .hero, .v3-course-hero, .v3-flash-hero)::after {
  opacity: .95;
}
html[data-vulpus-theme="prune-velours"] .foundation-section-progress-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: min(40%, 420px);
  height: 170px;
  background: var(--plum-progress-right-branch-image) right center / 430px auto no-repeat;
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 768px) {
  html:is([data-vulpus-theme="vert-sauge"], [data-vulpus-theme="prune-velours"]) :is(.course-grid .course-card, .route-card, .osce-resource):nth-child(n)::after {
    display: block;
    width: 76px;
    height: 88px;
    background-size: 170px auto;
    opacity: .16;
  }
  html:is([data-vulpus-theme="vert-sauge"], [data-vulpus-theme="prune-velours"]) :is(.route-card, .osce-resource) > h3,
  html[data-vulpus-theme="vert-sauge"] .course-card h4 {
    padding-right: 64px;
    margin-right: 0;
  }
}
html[data-vulpus-theme] .v3-course-navigation select {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}
html[data-vulpus-theme] .v3-course-navigation label,
html[data-vulpus-theme] .v3-course-navigation-links a {
  color: var(--muted);
}
html[data-vulpus-theme] .v3-course-navigation-links a:is([aria-current="page"], :hover) {
  color: var(--text);
  border-bottom-color: var(--blue);
}
html[data-vulpus-theme] :is(.v3-course-outline, .v3-course-chapter) {
  background-color: var(--panel);
  border-color: var(--border);
}
html[data-vulpus-theme] :is(.v3-course-outline-heading, .v3-course-outline-title, .v3-course-outline-section, .v3-course-subheading) {
  color: var(--text);
}
html[data-vulpus-theme] :is(.v3-course-outline-number, .v3-course-chapter-number):not(.is-completed) {
  background: var(--blue-soft);
  color: var(--text);
  border-color: var(--border);
}
html[data-vulpus-theme] .v3-course-outline-toggle {
  background: var(--panel);
  color: var(--blue);
  border-color: var(--border);
}
html[data-vulpus-theme] :is(.v3-course-outline-toggle, .v3-course-outline-section):hover {
  background: var(--theme-hover-soft);
  color: var(--blue);
}
html[data-vulpus-theme] :is(.v3-course-outline-header, .v3-course-outline-row, .v3-course-outline-children, .v3-course-outline-section, .v3-course-chapter-head),
html[data-vulpus-theme] .v3-course-outline-section::before {
  border-color: var(--border);
}
html[data-vulpus-theme] .v3-course-outline-section-number {
  color: var(--blue);
}
html[data-vulpus-theme] :is(.v3-course-outline-toggle, .v3-course-outline-title, .v3-course-outline-section):focus-visible {
  outline-color: var(--theme-focus);
}

/* The standalone readers share theme tokens, but feedback remains semantic. */
html[data-vulpus-theme] #examScreen .answer-option.correct,
html[data-vulpus-theme] #examScreen .answer-option.correct:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--text);
}
html[data-vulpus-theme] #examScreen .answer-option.incorrect,
html[data-vulpus-theme] #examScreen .answer-option.incorrect:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--text);
}
html[data-vulpus-theme] #examScreen .topbar,
html[data-vulpus-theme] #examScreen .sidebar {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
html[data-vulpus-theme] #examScreen .sidebar::before {
  content: none;
}
html[data-vulpus-theme] #examScreen .exam-title,
html[data-vulpus-theme] #examScreen .sidebar h3 {
  color: var(--text);
}
html[data-vulpus-theme] #examScreen .exam-subtitle {
  color: var(--muted);
}
html[data-vulpus-theme] #examScreen :is(.timer, .mode-pill) {
  background: var(--blue-soft);
  color: var(--text);
}
html[data-vulpus-theme] #examScreen #timer.oral-overtime {
  background: var(--red);
  color: #fff;
}
@media (max-width: 760px) {
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 10px;
    padding: 12px;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen :is(.topbar-left, .topbar-center, .topbar-right) {
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-title-block {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ECOS finishing: shared tokens only; no replacement of the native ECOS styles. */
/* Shared programme overviews; retain the native shell and theme artwork. */
html[data-vulpus-theme] .program-heading { padding: 0 0 20px; border-bottom: 1px solid var(--border); }
html[data-vulpus-theme] .program-heading h2 { font-size: 28px; line-height: 1.25; margin: 12px 0; }
html[data-vulpus-theme] .program-heading p { max-width: 75ch; font-size: 17px; line-height: 1.7; color: var(--text); }
html[data-vulpus-theme] .vulpus-program-overview .section-head p,
html[data-vulpus-theme] .vulpus-program-overview .program-area-card > p { font-size: 16px; line-height: 1.65; color: var(--text); }
html[data-vulpus-theme] .vulpus-program-overview .program-area-card h3 { font-size: 20px; line-height: 1.4; }
html[data-vulpus-theme] .program-heading .hero-actions { gap: 12px; margin-top: 20px; }
html[data-vulpus-theme] .program-study-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 24px 0; margin: 0; list-style: none; }
html[data-vulpus-theme] .program-study-path li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
html[data-vulpus-theme] .program-study-path li > span { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
html[data-vulpus-theme] .program-study-path p { margin: 6px 0 0; color: var(--text); font-size: 15px; line-height: 1.6; }
html[data-vulpus-theme] .program-heading .program-guidance { color: var(--muted); font-size: 14px; max-width: 85ch; }
html[data-vulpus-theme] .program-review-method { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
html[data-vulpus-theme] .program-review-method h2,
html[data-vulpus-theme] .program-next-stage h2 { font-size: 20px; margin: 0 0 12px; }
html[data-vulpus-theme] .program-next-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border-top: 1px solid var(--border); padding: 24px 0; }
html[data-vulpus-theme] .program-next-stage > div { flex: 1 1 420px; }
html[data-vulpus-theme] .program-next-stage p { color: var(--muted); margin: 0; line-height: 1.7; }
html[data-vulpus-theme] .program-next-stage .btn { white-space: normal; }
html[data-vulpus-theme] .vulpus-program-overview .program-area-card { display: flex; flex-direction: column; gap: 14px; border-radius: 8px; padding: 22px; }
html[data-vulpus-theme] .program-area-card > :is(h3,p,.hero-actions) { margin: 0; }
html[data-vulpus-theme] .program-area-card > .pill { align-self: flex-start; }
html[data-vulpus-theme] .program-area-card > .hero-actions { margin-top: auto; padding-top: 8px; }
html[data-vulpus-theme] .program-area-card .hero-actions .btn { width: 100%; min-height: 44px; border-radius: 8px; white-space: normal; }
html[data-vulpus-theme] .program-topics { font-size: 14px; line-height: 1.6; }
html[data-vulpus-theme] .program-topics summary { cursor: pointer; color: var(--blue); padding-block: 6px; }
html[data-vulpus-theme] .program-topics ul { padding-left: 20px; margin-bottom: 0; }
html[data-vulpus-theme] .program-topics li + li { margin-top: 6px; }
html[data-vulpus-theme] .vulpus-program-overview .exam-demo-callout { border-radius: 0; border-inline: 0; box-shadow: none; background: transparent; padding: 20px 0; }
html[data-vulpus-theme] .osce-native .osce-station-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 16px; }
html[data-vulpus-theme] .osce-native .osce-station-card { display: flex; flex-direction: column; grid-row: auto; padding: 20px; row-gap: 12px; }
html[data-vulpus-theme] .osce-native .osce-station-card > :is(h3,p,.osce-actions,.osce-simulation-action) { margin: 0; }
html[data-vulpus-theme] .osce-native .osce-station-card > h3 { font-size: 18px; line-height: 1.4; padding-right: 0; }
html[data-vulpus-theme] .osce-native .osce-station-card > .osce-actions { display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 8px; }
html[data-vulpus-theme] .osce-native .osce-station-card .action-btn { min-height: 44px; gap: 8px; line-height: 1.4; }
html[data-vulpus-theme] .osce-native .osce-station-card .action-btn > span:first-child { min-width: 0; overflow-wrap: anywhere; }
/* Station entry stays prominent while other card actions use their soft surface. */
html[data-vulpus-theme] .osce-station-card .action-btn.btn-primary {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--theme-primary-on, #ffffff) !important;
}
html[data-vulpus-theme] .osce-station-card .action-btn.btn-primary:hover {
  background: var(--blue-2) !important;
  border-color: var(--blue-2) !important;
  color: var(--theme-primary-on, #ffffff) !important;
}
html[data-vulpus-theme] .osce-native .osce-station-card .action-btn:disabled { opacity: .5; cursor: not-allowed; }
html[data-vulpus-theme] .osce-native .osce-station-card .osce-resource-meta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; }
html[data-vulpus-theme] .osce-native .osce-station-card .osce-simulation-action { justify-content: flex-start; padding-top: 0; border-top: 0; }
html[data-vulpus-theme] .osce-native .osce-station-card .osce-simulation-action > .action-btn { width: 100%; }
html[data-vulpus-theme] :is(.program-area-card,.osce-station-card):nth-child(n)::after { opacity: .16; }
html[data-vulpus-theme] .harmony-offer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-block: 24px; }
html[data-vulpus-theme] .harmony-offer-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border: 1px solid var(--border); border-top: 4px solid var(--tier-color); border-radius: 8px; background: var(--panel); }
html[data-vulpus-theme] .harmony-offer-card.tier-essential { --tier-color: #3479b8; }
html[data-vulpus-theme] .harmony-offer-card.tier-gold { --tier-color: #ae8129; }
html[data-vulpus-theme] .harmony-offer-card.tier-diamond { --tier-color: #8563b6; }
html[data-vulpus-theme] .harmony-offer-card img { width: 112px; height: 112px; object-fit: contain; filter: none; align-self: center; }
html[data-vulpus-theme] .harmony-offer-card h3 { text-align: center; margin: 0 0 6px; }
html[data-vulpus-theme] .harmony-offer-card p, html[data-vulpus-theme] .harmony-offer-card li { line-height: 1.6; font-size: 14px; }
html[data-vulpus-theme] .harmony-offer-card p { margin: 0; color: var(--muted); }
html[data-vulpus-theme] .harmony-offer-card p:has(strong) { color: var(--text); }
html[data-vulpus-theme] .harmony-offer-card ul { margin: 0 0 6px; padding-left: 20px; }
html[data-vulpus-theme] .harmony-offer-card > p:last-child { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 600; }
html[data-vulpus-theme] .harmony-offers-preview > p { max-width: 90ch; color: var(--muted); line-height: 1.6; }
html[data-vulpus-theme] .harmony-offer-card .btn { margin-top: auto; min-height: 44px; white-space: normal; }
@media(max-width:800px) {
  html[data-vulpus-theme] .program-study-path,
  html[data-vulpus-theme] .harmony-offer-grid { grid-template-columns: minmax(0,1fr); }
}
html[data-vulpus-theme] .osce-native .osce-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
html[data-vulpus-theme] .osce-native .osce-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
  white-space: normal;
}
html[data-vulpus-theme] .osce-native .osce-start-intro {
  max-width: 72ch;
  line-height: 1.6;
  margin-block: 8px 20px;
}
/* Orientation only: existing card/button primitives and native theme tokens. */
html[data-vulpus-theme] .osce-start-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
html[data-vulpus-theme] .osce-start-path li { position: relative; min-width: 0; }
html[data-vulpus-theme] .osce-start-path li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 24px);
  width: calc(100% - 48px); border-top: 1px solid var(--border); pointer-events: none;
}
html[data-vulpus-theme] .osce-start-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0 8px; color: var(--text); text-align: center; text-decoration: none;
}
html[data-vulpus-theme] .osce-start-step > span:last-child { color: var(--muted); font-size: 13px; }
html[data-vulpus-theme] .osce-start-number {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; margin-bottom: 4px;
}
html[data-vulpus-theme] .osce-start-step:hover .osce-start-number { border-color: var(--blue); }
html[data-vulpus-theme] .osce-start-grid,
html[data-vulpus-theme] .osce-start-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html[data-vulpus-theme] .osce-native .osce-start-card { display: flex; flex-direction: column; padding: 20px; border-radius: 8px; }
html[data-vulpus-theme] .osce-start .osce-start-card:nth-child(n)::after { opacity: .16; }
html[data-vulpus-theme] .osce-start-card-title { display: flex; align-items: center; gap: 12px; }
html[data-vulpus-theme] .osce-start-card-title h3 { margin: 0; font-size: 17px; line-height: 1.4; }
html[data-vulpus-theme] .osce-start-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
html[data-vulpus-theme] .osce-start-icon svg { width: 22px; height: 22px; }
html[data-vulpus-theme] .osce-start-card > p { line-height: 1.6; margin: 16px 0 20px; }
html[data-vulpus-theme] .osce-start-card .osce-actions { margin-top: auto; }
html[data-vulpus-theme] .osce-start .btn { min-height: 44px; white-space: normal; gap: 8px; }
html[data-vulpus-theme] .osce-start .btn svg { flex: 0 0 16px; width: 16px; height: 16px; }
html[data-vulpus-theme] .osce-start-value { margin-top: 28px; padding: 24px 0; border-block: 1px solid var(--border); }
html[data-vulpus-theme] .osce-start-value > h3 { margin: 0 0 20px; font-size: 18px; }
html[data-vulpus-theme] .osce-start-benefits > div { min-width: 0; }
html[data-vulpus-theme] .osce-start-benefits svg { width: 22px; height: 22px; color: var(--blue); }
html[data-vulpus-theme] .osce-start-benefits h4 { margin: 8px 0 6px; font-size: 14px; }
html[data-vulpus-theme] .osce-start-benefits p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
html[data-vulpus-theme] .osce-start-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 24px; }
html[data-vulpus-theme] .osce-start-footer h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
html[data-vulpus-theme] .osce-start-footer h3 svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
html[data-vulpus-theme] .osce-start-footer p { color: var(--muted); line-height: 1.6; }
html[data-vulpus-theme] .osce-start-step:focus-visible { outline: 2px solid var(--theme-focus); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1250px) {
  html[data-vulpus-theme] .osce-start-grid,
  html[data-vulpus-theme] .osce-start-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  html[data-vulpus-theme] .osce-start-grid,
  html[data-vulpus-theme] .osce-start-footer { grid-template-columns: minmax(0, 1fr); }
  html[data-vulpus-theme] .osce-start-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  html[data-vulpus-theme] .osce-start-path li::after { display: none; }
  html[data-vulpus-theme] .osce-start-step { font-size: 14px; }
}
html[data-vulpus-theme] .osce-native .osce-edition-note {
  line-height: 1.55;
  overflow-wrap: anywhere;
}
html[data-vulpus-theme] .osce-native .osce-edition-note .btn {
  margin-block: 4px;
  white-space: normal;
}
html[data-vulpus-theme] .osce-native .osce-progress-summary { margin-block: 12px; }
html[data-vulpus-theme] .osce-native .osce-progress-summary > p { margin-top: 0; }
html[data-vulpus-theme] .osce-native .osce-progress-unavailable {
  padding: 16px;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--blue);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
}
html[data-vulpus-theme] .osce-native :is(.osce-resource-meta, .osce-actions) {
  flex-wrap: wrap;
  gap: 8px 12px;
}
html[data-vulpus-theme] .osce-native :is(.osce-resource, .osce-start) { min-width: 0; }
html[data-vulpus-theme] .osce-native .osce-resource :is(h3, p) { overflow-wrap: anywhere; }
html[data-vulpus-theme] .osce-native :is(.osce-tab, .osce-start .btn, .osce-progress-unavailable .btn):focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 3px;
}

/* Disabled commands never inherit the animated hover of available actions. */
/* Keep the question primary; auxiliary panels retain their existing toggles. */
html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen {
  --reader-nav-width: 232px;
}
html[data-vulpus-theme] #examScreen .topbar .btn-finish,
html[data-vulpus-theme] .osce-exam-native .btn[data-action="submit"] {
  color: #fff;
  border: 1px solid var(--red,#b91c1c);
  background: var(--red,#b91c1c);
  box-shadow: none;
}
html[data-vulpus-theme] #examScreen .topbar #saveExitBtn.is-ready,
html[data-vulpus-theme] .osce-exam-native .oen-sidebar .btn[data-exit] {
  background: #b85d16;
  border: 1px solid #b85d16;
  color: #fff;
  box-shadow: none;
}
html[data-vulpus-theme] #examScreen .topbar .btn { min-height: 44px; }
@media (min-width: 1081px) {
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .layout {
    grid-template-columns: var(--reader-nav-width) minmax(0, 1fr) 264px;
    gap: 16px;
    padding: 16px;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen.reader-tools-hidden .layout {
    grid-template-columns: var(--reader-nav-width) minmax(0, 1fr);
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .sidebar { --q-nav-size: 40px; }
}
@media (max-width: 760px) {
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 12px;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-left { grid-column: 1 / -1; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-left .exam-title { font-size: 16px; line-height: 1.3; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .exam-subtitle { display: none; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .mcq-logo-wrap { width: 38px; height: 38px; flex-shrink: 0; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-center { grid-column: 1 / 3; grid-row: 2; gap: 8px; font-size: 12px; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .mode-pill { padding: 6px 8px; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-right { display: contents; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-right .mcq-language-switcher {
    grid-column: 3; grid-row: 2; margin: 0; justify-self: end; min-width: 0;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .topbar-right .btn {
    min-width: 0; padding: 8px; font-size: 12px; border-radius: 8px; white-space: normal;
  }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen #saveExitBtn { grid-column: 1 / 3; grid-row: 3; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen [onclick="goBack()"] { grid-column: 3; grid-row: 3; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen #readerNavToggle { grid-column: 1; grid-row: 4; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen [onclick="toggleTools()"] { grid-column: 2; grid-row: 4; }
  html[data-vulpus-theme] body:not(.osce-oral-mcq) #examScreen .btn-finish { grid-column: 3; grid-row: 4; }
}
/* Catalogues share their reading rhythm without changing reader layouts. */
html[data-vulpus-theme] .home-independence {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
}
html[data-vulpus-theme] .home-overview .home-introduction {
  max-width: 850px;
  margin-bottom: 24px;
}
html[data-vulpus-theme] .home-overview h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}
html[data-vulpus-theme] .home-overview .home-exam-choice.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}
html[data-vulpus-theme] .home-overview .home-exam-card {
  min-width: 0;
  padding: 22px;
  border-radius: 8px;
  gap: 12px;
}
html[data-vulpus-theme] .home-overview .home-exam-card h3 { font-size: 20px; }
html[data-vulpus-theme] .home-overview .home-exam-card > .pill { align-self: flex-start; }
html[data-vulpus-theme] .home-overview .home-exam-card .btn { margin-top: auto; }
html[data-vulpus-theme] #home .screenshot-card:has([data-home-preview]) {
  max-width: 820px;
  margin: 28px auto;
}
html[data-vulpus-theme] #home .screenshot-card:has([data-home-preview]) img { width: 100%; height: auto; }
html[data-vulpus-theme] .vulpus-course-catalog .catalogue-heading {
  margin: 0 0 18px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
html[data-vulpus-theme] .vulpus-course-catalog .catalogue-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}
html[data-vulpus-theme] .vulpus-course-catalog .section-head { margin: 18px 0 12px; }
html[data-vulpus-theme] .vulpus-course-catalog :is(.qcm-domain-progress, .foundation-section-progress-card) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 36%);
  column-gap: 24px;
  row-gap: 6px;
  padding: 16px 0;
  margin: 0 0 20px !important;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-vulpus-theme] .vulpus-course-catalog :is(.qcm-domain-progress, .foundation-section-progress-card) > :is(h3, p) { margin: 0; }
html[data-vulpus-theme] .vulpus-course-catalog :is(.qcm-domain-progress, .foundation-section-progress-card) > .vulpus-progress {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
html[data-vulpus-theme] .course-resource-counts:has(> .pill:only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 0 !important;
}
html[data-vulpus-theme] .foundation-card-lower:has(> .course-resource-counts > .pill:only-child) {
  --vulpus-learning-card-counter-min-height: 0px;
}
html[data-vulpus-theme] :is(.route-card:has(> .foundation-card-lower), .course-card:has(> .learning-card-lower)) {
  border-radius: 8px !important;
}
@media (max-width: 1350px) {
  html[data-vulpus-theme] :is(.route-card, .course-card):has(> :is(.foundation-card-lower, .learning-card-lower)) > :is(h3, h4) {
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  html[data-vulpus-theme] :is(.route-card, .course-card):has(> :is(.foundation-card-lower, .learning-card-lower))::after {
    top: 8px !important;
    right: 8px !important;
    width: 60px !important;
    height: 40px !important;
    background-size: contain !important;
    opacity: .16 !important;
  }
}
@supports (grid-template-rows: subgrid) {
  html[data-vulpus-theme] .grid-3 > .route-card:has(> .foundation-card-lower) {
    display: grid !important;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  html[data-vulpus-theme] .learning-architecture-page .grid-3 > .route-card > .foundation-card-lower {
    grid-row: span 3;
    grid-template-rows: subgrid !important;
    margin-top: 0 !important;
  }
}
@media (max-width: 860px) {
  html[data-vulpus-theme] .home-overview .home-exam-choice.three { grid-template-columns: 1fr; }
  html[data-vulpus-theme] .vulpus-course-catalog :is(.qcm-domain-progress, .foundation-section-progress-card) { grid-template-columns: 1fr; }
  html[data-vulpus-theme] .vulpus-course-catalog :is(.qcm-domain-progress, .foundation-section-progress-card) > .vulpus-progress {
    grid-column: 1;
    grid-row: auto;
  }
}
html[data-vulpus-theme] .btn:disabled,
html[data-vulpus-theme] .btn:disabled:hover,
html[data-vulpus-theme] .action-btn:disabled,
html[data-vulpus-theme] .action-btn:disabled:hover {
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}


/* Gold finish: ivory surfaces and champagne metal.
   Static reflections keep reading calm and add no assets or animation. */
html[data-vulpus-theme="dore"] body { background: var(--bg); color: var(--text); }
html[data-vulpus-theme="dore"] .topbar {
  background: linear-gradient(110deg, #fffefa, #fbf8f0);
  border-bottom-color: #dacbad;
  box-shadow: 0 2px 12px rgba(53,43,25,.05);
}
html[data-vulpus-theme="dore"] :is(.card,.course-card,.v3-course-panel,.v3-flash-panel,.auth-card) {
  border-color: var(--border);
  box-shadow: 0 6px 20px rgba(53,43,25,.045), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-vulpus-theme="dore"] :is(.domain-hero,.v3-course-hero,.v3-flash-hero,.dashboard-hero,.program-hero) {
  background: linear-gradient(115deg, #fffefa 25%, #f7f0df 100%);
  border-color: #ded0b2;
  box-shadow: inset 0 2px 0 #e6d4a7, 0 8px 24px rgba(53,43,25,.05);
}
html[data-vulpus-theme="dore"] .weight-box { background: linear-gradient(135deg, #fcfaf4, #f2e8d1); }
html[data-vulpus-theme="dore"] :is(.weight-box .big,.metric .value,.series-progress-percent) { color: #795b26; text-shadow: none; }
/* Keep action meaning and the offer-specific blue/gold/purple colours. */
html[data-vulpus-theme="dore"] .btn-primary:not([data-offer-buy]):not(.btn-finish):not(#saveExitBtn):not([data-action="submit"]):not([data-exit]),
html[data-vulpus-theme="dore"] .language-switcher__button.is-active,
html[data-vulpus-theme="dore"] .osce-station-card .action-btn.btn-primary {
  background: var(--theme-gold-action) !important;
  color: #36290f !important;
  border-color: #b2965c !important;
  background-size: 100% 100%;
  box-shadow: var(--theme-primary-shadow);
  text-shadow: none;
}
html[data-vulpus-theme="dore"] .btn-primary:not([data-offer-buy]):not(.btn-finish):not(#saveExitBtn):not([data-action="submit"]):not([data-exit]):not(:disabled):hover,
html[data-vulpus-theme="dore"] .language-switcher__button.is-active:hover,
html[data-vulpus-theme="dore"] .osce-station-card .action-btn.btn-primary:not(:disabled):hover {
  background: var(--theme-gold-action-hover) !important;
  color: #36290f !important;
  border-color: #947338 !important;
}
html[data-vulpus-theme="dore"] :is(.course-card .action-btn.action-btn-course,.action-btn.action-btn-course,.action-btn-course,.v3-flash-hero .btn-course) {
  background: linear-gradient(115deg,#fcfaf4,#f1e4c4 60%,#fcf8ed) !important;
  color: #62491d !important;
  border-color: #c7ae7b !important;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(80,60,26,.07);
  text-shadow: none;
}
html[data-vulpus-theme="dore"] :is(.course-card .action-btn.action-btn-course,.action-btn.action-btn-course,.action-btn-course,.v3-flash-hero .btn-course):hover {
  background: #f3e7cb !important;
  color: #513c17 !important;
  border-color: #aa8748 !important;
}
html[data-vulpus-theme="dore"] :is(.btn,.action-btn,.language-switcher__button):focus-visible {
  outline: 3px solid #795b26;
  outline-offset: 3px;
}
html[data-vulpus-theme="dore"] :is(.progress,.structure-bar,.qcm-progress-bar) > div::after { content: none; }
html[data-vulpus-theme="dore"] :is(.vulpus-progress-track,.domain-progress-track) > :is(span,div) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

/* Keep the compact white language label readable over the whole blue gradient. */
html[data-vulpus-theme="bleu-ardoise"] .language-switcher__button.is-active { background: linear-gradient(135deg, #1f4f9f, #2868c7); }

/* Remain visible above the language component focus reset in every theme. */
html[data-vulpus-theme] .language-switcher__button:focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }

/* Reader status keys must match question states, not decorative theme dots. */
html[data-vulpus-theme] #examScreen .legend .dot.current { background: var(--blue); border-color: var(--blue); }
html[data-vulpus-theme] #examScreen .legend .dot.answered { background: var(--green-soft); border-color: #a7e3ba; }
html[data-vulpus-theme] #examScreen .legend .dot.unanswered { background: var(--red-soft); border-color: #f5b5b5; }
html[data-vulpus-theme] #examScreen .legend .dot.flagged { background: var(--yellow-soft); border-color: #f5da93; }

/* Gold navigation: champagne surfaces, dark lettering and quiet metallic edges. */
html[data-vulpus-theme="dore"] #sidebar {
  color: #423418;
  background: linear-gradient(112deg, #ddc487 0%, #f5e7c1 28%, #fbf3db 49%, #efddad 73%, #dfc58b 100%);
  border-right-color: #b29558;
  box-shadow: inset -1px 0 0 #fff4d4, 3px 0 18px rgba(96,72,25,.07);
  scrollbar-color: #b59a62 #f4e7c5;
}
html[data-vulpus-theme="dore"] #sidebar .brand-title { color: #382b13; }
html[data-vulpus-theme="dore"] #sidebar :is(.brand-subtitle,.nav-label) { color: #62491d; }
html[data-vulpus-theme="dore"] #sidebar .brand-logo {
  background: #fffdf6;
  border-color: #c3a66a;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(96,72,25,.1);
}
html[data-vulpus-theme="dore"] #sidebar .brand-logo img { filter: none; }
html[data-vulpus-theme="dore"] #sidebar .nav-btn {
  color: #423418;
  border: 1px solid transparent;
}
html[data-vulpus-theme="dore"] #sidebar .nav-btn:not(.active):hover {
  background: rgba(255,253,246,.65);
  border-color: #c3a66a;
}
html[data-vulpus-theme="dore"] #sidebar .nav-icon {
  color: #5a431d;
  background: rgba(255,253,246,.6);
  box-shadow: inset 0 0 0 1px rgba(155,119,51,.3), inset 0 1px 0 #fff9e9;
}
html[data-vulpus-theme="dore"] #sidebar .nav-btn.active {
  color: #36290f;
  background: var(--theme-gold-action);
  border-color: #a98a48;
  box-shadow: inset 3px 0 0 #896722, inset 0 1px 0 #fff5d6, 0 3px 9px rgba(96,72,25,.1);
}
html[data-vulpus-theme="dore"] #sidebar .nav-btn.active .nav-icon {
  color: #36290f;
  background: rgba(255,250,229,.68);
}
html[data-vulpus-theme="dore"] #sidebar .subnav { border-left-color: #b59a62; }
html[data-vulpus-theme="dore"] :is(.sidebar-floating-hide,.sidebar-restore,.site-sidebar-close) {
  color: #62491d;
  background: linear-gradient(110deg, #fff9e8, #ecdaac);
  border-color: #b69a60;
}
html[data-vulpus-theme="dore"] :is(.sidebar-floating-hide,.sidebar-restore,.site-sidebar-close):hover {
  background: var(--theme-gold-action-hover);
}
html[data-vulpus-theme="dore"] #sidebar .nav-btn:focus-visible {
  outline: 2px solid #795b26;
  outline-offset: -4px;
}

/* Reader numbers use gold for selection; answer and review states keep their meaning. */
html[data-vulpus-theme="dore"] #examScreen .sidebar {
  background: linear-gradient(155deg, #fffdf6, #faf3e1);
  border-color: #ceb780;
  box-shadow: inset 0 2px 0 #eddbac, 0 6px 18px rgba(96,72,25,.06);
}
html[data-vulpus-theme="dore"] #examScreen :is(.q-nav:not(.current):not(.answered):not(.unanswered),.filter-btn:not(.active)) {
  color: #594320;
  background: linear-gradient(135deg, #fffef9, #f6eedb);
  border: 1px solid #c5b186;
  box-shadow: inset 0 1px 0 #fff;
}
html[data-vulpus-theme="dore"] #examScreen :is(.q-nav.current,.filter-btn.active) {
  color: #36290f;
  background: var(--theme-gold-action);
  border: 1px solid #967334;
  box-shadow: inset 0 1px 0 #fff5d6, 0 2px 5px rgba(96,72,25,.12);
}
html[data-vulpus-theme="dore"] #examScreen :is(.q-nav:not(.answered):not(.unanswered),.filter-btn):hover {
  background: var(--theme-gold-action-hover);
  border-color: #967334;
  color: #36290f;
}
html[data-vulpus-theme="dore"] #examScreen :is(.q-nav,.filter-btn):focus-visible {
  outline: 2px solid #795b26;
  outline-offset: 2px;
}
html[data-vulpus-theme="dore"] #examScreen .legend .dot.current {
  background: var(--theme-gold-action);
  border-color: #967334;
}

/* Ivory reading surfaces replace residual blue-grey without changing feedback colours. */
html[data-vulpus-theme="dore"] body:not(.osce-oral-mcq) #examScreen :is(.tag,.letter) {
  background: #f3ead5;
  color: #594320;
}
html[data-vulpus-theme="dore"] body:not(.osce-oral-mcq) #examScreen :is(.question-text,.case-context) {
  background: #fbf8f0;
  border-color: #dfd0af;
  color: var(--text);
}
html[data-vulpus-theme="dore"] body:not(.osce-oral-mcq) #examScreen .case-context { border-left-color: #a88742; }
html[data-vulpus-theme="dore"] body:not(.osce-oral-mcq) #examScreen .strike-btn {
  background: #faf5e8;
  border-color: #d8c6a0;
  color: #62491d;
}
html[data-vulpus-theme="dore"] #examScreen :is(.tool-box,.explanation) { background: #fffdf7; }
