﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0e0e0e;
  --ink-soft: #2a2a2a;
  --mid: #5a5a5a;
  --light: #a8a8a8;
  --rule: #e4e3e0;
  --paper: #f8f7f5;
  --surface: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(.22,.68,0,1.2);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --p1: #b83a16; --p1-bg: #fdf1ee;
  --p2: #1a5caa; --p2-bg: #eef3fb;
  --p3: #1f7a3a; --p3-bg: #eef7f1;
  --p4: #6b3eaa; --p4-bg: #f4f0fb;
  --p5: #aa7216; --p5-bg: #fbf6ee;
  --shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
}

[data-theme="dark"] {
  --ink: #f0ede8;
  --ink-soft: #d4cfc8;
  --mid: #8a8680;
  --light: #5a5650;
  --rule: #2a2825;
  --paper: #141210;
  --surface: #1e1c19;
  --p1-bg: #2a1a14; --p2-bg: #141e2a; --p3-bg: #141e17; --p4-bg: #1e1626; --p5-bg: #261e10;
  --shadow: 0 2px 12px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.65; overflow-x: hidden; transition: background .3s, color .3s; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: .3;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5vw;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.nav-brand { font-family: var(--serif); font-size: 1rem; font-weight: 400; letter-spacing: .02em; }
.nav-brand em { font-style: italic; color: var(--mid); }
.nav-tabs { display: flex; gap: .15rem; }
.nav-tab {
  font-family: var(--sans); font-size: .67rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem 1.1rem; cursor: pointer;
  border: none; background: transparent; color: var(--light);
  border-radius: 2px;
  transition: all .2s;
  text-decoration: none; display: inline-block;
}
.nav-tab:hover { color: var(--ink); background: color-mix(in oklch, var(--ink) 6%, transparent); }
.nav-tab.active { color: var(--ink); background: color-mix(in oklch, var(--ink) 9%, transparent); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-progress-pill {
  display: flex; align-items: center; gap: .6rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--light);
}
.nav-prog-bar { width: 60px; height: 2px; background: var(--rule); border-radius: 2px; }
.nav-prog-fill { height: 100%; background: var(--ink); border-radius: 2px; width: 0%; transition: width .5s var(--ease); }
.nav-prog-num { font-variant-numeric: tabular-nums; min-width: 28px; }

.dark-toggle {
  width: 34px; height: 20px; border-radius: 20px;
  background: var(--rule); border: 1px solid var(--rule);
  cursor: pointer; position: relative; transition: background .3s;
  flex-shrink: 0;
}
.dark-toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mid); transition: transform .25s var(--ease), background .3s;
}
[data-theme="dark"] .dark-toggle::after { transform: translateX(14px); background: var(--ink); }

/* ── HERO ── */
#hero {
  padding: 7rem 5vw 4.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  font-size: .65rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--light); margin-bottom: 1.8rem;
  opacity: 0; animation: up .6s .1s var(--ease) forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300; line-height: .92; letter-spacing: -.03em;
  margin-bottom: 3rem;
  opacity: 0; animation: up .8s .25s var(--ease) forwards;
}
.hero-title em { font-style: italic; color: var(--mid); }

.hero-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end;
  border-top: 1px solid var(--rule); padding-top: 2rem;
  opacity: 0; animation: up .6s .45s var(--ease) forwards;
}
.hero-desc { font-size: .88rem; color: var(--mid); line-height: 1.85; max-width: 380px; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: flex-end; }
.stat-n { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; display: block; line-height: 1; }
.stat-l { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--light); margin-top: .3rem; display: block; }

