:root {
  /* Brand */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --on-primary: #ffffff;

  /* Neutrals */
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e4e7ec;
  --text: #1c2230;
  --text-muted: #6b7280;

  /* Status */
  --success: #0d9488;
  --success-bg: #e6fbf8;
  --warn: #b45309;
  --warn-bg: #fef3e2;
  --danger: #dc2626;
  --danger-bg: #fdecec;

  /* Phase badges */
  --umum: #6d28d9;
  --umum-bg: #ede9fe;
  --khusus: #4338ca;
  --khusus-bg: #e0e7ff;
  --puncak: #d97706;
  --puncak-bg: #fef3e2;
  --transisi: #6b7280;
  --transisi-bg: #f1f2f5;

  /* Category accents (athlete list badges, calendar pills) */
  --cat-sprint: #e11d48;
  --cat-sprint-bg: #ffe4e6;
  --cat-menengah: #0284c7;
  --cat-menengah-bg: #e0f2fe;
  --cat-jauh: #059669;
  --cat-jauh-bg: #d1fae5;
  --cat-lompat: #7c3aed;
  --cat-lompat-bg: #ede9fe;

  /* ACWR gauge zones */
  --acwr-low: #94a3b8;
  --acwr-safe: #10b981;
  --acwr-caution: #f59e0b;
  --acwr-risk: #dc2626;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 1px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);

  --radius: 10px;
  --radius-lg: 16px;
  --sidebar-width: 248px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #818cf8;
    --primary-dark: #a5b4fc;
    --primary-light: #1e1b4b;
    --on-primary: #0f1117;

    --bg: #0f1117;
    --surface: #171a23;
    --surface-2: #1e222d;
    --border: #2b2f3b;
    --text: #e7e9f0;
    --text-muted: #9298a8;

    --success: #2dd4bf;
    --success-bg: #052e2b;
    --warn: #fbbf24;
    --warn-bg: #422006;
    --danger: #f87171;
    --danger-bg: #450a0a;

    --umum: #c4b5fd;
    --umum-bg: #2e1065;
    --khusus: #a5b4fc;
    --khusus-bg: #1e1b4b;
    --puncak: #fbbf24;
    --puncak-bg: #422006;
    --transisi: #9298a8;
    --transisi-bg: #22262f;

    --cat-sprint: #fb7185;
    --cat-sprint-bg: #4c0519;
    --cat-menengah: #38bdf8;
    --cat-menengah-bg: #082f49;
    --cat-jauh: #34d399;
    --cat-jauh-bg: #022c22;
    --cat-lompat: #c4b5fd;
    --cat-lompat-bg: #2e1065;

    --acwr-low: #64748b;
    --acwr-safe: #34d399;
    --acwr-caution: #fbbf24;
    --acwr-risk: #f87171;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #a5b4fc;
  --primary-light: #1e1b4b;
  --on-primary: #0f1117;

  --bg: #0f1117;
  --surface: #171a23;
  --surface-2: #1e222d;
  --border: #2b2f3b;
  --text: #e7e9f0;
  --text-muted: #9298a8;

  --success: #2dd4bf;
  --success-bg: #052e2b;
  --warn: #fbbf24;
  --warn-bg: #422006;
  --danger: #f87171;
  --danger-bg: #450a0a;

  --umum: #c4b5fd;
  --umum-bg: #2e1065;
  --khusus: #a5b4fc;
  --khusus-bg: #1e1b4b;
  --puncak: #fbbf24;
  --puncak-bg: #422006;
  --transisi: #9298a8;
  --transisi-bg: #22262f;

  --cat-sprint: #fb7185;
  --cat-sprint-bg: #4c0519;
  --cat-menengah: #38bdf8;
  --cat-menengah-bg: #082f49;
  --cat-jauh: #34d399;
  --cat-jauh-bg: #022c22;
  --cat-lompat: #c4b5fd;
  --cat-lompat-bg: #2e1065;

  --acwr-low: #64748b;
  --acwr-safe: #34d399;
  --acwr-caution: #fbbf24;
  --acwr-risk: #f87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

#app { min-height: 100vh; }

a { color: var(--primary); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card + .card { margin-top: 16px; }

h1, h2, h3 { margin-top: 0; }

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand .accent { color: var(--primary); }

form { display: flex; flex-direction: column; gap: 12px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

input, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--on-primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
button:active { transform: translateY(0); }
button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
button.secondary:hover { background: var(--surface-2); }
button.danger { background: var(--danger); color: #fff; }
button.link { background: none; color: var(--primary); padding: 0; font-weight: 500; box-shadow: none; }
button.link:hover { background: none; transform: none; box-shadow: none; text-decoration: underline; }

.icon-btn {
  background: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 8px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); transform: none; box-shadow: none; }

.icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; }

.error-box {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* ---------- App shell (sidebar + main) ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 18px;
}

.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); transform: none; box-shadow: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); }

