/* EncBench results widget (results.js): shared by the EncBench page and results.html. */
  /* Chart tokens: the validated dark data-viz palette; phones keep their colour whatever is filtered. */
  :root {
    --surface: #1a1a19; --ink: #f0efec; --ink2: #c3c2b7; --muted: #898781; --grid: #2c2c2a; --axis: #383835;
    --good: #0ca30c; --warning: #fab219; --critical: #d03b3b;
  }
  .ebr .sub { color: #888; font-size: 0.9rem; }
  .ebr .filters { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
  .ebr .row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
  .ebr .row > .lbl { color: #888; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; width: 5.5rem; }
  .ebr .chip { border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #e0e0e8; border-radius: 999px;
          padding: 0.3rem 0.75rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
  .ebr .chip[aria-pressed="true"] { background: rgba(102,170,255,0.18); border-color: rgba(102,170,255,0.6); }
  .ebr .chip:disabled { opacity: 0.35; cursor: default; }
  .ebr .phones { display: grid; gap: 0.35rem; }
  .ebr .phone { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--ink2); cursor: pointer; }
  .ebr .phone input { accent-color: #6af; }
  .ebr .key { width: 18px; height: 3px; border-radius: 2px; flex: none; }
  .ebr .card { background: var(--surface); border: 1px solid var(--grid); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
  .ebr .card h3 { color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
  .ebr .card p.note { color: var(--ink2); font-size: 0.84rem; line-height: 1.45; margin-bottom: 0.6rem; }
  .ebr .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
  .ebr .grid .card { margin: 0; }
  .ebr svg { display: block; width: 100%; height: auto; overflow: visible; }
  .ebr svg text { fill: var(--muted); font-size: 13px; font-family: inherit; }
  .ebr-tip { position: fixed; pointer-events: none; background: var(--surface); border: 1px solid var(--axis); border-radius: 8px;
         padding: 0.45rem 0.6rem; font-size: 0.8rem; color: var(--ink2); display: none; z-index: 10; max-width: 280px; }
  .ebr-tip b { color: var(--ink); font-size: 0.95rem; }
  .ebr table { border-collapse: collapse; width: 100%; font-size: 0.84rem; }
  .ebr th, .ebr td { padding: 0.35rem 0.5rem; text-align: right; border-bottom: 1px solid var(--grid); color: var(--ink2); }
  .ebr th:first-child, .ebr td:first-child { text-align: left; }
  .ebr th { color: var(--muted); font-weight: 500; }
  .ebr td.cell span { display: inline-block; min-width: 2.6rem; text-align: center; border-radius: 4px; padding: 0.1rem 0.3rem; }
  .ebr .warn { background: var(--warning); color: #0b0b0b; } .crit { background: var(--critical); color: #fff; }
  .ebr .scroll { overflow-x: auto; }
  .ebr details summary { color: #6af; cursor: pointer; font-size: 0.85rem; margin-top: 0.4rem; }
  .ebr .empty { color: var(--ink2); font-size: 0.9rem; padding: 1rem 0; }