/* Timeline Gantt */
.hero-timeline {
  margin-top: 3.5rem;
  opacity: 0; animation: up .6s .6s var(--ease) forwards;
}
.ht-label { font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin-bottom: 1rem; }
.gantt { position: relative; }
.gantt-months {
  display: flex; border-bottom: 1px solid var(--rule);
  margin-bottom: .6rem; padding-bottom: .35rem;
}
.gantt-month {
  font-size: .56rem; color: var(--light); letter-spacing: .06em;
  flex: 1; text-align: center; user-select: none;
}
.gantt-month:first-child { text-align: left; }
.gantt-rows { display: flex; flex-direction: column; gap: .45rem; }
.gantt-row { display: flex; align-items: center; gap: 1rem; }
.gantt-row-label {
  font-size: .62rem; font-weight: 500; color: var(--mid);
  width: 140px; flex-shrink: 0; text-align: right; letter-spacing: .03em;
}
.gantt-track { flex: 1; height: 6px; background: var(--rule); border-radius: 3px; position: relative; overflow: visible; }
.gantt-bar {
  position: absolute; height: 100%; border-radius: 3px;
  cursor: pointer; transition: filter .2s, transform .2s;
  top: 0;
}
.gantt-bar:hover { filter: brightness(1.15); transform: scaleY(1.8); }
.gantt-bar-label {
  position: absolute; top: -18px; left: 0;
  font-size: .52rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: var(--mid); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.gantt-bar:hover .gantt-bar-label { opacity: 1; }
.gantt-progress-overlay {
  position: absolute; height: 100%; border-radius: 3px;
  top: 0; background: rgba(255,255,255,.4); transition: width .5s var(--ease);
  pointer-events: none;
}

/* ── TABS ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── OVERVIEW ── */
.overview { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); background: var(--surface); }
.ov-cell {
  padding: 1.6rem 1.2rem; border-right: 1px solid var(--rule);
  cursor: pointer; transition: background .2s;
  position: relative; overflow: hidden;
}
.ov-cell:last-child { border-right: none; }
.ov-cell:hover { background: var(--paper); }
.ov-n { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--light); margin-bottom: .35rem; display: flex; justify-content: space-between; align-items: center; }
.ov-line { height: 2px; margin-bottom: .6rem; border-radius: 1px; transition: width .5s var(--ease); }
.ov-title { font-family: var(--serif); font-size: .9rem; font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: .2rem; }
.ov-time { font-size: .6rem; color: var(--light); letter-spacing: .06em; }
.ov-prog { font-size: .58rem; color: var(--mid); font-weight: 500; }

/* Phase progress ring */
.phase-ring { flex-shrink: 0; }
.phase-ring circle { transition: stroke-dashoffset .6s var(--ease); }

/* ── FILTER ── */
.filter-bar {
  padding: .8rem 5vw; border-bottom: 1px solid var(--rule);
  display: flex; gap: .45rem; align-items: center;
  background: var(--paper); overflow-x: auto;
}
.filter-label { font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--light); white-space: nowrap; margin-right: .4rem; }
.filter-btn {
  font-family: var(--sans); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .85rem;
  border: 1px solid var(--rule); background: transparent;
  color: var(--light); border-radius: 2px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── LEGEND ── */
.legend { display: flex; gap: 1.8rem; padding: 1rem 5vw; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .65rem; color: var(--mid); }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* ── PHASE ── */
.phase-section { border-bottom: 1px solid var(--rule); padding: 5rem 5vw; }
.phase-header { display: grid; grid-template-columns: 80px 1fr auto; gap: 2.5rem; align-items: start; margin-bottom: 2.8rem; }
.phase-n { font-family: var(--serif); font-size: 4rem; font-weight: 300; line-height: .85; color: var(--rule); transition: color .4s; }
.phase-section:hover .phase-n { color: var(--pa, var(--mid)); }
.phase-tag { display: inline-block; font-size: .56rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--rule); padding: .16rem .55rem; border-radius: 2px; color: var(--mid); margin-bottom: .6rem; }
.phase-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .4rem; }
.phase-title em { font-style: italic; color: var(--mid); }
.phase-sub { font-size: .82rem; color: var(--mid); line-height: 1.8; max-width: 420px; margin-bottom: .5rem; }
.phase-time { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--light); }

