.fan-performance {
  --fpt-bg: #fff; --fpt-head: #edf2fa; --fpt-line: #d3dbe7; --fpt-text: #182338;
  --fpt-muted: #536077; --fpt-accent: #2459c4; --fpt-ink: #fff; --fpt-row: #f7f9fc; --fpt-track: #dce4f2;
  color: var(--fpt-text); background: var(--fpt-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] .fan-performance {
  --fpt-bg: #19192c; --fpt-head: #272b43; --fpt-line: #42465d; --fpt-text: #f0f2fa;
  --fpt-muted: #b8c1d5; --fpt-accent: #9dbfff; --fpt-ink: #101b30; --fpt-row: #202238; --fpt-track: #383e58;
  color-scheme: dark;
}
.fan-performance *, .fan-performance *::before, .fan-performance *::after { box-sizing: border-box; }
.fan-performance [hidden] { display: none !important; }
.fan-performance .fpt-controls { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--fpt-line); border-radius: 12px; background: var(--fpt-row); }
.fan-performance .fpt-toolbar, .fan-performance .fpt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; min-width: 0; }
.fan-performance .fpt-search { flex: 1 1 260px; }
.fan-performance label { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: 12px; font-weight: 650; color: var(--fpt-muted); }
.fan-performance input, .fan-performance select, .fan-performance button {
  font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none;
  border: 1px solid var(--fpt-line); border-radius: 6px; padding: 8px 10px; margin: 0;
  background: var(--fpt-bg); color: var(--fpt-text); box-shadow: none; height: auto;
}
.fan-performance input, .fan-performance select { width: 100%; min-width: 0; max-width: 100%; }
.fan-performance input::placeholder { color: var(--fpt-muted); font-weight: 400; opacity: 1; }
.fan-performance select.cyb-pa-native-select { display: block !important; appearance: auto; }
.fan-performance select + .nice-select { display: none !important; }
.fan-performance button { cursor: pointer; min-height: 36px; }
.fan-performance button:hover { border-color: var(--fpt-accent); }
.fan-performance button[aria-pressed=true] { color: var(--fpt-ink); border-color: var(--fpt-accent); background: var(--fpt-accent); }
.fan-performance :is(input, select, button, a, [tabindex]):focus-visible { outline: 2px solid var(--fpt-accent); outline-offset: 3px; }
.fan-performance .fpt-chips button { border-radius: 999px; font-size: 12px; }
.fan-performance .fpt-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fan-performance p { color: var(--fpt-muted); font-size: 13px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.fan-performance .fpt-status { font-weight: 650; color: var(--fpt-text); }
.fan-performance .fpt-scroll { max-width: 100%; min-width: 0; overflow: auto; max-height: 70vh; border: 1px solid var(--fpt-line); border-radius: 10px; overscroll-behavior-x: contain; overscroll-behavior-y: auto; }
.fan-performance table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; margin: 0; color: var(--fpt-text); background: var(--fpt-bg); font-size: 13px; font-variant-numeric: tabular-nums; }
.fan-performance th, .fan-performance td { border: 0; border-bottom: 1px solid var(--fpt-line); padding: 7px 10px; text-align: right; white-space: nowrap; vertical-align: middle; background: var(--fpt-bg); color: var(--fpt-text); }
.fan-performance tbody tr:nth-child(even) td { background: var(--fpt-row); }
.fan-performance th { position: sticky; top: 0; z-index: 2; background: var(--fpt-head); font-size: 12px; white-space: normal; vertical-align: bottom; }
/* Headers wrap to two or three short lines instead of widening every column. */
.fan-performance th button { border: 0; background: transparent; padding: 4px 0; font-weight: 700; color: inherit; max-width: 7.5em; text-align: inherit; line-height: 1.25; min-height: 0; }
.fan-performance th.fpt-col-name button { max-width: none; }
.fan-performance .fpt-at { display: block; font-weight: 600; color: var(--fpt-muted); }
.fan-performance th[aria-sort=ascending] .fpt-at, .fan-performance th[aria-sort=descending] .fpt-at { color: inherit; }
.fan-performance th[aria-sort=ascending], .fan-performance th[aria-sort=descending] { color: var(--fpt-accent); }
.fan-performance .fpt-col-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(--fpt-line); }
.fan-performance th.fpt-col-name { z-index: 3; }
.fan-performance a { color: var(--fpt-accent); text-decoration: underline; text-underline-offset: 2px; transition: none; }
.fan-performance .fpt-brand { display: block; color: var(--fpt-muted); font-size: 11px; }
.fan-performance .fpt-model { display: block; color: var(--fpt-text); }
.fan-performance .fpt-none { color: var(--fpt-muted); }
.fan-performance .fpt-hint { color: var(--fpt-text); }
.fan-performance .fpt-hint button { margin-left: 6px; padding: 4px 10px; min-height: 0; border-color: var(--fpt-accent); }
.fan-performance .fpt-model-line { display: flex; align-items: center; gap: 8px; }
.fan-performance .fpt-model-line > span { flex: 1 1 auto; min-width: 0; }
.fan-performance .fpt-report { flex: 0 0 auto; font-size: 11px; }
.fan-performance .fpt-number { display: inline-grid; gap: 4px; justify-items: end; }
.fan-performance .fpt-mini { display: block; width: 60px; height: 4px; background: var(--fpt-track); border-radius: 4px; overflow: hidden; }
.fan-performance .fpt-mini i { display: block; height: 100%; background: var(--fpt-accent); }
.fan-performance .fpt-pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 750; background: #e0eafa; color: #153d78; }
.fan-performance .fpt-pill-gold { background: #f7e6a9; color: #604500; }
.fan-performance .fpt-pill-bronze { background: #f3d6bf; color: #69360e; }
.fan-performance .fpt-pill-silver { background: #e2e7ee; color: #364657; }
.fan-performance .fpt-pill-platinum { background: #cfe9e7; color: #154c48; }
.fan-performance .fpt-pill-titanium { background: #d7deee; color: #253a63; }
.fan-performance .fpt-pill-diamond { background: #d9cdf9; color: #42257b; }
.fan-performance .fpt-more { justify-self: start; border-color: var(--fpt-accent); }
.fan-performance .fpt-empty { text-align: left; white-space: normal; }
.fan-performance .fpt-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .fan-performance .fpt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fan-performance .fpt-controls { padding: 10px; }
  .fan-performance .fpt-col-name { min-width: 145px; max-width: 170px; }
  .fan-performance th, .fan-performance td { padding: 7px; }
  .fan-performance .fpt-scroll { max-height: 65vh; }
}
.fan-performance button.fpt-pill { border: 0; min-height: 0; line-height: 1.3; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.fan-performance button.fpt-pill:hover { box-shadow: 0 0 0 2px var(--fpt-accent, #2459c4); }
.fan-performance .fpt-guides { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fan-performance .fpt-guides button { font-size: 12px; padding: 5px 10px; min-height: 30px; }
