.scope-note { display: grid; gap: .3rem; margin-top: 1rem; padding: 1rem 1.2rem; color: var(--muted); }
.scope-note strong { color: var(--accent); }
.scope-note span { color: var(--dim); font-size: .9rem; }
.leetcode-roadmap { position: relative; overflow: hidden; margin-top: 1rem; }
.leetcode-roadmap::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.roadmap-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; padding: clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0, rgba(101,217,255,.1), transparent 18rem); }
.roadmap-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.025em; }
.roadmap-heading p:last-child { margin: .55rem 0 0; color: var(--muted); }
.roadmap-status { flex: none; padding: .4rem .65rem; border: 1px solid rgba(101,217,255,.38); border-radius: 5px; color: var(--accent-2); background: rgba(101,217,255,.07); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.roadmap-status i { display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.roadmap-scroll { overflow-x: auto; scrollbar-color: var(--accent) #080d1b; }
.roadmap-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.roadmap-table { width: 100%; min-width: 1200px; border-collapse: collapse; table-layout: fixed; }
.roadmap-table th, .roadmap-table td { border-right: 1px solid rgba(38,59,104,.62); border-bottom: 1px solid rgba(38,59,104,.62); }
.roadmap-table tr:last-child > * { border-bottom: 0; }
.roadmap-table tr > *:last-child { border-right: 0; }
.roadmap-table thead th { padding: .65rem .75rem; color: var(--dim); background: #070b16; font: 700 .7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-align: left; }
.roadmap-table thead th:first-child { width: 145px; color: var(--accent); }
.roadmap-table thead th:nth-child(2) { width: 110px; }
.roadmap-table thead th:first-child, .roadmap-table tbody > tr > th[scope="rowgroup"] { position: sticky; z-index: 3; left: 0; }
.roadmap-table thead th:nth-child(2), .roadmap-table tbody > tr > .platform-label { position: sticky; z-index: 2; left: 145px; }
.roadmap-table thead th:first-child, .roadmap-table thead th:nth-child(2) { z-index: 4; }
.roadmap-table tbody > tr > th { padding: 1rem .8rem; color: var(--text); background: #080d1b; text-align: left; vertical-align: top; }
.roadmap-table tbody > tr > th span { display: block; margin-bottom: .35rem; color: var(--accent); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.roadmap-table tbody > tr > th strong { display: block; margin-top: .65rem; color: var(--accent-2); font-size: .78rem; line-height: 1.3; }
.roadmap-table tbody > tr > .platform-label { padding: 1rem .7rem; font: 750 .72rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.roadmap-table .university-label { color: var(--accent); }
.roadmap-table .leetcode-label { color: #f7b84b; }
.roadmap-table .hackerrank-label { color: var(--ok); }
.roadmap-table .codewars-label { color: var(--accent-2); }
.roadmap-table time { font-size: .82rem; line-height: 1.35; }
.roadmap-table td { padding: 0; vertical-align: top; background: rgba(14,20,37,.38); }
.roadmap-table td:last-child { white-space: normal; font-weight: normal; }
.roadmap-table .hackerrank-row td { background: rgba(13,35,35,.3); }
.roadmap-table .codewars-row > * { border-bottom-color: rgba(101,217,255,.34); }
.roadmap-table a, .roadmap-task { display: block; min-height: 132px; padding: .9rem .75rem; color: var(--text); text-decoration: none; transition: background .18s ease, box-shadow .18s ease; }
.roadmap-table a:hover { background: linear-gradient(145deg, rgba(101,217,255,.13), rgba(101,217,255,.035)); box-shadow: inset 0 0 0 1px rgba(101,217,255,.38), 0 0 24px rgba(101,217,255,.08); }
.roadmap-table a.is-complete { background: linear-gradient(145deg, rgba(111,255,193,.13), rgba(101,217,255,.04)); box-shadow: inset 0 0 0 1px rgba(111,255,193,.5); }
.roadmap-table a:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -3px; }
.roadmap-table b { display: block; min-height: 3.25rem; font-size: .86rem; line-height: 1.35; }
.roadmap-table small { display: block; margin-bottom: .25rem; color: var(--accent); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.roadmap-table a > span, .roadmap-task > span { display: inline-block; margin: .45rem .28rem 0 0; padding: .22rem .38rem; border: 1px solid rgba(101,217,255,.24); border-radius: 4px; color: var(--muted); background: rgba(7,11,22,.64); font: 650 .66rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.roadmap-table a > .practice-done { border-color: rgba(111,255,193,.58); color: var(--ok); background: rgba(111,255,193,.09); }
.roadmap-table .empty-task { color: var(--dim); text-align: center; vertical-align: middle; font-weight: normal; }
.roadmap-table .missing-task { padding: 1rem; color: var(--danger); background: rgba(255,107,138,.05); font-weight: 650; white-space: normal; }
.roadmap-table .final-week a { background: rgba(101,217,255,.035); }
.roadmap-table .final-week > th { color: var(--accent); }
.checkpoint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.python-optimisation { padding: clamp(1rem, 3vw, 1.5rem); border-top: 1px solid var(--line); background: radial-gradient(circle at 88% 0, rgba(101,217,255,.09), transparent 18rem); }
.python-optimisation > header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.python-optimisation h2 { margin: 0; }
.python-optimisation header > p { max-width: 470px; margin: 0; color: var(--muted); }
.python-optimisation > ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: optimisation; }
.python-optimisation li { counter-increment: optimisation; }
.python-optimisation article { position: relative; height: 100%; padding: 1rem 1rem 1rem 3.3rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(7,11,22,.52); }
.python-optimisation article::before { content: counter(optimisation, decimal-leading-zero); position: absolute; top: 1rem; left: 1rem; color: var(--accent); font: 700 .75rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.python-optimisation h3 { margin: 0; font-size: .98rem; }
.python-optimisation article > p, .python-optimisation details { color: var(--muted); }
.python-optimisation details { margin-top: .65rem; font-size: .86rem; }
.python-optimisation summary { color: var(--accent-2); cursor: pointer; font-weight: 700; }
.python-optimisation details p { margin: .55rem 0 0; }
.difficulty { display: inline-block; margin: 0 0 .5rem; padding: .18rem .35rem; border: 1px solid var(--line); border-radius: 4px; font: 700 .62rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.difficulty.easy { color: var(--ok); }.difficulty.medium { color: #ffd98a; }.difficulty.hard { color: #ff9eb2; }
.checkpoint-grid article { padding: clamp(1rem, 3vw, 1.5rem); }
.checkpoint-grid article + article { border-left: 1px solid var(--line); }
.checkpoint-grid article:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
.checkpoint-grid h3 { margin: 0 0 .8rem; }
.checkpoint-grid ol { margin: 0; padding-left: 1.3rem; color: var(--muted); }
.checkpoint-grid li + li { margin-top: .35rem; }
.checkpoint-grid li span, .checkpoint-note { color: var(--dim); font-size: .85rem; }
.checkpoint-note { margin: 1rem 0 0; }
.checkpoint-grid dl { display: grid; gap: .4rem; margin: 0; }
.checkpoint-grid dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(38,59,104,.55); }
.checkpoint-grid dt { color: var(--muted); }
.checkpoint-grid dd { margin: 0; color: var(--accent); font-weight: 750; }
.roadmap-back { margin: 1rem 0 0; text-align: right; }
.priority-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 1rem 2rem; margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); }
.priority-panel h2 { margin: 0; }
.priority-panel ol { grid-row: span 2; margin: 0; padding-left: 1.4rem; }
.priority-panel li + li { margin-top: .35rem; }
.priority-panel > p { margin: 0; color: var(--muted); }
.pickers { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: .75rem; }
.pickers label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; }
.pickers label[hidden] { display: none; }
.pickers select { min-height: 44px; padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #0b1223; }
#quiz { width: min(760px, 100%); margin-inline: auto; }
.question h2 { margin: 0 0 1rem; font-size: clamp(1.1rem, 3vw, 1.42rem); line-height: 1.55; }
.question pre, .solution pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-2); background: #080d1b; font: .92rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.syntax-keyword { color: #65d9ff; font-weight: 750; }
.syntax-operator { color: #c8d7ff; }
.syntax-number { color: #ffd98a; }
.syntax-string { color: #6fffc1; }
.answer-options { display: grid; gap: .55rem; }
.answer-option { position: relative; }
.answer-option input { position: absolute; opacity: 0; }
.answer-option span { display: block; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(7,11,22,.55); }
.answer-option input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(101,217,255,.13); }
.order-answer { display: grid; gap: .55rem; padding: 0; list-style: none; counter-reset: order; }
.order-answer li { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(7,11,22,.7); cursor: grab; counter-increment: order; }
.order-answer li::before { content: counter(order) "."; min-width: 1.2rem; color: var(--accent); font-weight: 800; }
.order-answer li.dragging { opacity: .45; }
.drag-handle { color: var(--dim); font-size: 1.2rem; }
.order-buttons { display: flex; gap: .3rem; margin-left: auto; }
.order-buttons button { min-width: 36px; min-height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); background: #0b1223; }
.order-buttons button:hover, .order-buttons button:focus-visible { border-color: var(--accent); background: rgba(101,217,255,.12); }
.solution { margin-top: 1rem; padding: 1rem; border: 1px solid var(--accent); border-radius: 6px; background: rgba(101,217,255,.06); }
.solution.correct { border-color: var(--ok); }
.solution.wrong { border-color: var(--danger); }
.solution h3 { margin-top: 0; color: var(--accent); }
.solution p:last-child { margin-bottom: 0; }
.trace-table { overflow-x: auto; }
.trace-table table { width: 100%; border-collapse: collapse; }
.trace-table th, .trace-table td { padding: .5rem; border: 1px solid var(--line); text-align: left; }
.question-map:empty { display: none; }

@media (max-width: 780px) { .pickers, .priority-panel { grid-template-columns: 1fr; } .priority-panel ol { grid-row: auto; } .roadmap-heading, .python-optimisation > header { align-items: start; flex-direction: column; } .checkpoint-grid, .python-optimisation > ol { grid-template-columns: 1fr; } .checkpoint-grid article + article { border-top: 1px solid var(--line); border-left: 0; } }