.sidebar-footer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }

.user-card { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.user-card .avatar-circle { width: 34px; height: 34px; font-size: 0.85rem; }
.user-card-info { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.user-card-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-role { font-size: 0.76rem; color: var(--text-muted); }

.sidebar-footer-actions { display: flex; gap: 6px; }
.sidebar-footer-actions button { flex: 1; justify-content: center; }

.sidebar-hamburger { display: none; }

.drawer-overlay { display: none; }

.main { flex: 1; min-width: 0; }

.main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.main-header h2 { margin: 0; font-size: 1.15rem; }

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-hamburger { display: inline-flex; }
  .drawer-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.45);
    z-index: 30;
  }
  .container { padding: 20px 16px 48px; }
  .main-header { padding: 14px 16px; }
  .card { padding: 16px; }
}

/* ---------- Legacy topbar (auth-adjacent, unused in main shell but kept) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .user-info { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  background: none; color: var(--text-muted); font-weight: 600; border-radius: 0;
  padding: 10px 14px; border-bottom: 2px solid transparent; box-shadow: none;
}

.export-word-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { background: none; color: var(--primary); transform: none; box-shadow: none; }

.table-wrap { overflow-x: auto; }
.table-wrap table { width: auto; min-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; white-space: nowrap; }
th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:hover { background: var(--surface-2); }
.row-clickable { cursor: pointer; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 8px; align-items: center; }

.phase-header { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.phase-header h3 { margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-large { padding: 6px 18px; font-size: 1.15rem; }
.badge .icon { width: 12px; height: 12px; }
.badge-umum { background: var(--umum-bg); color: var(--umum); }
.badge-khusus { background: var(--khusus-bg); color: var(--khusus); }
.badge-puncak { background: var(--puncak-bg); color: var(--puncak); }
.badge-transisi { background: var(--transisi-bg); color: var(--transisi); }
.badge-risk { background: var(--danger-bg); color: var(--danger); }
.badge-ok { background: var(--success-bg); color: var(--success); }

.badge-cat-sprint { background: var(--cat-sprint-bg); color: var(--cat-sprint); }
.badge-cat-menengah { background: var(--cat-menengah-bg); color: var(--cat-menengah); }
.badge-cat-jauh { background: var(--cat-jauh-bg); color: var(--cat-jauh); }
.badge-cat-lompat { background: var(--cat-lompat-bg); color: var(--cat-lompat); }

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.athlete-name-cell { display: flex; align-items: center; gap: 10px; }

.muted { color: var(--text-muted); font-size: 0.88rem; }

.session-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--surface-2);
}
.session-card h4 { margin: 0 0 4px; }

.multiplier-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.multiplier-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.multiplier-item .item-label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.82rem; }
.multiplier-item .value { font-size: 1.3rem; font-weight: 700; }

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; }
.pill-sm { padding: 2px 7px; font-size: 0.72rem; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Dashboard stat cards ---------- */
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; display: flex; align-items: center; gap: 6px; }

/* ---------- Periodization timeline ---------- */
.periodization-timeline { margin: 14px 0 6px; }
.timeline-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: visible;
}
.timeline-fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 999px; }
.timeline-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-sm);
}
.timeline-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- ACWR gauge ---------- */
.acwr-gauge { margin: 10px 0 4px; }
.acwr-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--acwr-low) 0%, var(--acwr-low) 40%,
    var(--acwr-safe) 40%, var(--acwr-safe) 65%,
    var(--acwr-caution) 65%, var(--acwr-caution) 75%,
    var(--acwr-risk) 75%, var(--acwr-risk) 100%);
}
.acwr-gauge-marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--text);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-sm);
}
.acwr-gauge-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty-illustration { width: 108px; height: 108px; margin-bottom: 10px; }

