.psu-performance {
  --ppt-bg: #fff; --ppt-head: #edf2fa; --ppt-line: #d3dbe7; --ppt-text: #182338;
  --ppt-muted: #536077; --ppt-accent: #2459c4; --ppt-ink: #fff; --ppt-row: #f7f9fc; --ppt-track: #dce4f2;
  color: var(--ppt-text); background: var(--ppt-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] .psu-performance {
  --ppt-bg: #19192c; --ppt-head: #272b43; --ppt-line: #42465d; --ppt-text: #f0f2fa;
  --ppt-muted: #b8c1d5; --ppt-accent: #9dbfff; --ppt-ink: #101b30; --ppt-row: #202238; --ppt-track: #383e58;
  color-scheme: dark;
}
.psu-performance *, .psu-performance *::before, .psu-performance *::after { box-sizing: border-box; }
.psu-performance [hidden] { display: none !important; }
.psu-performance .ppt-controls { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--ppt-line); border-radius: 12px; background: var(--ppt-row); }
.psu-performance .ppt-toolbar, .psu-performance .ppt-chips, .psu-performance .ppt-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; min-width: 0; }
.psu-performance .ppt-search { flex: 1 1 260px; }
.psu-performance label { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: 12px; font-weight: 650; color: var(--ppt-muted); }
.psu-performance input, .psu-performance select, .psu-performance button {
  font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none;
  border: 1px solid var(--ppt-line); border-radius: 6px; padding: 8px 10px; margin: 0;
  background: var(--ppt-bg); color: var(--ppt-text); box-shadow: none; height: auto;
}
.psu-performance input, .psu-performance select { width: 100%; min-width: 0; max-width: 100%; }
.psu-performance select { display: block !important; appearance: auto; }
.psu-performance select + .nice-select { display: none !important; }
.psu-performance button { cursor: pointer; min-height: 36px; }
.psu-performance button:hover { border-color: var(--ppt-accent); }
.psu-performance button[aria-pressed=true] { color: var(--ppt-ink); border-color: var(--ppt-accent); background: var(--ppt-accent); }
.psu-performance button:disabled { cursor: wait; opacity: .65; }
.psu-performance :is(input, select, button, a, [tabindex]):focus-visible { outline: 2px solid var(--ppt-accent); outline-offset: 3px; }
.psu-performance .ppt-chips button { border-radius: 999px; font-size: 12px; }
.psu-performance .ppt-filters { display: grid; grid-template-columns: minmax(80px, .6fr) minmax(80px, .6fr) repeat(3, minmax(100px, 1fr)); gap: 10px; }
.psu-performance p { color: var(--ppt-muted); font-size: 13px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.psu-performance .ppt-reference strong { color: var(--ppt-text); }
.psu-performance .ppt-status { font-weight: 650; color: var(--ppt-text); }
.psu-performance .ppt-comparison-note:empty { display: none; }
.psu-performance .ppt-scroll { max-width: 100%; min-width: 0; overflow: auto; max-height: 70vh; border: 1px solid var(--ppt-line); border-radius: 10px; overscroll-behavior-x: contain; overscroll-behavior-y: auto; }
.psu-performance table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; margin: 0; color: var(--ppt-text); background: var(--ppt-bg); font-size: 13px; font-variant-numeric: tabular-nums; }
.psu-performance th, .psu-performance td { border: 0; border-bottom: 1px solid var(--ppt-line); padding: 7px 12px; text-align: right; white-space: nowrap; vertical-align: middle; background: var(--ppt-bg); color: var(--ppt-text); }
.psu-performance tbody tr:nth-child(even) td { background: var(--ppt-row); }
.psu-performance th { position: sticky; top: 0; z-index: 2; background: var(--ppt-head); font-size: 12px; }
.psu-performance th button { border: 0; background: transparent; padding: 4px 0; font-weight: 700; color: inherit; }
.psu-performance th[aria-sort=ascending], .psu-performance th[aria-sort=descending] { color: var(--ppt-accent); }
.psu-performance .ppt-name { text-align: left; white-space: normal; min-width: 250px; max-width: 320px; position: sticky; left: 0; z-index: 1; overflow-wrap: anywhere; box-shadow: 2px 0 0 var(--ppt-line); }
.psu-performance th.ppt-name { z-index: 3; }
.psu-performance a { color: var(--ppt-accent); text-decoration: underline; text-underline-offset: 2px; }
.psu-performance .ppt-brand { display: block; color: var(--ppt-muted); font-size: 11px; }
.psu-performance .ppt-model-line { display: flex; align-items: center; gap: 6px; }
.psu-performance .ppt-model-line a { flex: 1 1 auto; min-width: 0; }
.psu-performance .ppt-row-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.psu-performance .ppt-row-actions button { padding: 1px 6px; min-height: 22px; font-size: 11px; line-height: 1.2; }
.psu-performance .ppt-number { display: inline-grid; gap: 4px; justify-items: end; }
.psu-performance .ppt-mini { display: block; width: 60px; height: 4px; background: var(--ppt-track); border-radius: 4px; overflow: hidden; }
.psu-performance .ppt-mini i { display: block; height: 100%; background: var(--ppt-accent); }
.psu-performance .ppt-pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 750; background: #e0eafa; color: #153d78; }
.psu-performance .ppt-gold { background: #f7e6a9; color: #604500; }
.psu-performance .ppt-bronze { background: #f3d6bf; color: #69360e; }
.psu-performance .ppt-silver { background: #e2e7ee; color: #364657; }
.psu-performance .ppt-platinum { background: #cfe9e7; color: #154c48; }
.psu-performance .ppt-titanium { background: #d7deee; color: #253a63; }
.psu-performance .ppt-diamond { background: #d9cdf9; color: #42257b; }
.psu-performance .ppt-pill.ppt-lambda { background: #d8efdc; color: #21552d; }
.psu-performance .ppt-more { justify-self: start; border-color: var(--ppt-accent); }
.psu-performance .ppt-empty { text-align: left; white-space: normal; }
.psu-performance .ppt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .psu-performance .ppt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psu-performance .ppt-controls { padding: 10px; }
  .psu-performance .ppt-name { min-width: 145px; max-width: 165px; }
  .psu-performance th, .psu-performance td { padding: 8px; }
  .psu-performance .ppt-scroll { max-height: 65vh; }
}
/* Visual review 2026-09-29: readable placeholder in dark mode; on phones the star and Compare go under the name. */
.psu-performance input::placeholder { color: var(--ppt-muted); font-weight: 400; opacity: 1; }
@media (max-width: 700px) {
  .psu-performance .ppt-model-line { flex-direction: column; align-items: flex-start; gap: 3px; }
  .psu-performance .ppt-model-line a { flex: 0 0 auto; }
}
