.capacitor-performance {
  --cpt-bg: #fff; --cpt-head: #edf2fa; --cpt-line: #d3dbe7; --cpt-text: #182338;
  --cpt-muted: #536077; --cpt-accent: #2459c4; --cpt-ink: #fff; --cpt-row: #f7f9fc;
  color: var(--cpt-text); background: var(--cpt-bg); display: grid; gap: 12px;
  width: 100%; max-width: 100%; min-width: 0; margin: 20px 0 60px; font: 14px/1.4 system-ui, sans-serif;
}
:root[data-theme=dark] .capacitor-performance {
  --cpt-bg: #19192c; --cpt-head: #272b43; --cpt-line: #42465d; --cpt-text: #f0f2fa;
  --cpt-muted: #b8c1d5; --cpt-accent: #9dbfff; --cpt-ink: #101b30; --cpt-row: #202238;
  color-scheme: dark;
}
.capacitor-performance *, .capacitor-performance *::before, .capacitor-performance *::after { box-sizing: border-box; }
.capacitor-performance [hidden] { display: none !important; }
.capacitor-performance .cpt-controls { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--cpt-line); border-radius: 12px; background: var(--cpt-row); min-width: 0; }
.capacitor-performance .cpt-toolbar, .capacitor-performance .cpt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; min-width: 0; }
.capacitor-performance .cpt-search { flex: 1 1 260px; }
.capacitor-performance label { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: 12px; font-weight: 650; color: var(--cpt-muted); }
.capacitor-performance input, .capacitor-performance select, .capacitor-performance button {
  font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none;
  border: 1px solid var(--cpt-line); border-radius: 6px; padding: 8px 10px; margin: 0;
  background: var(--cpt-bg); color: var(--cpt-text); box-shadow: none; height: auto;
}
.capacitor-performance input, .capacitor-performance select { width: 100%; min-width: 0; max-width: 100%; }
.capacitor-performance select { display: block !important; appearance: auto; }
.capacitor-performance select + .nice-select { display: none !important; }
.capacitor-performance button { cursor: pointer; min-height: 36px; }
.capacitor-performance button:hover { border-color: var(--cpt-accent); }
.capacitor-performance button[aria-pressed=true] { color: var(--cpt-ink); border-color: var(--cpt-accent); background: var(--cpt-accent); }
.capacitor-performance button:disabled { cursor: default; opacity: .65; }
.capacitor-performance :is(input, select, button, a, [tabindex]):focus-visible { outline: 2px solid var(--cpt-accent); outline-offset: 3px; }
.capacitor-performance .cpt-chips { max-height: 180px; overflow: auto; padding: 3px; }
.capacitor-performance .cpt-group { flex: 0 1 260px; }
.capacitor-performance .cpt-chips button { border-radius: 999px; font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.capacitor-performance .cpt-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.capacitor-performance p { color: var(--cpt-muted); font-size: 13px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.capacitor-performance .cpt-status { font-weight: 650; color: var(--cpt-text); }
.capacitor-performance .cpt-comparison-note:empty { display: none; }
.capacitor-performance .cpt-scroll { max-width: 100%; min-width: 0; overflow: auto; max-height: 70vh; border: 1px solid var(--cpt-line); border-radius: 10px; overscroll-behavior: contain; }
.capacitor-performance table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; margin: 0; color: var(--cpt-text); background: var(--cpt-bg); font-size: 13px; font-variant-numeric: tabular-nums; }
.capacitor-performance th, .capacitor-performance td { border: 0; border-bottom: 1px solid var(--cpt-line); padding: 7px 10px; text-align: right; white-space: nowrap; vertical-align: middle; background: var(--cpt-bg); color: var(--cpt-text); }
.capacitor-performance tbody tr:nth-child(even) td { background: var(--cpt-row); }
.capacitor-performance th { position: sticky; top: 0; z-index: 2; background: var(--cpt-head); font-size: 12px; }
.capacitor-performance th button { border: 0; background: transparent; padding: 4px 0; font-weight: 700; color: inherit; }
.capacitor-performance th[aria-sort=ascending], .capacitor-performance th[aria-sort=descending] { color: var(--cpt-accent); }
.capacitor-performance .cpt-col-brand { text-align: left; }
.capacitor-performance .cpt-col-model { text-align: left; white-space: normal; min-width: 180px; max-width: 240px; position: sticky; left: 0; z-index: 1; overflow-wrap: anywhere; box-shadow: 2px 0 0 var(--cpt-line); }
.capacitor-performance th.cpt-col-model { z-index: 3; }
.capacitor-performance small { display: block; color: var(--cpt-muted); font-size: 11px; }
.capacitor-performance a { color: var(--cpt-accent); text-decoration: underline; text-underline-offset: 2px; }
.capacitor-performance .cpt-col-compare button { padding: 3px 7px; min-height: 28px; font-size: 12px; }
.capacitor-performance .cpt-status-pill { display: inline-block; border: 1px solid var(--cpt-line); border-radius: 999px; padding: 3px 8px; font-size: 11px; color: var(--cpt-muted); }
.capacitor-performance .cpt-more { justify-self: start; border-color: var(--cpt-accent); }
.capacitor-performance .cpt-empty { text-align: left; white-space: normal; }
.capacitor-performance .cpt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .capacitor-performance .cpt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacitor-performance .cpt-controls { padding: 10px; }
  .capacitor-performance .cpt-col-model { min-width: 140px; max-width: 160px; }
  .capacitor-performance .cpt-scroll { max-height: 65vh; }
}
/* Visual review 2026-09-29: readable placeholder in dark mode. */
.capacitor-performance input::placeholder { color: var(--cpt-muted); font-weight: 400; opacity: 1; }