.phase-prog-wrap { text-align: right; padding-top: .5rem; }
.phase-prog-count { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--ink); display: block; line-height: 1; }
.phase-prog-label { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--light); }
.phase-prog-bar-wrap { width: 80px; height: 2px; background: var(--rule); margin: .6rem 0 0 auto; border-radius: 1px; }
.phase-prog-bar { height: 100%; background: var(--pa, var(--mid)); border-radius: 1px; width: 0%; transition: width .6s var(--ease); }

/* ── SKILLS GRID ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.skill-card {
  background: var(--paper); padding: 1.8rem;
  cursor: pointer; transition: background .25s, transform .2s;
  position: relative;
}
.skill-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--pa, var(--mid));
  transition: width .25s var(--ease); opacity: .12;
}
.skill-card:hover { background: var(--surface); }
.skill-card:hover::before { width: 3px; }
.skill-card.expanded { background: var(--surface); }
.skill-card.expanded::before { width: 3px; }

.skill-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .65rem; }
.skill-priority {
  font-size: .54rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: .16rem .48rem; border-radius: 2px;
}
.priority-must { border: 1px solid color-mix(in oklch, var(--p1) 30%, transparent); color: var(--p1); background: var(--p1-bg); }
.priority-should { border: 1px solid color-mix(in oklch, var(--p2) 30%, transparent); color: var(--p2); background: var(--p2-bg); }
.priority-nice { border: 1px solid color-mix(in oklch, var(--p3) 30%, transparent); color: var(--p3); background: var(--p3-bg); }

.skill-name { font-family: var(--serif); font-size: 1.08rem; font-weight: 400; color: var(--ink); margin-bottom: .3rem; line-height: 1.25; }
.skill-desc { font-size: .77rem; color: var(--mid); line-height: 1.72; }

.skill-expand { overflow: hidden; max-height: 0; transition: max-height .45s ease; }
.skill-expand.open { max-height: 800px; }
.skill-divider { height: 1px; background: var(--rule); margin: 1rem 0; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: .42rem; margin-bottom: 1rem; }
.skill-list li { display: flex; gap: .6rem; font-size: .76rem; color: var(--mid); line-height: 1.6; align-items: flex-start; }
.skill-list li::before { content: '—'; color: var(--light); font-family: var(--serif); flex-shrink: 0; }

.res-title { font-size: .56rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin-bottom: .55rem; }
.res-list { display: flex; flex-direction: column; gap: .4rem; }
.res-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .75rem; color: var(--mid); line-height: 1.5; }
.rtype {
  font-size: .54rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; padding: .12rem .42rem; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.rtype-book   { border: 1px solid #e8d8a0; color: #8a6410; background: #fdf8ec; }
.rtype-article{ border: 1px solid #a8c8e8; color: #2a5888; background: #f0f6fc; }
.rtype-talk   { border: 1px solid #d8b8e8; color: #6a2888; background: #f8f0fc; }
.rtype-course { border: 1px solid #a8d8b8; color: #2a6838; background: #f0f8f4; }
.rtype-tool   { border: 1px solid #e8d0a0; color: #8a5810; background: #fdf6ec; }
[data-theme="dark"] .rtype-book   { background: #2a2010; }
[data-theme="dark"] .rtype-article{ background: #0e1e2a; }
[data-theme="dark"] .rtype-talk   { background: #1e1028; }
[data-theme="dark"] .rtype-course { background: #0e1e12; }
[data-theme="dark"] .rtype-tool   { background: #261a0a; }

.toggle-btn {
  display: flex; align-items: center; gap: .4rem; margin-top: .85rem;
  font-family: var(--sans); font-size: .6rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--light); cursor: pointer; background: none; border: none; padding: 0;
  transition: color .2s;
}
.toggle-btn:hover { color: var(--ink); }
.toggle-icon { transition: transform .3s; display: inline-block; }
.toggle-icon.open { transform: rotate(180deg); }

/* Skill checkbox */
.skill-check { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; cursor: pointer; user-select: none; width: fit-content; }
.skill-check input { display: none; }
.sc-box {
  width: 14px; height: 14px; border: 1.5px solid var(--rule); border-radius: 2px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.skill-check:hover .sc-box { border-color: var(--ink); }
.skill-check input:checked ~ .sc-box { background: var(--ink); border-color: var(--ink); }
.skill-check input:checked ~ .sc-box::after { content: '✓'; color: var(--paper); font-size: 9px; line-height: 1; }
.sc-label { font-size: .6rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--light); transition: color .2s; }
.skill-check:hover .sc-label { color: var(--mid); }
.skill-check input:checked ~ .sc-box ~ .sc-label { color: var(--p3); }
.skill-card.done { opacity: .5; }
.skill-card.done .skill-name { text-decoration: line-through; text-decoration-color: var(--light); }

