/* [rdx25a-20261116] public/css/rdx-chart-kit.css — RDX-25a (pack 2800; canvas decisions 199 and 210): the statistics chart kit's sheet
   (backend/lib/rdx/stats/chart-kit.js). Tokens only (public/css/tactix-tokens.css), no colour typed: marks use --rx-accent-line,
   --rx-pro-line, --rx-missed, --rx-text-2, --rx-text and --rx-control-border, each 3:1 or more on --rx-card and --rx-surface in both
   themes; text uses --rx-text and --rx-text-2 (4.5:1). Gridlines (--rx-divider) are decoration, not data.
   Each chart is drawn three times (wide .ck-w, medium .ck-m, narrow .ck-n); the chart's own width picks one (a container query), so a phone never
   scrolls a chart sideways. Loaded only by pages that draw through the kit (RDX_STATS_V2). */
.ck{container-type:inline-size;margin:0 0 20px;padding:14px 14px 10px;background:var(--rx-card);border:1px solid var(--rx-divider);border-radius:10px;color:var(--rx-text);max-width:1100px;min-width:0}
.ck-cap{margin:0 0 6px}
.ck-title{font-size:16px;font-weight:700;color:var(--rx-text)}
.ck-plot{position:relative;width:100%}
.ck-svg{display:block;width:100%;height:auto;overflow:visible;font-family:inherit}
.ck-m,.ck-n{display:none}
@container (max-width:820px){.ck-w{display:none}.ck-m{display:block}}
@container (max-width:520px){.ck-w,.ck-m{display:none}.ck-n{display:block}}
/* a chart sent with fewer drawings (opts.sizes) shows the one it has */
.ck-plot>.ck-svg:only-child{display:block}
.ck-small .ck-n{display:block}
.ck-radar .ck-svg{max-width:520px;margin:0 auto}
.ck-svg text{font-size:12px;fill:var(--rx-text-2)}
.ck-svg .ck-val,.ck-svg .ck-ptlab,.ck-svg .ck-lab{fill:var(--rx-text)}
.ck-svg .ck-axtitle{font-size:12px;font-weight:600;fill:var(--rx-text-2)}
.ck-svg .ck-quad{font-size:12px;fill:var(--rx-text-2);font-style:italic}
.ck-svg .ck-res{font-size:12px;font-weight:700;fill:var(--rx-text)}
.ck-grid{stroke:var(--rx-divider);stroke-width:1;fill:none}
.ck-gridv{stroke-dasharray:2 3}
.ck-axis{stroke:var(--rx-control-border);stroke-width:1}
.ck-track{fill:var(--rx-divider)}
/* the series: a token each, and a dash pattern on lines so colour is never the only key */
.ck-s0{fill:var(--rx-accent-line);stroke:var(--rx-accent-line)}
.ck-s1{fill:var(--rx-pro-line);stroke:var(--rx-pro-line)}
.ck-s2{fill:var(--rx-missed);stroke:var(--rx-missed)}
.ck-s3{fill:var(--rx-text-2);stroke:var(--rx-text-2)}
.ck-s4{fill:var(--rx-text);stroke:var(--rx-text)}
.ck-s5{fill:var(--rx-control-border);stroke:var(--rx-control-border)}
.ck-bar{stroke:none}
.ck-line{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.ck-s1 .ck-line{stroke-dasharray:7 3}.ck-s2 .ck-line{stroke-dasharray:2 3}.ck-s3 .ck-line{stroke-dasharray:9 3 2 3}.ck-s5 .ck-line{stroke-dasharray:4 4}
.ck-avgs .ck-line{stroke:var(--rx-text-2);stroke-dasharray:5 4;stroke-width:1.8}
.ck-avgs .ck-dot{fill:var(--rx-text-2)}
.ck-dot{stroke:var(--rx-card);stroke-width:1}
.ck-pt{fill-opacity:.55;stroke-width:1.4}
.ck-area{fill-opacity:.16;stroke-width:2}
.ck-hl.ck-pt,.ck-pt.ck-hl{fill-opacity:.95;stroke:var(--rx-text);stroke-width:2}
.ck-hl .ck-line{stroke-width:3.4}
text.ck-hl{font-weight:700}
.ck-dim{opacity:.45}
text.ck-dim{opacity:.7}
.ck-avg line,.ck-avg polygon{stroke:var(--rx-text-2);stroke-width:1.5;stroke-dasharray:5 4;fill:none}
.ck-svg .ck-avgtext{font-size:12px;fill:var(--rx-text-2)}
.ck-pos{fill:var(--rx-accent-line)}
.ck-neg{fill:var(--rx-missed)}
.ck-under{fill:var(--rx-pro-line)}
.ck-won{fill:var(--rx-accent-line);background:var(--rx-accent-line)}
.ck-drawn{fill:var(--rx-text-2);background:var(--rx-text-2)}
.ck-lost{fill:var(--rx-missed);background:var(--rx-missed)}
.ck-nores{fill:var(--rx-control-border)}
[data-ck-off]{display:none}
/* the legend: keys are buttons once the script has booted (series toggles) */
.ck-legend{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:0 0 6px;padding:0;font-size:13px;color:var(--rx-text-2)}
.ck-legend li{display:flex;align-items:center;gap:6px}
.ck-lbtn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:4px 2px;min-height:28px;font:inherit;color:var(--rx-text);cursor:pointer}
.ck-lbtn[aria-pressed="false"]{color:var(--rx-text-2);text-decoration:line-through}
.ck-key{display:inline-block;width:14px;height:4px;border-radius:2px}
.ck-lbtn.ck-s0 .ck-key{background:var(--rx-accent-line)}.ck-lbtn.ck-s1 .ck-key{background:var(--rx-pro-line)}.ck-lbtn.ck-s2 .ck-key{background:var(--rx-missed)}
.ck-lbtn.ck-s3 .ck-key{background:var(--rx-text-2)}.ck-lbtn.ck-s4 .ck-key{background:var(--rx-text)}.ck-lbtn.ck-s5 .ck-key{background:var(--rx-control-border)}
.ck-legend .ck-won,.ck-legend .ck-drawn,.ck-legend .ck-lost{height:10px;width:10px}
.ck-keyavg{border-top:2px dashed var(--rx-text-2);height:0}
.ck-lbtn.ck-avgs .ck-key{background:none;border-top:2px dashed var(--rx-text-2);height:0}
/* the reads, states and the figure table */
.ck-read{margin:8px 0 4px;font-size:14px;line-height:1.5;color:var(--rx-text)}
.ck-sample{margin:4px 0;font-size:12px;color:var(--rx-text-2)}
.ck-low{margin:6px 0;font-size:13px;color:var(--rx-pro)}
.ck-empty{margin:10px 0;font-size:14px;color:var(--rx-text-2)}
.ck-lowsample .ck-plot{opacity:.8}
.ck-tbl{margin:6px 0 0}
.ck-tbl summary{cursor:pointer;font-size:13px;color:var(--rx-accent-text);min-height:28px;padding:4px 0}
.ck-tw{overflow-x:auto;max-width:100%}
.ck-table{border-collapse:collapse;width:100%;font-size:13px;color:var(--rx-text)}
.ck-table caption{text-align:left;font-size:12px;color:var(--rx-text-2);padding:4px 0}
.ck-table th,.ck-table td{padding:5px 8px;border-bottom:1px solid var(--rx-divider);text-align:left}
.ck-table td.n{text-align:right;font-variant-numeric:tabular-nums}
.ck-heattable caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ck-avgrow th,.ck-avgrow td{color:var(--rx-text-2);font-style:italic}
/* the heat-shaded table: five shades of the accent behind --rx-text (kept at 4.5:1 by the 50% cap) */
.ck-heat{background:transparent}
.ck-h0{background:color-mix(in srgb,var(--rx-accent-line) 6%,transparent)}
.ck-h1{background:color-mix(in srgb,var(--rx-accent-line) 18%,transparent)}
.ck-h2{background:color-mix(in srgb,var(--rx-accent-line) 30%,transparent)}
.ck-h3{background:color-mix(in srgb,var(--rx-accent-line) 44%,transparent)}
.ck-h4{background:color-mix(in srgb,var(--rx-accent-line) 50%,transparent)}
.ck-hlrow th{font-weight:700;box-shadow:inset 3px 0 0 var(--rx-accent-line)}
/* tools (shown by the script) and the tooltip */
.ck-tools{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}
.ck-tools[hidden]{display:none}
.ck-tools button{font:inherit;font-size:12px;color:var(--rx-text);background:var(--rx-surface);border:1px solid var(--rx-control-border);border-radius:6px;padding:4px 10px;min-height:28px;cursor:pointer}
.ck-tipbox{position:fixed;z-index:60;pointer-events:none;max-width:260px;padding:6px 9px;border-radius:6px;background:var(--rx-surface);color:var(--rx-text);border:1px solid var(--rx-control-border);font-size:12px;line-height:1.35}
.ck-tipbox[hidden]{display:none}
.ck-status{font-size:12px;color:var(--rx-text-2);margin:4px 0 0}
/* sparklines sit inline in a tile */
.ck-sparkwrap{display:inline-block;width:120px;max-width:100%;vertical-align:middle;padding:0;margin:0;border:0;background:none}
.ck-spark{width:120px;height:32px}
.ck-spark .ck-line{stroke-width:1.8}
/* layouts a page may use: two charts a row from 1280px, small multiples on a grid */
.ck-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:16px}
.ck-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.ck-grid2 .ck{margin:0;padding:8px;border:0}
@media (min-width:2000px){.ck{max-width:1280px}.ck-svg text{font-size:12px}}
@media (max-width:420px){.ck{padding:10px 8px 8px;border-radius:8px}.ck-legend{font-size:12px}}
/* the admin gallery (/admin/rdx/chart-kit) */
.ckg{margin:0;background:var(--rx-page);color:var(--rx-text);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ckg-main{max-width:1180px;margin:0 auto;padding:16px}
.ckg-main a{color:var(--rx-accent-text)}
.ckg-note{color:var(--rx-text-2);font-size:13px}
.ckg-item h2{font-size:14px;color:var(--rx-text-2);margin:20px 0 6px}