.footer-link { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-header { margin-bottom: 6px; }
.calendar-head-cell {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
}
.calendar-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-height: 80px;
  cursor: default;
}
.calendar-cell-empty { border-color: transparent; }
.calendar-cell-has-session { background: var(--surface-2); cursor: pointer; }
.calendar-cell-has-session:hover { background: var(--primary-light); }
.calendar-cell-selected { border-color: var(--primary); border-width: 2px; }
.calendar-cell-today .calendar-cell-date {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calendar-cell-date { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.calendar-cell-badges { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Responsive overrides ----------
   Ditaruh di akhir file dengan sengaja: beberapa selector di sini (.tabs,
   .badge-large, .calendar-cell, dst) juga punya definisi dasar di atas
   dengan spesifisitas yang sama — pada CSS, kalau spesifisitas sama, aturan
   yang letaknya belakangan di file yang menang, terlepas dari ada/tidaknya
   @media. Taruh SEMUA override responsive di sini supaya selalu menang. */
@media (max-width: 860px) {
  /* Tab sub-navigasi atlet (Program/Kalender/Tes/Monitoring) — di layar
     sempit jadi strip geser satu baris, bukan bungkus 3 baris berantakan. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  .export-word-row { justify-content: stretch; }
  .export-word-row button { width: 100%; justify-content: center; }
}

/* Layar sangat sempit (HP) — kalender 7 kolom tidak muat menampilkan nama
   sesi penuh di tiap sel; ganti jadi titik indikator saja, detail lengkap
   tetap tersedia di kartu bawah begitu tanggalnya diketuk. */
@media (max-width: 480px) {
  .calendar-cell { min-height: 46px; padding: 4px; }
  .calendar-cell-badges { display: none; }
  .calendar-cell-has-session { position: relative; }
  .calendar-cell-has-session::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
  }
  .badge-large { padding: 5px 12px; font-size: 0.95rem; }
}

/* ---------- Charts (line/bar) ---------- */
.chart-scroll { overflow-x: auto; }
.chart-wrap { position: relative; min-width: 480px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.chart-gridline { stroke: var(--border); stroke-width: 1; }
.chart-tick-label, .chart-axis-label { fill: var(--text-muted); font-size: 10px; }
.chart-end-label { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart-crosshair { stroke: var(--text-muted); stroke-width: 1; opacity: 0; transition: opacity 0.08s; }
.chart-crosshair.visible { opacity: 0.5; }
.chart-hover-dot { fill: var(--primary); stroke: var(--surface); stroke-width: 2; opacity: 0; transition: opacity 0.08s; }
.chart-hover-dot.visible { opacity: 1; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-bar { transition: filter 0.1s; }
.chart-bar-hover { filter: brightness(1.2); }
.chart-tooltip {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  transition: opacity 0.08s;
  z-index: 5;
}
.chart-tooltip-date { color: var(--text-muted); font-size: 0.7rem; }
.chart-tooltip-value { font-weight: 700; font-size: 0.92rem; }
.chart-empty { color: var(--text-muted); font-size: 0.85rem; padding: 24px 4px; text-align: center; }

/* ---------- Panduan Istilah (glosarium in-app) ---------- */
code { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 0.88em; }
.guide-faq-q { font-weight: 700; margin-bottom: 6px; }
.guide-term-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-term-name { font-size: 1.05rem; font-weight: 700; }
.guide-tag { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); background: var(--bg); padding: 3px 9px; border-radius: 999px; }
.guide-figure {
  display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.85rem;
  background: var(--success-bg); color: var(--success); border-radius: 8px; padding: 9px 13px; margin-top: 10px;
}
.guide-figure.warn { background: var(--warn-bg); color: var(--warn); }
.guide-figure code { background: transparent; color: inherit; font-weight: 700; padding: 0; }
.guide-zone-row { display: flex; gap: 10px; font-size: 0.88rem; margin-top: 6px; color: var(--text); }
.guide-zone-key { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace; font-weight: 700; color: var(--primary); flex-shrink: 0; min-width: 2.4em; }
.guide-phase-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.88rem; }
.guide-phase-row:first-child { border-top: none; }
.guide-phase-when { color: var(--primary); font-weight: 700; font-size: 0.76rem; }
.guide-phase-desc { color: var(--text-muted); }
@media (max-width: 480px) {
  .guide-phase-row { grid-template-columns: 1fr; gap: 3px; }
}

.row-chevron { width: 1%; white-space: nowrap; color: var(--text-muted); }
.row-chevron .icon { width: 15px; height: 15px; }

/* Badge klasifikasi prestasi (tierBadgeClass di app.js) — badge-ok dipakai
   ulang dari status ACWR ("aman"), dua kelas baru di bawah untuk tingkat
   menengah/dasar. Bukan warna risiko — ini level kemampuan. */
.badge-dev { background: var(--warn-bg); color: var(--warn); }
.badge-low { background: var(--transisi-bg); color: var(--transisi); }

.level-ref-note { font-size: 0.76rem; color: var(--text-muted); font-style: italic; margin-top: 3px; line-height: 1.4; }