/* ── DASHBOARD ── */
.dash-wrap { padding: 5rem 5vw 7rem; }
.dash-hero { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; margin-bottom: 4rem; border-bottom: 1px solid var(--rule); padding-bottom: 3.5rem; }
.dash-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; margin-bottom: .8rem; }
.dash-title em { font-style: italic; color: var(--mid); }
.dash-sub { font-size: .85rem; color: var(--mid); line-height: 1.85; max-width: 420px; }
.dash-big-ring { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-big-ring svg { transform: rotate(-90deg); }
.dash-big-ring-center {
  position: absolute; text-align: center; transform: rotate(0deg);
}
.dbrc-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--ink); display: block; }
.dbrc-l { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--light); margin-top: .3rem; display: block; }

.dash-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 3.5rem; }
.dash-phase-cell {
  background: var(--surface); padding: 1.6rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  cursor: pointer; transition: background .2s;
}
.dash-phase-cell:hover { background: var(--paper); }
.dp-ring { flex-shrink: 0; }
.dp-ring svg { transform: rotate(-90deg); }
.dp-ring circle { transition: stroke-dashoffset .7s var(--ease); }
.dp-n { font-family: var(--serif); font-size: .8rem; font-weight: 400; color: var(--ink); text-align: center; line-height: 1.3; }
.dp-pct { font-size: .6rem; font-weight: 500; color: var(--mid); }

.dash-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 3.5rem; }
.dash-card { background: var(--surface); padding: 2rem; }
.dash-card-title { font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin-bottom: 1.4rem; }

.skill-bar-list { display: flex; flex-direction: column; gap: .9rem; }
.skill-bar-item { display: flex; flex-direction: column; gap: .3rem; }
.sbi-header { display: flex; justify-content: space-between; align-items: baseline; }
.sbi-name { font-size: .78rem; color: var(--ink-soft); font-weight: 400; }
.sbi-pct { font-size: .65rem; color: var(--mid); font-variant-numeric: tabular-nums; }
.sbi-track { height: 3px; background: var(--rule); border-radius: 2px; }
.sbi-fill { height: 100%; border-radius: 2px; transition: width .7s var(--ease); }

.next-list { display: flex; flex-direction: column; gap: .7rem; }
.next-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem .9rem; background: var(--paper);
  border-radius: 2px; cursor: pointer; transition: background .2s;
}
.next-item:hover { background: color-mix(in oklch, var(--ink) 6%, var(--paper)); }
.next-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.next-text { font-size: .77rem; color: var(--mid); line-height: 1.55; }
.next-phase { font-size: .56rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: .15rem; }

.dash-streak { display: flex; flex-direction: column; gap: .5rem; }
.streak-row { display: flex; gap: .2rem; flex-wrap: wrap; }
.streak-day {
  width: 10px; height: 10px; border-radius: 1px;
  background: var(--rule); transition: background .3s;
}
.streak-day.done { background: var(--ink); opacity: .7; }
.streak-day.today { background: var(--ink); }
.streak-label { font-size: .62rem; color: var(--mid); margin-top: .4rem; }

/* ── PRACTICE TAB ── */
.practice-wrap { padding: 5rem 5vw 7rem; }
.s-eyebrow { font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--light); margin-bottom: .85rem; }
.s-heading { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 1rem; }
.s-heading em { font-style: italic; color: var(--mid); }
.s-body { font-size: .86rem; color: var(--mid); line-height: 1.85; max-width: 500px; }

