:root {
  color-scheme: light;
  --canvas: #f4f7fc;
  --surface: #fff;
  --ink: #172235;
  --muted: #536073;
  --blue: #065dc3;
  --line: #d8dfeb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #eaf1ff, transparent 40rem), var(--canvas);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100svh;
}
button { cursor: pointer; color: inherit; font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.roadmap { width: min(calc(100% - clamp(32px, 7vw, 96px)), 1160px); margin-inline: auto; padding: clamp(22px, 4vw, 45px) 0 45px; }
.intro {
  position: relative; isolation: isolate; overflow: hidden; margin-bottom: 23px; padding: clamp(17px, 4.2vw, 31px);
  border: 1px solid #cdddf8; border-radius: 27px; background: linear-gradient(124deg, #f4f9ff, #e0edff 78%);
  box-shadow: 0 8px 24px #3058a213;
  animation: appear .52s cubic-bezier(.2,.65,.3,1) both;
}
.intro-copy { position: relative; width: 68%; }
.intro h1 { font-size: clamp(39px, 8.4vw, 65px); line-height: .98; letter-spacing: -.071em; font-weight: 800; color: #173863; }
.intro p { margin-top: 12px; color: var(--muted); font-size: clamp(12px, 2.55vw, 15px); }
.intro .intro-summary { font-size: clamp(14px, 2.5vw, 17px); font-weight: 580; color: #315178; }
.intro-summary + p { margin-top: 6px; }
.intro p span { margin-inline: 4px; }
.intro-art {
  position: absolute; z-index: -1; width: min(47%, 385px); height: auto; right: 1%; top: 51%;
  aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center, #000 42%, #0008 61%, transparent 74%);
  transform: translateY(-50%); animation: drift 6s ease-in-out infinite;
}
.progress-block {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 12px;
  width: min(100%, 326px); margin-top: 19px; padding: 9px 11px; border: 1px solid #ffffffdd;
  background: #f8fbffe8; border-radius: 12px; font-size: 13px; font-weight: 650; color: var(--muted);
}
.progress-block span { color: var(--blue); font-variant-numeric: tabular-nums; }
progress { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.progress-track { grid-column: 1 / -1; height: 5px; border-radius: 9px; overflow: hidden; background: #dfe8f7; }
.progress-track i { display: block; height: 100%; width: var(--fill, 0%); background: linear-gradient(90deg,#176bea,#42b6ee); border-radius: inherit; transition: width .4s cubic-bezier(.2,.65,.3,1); }
.workspace { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(335px,1fr); gap: clamp(22px, 3vw, 42px); align-items: start; }
.learning-path > h2, .work-heading { min-height: 43px; margin-bottom: 9px; }
.learning-path > h2, .work-heading h2 { color: #1f3657; font-size: 22px; font-weight: 760; letter-spacing: -.035em; }
.learning-path > h2 { display: flex; align-items: center; }
.work-heading { display: flex; gap: 9px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stage-picker { min-width: 0; }
.stage-picker select {
  max-width: 100%; padding: 7px 9px; border: 1px solid #d6e2f1; border-radius: 9px;
  background: #fff; color: #315178; font-family: inherit; font-size: 13px; font-weight: 600;
}
.check-card {
  --check-color: var(--theme-strong);
  --check-tint: var(--tint);
  background: #fff; border: 1px solid #dfe7f2; border-radius: 17px; padding: 14px 15px;
  box-shadow: 0 3px 9px #2337500a;
}
.check-card + .check-card { margin-top: 10px; }
.public-card { --check-color: #4462a7; --check-tint: #edf2ff; }
.check-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 9px;
  background: var(--check-tint); border-radius: 9px; padding: 6px 9px;
}
.check-heading h3, .sheet-content .check-heading h3 { margin: 0; font-size: 15px; font-weight: 750; }
.check-count { color: var(--check-color); font-size: 13px; font-weight: 740; white-space: nowrap; font-variant-numeric: tabular-nums; }
.check-project, .sheet-content .check-project { margin: 7px 0 0 1px; font-size: 13px; font-weight: 650; color: var(--muted); }
.check-card ul { list-style: none; margin: 5px 0 0; padding: 0; }
.check-card li + li { border-top: 1px solid #ecf0f6; }
.task {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 9px;
  padding: 7px 1px; cursor: pointer; font-size: 14px; font-weight: 620; line-height: 1.32;
}
.task input { width: 17px; height: 17px; margin: 1px 0 0; cursor: pointer; accent-color: var(--check-color); }
.task small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.35; }
.task input:checked + span { color: var(--check-color); }
.save-note { margin: 9px 0 0 1px; color: var(--muted); font-size: 13px; }
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow::before { content: ""; position: absolute; top: 42px; bottom: 42px; left: 16px; width: 2px; background: linear-gradient(#8bb4f1,#a1cfc6 35%,#f0b7bc 76%,#e7c380); }
.step { position: relative; display: grid; align-items: center; grid-template-columns: 34px minmax(0,1fr); gap: 12px; animation: appear .48s cubic-bezier(.2,.65,.3,1) both; animation-delay: calc(55ms * var(--step-index) + 65ms); }
.theme-python { --tint: #edf4ff; --theme-ink: #18559b; --theme-line: #c4dafa; --theme-strong: #236bd1; }
.theme-data { --tint: #edfaf3; --theme-ink: #21674a; --theme-line: #c7e5d6; --theme-strong: #218155; }
.theme-ml { --tint: #fff4eb; --theme-ink: #984617; --theme-line: #f1d7c2; --theme-strong: #ad4b20; }
.theme-deploy { --tint: #eaf8f8; --theme-ink: #23646d; --theme-line: #c2e4e5; --theme-strong: #117780; }
.theme-deep { --tint: #fff0f5; --theme-ink: #92395e; --theme-line: #edcddd; --theme-strong: #a23e68; }
.theme-capstone { --tint: #fff7e8; --theme-ink: #825219; --theme-line: #eddab3; --theme-strong: #986018; }
.step-index {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--theme-line); color: var(--theme-ink); font-size: 14px; font-weight: 740;
  font-variant-numeric: tabular-nums;
  transition: background .24s, color .24s, box-shadow .24s;
}
.step.current .step-index { background: var(--theme-strong); color: #fff; border-color: var(--theme-strong); box-shadow: 0 0 0 4px var(--tint); }
.step.finished .step-index { background: #dff1e8; color: #136741; border-color: #c6e5d6; }
.stage-button {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  width: 100%; min-height: 82px; text-align: left; padding: 8px 13px 8px 8px;
  background: linear-gradient(110deg,var(--tint),var(--surface) 55%);
  border: 1px solid var(--theme-line); border-radius: 17px; box-shadow: 0 2px 6px #2337500a;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.stage-art { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; background: var(--tint); transition: transform .25s cubic-bezier(.2,.65,.3,1); }
@media (hover: hover) {
  .stage-button:hover { border-color: var(--theme-strong); box-shadow: 0 5px 14px #263c6014; transform: translateY(-2px); }
  .stage-button:hover .stage-art { transform: scale(1.045); }
}
.stage-button:active { transform: scale(.988); }
.current .stage-button { border-color: var(--theme-strong); }
.stage-month { display: block; color: var(--theme-ink, #546684); font-size: 12px; font-weight: 700; line-height: 1.2; }
.stage-name { display: block; margin-top: 2px; font-size: clamp(15px, 3.5vw, 18px); font-weight: 740; letter-spacing: -.018em; line-height: 1.23; }
.stage-project { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.chevron { width: 7px; height: 7px; border: solid #68809e; border-width: 1.7px 1.7px 0 0; transform: rotate(45deg); margin: 0 3px; }
body:has(dialog[open]) { overflow: hidden; }
dialog {
  padding: 0; width: min(calc(100% - 44px), 858px); height: min(675px, calc(100svh - 44px)); max-height: calc(100svh - 44px);
  border: 1px solid #d4dfef; border-radius: 25px; overflow: hidden;
  box-shadow: 0 24px 90px #172a533a; color: var(--ink); background: #f6f8fc;
}
dialog[open] { animation: sheet-in .28s cubic-bezier(.2,.65,.3,1) both; }
dialog::backdrop { background: #18294857; backdrop-filter: blur(4px); animation: fade-in .22s ease both; }
.sheet-close {
  position: absolute; top: 16px; right: 17px; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--theme-line); border-radius: 50%;
  background: #ffffffc9; color: var(--theme-ink); font-size: 25px; line-height: 1;
}
.sheet-close:hover { background: #fff; }
.sheet-content { display: grid; grid-template-rows: auto auto minmax(0,1fr); height: 100%; }
.sheet-hero {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px;
  padding: 20px 70px 20px 23px; background: linear-gradient(115deg, var(--tint), #fff);
  border-bottom: 1px solid var(--theme-line);
}
.sheet-hero .stage-art { width: 78px; height: 78px; }
.sheet-hero h2 { font-size: clamp(23px, 5vw, 35px); line-height: 1.1; letter-spacing: -.047em; margin: 4px 0 6px; }
.sheet-hero p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.sheet-nav {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 14px;
  padding: 12px 22px; border-bottom: 1px solid #e1e8f3; background: #fff;
}
.sheet-tabs { display: flex; gap: 3px; background: #eef2f8; border-radius: 12px; padding: 3px; }
.sheet-tabs button {
  min-height: 39px; border: 1px solid transparent; border-radius: 9px; padding: 5px 11px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 680; white-space: nowrap;
}
.sheet-tabs button[aria-selected=true] { background: #fff; color: var(--theme-ink); border-color: #e0e7f2; box-shadow: 0 2px 5px #2437530d; }
.stage-progress { color: var(--theme-ink); font-size: 13px; font-weight: 680; }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sheet-panel { padding: 16px 22px 23px; }
.sheet-panel[hidden] { display: none; }
.sheet-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.skills-layout { display: grid; grid-template-columns: minmax(185px, .7fr) minmax(0,1.45fr); gap: 15px; align-items: start; }
.skill-list { display: grid; gap: 5px; }
.skill-choice {
  display: grid; grid-template-columns: 17px 1fr; align-items: center; text-align: left; gap: 8px;
  min-height: 45px; padding: 8px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; font-size: 14px; font-weight: 640; line-height: 1.27;
}
.skill-choice:hover { background: #fff; }
.skill-choice[aria-current=true] { background: var(--tint); border-color: var(--theme-line); color: var(--theme-ink); }
.skill-choice small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; font-weight: 500; }
.skill-state {
  display: grid; place-items: center; width: 16px; height: 16px;
  border: 1px solid #becbe0; border-radius: 50%; background: #fff; color: #136741;
  font-size: 12px; font-weight: 730;
}
.skill-state:not(:empty) { background: #e4f4ec; border-color: #a8d6c2; }
.skill-picker { display: none; }
.skill-detail { min-width: 0; padding: 15px; border: 1px solid #dfe7f2; border-radius: 15px; background: #fff; }
.skill-time { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--tint); color: var(--theme-ink); font-size: 13px; font-weight: 680; }
.skill-detail h3 { font-size: 21px; letter-spacing: -.025em; margin: 5px 0; line-height: 1.2; }
.skill-detail p, .skill-steps dd { color: var(--muted); font-size: 15px; }
.skill-steps { display: grid; gap: 11px; padding: 10px 11px; background: #f5f7fb; border-radius: 10px; margin: 12px 0; }
.skill-steps dt, .skill-detail h4 { margin: 0; font-size: 14px; font-weight: 740; }
.skill-steps dd { margin: 2px 0 0; }
.skill-resources { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.skill-resources a { display: inline-block; padding-block: 4px; color: var(--blue); text-underline-offset: 2px; font-size: 14px; }
.complete {
  display: block; margin-top: 11px; padding: 7px 12px; min-height: 43px; border-radius: 9px;
  border: 1px solid var(--theme-line); background: var(--tint); color: var(--theme-ink); font-size: 14px; font-weight: 730;
}
.complete[aria-pressed=true] { color: #135d3f; background: #e5f4ed; border-color: #cbe5d8; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-52%); } }
@media(max-width: 840px) {
  .roadmap { width: min(calc(100% - 32px), 632px); }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .intro-art { width: 55%; right: -2%; top: 46%; }
}
@media(max-width: 660px) {
  dialog { width: 100%; max-width: 100%; height: min(735px, 92svh); max-height: 92svh; margin: auto 0 0; border-radius: 23px 23px 0 0; }
  .sheet-close { right: 12px; top: 12px; }
  .sheet-hero { padding: 16px 58px 13px 15px; gap: 8px; }
  .sheet-hero .stage-art { width: 48px; height: 48px; }
  .sheet-hero p { font-size: 14px; }
  .sheet-nav { padding: 8px 13px; }
  .sheet-panel { padding: 11px 13px calc(15px + env(safe-area-inset-bottom)); }
  .skills-layout { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .skill-list { display: none; }
  .skill-picker { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 650; }
  .skill-picker select { min-height: 44px; width: 100%; border: 1px solid #d7e0ee; border-radius: 9px; padding: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
}
@media(max-width: 420px) {
  .intro-copy { width: 66%; }
  .intro .intro-summary { font-size: 13px; }
  .intro-art { right: -5%; top: 36%; }
  .step { column-gap: 8px; grid-template-columns: 28px minmax(0,1fr); }
  .step-index { width: 28px; height: 28px; font-size: 12px; }
  .flow::before { left: 13px; }
  .stage-button { gap: 8px; padding-right: 9px; min-height: 76px; }
  .stage-art { width: 49px; height: 49px; border-radius: 10px; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
