#context-chart {
  --cx-gutter: 36px;
  --cx-bg: #101113;
  border: 1px solid var(--line, #34363d);
  border-radius: 6px;
  background: var(--cx-bg);
  padding: clamp(12px, 2.5vw, 28px);
  color: var(--text, #f4f3ee);
  margin: 1.25rem 0;
  min-width: 0;
}
#context-chart .cx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#context-chart .cx-unit { font-weight: 600; font-size: .9rem; }
#context-chart .cx-unit span { color: var(--muted, #a6a9ad); font-weight: 400; }
#context-chart button { font: inherit; color: var(--muted, #a6a9ad); border: 0; cursor: pointer; background: transparent; border-radius: 3px; }
#context-chart button:focus-visible { outline: 2px solid var(--cyan, #64dafa); outline-offset: 2px; }
#context-chart .cx-switch { display: flex; padding: 3px; border: 1px solid var(--line, #34363d); border-radius: 5px; }
#context-chart .cx-switch button { padding: 6px 12px; font-size: .8rem; font-weight: 600; line-height: 1.2; }
#context-chart .cx-switch button[aria-pressed=true] { color: var(--text, #f4f3ee); background: #343538; }
#context-chart .cx-switch button:hover, #context-chart .cx-axis button:hover { color: var(--text, #f4f3ee); }
#context-chart .cx-plot { display: block; width: 100%; height: clamp(190px, 23vw, 265px); cursor: crosshair; }
#context-chart .cx-plot text, #context-chart .cx-axis button { font: 11px var(--mono, "IBM Plex Mono", monospace); }
#context-chart .cx-plot text { fill: var(--muted, #a6a9ad); }
#context-chart .cx-grid { stroke: var(--line, #34363d); stroke-width: 1; }
#context-chart .cx-cursor { stroke: #828386; stroke-dasharray: 2 4; stroke-width: 1; }
#context-chart .cx-plot polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
#context-chart .cx-rcs-line { color: var(--red, #ff5561); }
#context-chart .cx-llama-line { color: var(--cyan, #64dafa); }
#context-chart .cx-llama-line polyline { stroke-dasharray: 6 4; }
#context-chart .cx-plot g { stroke: currentColor; }
#context-chart .cx-point { fill: currentColor; stroke-width: 0; }
#context-chart .cx-current { fill: var(--cx-bg); stroke-width: 2.4; }
#context-chart .cx-axis { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding-left: var(--cx-gutter); }
#context-chart .cx-axis button { min-width: 0; min-height: 34px; padding: 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#context-chart .cx-axis button[aria-pressed=true] { color: var(--text, #f4f3ee); background: #27282b; }
#context-chart .cx-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line, #34363d); }
#context-chart .cx-readout dt { font-size: .8rem; margin: 0 0 4px; color: var(--muted, #a6a9ad); }
#context-chart .cx-readout dd { margin: 0; color: var(--text, #f4f3ee); font: 500 clamp(16px, 2.1vw, 24px)/1.2 var(--mono, "IBM Plex Mono", monospace); font-variant-numeric: tabular-nums; }
#context-chart .cx-key { display: inline-block; vertical-align: middle; width: 16px; margin-right: 6px; border-top: 2px solid var(--red, #ff5561); }
#context-chart .cx-key.cx-llama { border-top: 2px dashed var(--cyan, #64dafa); }
@media (max-width: 600px) {
  #context-chart { --cx-gutter: 26px; }
  #context-chart .cx-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #context-chart .cx-switch button { padding: 7px 9px; }
  #context-chart .cx-plot text, #context-chart .cx-axis button { font-size: 10px; }
}
