/* Line charts (public/linechart.js): the app links this file, the reports
   inline it (server/report.js). Colours are the theme's; a series picks one
   with its class, lc-<color>, which sets --lc for its line, band and dot. */
.lc-crit { --lc: var(--red); } .lc-haste { --lc: var(--green); } .lc-mastery { --lc: var(--bar); }
.lc-vers { --lc: var(--accent); } .lc-pair { --lc: #c084fc; }
.lc-0 { --lc: var(--bar); } .lc-1 { --lc: var(--green); } .lc-2 { --lc: var(--accent); }
.lc-3 { --lc: var(--accent-lt); } .lc-4 { --lc: var(--red); } .lc-5 { --lc: var(--muted); }
.lc-6 { --lc: #c084fc; } .lc-7 { --lc: #2dd4bf; } .lc-8 { --lc: #f472b6; }
.lc-9 { --lc: #a3e635; } .lc-10 { --lc: #fb923c; } .lc-11 { --lc: #60a5fa; }

.lc { max-width: 760px; }
.lc-plot { position: relative; }
.lc svg { width: 100%; height: auto; display: block; outline: none; touch-action: pan-y; cursor: crosshair; }
.lc svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.lc-grid { stroke: var(--border); stroke-width: 1; }
.lc-axis { stroke: var(--muted); stroke-width: 1; }
.lc-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.lc-guide { stroke: var(--text); stroke-opacity: 0.35; stroke-width: 1; }
.lc-tick { fill: var(--muted); font-size: 12px; }
.lc-series { transition: opacity 0.12s; }
.lc.has-hot .lc-series:not(.hot) { opacity: 0.18; }
.lc-line { fill: none; stroke: var(--lc); stroke-width: 2.2; stroke-linejoin: round; }
.lc-band { fill: var(--lc); fill-opacity: 0.14; stroke: none; }
.lc-dot { fill: var(--panel); stroke: var(--lc); stroke-width: 2; }
.lc-dot.on { fill: var(--lc); }
.lc-tip { position: absolute; top: 6px; z-index: 5; pointer-events: none; white-space: nowrap;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.lc-tip[hidden] { display: none; }
.lc-tip b { display: block; margin-bottom: 2px; }
.lc-row { display: flex; gap: 8px; align-items: center; }
.lc-row .v { margin-left: auto; padding-left: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-note { color: var(--muted); font-size: 11.5px; margin: -2px 0 2px 18px; }
.lc-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--lc); flex: none; }
.lc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.lc-key { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.lc-key:hover { border-color: var(--lc); }
.lc-key[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }
