/* learning/charts.py SVG charts — shared by the progress report and the dashboard.
   Set --lp-accent on a parent (the track colour). One stage palette: accent 30/50/70/100%
   for Learning → Strong, gold for Mastered. Needs progress.css tokens (lp_assets). */
.ch-track { fill: none; stroke: var(--lp-empty); }
.ch-seg { fill: none; }
.ch-accent { stroke: var(--lp-accent); fill: var(--lp-accent); }
.ch-empty { stroke: transparent; fill: transparent; }
.ch-learning   { stroke: color-mix(in srgb, var(--lp-accent) 30%, #fff); fill: color-mix(in srgb, var(--lp-accent) 30%, #fff); }
.ch-practicing { stroke: color-mix(in srgb, var(--lp-accent) 50%, #fff); fill: color-mix(in srgb, var(--lp-accent) 50%, #fff); }
.ch-familiar   { stroke: color-mix(in srgb, var(--lp-accent) 70%, #fff); fill: color-mix(in srgb, var(--lp-accent) 70%, #fff); }
.ch-strong     { stroke: var(--lp-accent); fill: var(--lp-accent); }
.ch-mastered   { stroke: var(--lp-gold); fill: var(--lp-gold); }
.ch-c1 { font: 700 19px/1 system-ui, sans-serif; fill: #23271F; }
.ch-c2 { font: 500 11.5px/1 system-ui, sans-serif; fill: #6B6E66; }
.ch-donut .ch-seg { fill: none; transition: stroke-dasharray .8s ease; }
.ch-levels { display: block; border-radius: 6px; }
.ch-lvl { fill: color-mix(in srgb, var(--lp-accent) 7%, #fff); }
.ch-lvl--locked { fill: #EFEEE9; }
.ch-cal { display: block; max-width: 100%; height: auto; }
.ch-dot { fill: var(--lp-accent); }
.ch-dot--off { fill: #DCDBD4; }
.ch-growth, .ch-updown { display: block; width: 100%; height: auto; }
.ch-axis { stroke: #E4E5DD; stroke-width: 1; }
.ch-area { fill: color-mix(in srgb, var(--lp-accent) 14%, transparent); }
.ch-line { fill: none; stroke: var(--lp-accent); stroke-width: 2.2; stroke-linejoin: round; }
.ch-end { fill: #fff; stroke: var(--lp-accent); stroke-width: 2.2; }
.ch-ax { font: 500 11px system-ui, sans-serif; fill: #696D61; }
.ch-up { fill: var(--lp-accent); }
.ch-down { fill: var(--lp-amber); }
.ch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; color: #5F6557; }
.ch-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 12px; height: 12px; border-radius: 3px; }
.ch-sw--learning   { background: color-mix(in srgb, var(--lp-accent) 30%, #fff); }
.ch-sw--practicing { background: color-mix(in srgb, var(--lp-accent) 50%, #fff); }
.ch-sw--familiar   { background: color-mix(in srgb, var(--lp-accent) 70%, #fff); }
.ch-sw--strong     { background: var(--lp-accent); }
.ch-sw--mastered   { background: var(--lp-gold); }
@media (prefers-reduced-motion: reduce) { .ch-donut .ch-seg { transition: none; } }

/* Progress tabs: Overview (/me/) · one per owned track (/me/<track>/) */
.pt { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 4px; border-radius: 999px; background: #F1F0EB; width: max-content; max-width: 100%; }
.pt::-webkit-scrollbar { display: none; }
.pt__t { --pt-c: #23271F; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #5F6557 !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.pt__t:hover { color: var(--pt-c) !important; background: rgba(255,255,255,.6); }
.pt__t.is-active { background: #fff; color: var(--pt-c) !important; box-shadow: 0 1px 3px rgba(20,20,30,.12); }
.pt__t:focus-visible { outline: 2px solid var(--pt-c); outline-offset: 2px; }
