/* The accuracy-and-cost scatter's rules, moved VERBATIM from the benchmarks
   Worker's reviewer.css (plan 2026-09-20 §1.2) so the graph on an agent page is
   the graph on /benchmarks. The Worker serves a generated copy of this file;
   its page defines the six variables on :root. A host that does not (the web
   app) wraps the graph in `.benchmark-scatter-theme`, which declares the same
   six values. */
.benchmark-scatter-theme {
  --line: rgba(162, 191, 230, 0.18);
  --radius: 14px;
  --panel: rgba(15, 24, 40, 0.92);
  --muted: #a6b4cb;
  --mint: #8ad4c0;
  --lavender: #9caeff;
}
/* IonWarp's marks are the product blue, the apps' steel glass — the /for bar
   chart's colours, all from the router palette. */
.scatter-card {
  --scatter-ionwarp: var(--router-blue, #88abff);
  --scatter-app: #b7c3d8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px #0000001f;
  padding: 20px 22px 14px;
  overflow-x: auto;
}
.scatter-legend {
  display: flex;
  gap: 10px 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.scatter-legend .muted {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.85;
}
.scatter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  background: var(--scatter-ionwarp);
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--scatter-ionwarp) 60%, transparent);
}
.legend-app {
  width: 9px;
  height: 9px;
  background: color-mix(in srgb, var(--scatter-app) 25%, transparent);
  border: 1.5px solid var(--scatter-app);
  transform: rotate(45deg);
}
/* The range bar the apps' marks carry: a capped line, as on the plot. */
.legend-range {
  width: 22px;
  height: 9px;
  margin-left: 6px;
  border-inline: 1.5px solid color-mix(in srgb, var(--scatter-app) 60%, transparent);
  background:
    linear-gradient(color-mix(in srgb, var(--scatter-app) 60%, transparent) 0 0) center / 100% 1.5px
    no-repeat;
}
.scatter-card svg {
  width: 100%;
  height: auto;
  min-width: 630px;
  display: block;
}
.scatter-card svg text {
  fill: var(--muted);
  font-size: 12px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.scatter-card svg .axis-title {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.scatter-card svg a text {
  fill: #e6edff;
  font-size: 12px;
  font-weight: 500;
  paint-order: stroke;
  stroke: #0b1220;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.grid-line {
  stroke: rgba(162, 191, 230, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.grid-line-x {
  stroke-dasharray: 2 5;
}
.point-label-link {
  stroke: var(--muted);
  stroke-opacity: 0.45;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.model-dot {
  fill: var(--scatter-ionwarp);
  stroke: #0b1220;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--scatter-ionwarp) 55%, transparent));
}
.app-dot {
  fill: color-mix(in srgb, var(--scatter-app) 22%, #0b1220);
  stroke: var(--scatter-app);
  stroke-width: 2;
}
.scatter-card svg a:hover text,
.scatter-card svg a:focus text {
  fill: white;
}
.scatter-card svg a:hover .model-dot,
.scatter-card svg a:focus .model-dot,
.scatter-card svg a:hover .app-dot,
.scatter-card svg a:focus .app-dot {
  stroke: white;
  stroke-width: 3;
}
.app-range {
  fill: none;
  stroke: var(--scatter-app);
  stroke-opacity: 0.5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
@media (max-width: 760px) {
  .scatter-card {
    padding: 12px;
  }
  .scatter-legend {
    gap: 8px 16px;
  }
  .scatter-legend .muted {
    margin-left: 0;
  }
}
