@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #111215;
  --sidebar: #15161a;
  --surface: #191a1f;
  --surface-hover: #202126;
  --line: #2c2d33;
  --text: #f2f0ed;
  --muted: #aaaab4;
  --muted-strong: #c5c4cc;
  --accent: #ffad71;
  --accent-bright: #ffab66;
  --green: #91dab6;
  --font: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font: 16px/1.55 var(--font);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
svg { display: block; width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 650; }
h2 { font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.2; }
p { color: var(--muted); }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .8rem; left: .8rem; z-index: 10; padding: .6rem 1rem; background: var(--text); color: var(--bg); border-radius: 6px; }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); overflow: auto; }
.brand { display: flex; align-items: center; gap: .7rem; margin: 0 1.25rem; min-height: 72px; font-size: 1.48rem; font-weight: 720; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #20130b; }
.brand-dot { color: var(--accent); }
.sidebar-main { padding: 1.45rem .85rem 1rem; }
.nav-label { padding: 0 .62rem; margin-bottom: .5rem; font: .73rem/1.4 var(--mono); color: var(--muted); letter-spacing: .095em; }
.main-nav, .track-nav { display: grid; gap: 3px; }
.main-nav a, .track-nav a { display: flex; align-items: center; gap: .7rem; min-height: 38px; padding: .42rem .65rem; border-radius: 7px; color: var(--muted-strong); font-size: .875rem; line-height: 1.25; }
.main-nav svg, .track-nav svg { width: 1rem; height: 1rem; color: var(--muted); }
.main-nav a:hover, .track-nav a:hover { background: var(--surface-hover); color: var(--text); }
.sidebar a[aria-current="page"] { color: var(--accent); background: #2a211e; }
.sidebar a[aria-current="page"] svg { color: var(--accent); }
.nav-divider { margin: 1.3rem .55rem; border-top: 1px solid var(--line); }
.sidebar-progress { display: grid; gap: .55rem; margin: auto .9rem 1rem; padding: .8rem .75rem; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }
.sidebar-progress:hover { border-color: #6d5140; }
.sidebar-progress-title { display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 600; }
.sidebar-progress-title svg { color: var(--accent); width: 1rem; }
.sidebar-progress-count { font-size: .8rem; color: var(--muted); }
.progress-bar { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 1rem; overflow: hidden; background: #36333a; color: var(--accent); }
.progress-bar::-webkit-progress-bar { background: #36333a; }
.progress-bar::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
.progress-bar::-moz-progress-bar { background: var(--accent); }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 72px; padding: 0 clamp(1.25rem, 3.3vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-location, .topbar-actions, .breadcrumb { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.breadcrumb { font-size: .875rem; }
.breadcrumb-root { color: var(--muted); white-space: nowrap; }
.breadcrumb-separator { color: #74737e; }
#breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.search-trigger, .topbar-progress, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 37px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted-strong); }
.search-trigger { padding: 0 .58rem 0 .72rem; white-space: nowrap; font-size: .875rem; }
.search-trigger:hover, .topbar-progress:hover, .icon-button:hover { color: var(--text); border-color: #66616a; }
.search-trigger svg { width: 1rem; }
kbd { padding: .1rem .34rem; border: 1px solid #424149; border-radius: 4px; color: var(--muted-strong); font: .72rem/1.3 var(--mono); }
.topbar-progress, .icon-button { width: 37px; flex: 0 0 37px; padding: 0; }
.topbar-progress { color: var(--accent); }
.menu-button { display: none; }
.content { max-width: 1490px; margin: 0 auto; padding: 2rem clamp(1.25rem, 3.3vw, 3.5rem) 3rem; min-height: calc(100vh - 144px); }
.content:focus { outline: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: 2rem; min-height: 342px; padding: clamp(1.8rem, 3.25vw, 3.1rem); border: 1px solid #40322c; border-radius: 15px; background: radial-gradient(ellipse at 91% 28%, #35221c 0%, transparent 58%), linear-gradient(120deg, #211a19, #1b181a 70%); overflow: hidden; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; background: radial-gradient(circle, #dca27a42 .8px, transparent 1px) 0 0 / 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 86%, transparent); }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--accent); font: .77rem/1.4 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.eyebrow > span { width: .48rem; height: .48rem; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: .75rem 0 .9rem; color: #fff4ec; font-size: clamp(2.9rem, 5vw, 5.2rem); font-weight: 730; letter-spacing: -.071em; line-height: .99; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 33ch; color: #c8bbb7; font-size: 1.065rem; line-height: 1.55; }
.hero-actions, .lesson-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.hero-actions { margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 43px; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 650; text-align: center; line-height: 1.25; }
.button svg { width: .92rem; height: .92rem; }
.primary { background: var(--accent-bright); color: #1f120b; }
.primary:hover { background: #ffd0a6; }
.secondary { border-color: #51454a; background: #252126; color: var(--text); }
.secondary:hover { border-color: #9a7461; background: #33292a; }
.architecture { width: 100%; max-width: 441px; justify-self: end; padding: .8rem .35rem .5rem; }
.architecture figcaption { display: flex; gap: .48rem; align-items: center; color: #d5a48a; font: .72rem/1.4 var(--mono); letter-spacing: .08em; margin: 0 0 .85rem; }
.architecture figcaption span { width: .4rem; height: .4rem; background: var(--accent); border-radius: 50%; }
.diagram-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3.4vw, 3.4rem); position: relative; }
.diagram-node { min-width: 0; padding: .8rem; border: 1px solid #594039; border-radius: 9px; background: #241d20; display: flex; align-items: center; gap: .6rem; position: relative; z-index: 1; box-shadow: 0 7px 22px #130c0e55; }
.diagram-node strong, .diagram-node small { display: block; white-space: nowrap; }
.diagram-node strong { font-size: .88rem; }
.diagram-node small { margin-top: .16rem; color: #c5a99d; font: .69rem/1.4 var(--mono); }
.node-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #45302a; color: var(--accent); flex: 0 0 30px; }
.node-icon svg { width: .97rem; height: .97rem; }
.api-node { border-color: #ac704b; background: #32231f; }
.data-node .node-icon { background: #382e44; color: #d3bafa; }
.cache-node .node-icon { background: #472b31; color: #f4a6aa; }
.connector { position: absolute; top: 50%; left: 25%; right: 25%; border-top: 1px dashed #c48560; }
.branch-row { margin-top: 2.4rem; }
.branch-row::before { content: ""; position: absolute; bottom: 100%; left: 25%; right: 25%; height: 1.2rem; border: 1px dashed #9b6954; border-bottom: 0; border-radius: 5px 0 0 0; }
.branch-row::after { content: ""; position: absolute; right: 25%; bottom: calc(100% + 1.2rem); height: 1.2rem; border-left: 1px dashed #9b6954; }
.stat-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.stat-row > div { display: flex; gap: .7rem; align-items: center; background: var(--surface); padding: 1rem clamp(.65rem, 1.6vw, 1.2rem); }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #48332a; border-radius: 7px; background: #2a211f; color: var(--accent); flex: 0 0 34px; }
.stat-icon svg { width: 1rem; height: 1rem; }
.stat-row strong, .stat-row small { display: block; }
.stat-row strong { font-size: .92rem; }
.stat-row small { font-size: .81rem; color: var(--muted); }
.catalogue { margin-top: 2.05rem; }
.section-heading h2 { font-size: 1.7rem; margin-bottom: .28rem; }
.section-heading p { font-size: .95rem; }
.filter-row { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; margin-bottom: .9rem; }
.filter { padding: .32rem .72rem; min-height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; color: var(--muted-strong); font-size: .875rem; }
.filter:hover { border-color: #80634e; color: var(--text); }
.filter[aria-pressed="true"] { border-color: #8a593c; color: var(--accent); background: #2c211e; }
.track-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: .85rem; }
.track-card { display: flex; flex-direction: column; gap: .53rem; min-height: 185px; padding: 1rem 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.track-card:hover { background: var(--surface-hover); border-color: #86624f; }
.track-card-top { display: flex; justify-content: space-between; align-items: center; gap: .45rem; }
.track-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border: 1px solid #604538; border-radius: 8px; background: #322520; color: var(--accent); }
.track-icon.green { background: #21312b; color: #98dabe; border-color: #3c5147; }
.track-icon.purple { background: #2b263b; color: #c8b0fc; border-color: #50446b; }
.track-icon.blue { background: #222c3b; color: #adcaff; border-color: #3e4c66; }
.track-icon.pink { background: #38262e; color: #f0a9c8; border-color: #644452; }
.track-meta { color: var(--muted); font: .76rem/1.3 var(--mono); white-space: nowrap; }
.track-card h3 { margin-top: .2rem; font-size: 1.13rem; line-height: 1.25; letter-spacing: -.027em; }
.track-card p { font-size: .92rem; line-height: 1.44; }
.track-keywords { margin-top: auto; padding-top: .3rem; color: #c5b0a5; font-size: .8rem; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.capstone-promo { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: 1.15rem; }
.capstone-promo p { margin-top: .3rem; }
.capstone-promo .button { margin-left: auto; flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 3.3vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer a:hover { color: var(--accent); }

.page-heading { padding: .4rem 0 1.55rem; }
.page-heading h1 { font-size: clamp(2.35rem, 5vw, 4.55rem); line-height: 1.035; letter-spacing: -.061em; margin: .7rem 0 .7rem; }
.page-heading p { max-width: 65ch; font-size: 1.05rem; }
.page-heading + .catalogue { margin-top: .65rem; }
.track-panel, .capstone-status, .milestone-list, .progress-list, .progress-summary { max-width: 850px; }
.track-panel-header, .capstone-status { display: flex; gap: .9rem; align-items: center; padding: 1.15rem; }
.track-panel-header p, .capstone-status p { margin-top: .25rem; font-size: .94rem; }
.list-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem; align-items: center; padding: .86rem 1rem; border-top: 1px solid var(--line); }
.list-item:hover { background: var(--surface-hover); }
.list-item:last-child { border-radius: 0 0 10px 10px; }
.list-item strong, .list-item small { display: block; }
.list-item small { font-size: .87rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.list-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; border: 1px solid #4c4140; color: var(--accent); }
.list-icon.done { color: var(--green); border-color: #3c594b; background: #22312b; }
.list-icon svg { width: .9rem; height: .9rem; }
.list-time { font-size: .81rem; color: var(--muted); white-space: nowrap; }
.below-panel { margin-top: 1rem; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(195px, 240px); align-items: start; gap: clamp(1rem, 3vw, 3rem); }
.lesson-main { max-width: 780px; min-width: 0; }
.parent-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-size: .91rem; }
.parent-link:hover { text-decoration: underline; }
.parent-link svg { width: .95rem; }
.lesson-main .page-heading { margin-top: .9rem; padding-bottom: .9rem; }
.lesson-meta { display: flex; gap: .45rem; align-items: center; color: var(--muted-strong); font-size: .9rem; }
.lesson-meta svg { width: .94rem; }
#lesson-status { margin-left: .4rem; border: 1px solid #51454a; padding: .2rem .48rem; border-radius: 5px; }
#lesson-status.status-done { color: var(--green); border-color: #49705c; }
.lesson-body { display: grid; gap: 1.25rem; margin-top: 1.4rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.lesson-body p, .practice p, .milestone p { margin-top: .5rem; }
.lesson-outline { position: sticky; top: 1.25rem; padding: .95rem; }
.lesson-outline h2 { font-size: 1rem; margin-bottom: .55rem; }
.lesson-outline a { display: flex; align-items: center; gap: .45rem; border-radius: 5px; padding: .55rem .45rem; font-size: .875rem; line-height: 1.3; color: var(--muted-strong); }
.lesson-outline a:hover { background: var(--surface-hover); }
.lesson-outline a[aria-current] { color: var(--accent); background: #30241f; }
.lesson-outline svg { width: .88rem; height: .88rem; }
.code-example { border: 1px solid #423c43; border-radius: 9px; background: #141417; overflow: hidden; margin-top: 1.5rem; }
.code-example > div { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--accent); font: .85rem var(--mono); }
.code-example pre { margin: 0; padding: .9rem; overflow: auto; font: .86rem/1.5 var(--mono); }
.text-button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--muted-strong); font-size: .83rem; }
.text-button:hover { color: var(--text); }
.text-button svg { width: .85rem; height: .85rem; }
.practice, .quiz { margin-top: 1.35rem; padding: 1rem 1.15rem; }
.practice { display: flex; align-items: start; gap: .75rem; }
.quiz fieldset { border: 0; padding: 0; margin: .7rem 0; min-width: 0; }
.quiz legend { margin-bottom: .45rem; font-weight: 550; padding: 0; }
.quiz label, .milestone-check { display: flex; align-items: center; gap: .55rem; padding: .48rem .6rem; border-radius: 6px; border: 1px solid var(--line); margin-top: .35rem; cursor: pointer; }
.quiz label:has(input:checked) { border-color: #98664a; background: #2d2421; }
.quiz input, .milestone-check input { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; flex-shrink: 0; }
#quiz-feedback:not(:empty) { margin-top: .65rem; }
#quiz-feedback.correct { color: var(--green); }
#quiz-feedback.retry { color: var(--accent); }
.lesson-actions, .milestone-list, .progress-list { margin-top: 1rem; }
.milestone-list { display: grid; gap: .65rem; }
.milestone { padding: 1.1rem; }
.milestone-check { width: fit-content; margin-top: .8rem; }
.milestone-check:has(input:checked) { color: var(--green); border-color: #49705c; }
.progress-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: 1.25rem; }
.progress-summary strong { font-size: 2.8rem; color: var(--accent); line-height: 1.15; }
.progress-summary .progress-bar { grid-column: 1 / -1; }
.progress-list .list-item:first-child { border-top: none; border-radius: 10px 10px 0 0; }
dialog { width: min(580px, calc(100% - 2rem)); max-height: min(650px, calc(100% - 2rem)); padding: 0; border: 1px solid #584849; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px #000a; }
dialog::backdrop { background: #08070cbb; }
.search-dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; }
.search-field { display: flex; align-items: center; gap: .6rem; margin: 0 1rem .65rem; padding: .5rem .65rem; border: 1px solid #655357; border-radius: 7px; background: var(--bg); color: var(--accent); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search-count { padding: .3rem 1rem .55rem; font-size: .85rem; }
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .hero { gap: 1.3rem; }
  .diagram-node { padding: .64rem .5rem; gap: .4rem; }
}
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding: 1.45rem; }
  .hero h1 { font-size: clamp(2.65rem, 5.2vw, 4.5rem); }
  .diagram-row { gap: 1.1rem; }
  .diagram-node { gap: .38rem; }
  .node-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .node-icon svg { width: .8rem; height: .8rem; }
  .track-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .lesson-outline { grid-row: 1; position: static; display: none; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 61px; left: 0; bottom: 0; width: min(260px, 90vw); height: auto; z-index: 4; visibility: hidden; box-shadow: 15px 0 45px #0007; }
  .menu-open .sidebar { visibility: visible; }
  .sidebar .brand { min-height: 58px; }
  .sidebar-main { padding-top: .75rem; }
  .menu-button { display: inline-flex; }
  .topbar { height: 61px; }
  .content { padding-top: 1.25rem; min-height: calc(100vh - 121px); }
  .hero { min-height: 300px; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 1.35rem; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero::before { inset: 46% 0 0; }
  .architecture { justify-self: start; padding: .4rem 0; }
  .diagram-node small { white-space: normal; }
  .stat-row { grid-template-columns: minmax(0,1fr); }
  .stat-row > div { padding: .7rem .85rem; }
  .track-grid { grid-template-columns: minmax(0,1fr); }
  .track-card { min-height: 0; }
  .breadcrumb-root, .breadcrumb-separator, .search-label, .search-trigger kbd { display: none; }
  .search-trigger { width: 37px; padding: 0; }
  .capstone-promo { flex-wrap: wrap; align-items: start; }
  .capstone-promo > div { flex: 1; min-width: 12rem; }
  .capstone-promo .button { margin-left: 0; }
  .progress-summary { grid-template-columns: minmax(0,1fr); }
  .progress-summary .button { justify-self: start; }
}
@media (max-width: 365px) {
  .content, .topbar, .footer { padding-inline: .85rem; }
  .hero { padding: 1.1rem; }
  .diagram-node { padding-inline: .35rem; gap: .35rem; }
  .diagram-node strong { font-size: .8rem; }
  .diagram-node small { font-size: .63rem; }
  .node-icon { width: 21px; height: 21px; flex-basis: 21px; }
}


.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.stage-card { min-height: 155px; }
.stage-level { color: var(--accent); font-weight: 650; font-size: .9rem; }
.stage-prerequisites, .stage-project { max-width: 850px; padding: 1.1rem; }
.stage-prerequisites p, .stage-project p { margin-top: .5rem; }
.stage-lessons, .stage-project { margin-top: 1.1rem; }
.stage-project h2 { margin-top: .5rem; }
.stage-project h3 { margin: 1rem 0 .4rem; }
.stage-project ol { padding-left: 1.5rem; color: var(--muted-strong); }
.stage-project li + li { margin-top: .45rem; }
.stage-project .milestone-check { width: auto; }
.stage-project details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.stage-project summary { color: var(--accent); cursor: pointer; }
.lesson-meta { flex-wrap: wrap; }
@media (max-width: 600px) {
  .path-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-card { min-height: 0; }
}