.mastery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2rem; }
.mastery-cell { background: var(--surface); padding: 1.8rem; }
.mastery-n { font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: .9; color: var(--rule); margin-bottom: .65rem; }
.mastery-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: .4rem; }
.mastery-desc { font-size: .77rem; color: var(--mid); line-height: 1.7; }
.mastery-test { font-size: .64rem; letter-spacing: .05em; color: var(--light); margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--rule); line-height: 1.6; }

.practice-intro { max-width: 700px; margin-bottom: 4.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--rule); }
.practice-plan { margin-bottom: 4rem; }
.plan-title-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.8rem; align-items: start; margin-bottom: 1.3rem; }
.plan-icon { font-size: 2rem; line-height: 1; padding-top: .35rem; }
.plan-heading { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .3rem; }
.plan-heading em { font-style: italic; color: var(--mid); }
.plan-sub { font-size: .8rem; color: var(--mid); line-height: 1.8; max-width: 460px; }

.plan-warn {
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 2px solid var(--ink); padding: 1rem 1.3rem;
  font-size: .79rem; color: var(--mid); line-height: 1.75; margin-bottom: 1.6rem;
}
.plan-warn strong { color: var(--ink); font-weight: 500; }

.months-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 1.3rem; }
.month-cell { background: var(--surface); padding: 1.8rem; position: relative; }
.month-cell::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--mc, var(--rule)); opacity: .6; }
.month-tag { font-size: .56rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--light); margin-bottom: .4rem; }
.month-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: .85rem; line-height: 1.3; }
.month-tasks { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.month-signal { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--rule); font-size: .66rem; color: var(--light); line-height: 1.6; }
.month-signal mark { background: none; color: var(--p3); font-weight: 500; }

.final-test {
  background: var(--ink); color: var(--paper);
  padding: 2rem 2.4rem; display: grid; grid-template-columns: auto 1fr;
  gap: 1.8rem; align-items: start; margin-bottom: 1.3rem; border-radius: 2px;
}
.ft-label { font-size: .56rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin-bottom: .5rem; }
.ft-text { font-family: var(--serif); font-size: 1.15rem; font-weight: 300; font-style: italic; line-height: 1.65; color: var(--mid); }
[data-theme="dark"] .final-test { background: var(--surface); border: 1px solid var(--rule); }
[data-theme="dark"] .ft-text { color: var(--mid); }

.plan-rule { height: 1px; background: var(--rule); margin: 3.5rem 0; }
.journal-section { border: 1px solid var(--rule); padding: 2rem; background: var(--surface); max-width: 700px; }
.journal-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 1.3rem; }
.journal-col { background: var(--paper); padding: 1.3rem; }
.journal-col-title { font-size: .56rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin-bottom: .55rem; }
.journal-col-text { font-family: var(--serif); font-size: .86rem; font-weight: 300; font-style: italic; color: var(--mid); line-height: 1.7; }

/* Task checkbox */
.task-row { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; user-select: none; }
.task-row input { display: none; }
.t-box {
  width: 12px; height: 12px; border: 1.5px solid var(--rule); border-radius: 2px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all .2s; margin-top: 4px;
}
.task-row:hover .t-box { border-color: var(--mid); }
.task-row input:checked ~ .t-box { background: var(--ink); border-color: var(--ink); }
.task-row input:checked ~ .t-box::after { content: '✓'; color: var(--paper); font-size: 7px; line-height: 1; }
.t-text { font-size: .76rem; color: var(--mid); line-height: 1.6; transition: all .2s; }
.task-row input:checked ~ .t-box ~ .t-text { color: var(--light); text-decoration: line-through; text-decoration-color: var(--rule); }

