:root {
  --bg: #0e1016;
  --card: #171a23;
  --card2: #1e2230;
  --border: #2a2f3f;
  --text: #e8eaf0;
  --muted: #9aa0b0;
  --accent: #34d399;
  --accent2: #60a5fa;
  --warn: #fbbf24;
  --danger: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
nav .brand { font-weight: 700; font-size: 17px; color: var(--text); }
nav .brand span { color: var(--accent); }
nav a.navlink { color: var(--muted); font-size: 14px; }
nav a.navlink:hover, nav a.navlink.active { color: var(--text); text-decoration: none; }

main { max-width: 920px; margin: 0 auto; padding: 28px 20px 80px; }

.hero { margin-bottom: 26px; }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.hero p { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.card h2, .card h3 { margin-bottom: 8px; }

.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grid.cols2 { grid-template-columns: 1fr; } }

.progressbar {
  height: 8px; border-radius: 99px;
  background: var(--card2);
  overflow: hidden;
}
.progressbar > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 99px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: .4px;
}
.badge.required { background: rgba(52,211,153,.15); color: var(--accent); }
.badge.elective { background: rgba(96,165,250,.15); color: var(--accent2); }
.badge.done { background: rgba(52,211,153,.2); color: var(--accent); }
.badge.in-progress { background: rgba(251,191,36,.15); color: var(--warn); }
.badge.not-started { background: var(--card2); color: var(--muted); }
.badge.locked { background: rgba(248,113,113,.12); color: var(--danger); }

.chip {
  display: inline-block; font-size: 12px; padding: 3px 10px;
  background: var(--card2); border-radius: 99px; color: var(--muted);
  margin: 2px 3px 2px 0;
}

.proj-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.proj-row:hover { border-color: var(--accent2); }
.proj-row .title { font-weight: 600; font-size: 15px; }
.proj-row .sub { color: var(--muted); font-size: 13px; }
.proj-row.locked { opacity: .55; }
.proj-row .right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.term-head { margin: 26px 0 10px; }
.term-head h2 { font-size: 18px; }
.term-head .sub { color: var(--muted); font-size: 13px; }

ul.ticklist { list-style: none; }
ul.ticklist li { padding: 5px 0 5px 26px; position: relative; }
ul.ticklist li::before { content: "▸"; position: absolute; left: 6px; color: var(--accent); }

.milestone {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 8px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
}
.milestone input[type=checkbox] { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.milestone.done .mtitle { text-decoration: line-through; color: var(--muted); }
.milestone .mtitle { font-weight: 600; font-size: 14px; }
.milestone .mdetail { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.milestone .mnum {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); margin-top: 2px;
}

.callout {
  border-left: 3px solid var(--accent);
  background: rgba(52,211,153,.07);
  padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 14px 0;
}
.callout.blue { border-left-color: var(--accent2); background: rgba(96,165,250,.07); }
.callout h4 { margin-bottom: 6px; font-size: 14px; }
.callout p { font-size: 14.5px; }

textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: inherit; font-size: 14px;
}
textarea:focus { outline: none; border-color: var(--accent2); }

button {
  background: var(--accent); color: #06281c; border: none;
  font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 9px; cursor: pointer;
}
button:hover { filter: brightness(1.1); }
button:disabled { background: var(--card2); color: var(--muted); cursor: not-allowed; }
button.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
button.small { padding: 6px 14px; font-size: 13px; }

.section { margin-top: 26px; }
.section > h2 { font-size: 18px; margin-bottom: 12px; }
.section > h2 .count { color: var(--muted); font-weight: 400; font-size: 14px; }

.video-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.video-item:last-child { border-bottom: none; }
.video-item .ch { color: var(--muted); font-size: 12.5px; }

.saved { color: var(--accent); font-size: 12.5px; opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }

.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; min-width: 130px;
}
.stat .num { font-size: 26px; font-weight: 700; color: var(--accent); }
.stat .lbl { font-size: 12.5px; color: var(--muted); }

.lock-note { color: var(--warn); font-size: 13px; margin: 10px 0; }
