.center-head.center-head-roadmap,
#roadmapCenter {
  display: none;
}

body[data-agent="roadmap"] {
  --rm-accent-a: var(--ice);
  --rm-accent-b: var(--violet);
  --rm-accent: linear-gradient(90deg, var(--ice), var(--violet));
  --rm-card: color-mix(in srgb, var(--panel) 72%, var(--raise));
  --rm-inset: color-mix(in srgb, var(--raise) 82%, var(--void));
  --rm-quiet: color-mix(in srgb, var(--muted) 62%, var(--text));
}

body[data-agent="roadmap"] .workspace-main {
  grid-template-columns: minmax(0, 1fr);
}

body[data-agent="roadmap"] .rail,
body[data-agent="roadmap"] #beoordelaarCenter,
body[data-agent="roadmap"] #beoordelaarHistory,
body[data-agent="roadmap"] #calcCenter,
body[data-agent="roadmap"] .center-head-beoordelaar,
body[data-agent="roadmap"] .center-head-calc,
body[data-agent="roadmap"] .center-head-geschiedenis,
body[data-agent="roadmap"] .center-head-products,
body[data-agent="roadmap"] .center-head-product,
body[data-agent="roadmap"] .center-head-webshop,
body[data-agent="roadmap"] .center-head-onderzoeker,
body[data-agent="roadmap"] .center-head-dashboard,
body[data-agent="roadmap"] .center-head-ai-coach,
body[data-agent="roadmap"] .center-head-coaching,
body[data-agent="roadmap"] .center-head-actieplan,
body[data-agent="roadmap"] #productsCenter,
body[data-agent="roadmap"] #productDetailCenter,
body[data-agent="roadmap"] #webshopCenter,
body[data-agent="roadmap"] #onderzoekerCenter,
body[data-agent="roadmap"] #dashboardCenter,
body[data-agent="roadmap"] #aiCoachCenter,
body[data-agent="roadmap"] #coachingCenter,
body[data-agent="roadmap"] #actieplanCenter {
  display: none !important;
}

body[data-agent="roadmap"] .center-head.center-head-roadmap {
  display: flex;
  flex-wrap: wrap;
  position: static;
  align-items: center;
  justify-content: flex-start;
  width: min(1100px, 100%);
  max-width: 1100px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto 22px;
  gap: 16px 20px;
  padding: 0;
  overflow: visible;
}

body[data-agent="roadmap"] .center-head-roadmap > div:first-child {
  flex: 1 1 200px;
  min-width: min(100%, 180px);
  max-width: 100%;
}

body[data-agent="roadmap"] .center-head-roadmap .center-head-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

body[data-agent="roadmap"] .center-head-roadmap .title,
body[data-agent="roadmap"] .center-head-roadmap .page-help-btn,
body[data-agent="roadmap"] .center-head-roadmap #roadmapEditBtn,
body[data-agent="roadmap"] .center-head-roadmap .rm-head-progress {
  position: static;
}

body[data-agent="roadmap"] .center-head-roadmap #roadmapEditBtn {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin-top: 0;
  white-space: nowrap;
  overflow: visible;
}

body[data-agent="roadmap"] .center-head-roadmap .subtitle {
  margin-top: 10px;
}

body[data-agent="roadmap"] .center-head.center-head-roadmap.is-lesson {
  display: none;
}

body[data-agent="roadmap"]:has(#roadmapCenter.is-lesson) .center {
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-agent="roadmap"] #roadmapCenter.is-lesson {
  width: min(100%, 760px);
  min-width: 0;
  flex: 0 0 auto;
  height: auto;
  min-height: auto;
  max-height: none;
  padding: 0 28px 40px;
  overflow: visible;
  gap: 0;
}

body[data-agent="roadmap"] #roadmapCenter {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(1100px, 100%);
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  gap: 14px;
  padding: 0 0 32px;
}

body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) {
  gap: 32px;
}

body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-next,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-search,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-section-label,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-edit-bar,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-banner,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-error,
body[data-agent="roadmap"] #roadmapCenter:not(.is-lesson) > .rm-path {
  margin: 0;
}

.rm-head-progress {
  display: flex;
  position: static;
  flex: 1 1 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: auto;
  min-width: min(100%, 220px);
  max-width: 320px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
}

.rm-head-progress[hidden] {
  display: none !important;
}

