body:has(#notesWorkspace:not([hidden]) .notes-learning-plan) .main { padding: 0 !important; }
#notesWorkspace.notes-workspace:has(.notes-learning-plan) { overflow: hidden; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; align-self: stretch; }
.notes-library.notes-learning-plan { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; max-width: none; padding: 0; box-sizing: border-box; }
.notes-library.notes-learning-plan > .study-path-header,
.notes-library.notes-learning-plan > .study-path-layout { max-width: none; margin-inline: 0; }
.study-path-header { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 14px; padding: 28px 36px 24px; }
.study-path-header h1 { font-size: 26px; letter-spacing: -.6px; }
.study-path-header > span { color: var(--notes-muted); font-size: 12px; }
.study-path-layout { display: contents; }
.study-path-sidebar, .study-path-detail { min-width: 0; }
.study-path-sidebar { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; min-height: 0; height: 100%; box-sizing: border-box; padding: 20px 0 0; border: 0; border-left: 2px solid var(--border); border-radius: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 24px; background: #fff; color: #303030; }
.study-path-detail { grid-column: 1; grid-row: 2; min-height: 0; padding: 0 36px 32px; overflow-y: auto; box-sizing: border-box; }
.study-path-summary { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; padding: 0 24px 14px; border: 0; }
.study-path-search { flex-shrink: 0; }
.study-path-summary > div { display: flex; align-items: baseline; gap: 10px; }
.study-path-summary h2 { font-size: 13px; }
.study-path-summary span { font-size: 11px; color: #777; }
.study-path-search-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e7e7e7; border-radius: 50%; background: #fff; color: #777; }
.study-path-search-toggle:hover { background: #f5f5f5; }
.study-path-search-toggle svg { width: 16px !important; height: 16px !important; }
.study-path-search { display: flex; align-items: center; gap: 8px; margin: 8px 24px; padding: 9px 12px; border: 1px solid #e7e7e7; background: #fff; border-radius: 8px; color: #777; }
.study-path-search[hidden] { display: none; }
.study-path-search svg { width: 15px !important; height: 15px !important; }
.study-path-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; font-size: 12px; color: var(--notes-ink); background: transparent; }
.study-path-scroll { flex: 0 0 auto; max-height: none; min-height: 0; padding: 16px 24px 36px; overflow: visible; mask-image: none; }
.study-path-sidebar, .study-path-detail { scrollbar-width: thin; scrollbar-color: #c9ced3 transparent; scrollbar-gutter: stable; }
/* Let Chromium use the custom pill instead of its native scrollbar controls. */
@supports selector(::-webkit-scrollbar) {
    #notesWorkspace .study-path-sidebar, #notesWorkspace .study-path-detail { scrollbar-width: auto; scrollbar-color: auto; }
}
#notesWorkspace .study-path-sidebar::-webkit-scrollbar, #notesWorkspace .study-path-detail::-webkit-scrollbar { width: 5px; background: transparent; }
#notesWorkspace .study-path-sidebar::-webkit-scrollbar-track, #notesWorkspace .study-path-detail::-webkit-scrollbar-track { background: transparent; border: 0; box-shadow: none; }
#notesWorkspace .study-path-sidebar::-webkit-scrollbar-thumb, #notesWorkspace .study-path-detail::-webkit-scrollbar-thumb { min-height: 32px; background: #c9ced3; border: 0; border-radius: 999px; box-shadow: none; }
#notesWorkspace .study-path-sidebar::-webkit-scrollbar-thumb:hover, #notesWorkspace .study-path-detail::-webkit-scrollbar-thumb:hover { background: #aeb6bf; }
#notesWorkspace .study-path-sidebar::-webkit-scrollbar-button, #notesWorkspace .study-path-detail::-webkit-scrollbar-button { display: none !important; width: 0 !important; height: 0 !important; border: 0; background: transparent; }
#notesWorkspace .study-path-sidebar::-webkit-scrollbar-corner, #notesWorkspace .study-path-detail::-webkit-scrollbar-corner { background: transparent; }
.study-path-unit { scroll-margin-block: 32px; }
.study-path-list { position: relative; width: calc(50% + 48px); margin-left: calc(50% - 48px); }
#notesWorkspace .study-circle-route { position: absolute; inset: 0 auto 0 0; width: 100px; height: 100%; pointer-events: none; stroke: #dedfe1; stroke-width: 2; fill: none; }
.study-syllabus-map { background: #87ceeb; border-radius: 28px; overflow: hidden; }
#notesWorkspace .study-syllabus-background { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.study-syllabus-background path { fill: #c5e7f4; stroke: #87ceeb; stroke-width: 10; stroke-linejoin: round; }
.study-syllabus-cell { position: absolute; display: block; box-sizing: border-box; padding: 0; border: 0; border-radius: 10px; background: #fff; cursor: pointer; }
.study-syllabus-cell:hover { background: #effaff; }
.study-syllabus-cell.is-selected { box-shadow: inset 0 0 0 2px #4f9ebd; }
.study-syllabus-cell.is-complete { background: #d7eee0; }
#notesWorkspace .study-syllabus-cell:focus-visible { outline: 2px solid #315c70; outline-offset: 3px; }
.study-path-unit { position: relative; z-index: 1; display: flex; align-items: center; width: 100%; height: 88px; box-sizing: border-box; padding: 8px 10px 8px 104px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; text-align: left; color: #303030; }
.study-path-unit:hover { background: transparent; }
.study-path-unit:hover .study-path-node { transform: translateY(-4px); }
#notesWorkspace .study-path-unit:focus-visible { outline: none; }
#notesWorkspace .study-path-unit:focus-visible .study-path-node { outline: 2px solid #947719; outline-offset: 5px; }
.study-path-node { position: absolute; top: 20px; left: calc(16px + var(--unit-shift)); display: grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; border: 3px solid #e3bf2a; border-radius: 50%; color: #453c1b; background: #ffdc4b; box-shadow: none; font-size: 15px; font-weight: 600; transition: transform 150ms ease; }
.study-path-unit.is-selected .study-path-node { background: #ffdc4b; border-color: #e3bf2a; color: #453c1b; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #ead57e; }
.study-path-unit-copy { display: grid; flex: 1; gap: 4px; min-width: 0; box-sizing: border-box; }
.study-path-unit-copy small { color: #777; font-size: 10px; line-height: 1.2; }
.study-path-unit-copy strong { font-size: 12px; font-weight: 400; line-height: 1.4; overflow-wrap: break-word; }
.study-path-unit.is-selected .study-path-unit-copy strong { font-weight: 600; }
#syllabusWorkspace[data-retired-page] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .study-path-node { transition: none; } .study-path-unit:hover .study-path-node { transform: none; } }
.study-unit-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 22px; min-height: 64px; }
.study-unit-heading > div > span { color: var(--notes-muted); font-size: 11px; }
.study-unit-heading h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.5px; margin-top: 5px; }
.study-unit-navigation { display: flex; gap: 6px; flex-shrink: 0; }
.study-unit-navigation button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--notes-line); border-radius: 8px; background: var(--notes-paper); color: var(--notes-muted); }
.study-unit-navigation svg { width: 14px !important; height: 14px !important; }
.study-unit-card { border: 1px solid var(--notes-line); border-radius: 12px; background: var(--notes-paper); overflow: hidden; }
.study-unit-card > header { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px 4px; }
.study-unit-card h3 { font-size: 13px; font-weight: 600; }
.study-unit-card > header > span { color: var(--notes-muted); font-size: 10px; }
.study-unit-card ol { list-style: none; padding: 0 18px; margin: 0; }
.study-syllabus-checklist { margin-top: 22px; }
.study-checklist-groups { padding: 8px 10px 12px; }
.study-syllabus-checklist .topical-inline-subtopics { animation-fill-mode: backwards; }
.study-syllabus-checklist svg.topical-topic-chevron { width: 14px; height: 14px; }
.study-syllabus-checklist .study-checklist-point { align-items: start; line-height: 1.55; cursor: pointer; }
.study-checklist-point input { appearance: none; position: relative; box-sizing: border-box; width: 16px; height: 16px; margin: 2px 0 0; border: 2px solid color-mix(in srgb, var(--muted) 24%, var(--surface)); border-radius: 50%; background: transparent; cursor: pointer; }
.study-checklist-point input:checked { background: #548b72; border-color: #548b72; }
.study-checklist-point input:checked::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.study-checklist-point.is-checked > span:last-child { color: var(--notes-muted); }
.study-syllabus-checklist .study-checklist-complete { border-color: #548b72; background: #e2f0e8; }
@media (prefers-reduced-motion: reduce) { .study-syllabus-checklist .topical-inline-subtopics, .study-syllabus-checklist .topical-inline-subtopic { animation: none; } }
.study-unit-task { display: flex; gap: 12px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--notes-line); }
.study-unit-task:last-child { border-bottom: 0; }
.study-task-check { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; padding: 0; border: 1px solid var(--notes-line); border-radius: 5px; color: var(--notes-paper); background: var(--notes-paper); }
.study-task-check[aria-pressed=true] { background: #548b72; border-color: #548b72; }
.study-task-check svg { width: 12px !important; height: 12px !important; }
.study-task-copy { display: grid; flex: 1; min-width: 0; gap: 8px; }
.study-task-copy strong { font-size: 12px; font-weight: 400; line-height: 1.5; }
.study-unit-task.is-complete .study-task-copy strong { text-decoration: line-through; color: var(--notes-muted); }
.study-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; color: var(--notes-muted); }
.study-task-subject { padding: 2px 6px; border-radius: 4px; background: #f0e9ff; color: #8862b5; }
.study-task-kind { display: inline-flex; align-items: center; gap: 4px; }
.study-task-kind svg { width: 12px !important; height: 12px !important; }
.study-task-kind[data-kind=questions] svg { color: #068d77; fill: #068d77; stroke-width: 1; }
.study-task-start { display: inline-flex; flex: 0 0 auto; gap: 5px; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--notes-line); border-radius: 8px; background: var(--notes-paper); color: var(--notes-muted); font-size: 11px !important; }
.study-task-start:hover { background: var(--notes-tint); color: var(--notes-ink); }
.study-task-start svg { width: 12px !important; height: 12px !important; }
.study-task-unavailable { flex-shrink: 0; color: var(--notes-muted); font-size: 10px; }
.study-unit-task.is-upcoming .study-task-copy { color: var(--notes-muted); }
.study-path-empty { padding: 20px 10px; color: var(--notes-muted); font-size: 12px; }
[data-theme=dark] .study-task-subject { color: #c0a5e5; background: #39303f; }
@media (max-width: 1050px) {
    .study-path-header { padding: 24px; }
    .study-path-detail { padding: 0 24px 24px; }
    .study-path-summary { padding-inline: 20px; }
    .study-unit-heading h2 { font-size: 20px; }
}
@media (max-width: 760px) {
    .study-path-list { width: 100%; margin-left: 0; }
    .notes-library.notes-learning-plan { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
    .study-path-header { padding: 20px 16px; flex-wrap: wrap; gap: 4px 12px; }
    .study-path-detail { padding: 0 16px 24px; }
    .study-path-sidebar { padding: 20px 0 0; }
    .study-path-summary { padding-inline: 14px; }
    .study-path-search { margin-inline: 14px; }
    .study-path-scroll { padding-inline: 14px; }
    .study-unit-task { gap: 9px; }
    .study-unit-heading { flex-wrap: wrap; }
    .study-unit-task { flex-wrap: wrap; }
    .study-task-start, .study-task-unavailable { margin-left: 26px; }
}

/* Syllabus page redesign: all rules stay inside the notes study-plan content. */
.notes-library.notes-learning-plan {
    --plan-ink: #17171c;
    --plan-muted: #777780;
    --plan-line: #e9e9ef;
    --plan-canvas: #fafafc;
    --plan-panel: #fff;
    --plan-yellow: #ffd83d;
    --plan-yellow-deep: #e0a800;
    --plan-cream: #fffbe6;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    padding: 0;
    color: var(--plan-ink);
    background: var(--plan-canvas);
}
.notes-library.notes-learning-plan > .study-path-header { display: none; }
.notes-library.notes-learning-plan > .study-path-detail {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    padding: 36px clamp(24px, 4vw, 56px) 64px;
    overflow: auto;
    background: var(--plan-canvas);
}
.study-detail-inner { width: 100%; max-width: 640px; margin: 0 auto; }
.study-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #8c8c98; font-size: 14px; }
.study-breadcrumb svg { width: 13px !important; height: 13px !important; }
.study-breadcrumb strong { color: var(--plan-ink); font-weight: 600; }
.study-unit-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 32px 32px;
    border: 1px solid var(--plan-line);
    border-radius: 24px;
    background: var(--plan-panel);
    box-shadow: 0 1px 0 rgb(23 23 28 / 3%), 0 12px 28px -20px rgb(23 23 28 / 20%);
}
.study-unit-hero-doodle { position: absolute; right: -34px; bottom: -40px; width: 230px; height: 230px; pointer-events: none; }
.study-unit-hero-doodle svg { width: 100% !important; height: 100% !important; }
.study-unit-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.study-unit-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid #f6e69a; border-radius: 999px; background: var(--plan-cream); color: #8a6a00; font-size: 13px; font-weight: 600; }
.study-unit-navigation { display: flex; flex-shrink: 0; gap: 6px; }
.study-unit-navigation button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--plan-line); border-radius: 10px; background: var(--plan-panel); color: #55555f; }
.study-unit-navigation button:hover:not(:disabled) { background: var(--plan-canvas); }
.study-unit-navigation button:disabled { cursor: default; opacity: .35; }
.study-unit-navigation svg { width: 14px !important; height: 14px !important; }
.study-unit-hero h2 { position: relative; max-width: 12ch; margin: 22px 0 10px; font-family: var(--font-display, inherit); font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.study-unit-meta { position: relative; margin: 0 0 26px !important; color: #55555f; font-size: 16px; }
.study-unit-progress { position: relative; display: flex; align-items: center; gap: 14px; max-width: 360px; margin-bottom: 28px; color: #55555f; font-size: 13px; white-space: nowrap; }
.study-progress-segments { display: flex; flex: 1; gap: 6px; }
.study-progress-segments .seg { flex: 1; min-width: 5px; height: 10px; border-radius: 999px; background: #eeeef3; }
.study-progress-segments .seg.done { background: var(--plan-yellow); }
.study-unit-cta-row { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.study-unit-primary { min-height: 54px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--plan-yellow); box-shadow: 0 4px 0 var(--plan-yellow-deep); color: var(--plan-ink); font-size: 18px !important; font-weight: 700; transition: transform .12s ease, box-shadow .12s ease; }
.study-unit-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--plan-yellow-deep); }
.study-unit-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--plan-yellow-deep); }
.study-unit-cta-row > span { color: #55555f; font-size: 14px; }
.study-soon { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border: 1.5px dashed #dcdce5; border-radius: 14px; color: #777780; font-size: 14px; }
.study-soon > span:first-child { display: grid; place-items: center; flex: 0 0 18px; }
.study-soon > span:first-child svg { width: 18px !important; height: 18px !important; }
.study-soon--available { border-style: solid; border-color: var(--plan-line); background: var(--plan-panel); color: var(--plan-ink); }
.study-soon-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.study-soon button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0 4px 8px; border: 0; background: transparent; color: #55555f; font-size: 13px !important; white-space: nowrap; }
.study-soon button svg { width: 14px !important; height: 14px !important; }
.study-topics { margin-top: 40px; }
.study-topics-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.study-topics-heading h3 { color: var(--plan-ink); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.study-topics-heading > span { color: #8c8c98; font-size: 13px; }
.study-checklist-groups { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.study-topic { overflow: hidden; border-radius: 16px; }
.study-topic-button { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; width: 100%; gap: 18px; padding: 18px 16px; border: 0; border-radius: 16px; background: transparent; color: var(--plan-ink); text-align: left; }
.study-topic-button:hover, .study-topic.is-expanded .study-topic-button { background: var(--plan-panel); box-shadow: inset 0 0 0 1px var(--plan-line); }
.study-topic-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.study-topic-code { margin-right: 8px; color: #8c8c98; font-weight: 500; }
.study-topic-progress { display: grid; justify-items: end; gap: 6px; color: #8c8c98; font-size: 12px; white-space: nowrap; }
.study-topic-segments { display: flex; width: 70px; gap: 4px; }
.study-topic-segments .seg { flex: 1; min-width: 3px; height: 6px; border-radius: 999px; background: #eeeef3; }
.study-topic-segments .seg.done { background: var(--plan-yellow); }
.study-topic-chevron { width: 16px !important; height: 16px !important; color: #8c8c98; transition: transform .18s ease; }
.study-topic.is-expanded .study-topic-chevron { transform: rotate(90deg); }
.study-topic .topical-inline-subtopics { margin: 0 12px 12px; padding: 8px 10px 10px; border: 1px solid var(--plan-line); border-radius: 12px; background: var(--plan-panel); }
.study-topics-empty { padding: 24px 16px; border: 1.5px dashed #dcdce5; border-radius: 16px; color: #55555f; text-align: center; }
.notes-library.notes-learning-plan > .study-path-sidebar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-left: 1px solid var(--plan-line);
    border-radius: 0;
    background-color: var(--plan-cream);
    background-image: radial-gradient(#f2e3a0 1.4px, transparent 1.5px);
    background-size: 24px 24px;
}
.study-path-summary { display: flex; flex-shrink: 0; align-items: baseline; justify-content: space-between; padding: 26px 32px 12px; border: 0; }
.study-path-summary h2 { color: var(--plan-ink); font-family: var(--font-display, inherit); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.study-path-summary > span { color: #8c8c98; font-size: 13px; font-weight: 500; }
.study-path-scroll { flex: 1 1 auto; min-height: 0; max-height: none; padding: 8px 24px 28px; overflow: auto; mask-image: none; }
.study-path-list { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
#notesWorkspace .study-circle-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; stroke: #e6d27a; stroke-width: 4; fill: none; }
#notesWorkspace .study-circle-route path { stroke-dasharray: 1 10; stroke-linecap: round; }
#notesWorkspace .study-path-unit { position: absolute; z-index: 1; top: var(--path-y); left: 0; display: block; width: 100%; height: 72px; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--plan-ink); text-align: left; }
#notesWorkspace .study-path-unit:hover { background: transparent; }
#notesWorkspace .study-path-node { position: absolute; top: 50%; left: var(--path-x); display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid #e3bf2a; border-radius: 50%; background: #ffdc4b; box-shadow: none; color: #453c1b; font-size: 15px; font-weight: 600; transform: translate(-50%, -50%); transition: transform .15s ease; }
#notesWorkspace .study-path-unit:hover .study-path-node { transform: translate(-50%, -50%) scale(1.08); }
#notesWorkspace .study-path-unit.is-selected .study-path-node { width: 72px; height: 72px; border-color: #e0a800; background: #ffd83d; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #ead57e; }
#notesWorkspace .study-path-node svg { width: 20px !important; height: 20px !important; }
#notesWorkspace .study-path-unit:focus-visible { outline: none; }
#notesWorkspace .study-path-unit:focus-visible .study-path-node { outline: 2px solid #947719; outline-offset: 5px; }
#notesWorkspace .study-path-unit-copy { position: absolute; top: 50%; display: grid; width: min(150px, calc(50% - 66px)); min-width: 0; gap: 4px; box-sizing: border-box; transform: translateY(-50%); }
#notesWorkspace .study-path-unit--label-right .study-path-unit-copy { left: calc(var(--path-x) + 52px); text-align: left; }
#notesWorkspace .study-path-unit--label-left .study-path-unit-copy { right: calc(var(--path-x) - 52px); text-align: right; }
#notesWorkspace .study-path-unit-copy small { color: #777780; font-size: 12px; line-height: 1.2; }
#notesWorkspace .study-path-unit-copy strong { color: #55555f; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
#notesWorkspace .study-path-unit.is-selected .study-path-unit-copy strong { color: var(--plan-ink); font-weight: 600; }
.notes-library.notes-learning-plan .study-path-empty { color: #55555f; }
[data-theme="dark"] .notes-library.notes-learning-plan { --plan-ink: #f0f1f4; --plan-muted: #b2b3bd; --plan-line: #3b3c46; --plan-canvas: #202126; --plan-panel: #292a31; --plan-cream: #383321; }
[data-theme="dark"] .notes-library.notes-learning-plan .study-breadcrumb,
[data-theme="dark"] .notes-library.notes-learning-plan .study-unit-meta,
[data-theme="dark"] .notes-library.notes-learning-plan .study-unit-cta-row > span,
[data-theme="dark"] .notes-library.notes-learning-plan .study-soon,
[data-theme="dark"] .notes-library.notes-learning-plan .study-topics-heading > span,
[data-theme="dark"] .notes-library.notes-learning-plan .study-topic-progress,
[data-theme="dark"] .notes-library.notes-learning-plan .study-topic-code,
[data-theme="dark"] .notes-library.notes-learning-plan .study-path-summary > span { color: var(--plan-muted); }
[data-theme="dark"] .notes-library.notes-learning-plan .study-soon,
[data-theme="dark"] .notes-library.notes-learning-plan .study-topic-button:hover,
[data-theme="dark"] .notes-library.notes-learning-plan .study-topic.is-expanded .study-topic-button { border-color: var(--plan-line); }
@media (max-width: 1000px) {
    .notes-library.notes-learning-plan { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(400px, 52vh); }
    .notes-library.notes-learning-plan > .study-path-detail { grid-column: 1; grid-row: 1; padding-inline: clamp(20px, 5vw, 48px); }
    .notes-library.notes-learning-plan > .study-path-sidebar { grid-column: 1; grid-row: 2; border-top: 1px solid var(--plan-line); border-left: 0; }
    .study-path-summary { padding: 22px 28px 8px; }
}
@media (max-width: 600px) {
    .notes-library.notes-learning-plan { grid-template-rows: minmax(0, 1fr) minmax(360px, 46vh); }
    .notes-library.notes-learning-plan > .study-path-detail { padding: 24px 16px 36px; }
    .study-unit-hero { padding: 24px 20px 26px; border-radius: 20px; }
    .study-unit-hero h2 { font-size: clamp(34px, 10vw, 44px); }
    .study-unit-progress { align-items: flex-start; flex-direction: column; gap: 8px; }
    .study-progress-segments { width: 100%; flex: none; }
    .study-topic-button { grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; padding: 15px 12px; }
    .study-topic-progress { grid-column: 1; grid-row: 2; display: flex; align-items: center; justify-items: start; gap: 8px; }
    .study-topic-chevron { grid-column: 2; grid-row: 1 / span 2; }
    .study-topic-title { font-size: 15px; }
    .study-path-scroll { padding-inline: 12px; }
    .study-path-summary { padding-inline: 20px; }
    #notesWorkspace .study-path-unit-copy { width: min(140px, calc(50% - 56px)); }
    #notesWorkspace .study-path-unit--label-right .study-path-unit-copy { left: calc(var(--path-x) + 46px); }
    #notesWorkspace .study-path-unit--label-left .study-path-unit-copy { right: calc(var(--path-x) - 46px); }
    #notesWorkspace .study-path-unit-copy small { font-size: 11px; }
    #notesWorkspace .study-path-unit-copy strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .study-unit-primary, #notesWorkspace .study-path-node, .study-topic-chevron { transition: none; }
    #notesWorkspace .study-path-unit:hover .study-path-node { transform: translate(-50%, -50%); }
}

/* Match the supplied page markup and keep its roadmap wide enough for both labels. */
.notes-library.notes-learning-plan { grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr) !important; }
.notes-library.notes-learning-plan > .study-path-detail,
.notes-library.notes-learning-plan > .study-path-sidebar { width: 100%; max-width: none; margin: 0; }
.study-unit-hero { border-radius: 28px; }
.study-unit-hero-doodle { width: 230px !important; height: 230px !important; }
.study-unit-hero-doodle .d-body { fill: var(--accent-tint); stroke: var(--accent); }
.study-unit-hero-doodle .d-nuc { fill: var(--accent); stroke: var(--accent-deep); }
.study-unit-hero-doodle .d-spot { fill: var(--accent-deep); }
.study-unit-hero-doodle .d-org { fill: #fff; stroke: var(--accent-deep); }
.study-unit-chip { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent-text); }
.study-progress-segments .seg.done, .study-topic-segments .seg.done { background: var(--accent); }
.study-unit-primary { background: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); color: var(--accent-ink); transition: transform .12s ease, box-shadow .12s ease, background .2s ease; }
.study-unit-primary:hover { box-shadow: 0 5px 0 var(--accent-deep); }
.study-unit-primary:active { box-shadow: 0 1px 0 var(--accent-deep); }
.notes-library.notes-learning-plan > .study-path-sidebar { background-color: #f3f4fa !important; background-image: radial-gradient(#DCDFEE 1.4px, transparent 1.5px) !important; }
.roadmap-head { display: flex; flex-shrink: 0; align-items: baseline; justify-content: space-between; padding: 26px 32px 0; }
.roadmap-head h2 { color: var(--plan-ink); font-family: var(--font-display, inherit); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.roadmap-head span { color: #8c8c98; font-size: 13px; font-weight: 500; }
.study-path-scroll.scroller { position: relative; flex: 1; min-height: 0; max-height: none; padding: 0; overflow-y: auto; scrollbar-width: none; mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 64px), transparent 100%); }
.study-path-scroll.scroller::-webkit-scrollbar { display: none; }
.study-path-list.path { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
#notesWorkspace .study-path-list > svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; pointer-events: none; }
.study-path-list > svg path { stroke: #cbd0e4; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 10; }
#notesWorkspace .study-path-list .node { position: absolute; z-index: 1; display: grid; place-items: center; border: 3px solid var(--c); border-radius: 50%; background: var(--c-tint); color: var(--c-text); font-family: var(--font-display, inherit); font-size: 18px; font-weight: 700; transition: transform .15s ease, background .15s ease, color .15s ease; }
#notesWorkspace .study-path-list .node:hover:not(.current), #notesWorkspace .study-path-list .node:focus-visible:not(.current) { z-index: 20; transform: scale(1.08); background: var(--c); color: var(--c-ink); }
#notesWorkspace .study-path-list .node.current { z-index: 2; border-color: var(--c-deep); background: var(--c); box-shadow: 0 4px 0 var(--c-deep); color: var(--c-ink); font-size: 22px; }
#notesWorkspace .study-path-list .node.current::after { position: absolute; inset: -9px; border: 3px solid var(--c); border-radius: 50%; content: ""; opacity: .55; animation: study-path-pulse 2.4s ease-out infinite; }
.study-path-hovercard { position: absolute; top: 50%; z-index: 30; display: none; width: 220px; max-width: 240px; padding: 14px; border: 1px solid #e3e5eb; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgb(31 35 48 / 16%); color: #282a31; text-align: left; transform: translateY(-50%); white-space: normal; }
.study-path-hovercard.right { left: calc(100% + 10px); }
.study-path-hovercard.left { right: calc(100% + 10px); }
.study-path-hovercard.top { top: 0; transform: translateY(-8%); }
.study-path-hovercard::before { position: absolute; top: 0; width: 24px; height: 100%; content: ""; }
.study-path-hovercard.right::before { right: 100%; }
.study-path-hovercard.left::before { left: 100%; }
#notesWorkspace .study-path-list .node:hover .study-path-hovercard, #notesWorkspace .study-path-list .node:focus-visible .study-path-hovercard { display: block; }
.study-path-hover-heading { display: block; margin-bottom: 10px; color: #727684; font-size: 11px; font-weight: 600; line-height: 1.3; }
.study-path-hover-topics { display: grid; gap: 8px; max-height: 132px; overflow: auto; }
.study-path-hover-topic { display: grid; gap: 2px; }
.study-path-hover-topic small { color: #858995; font-size: 10px; font-weight: 600; line-height: 1.2; }
.study-path-hover-topic strong { color: #262830; font-size: 12px; font-weight: 600; line-height: 1.35; }
.study-path-hover-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.study-path-hover-stats > span { display: grid; gap: 3px; }
.study-path-hover-stats small { color: #858995; font-size: 10px; line-height: 1.2; }
.study-path-hover-stats strong { color: #343741; font-size: 12px; font-weight: 600; line-height: 1.25; }
.study-path-resources { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eceef2; }
.study-path-resource { display: grid; width: 30px; height: 26px; place-items: center; }
.study-path-resource svg { width: 23px !important; height: 20px !important; }
.study-path-resource .study-path-folder-icon { overflow: visible; fill: currentColor !important; stroke: none !important; }
.study-path-resource .folder-back { opacity: .78; }
.study-path-resource .folder-front { opacity: 1; }
.study-path-resource .folder-glint { fill: none !important; stroke: rgb(255 255 255 / 62%) !important; stroke-width: 1.2; stroke-linecap: round; }
.study-path-resource.questions { color: #159260; }
.study-path-resource.video { color: #3474da; }
.study-path-resource.video svg { width: 17px !important; height: 17px !important; }
.study-path-resource.notes { color: #efb900; }
@keyframes study-path-pulse { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }
.study-path-list .label { position: absolute; z-index: 1; font-size: 14px; line-height: 1.25; }
.study-path-list .label small { display: block; margin-bottom: 2px; color: #8c8c98; font-size: 12px; font-weight: 500; }
.study-path-list .label strong { color: var(--plan-ink); font-weight: 600; }
.study-path-list .label.right { text-align: left; }
.study-path-list .label.left { text-align: right; }
.study-path-list .label.is-current strong { font-family: var(--font-display, inherit); font-size: 17px; font-weight: 700; }
[data-theme="dark"] .notes-library.notes-learning-plan > .study-path-sidebar { background-color: #292b36 !important; background-image: radial-gradient(#414455 1.4px, transparent 1.5px) !important; }
@media (max-width: 1000px) {
    .notes-library.notes-learning-plan { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) 560px; }
    .notes-library.notes-learning-plan > .study-path-detail { grid-column: 1; grid-row: 1; }
    .notes-library.notes-learning-plan > .study-path-sidebar { grid-column: 1; grid-row: 2; border-top: 1px solid var(--plan-line); border-left: 0; }
    .roadmap-head { padding-inline: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    #notesWorkspace .study-path-list .node, #notesWorkspace .study-path-list .node.current::after, .study-unit-primary { transition: none; animation: none; }
}
