.sv-filters { margin-bottom: 10px; }
.sv-filters[hidden] { display: none; }
.sv-body { overflow-anchor: none; }
.sv-choice-field {
  display: grid;
  gap: 4px;
  inline-size: 128px;
  color: var(--px-muted);
  font-size: 13px;
}
.sv-choice-field:is([data-choice="a"], [data-choice="b"], [data-choice="rank"]) { inline-size: 168px; }
.sv-choice-field[data-choice="order"] { inline-size: 214px; }
.sv-choice { position: relative; }
.px-filters .sv-choice summary { inline-size: 100%; }
.px-filters .sv-choice summary .sv-choice-value {
  margin: 0;
  color: inherit;
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-choice .px-options { top: 100%; left: 0; min-width: 100%; }
.sv-choice .px-options label { color: var(--hud-text, inherit); }
.sv-choice .px-options input[type="radio"] { accent-color: var(--hud-accent); }
.sv-table thead button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 5px 0;
  font: inherit;
  cursor: pointer;
}
.sv-table thead button:hover { color: var(--px-accent); }
.sv-table :focus-visible { outline: 2px solid var(--px-accent); outline-offset: 2px; }
.sv-table tbody th { font-weight: 500; }
.sv-table .px-hero { min-height: 26px; }
.sv-heat {
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--heat-color, transparent) var(--heat, 0%), transparent);
}
.sv-heat-up { --heat-color: var(--hud-green, #65ca94); }
.sv-heat-down { --heat-color: var(--hud-red, #ed8b7b); }
.sv-heat small { display: inline-block; min-width: 5em; font-size: 11px; }
.sv-low { color: var(--px-muted); }
.sv-tier { display: inline-grid; min-width: 24px; place-items: center; padding: 2px 4px; border-radius: 5px; background: var(--px-line); }
.sv-tier-S, .sv-tier-A { color: var(--hud-green, #65ca94); }
.sv-tier-D { color: var(--hud-red, #ed8b7b); }
.sv-spark { width: 88px; height: 22px; vertical-align: middle; }
.sv-spark polyline { fill: none; stroke: var(--hud-green, #65ca94); stroke-width: 1.5; }
.sv-spark-pick polyline { stroke: var(--px-accent); }
.px .sv-matchup-controls :is(select, input[type="search"], .px-button) {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--px-line) !important;
  border-radius: 8px !important;
  background: var(--d2-panel-2, var(--px-panel)) !important;
  box-shadow: none;
  color: var(--d2-text, var(--hud-text)) !important;
  font-size: 13px;
}
.px .sv-matchup-controls .px-button:hover { border-color: var(--px-accent) !important; }
.sv-pair-comparison { padding: 12px; }
.sv-pair { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.sv-pairs thead th { text-align: right; }
.sv-pairs tbody th, .sv-pairs thead tr:first-child th:first-child { text-align: left; }
.sv-pair-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sv-pair-grid > section { min-width: 0; }
.sv-pair-grid > section + section { border-top: 1px solid var(--px-line); padding-top: 12px; }
.sv-pair-grid .px-note { margin: 6px 0 0; }
.sv-lane-table thead th { position: static; }
.sv-lane-table thead th[scope="colgroup"] { text-align: center; border-left: 1px solid var(--px-line); }
.sv-lane-table tbody td:nth-child(6), .sv-lane-table thead tr:last-child th:nth-child(5) { border-left: 1px solid var(--px-line); }
.sv-matchup-overview { margin-top: 18px; }
.sv-matchup-overview .px-filters { margin-bottom: 8px; }
.sv-matchup-list .px-table-wrap { max-height: min(46vh, 420px); }
.sv-compare-hero {
  border: 1px solid var(--px-line);
  border-radius: 5px;
  padding: 4px 8px;
  background: transparent;
  color: var(--px-accent);
  font: inherit;
  cursor: pointer;
}
.sv-compare-hero:is(:hover, :focus-visible) { border-color: var(--px-accent); }
@media (min-width: 1260px) {
  .sv-pair-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .sv-pair-grid > section + section { border-top: 0; border-left: 1px solid var(--px-line); padding: 0 0 0 12px; }
}
.sv-meta-heading { position: relative; display: flex; align-items: center; overflow: hidden; }
.sv-meta-heading > div { position: relative; z-index: 1; }
.sv-meta-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--px-line);
}
.px .sv-meta-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--px-line) 75%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--px-panel) 50%, transparent);
  color: var(--px-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.px .sv-meta-tabs a[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--px-accent) 65%, var(--px-line));
  background: color-mix(in srgb, var(--px-accent) 12%, var(--px-panel));
  color: var(--hud-text, inherit);
}
.px .sv-meta-tabs a:hover { border-color: var(--px-accent); color: var(--hud-text, inherit); }
.sv-meta-tabs a:focus-visible { outline: 2px solid var(--px-accent); outline-offset: 2px; }
[data-meta-panel][hidden] { display: none; }