/* ── PROGRESS WIDGET ── */
.progress-widget {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1rem 1.3rem; min-width: 190px;
  box-shadow: var(--shadow-lg); border-radius: 3px;
  transition: background .3s, border-color .3s;
}
.pw-label {
  font-size: .58rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--light); margin-bottom: .5rem;
  display: flex; justify-content: space-between; align-items: baseline;
}
.pw-count { font-family: var(--serif); font-size: 1rem; font-weight: 300; color: var(--ink); letter-spacing: 0; }
.pw-track { height: 2px; background: var(--rule); position: relative; border-radius: 2px; }
.pw-fill { height: 2px; background: var(--ink); width: 0%; transition: width .5s var(--ease); border-radius: 2px; }
.pw-reset {
  display: block; font-size: .54rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--light); background: none; border: none; cursor: pointer;
  margin-top: .55rem; font-family: var(--sans); transition: color .2s; padding: 0;
}
.pw-reset:hover { color: var(--ink); }

/* ── COMPLETION TOAST ── */
.toast {
  position: fixed; bottom: 6.5rem; right: 2rem; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: .9rem 1.4rem; border-radius: 3px;
  font-size: .75rem; font-weight: 400; letter-spacing: .02em;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── TWEAKS PANEL ── */
.tweaks-panel {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 300;
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1.4rem; width: 220px;
  box-shadow: var(--shadow-lg); border-radius: 3px;
  display: none; flex-direction: column; gap: .9rem;
  transition: background .3s;
}
.tweaks-panel.open { display: flex; }
.tp-title { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.tp-close { background: none; border: none; cursor: pointer; color: var(--light); font-size: 1rem; line-height: 1; padding: 0; transition: color .2s; }
.tp-close:hover { color: var(--ink); }
.tp-section { display: flex; flex-direction: column; gap: .5rem; }
.tp-label { font-size: .58rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--light); }
.tp-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.tp-btn {
  font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border: 1px solid var(--rule); background: transparent;
  color: var(--mid); border-radius: 2px; cursor: pointer; transition: all .2s;
}
.tp-btn:hover { border-color: var(--ink); color: var(--ink); }
.tp-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tp-toggle { display: flex; align-items: center; justify-content: space-between; }
.tp-tog-label { font-size: .72rem; color: var(--mid); }
.tp-slider { width: 100%; accent-color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { justify-content: flex-start; }
  .overview { grid-template-columns: repeat(3, 1fr); }
  .ov-cell:nth-child(3) { border-right: none; }
  .ov-cell:nth-child(4), .ov-cell:nth-child(5) { border-top: 1px solid var(--rule); }
  .skills-grid { grid-template-columns: 1fr; }
  .phase-header { grid-template-columns: 1fr; gap: .4rem; }
  .phase-prog-wrap { text-align: left; }
  .phase-prog-bar-wrap { margin: .6rem auto 0 0; }
  .months-row { grid-template-columns: 1fr; }
  .mastery-grid { grid-template-columns: 1fr; }
  .dash-phases { grid-template-columns: repeat(3, 1fr); }
  .dash-grid2 { grid-template-columns: 1fr; }
  .dash-hero { grid-template-columns: 1fr; }
  .gantt-row-label { width: 100px; font-size: .55rem; }
  .tweaks-panel { left: 1rem; bottom: 1rem; }
  .progress-widget { right: 1rem; bottom: 1rem; }
}
@media (max-width: 540px) {
  nav { flex-wrap: wrap; row-gap: .4rem; padding: .75rem 5vw; }
  .nav-brand { flex: 1; }
  .nav-tabs { order: 2; width: 100%; border-top: 1px solid var(--rule); padding-top: .4rem; }
  .nav-tab { flex: 1; text-align: center; padding: .4rem .3rem; }
}

@media (max-width: 600px) {
  .nav-right .nav-progress-pill { display: none; }
  .overview { grid-template-columns: 1fr 1fr; }
  .ov-cell:nth-child(3) { border-right: 1px solid var(--rule); }
  .ov-cell:nth-child(2) { border-right: none; }
  .ov-cell:nth-child(5) { grid-column: 1/-1; border-right: none; }
  .dash-phases { grid-template-columns: repeat(2, 1fr); }
  .final-test { grid-template-columns: 1fr; }
  .journal-cols { grid-template-columns: 1fr; }
  .gantt-rows { display: none; }
}