.rm-module-head {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.rm-module-head .rm-module-toggle {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.rm-lesson-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.rm-lesson-row .rm-lesson {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.rm-mini {
  flex: 0 0 auto;
  align-self: center;
  min-height: 32px;
  margin: 0 8px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.rm-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 8px 0 0;
  min-width: 0;
  max-width: 100%;
}

.rm-edit-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.rm-add-lesson {
  margin: 4px 0 8px;
}

.rm-editor {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(3, 4, 10, 0.5);
}

.rm-editor-card {
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding: 20px 18px 28px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.rm-editor-card h2 {
  margin: 0;
  font-size: 22px;
}

.rm-editor-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}

.rm-editor-card input,
.rm-editor-card textarea,
.rm-editor-card select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  color: inherit;
  font: inherit;
  font-weight: 500;
}

.rm-editor-card textarea {
  min-height: 140px;
  resize: vertical;
}

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

.rm-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rm-editor-actions .cta,
.rm-editor-actions .rm-ghost {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.rm-editor-delete {
  margin-top: 18px;
}

.rm-head-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-head-count {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rm-head-pct {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.rm-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--raise) 65%, var(--line));
  overflow: hidden;
}

.rm-track.is-overall {
  width: 100%;
  max-width: 100%;
  height: 8px;
  margin-top: 6px;
}

.rm-track.is-module {
  width: 72px;
  height: 4px;
}

.rm-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ice), var(--violet));
  transition: width 200ms ease;
}

.rm-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-top: 2px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ice) 32%, var(--line));
  background:
    radial-gradient(480px 120px at 0% 0%, color-mix(in srgb, var(--ice) 16%, transparent), transparent 70%),
    var(--panel);
}

.rm-next-kicker {
  color: var(--ice);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-next-module {
  margin: 8px 0 0;
  color: var(--rm-quiet, var(--muted));
  font-size: 12px;
  font-weight: 600;
}

.rm-next h2 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.rm-next p {
  margin: 4px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.4;
}

.rm-next-meta {
  margin-top: 8px;
  color: var(--rm-quiet, var(--muted));
  font-size: 12px;
  font-weight: 600;
}

.rm-next .rm-track.is-module {
  width: 100%;
  max-width: 220px;
  height: 5px;
  margin-top: 10px;
}

.rm-next-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 132px;
}

.rm-next .cta {
  min-height: 44px;
  padding: 10px 16px;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rm-next .cta:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ice) 35%, transparent);
}

.rm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rm-next + .rm-search {
  margin-top: 0;
}

.rm-search:focus-within {
  border-color: color-mix(in srgb, var(--ice) 50%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice) 14%, transparent);
}

.rm-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}

.rm-search-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rm-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  font-size: 14px;
}

.rm-search input:focus-visible {
  outline: none;
}

.rm-search input::-webkit-search-decoration,
.rm-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.rm-section-label {
  margin: 0;
  color: var(--rm-quiet, var(--muted));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-path {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-module {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--rm-card, var(--panel));
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rm-module.is-open {
  background: color-mix(in srgb, var(--rm-card, var(--panel)) 86%, var(--raise));
}

.rm-module.is-current {
  border-color: color-mix(in srgb, var(--ice) 62%, var(--line));
  background: color-mix(in srgb, var(--ice) 8%, var(--rm-card, var(--panel)));
  box-shadow: inset 4px 0 0 var(--ice);
}

.rm-module.is-done {
  border-color: color-mix(in srgb, var(--testen) 28%, var(--line));
}

.rm-module.is-future {
  background: color-mix(in srgb, var(--rm-card, var(--panel)) 88%, var(--void));
}

.rm-lesson.is-locked {
  opacity: 0.55;
}

.rm-module.is-future .rm-module-copy strong,
.rm-module.is-future .rm-index {
  color: var(--rm-quiet, var(--text));
  font-weight: 650;
}

.rm-module-toggle,
.rm-lesson {
  pointer-events: auto;
}

.rm-module-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  width: 100%;
  min-height: 44px;
  padding: 20px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
  transition: background 180ms ease;
}

.rm-module-toggle:hover {
  background: color-mix(in srgb, var(--raise) 55%, transparent);
}

.rm-module.is-current .rm-module-toggle:hover {
  background: color-mix(in srgb, var(--ice) 8%, transparent);
}

.rm-module-toggle:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: -2px;
}

