:root {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f4f9;
  --ink: #0e1626;
  --text: #1f2a40;
  --muted: #5a6678;
  --muted-2: #8b95a7;
  --border: #e7eaf1;
  --border-strong: #d8dde8;
  --brand: #4f46e5;
  --brand-2: #2563eb;
  --brand-soft: #eef0fe;
  --accent: #f59e0b;
  --success: #10b981;
  --success-soft: #e7f8f1;
  --shadow-sm: 0 1px 2px rgba(16,22,38,.05), 0 1px 3px rgba(16,22,38,.04);
  --shadow-md: 0 4px 14px rgba(16,22,38,.06), 0 2px 6px rgba(16,22,38,.04);
  --shadow-lg: 0 18px 48px rgba(16,22,38,.10), 0 6px 18px rgba(16,22,38,.06);
  --shadow-brand: 0 12px 34px rgba(79,70,229,.22);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% -5%, rgba(79,70,229,.07), transparent 32%),
    radial-gradient(circle at 92% 2%, rgba(37,99,235,.06), transparent 30%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; }
strong { color: var(--ink); font-weight: 650; }

.layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 100vh; }

/* ───────── Sidebar ───────── */
.sidebar { border-right: 1px solid var(--border); background: var(--surface); }
.sidebar-inner {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 26px 20px; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin;
}
.sidebar-inner::-webkit-scrollbar { width: 7px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.brand-block { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-brand);
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-text .eyebrow { display: block; color: var(--brand); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-text .name { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }

.nav-label { padding: 0 6px; color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.nav-phases { list-style: none; display: grid; gap: 4px; }
.nav-phase-link {
  display: grid; grid-template-columns: 26px 1fr auto auto; gap: 11px; align-items: center;
  padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted);
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.nav-phase-link:hover { background: var(--surface-3); color: var(--text); }
.nav-phase-link.active { background: var(--brand-soft); border-color: #dcdcfb; color: var(--ink); }
.nav-num {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700;
}
.nav-phase-link.active .nav-num { background: linear-gradient(145deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.nav-phase-link.done .nav-num { background: var(--success); border-color: transparent; color: #fff; }
.nav-name { font-size: .9rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-mini { width: 30px; height: 5px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.nav-mini-fill { display: block; height: 100%; width: 0%; border-radius: inherit; background: var(--ph, var(--brand)); transition: width .4s ease; }
.nav-phase-link.done .nav-mini { display: none; }
.nav-check { width: 16px; height: 16px; color: var(--success); opacity: 0; transition: opacity .18s; }
.nav-phase-link.done .nav-check { opacity: 1; }
.nav-phase-link.done .nav-mini { opacity: 0; }

.sidebar-progress { margin-top: 6px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.progress-top .lbl { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.progress-pct { font-family: var(--font-display); color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.progress-track { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s cubic-bezier(.4,0,.2,1); }
.progress-meta { margin-top: 10px; color: var(--muted-2); font-size: 12px; }

/* ───────── Main ───────── */
.main { min-width: 0; }
.content { max-width: 1080px; margin: 0 auto; padding: 0 36px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; margin-top: 32px; padding: clamp(36px, 5vw, 60px);
  border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(circle at 88% -20%, rgba(255,255,255,.16), transparent 45%),
              linear-gradient(135deg, #3b2fd1 0%, #4f46e5 42%, #2563eb 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after { content: ''; position: absolute; right: -120px; bottom: -150px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.32), transparent 65%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(120deg, #000 10%, transparent 70%); pointer-events: none; }
.hero-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { position: relative; max-width: 16ch; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 .accent { color: #ffd778; }
.hero-desc { position: relative; max-width: 60ch; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.12rem); margin-bottom: 30px; }
.stats-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 660px; }
.stat { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.stat-val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-val .unit { font-size: .95rem; opacity: .75; }
.stat-label { margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* Section heading */
.section-head { margin: 46px 0 18px; }
.section-head .kicker { color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 64ch; font-size: .96rem; }

/* Learning paths */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path-card { position: relative; display: block; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.path-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--pc, var(--brand)); }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.path-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 1.3rem; margin-bottom: 16px; background: color-mix(in srgb, var(--pc) 12%, #fff); border: 1px solid color-mix(in srgb, var(--pc) 28%, transparent); }
.path-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.path-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.path-foot { display: flex; align-items: center; justify-content: space-between; }
.path-range { font-size: 12px; font-weight: 600; color: var(--pc); }
.path-arrow { color: var(--muted-2); transition: transform .2s, color .2s; }
.path-card:hover .path-arrow { transform: translateX(4px); color: var(--pc); }

/* Toolbar */
.toolbar { position: sticky; top: 14px; z-index: 20; margin-top: 26px; padding: 14px; border-radius: var(--radius-lg); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; gap: 12px; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-input { width: 100%; height: 48px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--text); padding: 0 16px 0 46px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.filter-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group-label { color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chip-btn { height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .16s; }
.chip-btn:hover { border-color: var(--border-strong); color: var(--text); }
.chip-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.25); }

/* Phases */
.phases-area { display: grid; gap: 16px; margin: 26px 0 16px; }
.phase-card { opacity: 0; animation: fadeUp .5s ease both; }
.phase-card.hidden { display: none; }
.phase-card:nth-child(1){animation-delay:.04s}.phase-card:nth-child(2){animation-delay:.08s}.phase-card:nth-child(3){animation-delay:.12s}.phase-card:nth-child(4){animation-delay:.16s}.phase-card:nth-child(5){animation-delay:.2s}.phase-card:nth-child(6){animation-delay:.24s}.phase-card:nth-child(7){animation-delay:.28s}.phase-card:nth-child(8){animation-delay:.32s}

.phase-inner { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.phase-card.open .phase-inner, .phase-inner:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.phase-hdr { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; user-select: none; position: relative; }
.phase-hdr::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ph); }
.phase-circle { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--ph); background: color-mix(in srgb, var(--ph) 11%, #fff); border: 1px solid color-mix(in srgb, var(--ph) 26%, transparent); }
.phase-hdr-main { min-width: 0; }
.phase-tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.tag-duration { color: var(--muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.level-badge { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.level-badge[data-l="Beginner"] { background: #e7f8f1; color: #0a9466; }
.level-badge[data-l="Intermediate"] { background: #eef0fe; color: #4f46e5; }
.level-badge[data-l="Advanced"] { background: #fdeede; color: #c2700a; }
.phase-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }

/* per-phase progress bar in header */
.phase-bar-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; max-width: 360px; }
.phase-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.phase-bar-fill { height: 100%; width: 0%; border-radius: inherit; background: var(--ph); transition: width .4s ease; }
.phase-bar-count { flex: none; color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }

.phase-emoji { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); font-size: 1.35rem; }
.phase-actions { display: flex; align-items: center; gap: 8px; }
.phase-badge-done { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; opacity: 0; transform: scale(.6); transition: .2s; }
.phase-card.done .phase-badge-done { opacity: 1; transform: scale(1); }
.phase-card.done .phase-circle { background: var(--success-soft); border-color: #b8ead8; color: var(--success); }
.chevron { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted-2); transition: transform .25s, color .2s; }
.phase-card.open .chevron { transform: rotate(180deg); color: var(--ink); }

.phase-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.phase-card.open .phase-body { max-height: 6000px; }
.phase-body-inner { padding: 4px 26px 28px 90px; }

.phase-desc { margin-bottom: 22px; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); border-left: 3px solid var(--ph); background: var(--surface-2); color: var(--muted); font-size: .96rem; }

/* objectives */
.objectives { margin-bottom: 24px; padding: 18px 20px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--ph) 6%, #fff); border: 1px solid color-mix(in srgb, var(--ph) 18%, transparent); }
.objectives-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 10px; }
.objectives ul { list-style: none; display: grid; gap: 8px; }
.objectives li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--text); }
.objectives li::before { content: '→'; position: absolute; left: 4px; top: 0; color: var(--ph); font-weight: 700; }

/* topics */
.topic-section { margin-bottom: 22px; }
.topic-section:last-of-type { margin-bottom: 0; }
.topic-label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink); font-family: var(--font-display); font-size: .98rem; font-weight: 700; letter-spacing: -.005em; }
.topic-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ph); flex: none; }
.topic-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.prose-note { color: var(--muted); margin-bottom: 14px; font-size: .92rem; }
.mini-label { color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 16px 0 9px; }

/* tasks (trackable) */
.tasks { list-style: none; display: grid; gap: 9px; }
.task-label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); cursor: pointer; transition: border-color .16s, background .16s; }
.task-label:hover { border-color: color-mix(in srgb, var(--ph) 34%, transparent); background: color-mix(in srgb, var(--ph) 5%, #fff); }
.task-check { position: absolute; opacity: 0; width: 0; height: 0; }
.task-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: #fff; display: grid; place-items: center; color: #fff; transition: .16s; margin-top: 1px; }
.task-box svg { width: 13px; height: 13px; opacity: 0; transition: opacity .16s; }
.task-check:checked + .task-box { background: var(--success); border-color: var(--success); }
.task-check:checked + .task-box svg { opacity: 1; }
.task-check:focus-visible + .task-box { box-shadow: 0 0 0 4px rgba(79,70,229,.18); }
.task-text { font-size: .93rem; color: var(--text); }
.task-check:checked ~ .task-text { color: var(--muted-2); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.task-detail { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.task-check:checked ~ .task-text .task-detail { text-decoration: none; }

/* concepts */
.concept-block { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .82rem; font-weight: 500; transition: .16s; }
.chip:hover { border-color: color-mix(in srgb, var(--ph) 40%, transparent); background: color-mix(in srgb, var(--ph) 8%, #fff); transform: translateY(-1px); }

/* resources */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.resource { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s; }
.resource:hover { border-color: color-mix(in srgb, var(--ph) 40%, transparent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.resource-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); font-size: 1rem; }
.resource-main { min-width: 0; display: flex; flex-direction: column; }
.resource-title { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.resource-type { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.resource-arrow { flex: none; color: var(--muted-2); transition: transform .16s, color .16s; }
.resource:hover .resource-arrow { transform: translate(2px, -2px); color: var(--ph); }

.topic-divider { height: 1px; margin: 24px 0; background: var(--border); }

/* milestone */
.milestone { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-md); background: linear-gradient(135deg, color-mix(in srgb, var(--ph) 10%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--ph) 24%, transparent); }
.milestone-ico { font-size: 1.4rem; }
.milestone-label { display: block; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph); margin-bottom: 3px; }
.milestone div { font-size: .92rem; color: var(--text); }

.no-results { display: none; text-align: center; padding: 52px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); background: var(--surface); }
.no-results.visible { display: block; }
.no-results strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }

/* Footer */
.site-footer { margin: 8px 0 40px; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-text { color: var(--muted); font-size: .92rem; }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-btn { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: .16s; }
.footer-btn:hover { border-color: var(--border-strong); background: var(--surface-3); }
.footer-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-btn.primary:hover { background: #4338ca; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* Responsive */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-inner { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .brand-block { flex: 1 1 240px; }
  .nav-label { display: none; }
  .nav-phases { display: flex; flex-wrap: wrap; flex: 1 1 100%; gap: 6px; }
  .nav-phase-link { grid-template-columns: 26px auto auto; }
  .nav-name { max-width: 130px; }
  .sidebar-progress { margin-top: 0; flex: 1 1 240px; }
}
@media (max-width: 760px) {
  .content { padding: 0 18px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: 1fr; }
  .phase-hdr { grid-template-columns: auto 1fr auto; gap: 12px; }
  .phase-emoji { display: none; }
  .phase-body-inner { padding: 4px 20px 24px; }
  .phase-bar-row { max-width: none; }
  .resources { grid-template-columns: 1fr; }
  .toolbar { top: 8px; }
}
@media (max-width: 460px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