.rm-index {
  color: var(--rm-quiet, var(--muted));
  padding-top: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.rm-module.is-current .rm-index {
  color: var(--ice);
}

.rm-module-copy .rm-module-fase {
  display: block;
  color: var(--ice);
  background: var(--rm-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.rm-module-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rm-module.is-current .rm-module-copy strong {
  font-weight: 700;
}

.rm-module-meta {
  display: block;
  margin-top: 12px;
  color: var(--rm-quiet, var(--muted));
  font-size: 12px;
  font-weight: 600;
}

.rm-module-copy .rm-track.is-module {
  width: 100%;
  max-width: 240px;
  height: 5px;
  margin-top: 8px;
}

.rm-module.is-done .rm-track > span {
  background: var(--testen);
}

.rm-module-aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: center;
}

.rm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  min-width: 92px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rm-badge.is-idle {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  background: color-mix(in srgb, var(--muted) 10%, transparent);
}

.rm-badge.is-active {
  color: var(--ice);
  background: color-mix(in srgb, var(--ice) 12%, transparent);
}

.rm-badge.is-done {
  color: var(--testen);
  background: color-mix(in srgb, var(--testen) 12%, transparent);
}

.rm-chevron {
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-top: -3px;
}

.rm-module.is-open .rm-chevron {
  transform: rotate(225deg);
  margin-top: 2px;
}

.rm-lessons {
  display: none;
  margin: 0 20px 20px;
  padding: 4px;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 12px;
  background: var(--rm-inset, var(--raise));
}

.rm-module.is-open .rm-lessons {
  display: flex;
  flex-direction: column;
}

.rm-lessons > li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.rm-lesson {
  display: grid;
  grid-template-columns: 20px 2.4em minmax(0, 1fr) 5.2rem;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.rm-lesson:hover,
.rm-lesson:focus-visible {
  background: color-mix(in srgb, var(--raise) 80%, transparent);
  outline: none;
}

.rm-lesson.is-now {
  background: color-mix(in srgb, var(--ice) 18%, var(--rm-inset, var(--raise)));
}

.rm-lesson.is-now:hover,
.rm-lesson.is-now:focus-visible {
  background: color-mix(in srgb, var(--ice) 16%, transparent);
}

.rm-lesson.is-done {
  opacity: 1;
}

.rm-lesson.is-done:hover,
.rm-lesson.is-done:focus-visible {
  opacity: 1;
}

.rm-check {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 50%, var(--line));
  display: grid;
  place-items: center;
}

.rm-lesson.is-now .rm-check {
  border-color: color-mix(in srgb, var(--ice) 60%, var(--line));
}

.rm-lesson.is-done .rm-check {
  border-color: color-mix(in srgb, var(--testen) 55%, var(--line));
  background: color-mix(in srgb, var(--testen) 14%, transparent);
  color: var(--testen);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.rm-num {
  color: var(--rm-quiet, var(--muted));
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rm-lesson strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rm-lesson.is-now strong {
  font-weight: 700;
}

.rm-lesson em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.rm-lesson small {
  width: 5.2rem;
  min-width: 5.2rem;
  color: var(--rm-quiet, var(--muted));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.rm-lesson.is-done small {
  color: var(--testen);
}

.rm-lesson.is-now small {
  color: var(--ice);
}

.rm-lesson small:empty {
  overflow: hidden;
}

.rm-empty,
.rm-error {
  margin: 0;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rm-error {
  color: var(--danger-text);
}

.rm-banner {
  margin: 0;
  padding: 10px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.rm-lesson-sticky {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, var(--raise));
}

.rm-readbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  max-height: 52px;
  margin: 0 0 -52px;
  padding: 0 12px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100%);
  border: 0;
  background: color-mix(in srgb, var(--void) 90%, var(--panel));
}

.rm-readbar.is-on {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: none;
  border-bottom: 1px solid var(--line);
}

.rm-readbar .rm-back {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.rm-readbar-title {
  flex: 1 1 0%;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-readbar-pct {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rm-lesson-sticky-meta {
  flex: 1 1 0%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.rm-plate-kicker {
  color: var(--ice);
  background: var(--rm-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-plate-fase,
.rm-plate-module {
  min-width: 0;
  overflow-wrap: break-word;
}

.rm-plate-fase {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.rm-plate-module {
  color: var(--copy);
  font-size: 13px;
  font-weight: 600;
}

.rm-lesson-sticky-meta h1 {
  margin: 8px 0 0;
  min-width: 0;
  color: var(--text);
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

.rm-back,
.rm-ghost {
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.rm-back {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.rm-back:hover,
.rm-ghost:hover {
  border-color: color-mix(in srgb, var(--ice) 35%, var(--line));
}

.rm-back:focus-visible,
.rm-ghost:focus-visible,
.rm-copy:focus-visible,
.rm-next .cta:focus-visible,
.rm-complete:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}

.rm-article {
  padding: 18px 0 8px;
}

.rm-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.rm-lesson-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.rm-lesson-sticky-meta .rm-track.is-module {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
}

.rm-md {
  margin-top: 4px;
  color: var(--copy);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

.rm-md > * + * {
  margin-top: 14px;
}

.rm-step {
  margin: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--rm-card);
  min-width: 0;
  overflow-wrap: anywhere;
}

.rm-step + .rm-step {
  margin-top: 16px;
}

.rm-step-head {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.rm-step-label {
  display: block;
  color: var(--ice);
  background: var(--rm-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rm-step-title,
.rm-md-step {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rm-step-body > * + * {
  margin-top: 12px;
}

.rm-md h1,
.rm-md h2,
.rm-md h3,
.rm-md h4 {
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.rm-md h1 { font-size: 20px; }
.rm-md h2 { font-size: 18px; }
.rm-md h3,
.rm-md h4,
.rm-md-sub {
  font-size: 16px;
  font-weight: 650;
}

.rm-md p { margin: 0; }

.rm-md p.rm-md-action {
  padding: 10px 0 2px;
  color: var(--text);
  font-weight: 650;
}

.rm-md p.rm-md-route {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rm-inset);
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.rm-md p.rm-md-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  border-radius: 12px;
  background: var(--rm-inset);
  color: var(--text);
}

.rm-md-warn,
.rm-md-tip,
.rm-md-example,
.rm-md-checks,
.rm-md-prompt {
  min-width: 0;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--rm-inset);
  overflow-wrap: anywhere;
}

.rm-md-example {
  border-width: 1px;
}

.rm-md-warn,
.rm-md-tip {
  border-width: 1.5px;
}

.rm-md-prompt {
  position: relative;
  padding-left: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--rm-inset), var(--rm-inset)) padding-box,
    var(--rm-accent) border-box;
}

.rm-md-prompt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--rm-accent);
}

.rm-md-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--ice);
  background: var(--rm-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rm-md-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 1.5px;
  background: var(--rm-accent);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
}

.rm-md-warn .rm-md-kicker::before {
  transform: rotate(45deg);
  border-radius: 1px;
}

.rm-md-prompt-kicker {
  color: var(--ice);
  background: var(--rm-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.rm-md-copybar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.rm-copy {
  border: 1px solid color-mix(in srgb, var(--ice) 40%, var(--violet));
  background: color-mix(in srgb, var(--ice) 10%, var(--raise));
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 32px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rm-copy.is-copied {
  border-color: color-mix(in srgb, var(--testen) 45%, var(--line));
  color: var(--testen);
}

.rm-md-check {
  margin: 0;
  color: var(--text);
}

.rm-md-warn > * + *,
.rm-md-tip > * + *,
.rm-md-example > * + *,
.rm-md-checks > * + *,
.rm-md-prompt > * + * {
  margin-top: 8px;
}

.rm-md a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rm-md img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.rm-md-gap {
  height: 0.55em;
}

.rm-md blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 2px solid var(--line);
  background: transparent;
  border-radius: 0 12px 12px 0;
  overflow-wrap: anywhere;
}

.rm-md blockquote p {
  margin: 0;
}

.rm-md blockquote p + p {
  margin-top: 0.45em;
}

.rm-md table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rm-md th,
.rm-md td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rm-md th {
  background: var(--raise);
  font-weight: 700;
}

.rm-md ul,
.rm-md ol {
  margin: 0;
  padding: 2px 4px 2px 1.35em;
}

.rm-md li + li { margin-top: 0.4em; }

.rm-md ul ul,
.rm-md ol ol,
.rm-md ul ol,
.rm-md ol ul {
  margin-top: 0.35em;
  padding: 0 0 0 1.2em;
}

.rm-md hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  margin: 4px 0;
}

.rm-md pre {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
}

.rm-md pre code {
  background: none;
  padding: 0;
  overflow-wrap: anywhere;
}

.rm-md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--raise);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.rm-md strong { color: var(--text); font-weight: 700; }


.rm-lesson-footer {
  margin-top: 40px;
  padding: 0 0 8px;
}

.rm-lesson-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, var(--raise));
}

.rm-lesson-upnext {
  margin: 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rm-lesson-footer-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.rm-lesson-footer-nav > :first-child {
  justify-self: start;
  min-height: 40px;
}

.rm-lesson-footer-nav .rm-complete {
  justify-self: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 14px;
}

.rm-lesson-footer-nav > :last-child {
  justify-self: end;
  min-height: 40px;
}

.rm-lesson-coach {
  align-self: center;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
}

.rm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rm-complete {
  border: 1px solid color-mix(in srgb, var(--ice) 40%, var(--violet));
  background: color-mix(in srgb, var(--ice) 12%, var(--raise));
  color: var(--text);
  border-radius: 10px;
  padding: 11px 18px;
  min-height: 46px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.rm-complete.is-done {
  border-color: var(--line);
  background: var(--raise);
  color: var(--muted);
}

.rm-complete:disabled,
.rm-ghost:disabled,
.rm-next .cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  body[data-agent="roadmap"] .center {
    padding-left: 24px;
    padding-right: 24px;
  }
  body[data-agent="roadmap"] .center-head.center-head-roadmap {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 16px;
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
  }
  body[data-agent="roadmap"] .center-head-roadmap > div:first-child {
    flex: 0 0 auto;
  }
  body[data-agent="roadmap"] .center-head-roadmap .center-head-actions {
    width: 100%;
  }
  body[data-agent="roadmap"] .center-head-roadmap #roadmapEditBtn {
    width: auto;
    max-width: 100%;
  }
  .rm-editor {
    justify-content: stretch;
  }
  .rm-editor-card {
    width: 100%;
    border-left: 0;
  }
  .rm-editor-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .rm-mini,
  .rm-editor-actions .cta,
  .rm-editor-actions .rm-ghost,
  .rm-editor-delete {
    min-height: 44px;
  }
  .rm-head-progress {
    align-items: stretch;
    text-align: left;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .rm-track.is-overall {
    width: 100%;
  }
  .rm-next {
    grid-template-columns: 1fr;
  }
  .rm-next-actions,
  .rm-next .cta {
    width: 100%;
  }
  .rm-next .rm-track.is-module {
    max-width: 100%;
  }
  .rm-module-toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px;
  }
  .rm-module-copy .rm-track.is-module {
    max-width: 100%;
  }
  .rm-module-aside {
    grid-column: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .rm-badge {
    min-width: 0;
  }
  .rm-lessons {
    margin: 0 12px 12px;
    padding: 2px;
  }
  .rm-lesson {
    grid-template-columns: 18px 2em minmax(0, 1fr) 4.6rem;
    min-height: 48px;
    padding: 12px 8px;
  }
  .rm-lesson small,
  .rm-lesson small:empty {
    width: 4.6rem;
    min-width: 4.6rem;
  }
  .rm-readbar {
    padding: 0 8px;
    gap: 8px;
  }
  .rm-lesson-sticky {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 12px;
  }
  .rm-back {
    flex: 0 0 auto;
  }
  .rm-lesson-sticky-meta {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .rm-lesson-sticky-meta h1 {
    font-size: 22px;
  }
  .rm-step {
    padding: 14px 12px 12px;
  }
  .rm-lesson-footer-nav {
    display: flex;
    flex-direction: column;
  }
  .rm-lesson-footer-nav > :first-child,
  .rm-lesson-footer-nav > :last-child,
  .rm-lesson-footer-nav .rm-complete {
    width: 100%;
    justify-self: stretch;
  }
  .rm-lesson-coach {
    align-self: stretch;
    width: 100%;
  }
  body[data-agent="roadmap"] #roadmapCenter,
  body[data-agent="roadmap"] #roadmapCenter.is-lesson {
    padding-left: 0;
    padding-right: 0;
  }
}

.rm-status {
  margin-left: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.rm-module-desc {
  display: block;
  margin-top: 6px;
  color: var(--rm-quiet, var(--copy));
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rm-edit-launch { margin: 0 0 12px; }
.rm-edit-launch .cta { width: auto; margin-top: 0; }
.rm-edit { display: grid; gap: 16px; }
.rm-edit-bar,
.rm-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-edit-bar { justify-content: space-between; }
.rm-edit-bar h2,
.rm-edit-card h2,
.rm-edit-card h3 { margin: 0; }
.rm-edit .cta { width: auto; margin-top: 0; }
.rm-edit-card,
.rm-edit-step {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--rm-card, var(--panel));
}
.rm-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.rm-edit input,
.rm-edit textarea,
.rm-edit select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  color: inherit;
  font: inherit;
  font-weight: 500;
}
.rm-edit textarea { min-height: 96px; resize: vertical; }
.rm-edit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 720px) {
  .rm-edit-row,
  .rm-edit-bar,
  .rm-edit-actions { display: grid; }
  .rm-edit .cta,
  .rm-edit .rm-ghost,
  .rm-edit-launch .cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-track > span,
  .rm-chevron,
  .rm-lesson,
  .rm-module,
  .rm-module-toggle,
  .rm-search,
  .rm-next .cta,
  .rm-readbar {
    transition: none;
  }
}
