@font-face {
  font-family: "MGS Brush";
  src: url("MGS4 Brush.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #141412;
  --surface-2: #1d1d1a;
  --surface-3: #292924;
  --text: #fff;
  --muted: #d0d0c8;
  --quiet: #92928b;
  --border: #35352f;
  --grid: #34342f;
  --accent: #a6e22e;
  --danger: #f92672;
  --shadow: rgba(0, 0, 0, 0.58);
  --radius: 5px;
  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --panel-pattern: none;
}

html[data-theme="midnight-corporate"] {
  --bg: #060b16;
  --surface: #0d1728;
  --surface-2: #14213a;
  --surface-3: #1c2d4c;
  --text: #f8fbff;
  --muted: #c7d4e8;
  --quiet: #8192ad;
  --border: #263b60;
  --grid: #233653;
  --accent: #4f8cff;
  --danger: #ff6384;
  --shadow: rgba(0, 5, 20, 0.7);
  --radius: 4px;
}

html[data-theme="minimal-paper"] {
  color-scheme: light;
  --bg: #f1f2ef;
  --surface: #fff;
  --surface-2: #f7f7f4;
  --surface-3: #e9eae5;
  --text: #11130f;
  --muted: #4d5149;
  --quiet: #787d74;
  --border: #d1d4cc;
  --grid: #d7dad2;
  --accent: #155eef;
  --danger: #c72868;
  --shadow: rgba(25, 30, 20, 0.12);
  --radius: 2px;
}

html[data-theme="retro-terminal"] {
  --bg: #030703;
  --surface: #071008;
  --surface-2: #0b170d;
  --surface-3: #102414;
  --text: #a6ffae;
  --muted: #74cc7d;
  --quiet: #4b8752;
  --border: #1d5d2b;
  --grid: #164723;
  --accent: #57ff78;
  --danger: #ffb000;
  --shadow: rgba(0, 255, 60, 0.09);
  --radius: 0;
  --font-display: "Courier New", monospace;
  --font-body: "Courier New", monospace;
  --panel-pattern: repeating-linear-gradient(0deg, transparent 0 3px, rgba(87,255,120,.025) 3px 4px);
}

html[data-theme="cyber-grid"] {
  --bg: #05000d;
  --surface: #0d0719;
  --surface-2: #160c28;
  --surface-3: #21113a;
  --text: #fff;
  --muted: #d9c8ee;
  --quiet: #9580b2;
  --border: #3b1f5c;
  --grid: #382052;
  --accent: #00f0ff;
  --danger: #ff2a9d;
  --shadow: rgba(255, 42, 157, 0.15);
  --radius: 3px;
  --panel-pattern: linear-gradient(rgba(0,240,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,42,157,.025) 1px, transparent 1px);
}

html[data-theme="anime-sunset"] {
  --bg: #100d1b;
  --surface: #1b1729;
  --surface-2: #282039;
  --surface-3: #372a4d;
  --text: #fffafd;
  --muted: #eaddea;
  --quiet: #ae9db0;
  --border: #4c3a61;
  --grid: #453653;
  --accent: #65c8ff;
  --danger: #ff6fae;
  --shadow: rgba(24, 8, 34, 0.7);
  --radius: 8px;
  --panel-pattern: radial-gradient(circle at 85% 10%, rgba(255,111,174,.08), transparent 28%), radial-gradient(circle at 10% 90%, rgba(101,200,255,.07), transparent 32%);
}

html[data-theme="racing-department"] {
  --bg: #050505;
  --surface: #10100f;
  --surface-2: #191917;
  --surface-3: #252522;
  --text: #fffef8;
  --muted: #d8d7ce;
  --quiet: #8c8b84;
  --border: #353531;
  --grid: #30302c;
  --accent: #f24b3f;
  --danger: #ffca3a;
  --shadow: rgba(0, 0, 0, .72);
  --radius: 2px;
  --panel-pattern: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.012) 8px 9px);
}

html[data-theme="vaporwave-1996"] {
  --bg: #08041c;
  --surface: #120a2d;
  --surface-2: #1c1041;
  --surface-3: #2b185c;
  --text: #fff9ff;
  --muted: #e0d3ff;
  --quiet: #9d87c7;
  --border: #4b2875;
  --grid: #402466;
  --accent: #2de2e6;
  --danger: #f6019d;
  --shadow: rgba(246, 1, 157, .18);
  --radius: 2px;
  --panel-pattern: linear-gradient(rgba(45,226,230,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(246,1,157,.022) 1px, transparent 1px);
}

html[data-theme="manga-ink"] {
  color-scheme: light;
  --bg: #f8f7f2;
  --surface: #fffefa;
  --surface-2: #efeee8;
  --surface-3: #deddd6;
  --text: #080808;
  --muted: #32322f;
  --quiet: #696962;
  --border: #b9b8b0;
  --grid: #cecdc5;
  --accent: #e1262f;
  --danger: #111;
  --shadow: rgba(0, 0, 0, .15);
  --radius: 0;
  --panel-pattern: radial-gradient(circle, rgba(0,0,0,.035) .7px, transparent .8px);
}

html[data-theme="grand-tourer"] {
  --bg: #090806;
  --surface: #15120d;
  --surface-2: #201b13;
  --surface-3: #30281b;
  --text: #fffaf0;
  --muted: #ded3bd;
  --quiet: #9c907a;
  --border: #433824;
  --grid: #3a3020;
  --accent: #d6a84b;
  --danger: #d97952;
  --shadow: rgba(0, 0, 0, .66);
  --radius: 4px;
  --panel-pattern: radial-gradient(circle at 75% 0, rgba(214,168,75,.045), transparent 34%);
}

html[data-theme="hi-fi-1999"] {
  --bg: #050606;
  --surface: #101312;
  --surface-2: #191d1b;
  --surface-3: #242a27;
  --text: #fffef8;
  --muted: #d8d9cf;
  --quiet: #8e948d;
  --border: #3a403c;
  --grid: #303632;
  --accent: #ffb454;
  --danger: #f26d85;
  --shadow: rgba(0, 0, 0, .74);
  --radius: 2px;
  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --panel-pattern: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px), linear-gradient(rgba(90,212,198,.018), transparent 22%);
}

html[data-theme="night-roadbook"] {
  --bg: #050708;
  --surface: #0d1213;
  --surface-2: #151c1d;
  --surface-3: #202a2b;
  --text: #fffef7;
  --muted: #d8ddd5;
  --quiet: #87938d;
  --border: #34413e;
  --grid: #2b3835;
  --accent: #ff6b45;
  --danger: #f47aa4;
  --shadow: rgba(0, 0, 0, .78);
  --radius: 2px;
  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --panel-pattern: linear-gradient(115deg, rgba(255,107,69,.025), transparent 28%, rgba(79,212,200,.018)), repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.008) 7px 8px);
}

html[data-theme="gallery-1987"] {
  color-scheme: light;
  --bg: #f4f3ed;
  --surface: #fffef9;
  --surface-2: #eeede6;
  --surface-3: #deddd5;
  --text: #080909;
  --muted: #303331;
  --quiet: #6b6f6b;
  --border: #b9bbb4;
  --grid: #cdcec7;
  --accent: #f04f32;
  --danger: #1769e0;
  --shadow: rgba(5, 8, 8, .17);
  --radius: 1px;
  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --panel-pattern: repeating-linear-gradient(90deg, transparent 0 19px, rgba(8,9,9,.018) 19px 20px), linear-gradient(135deg, rgba(240,79,50,.025), transparent 32%);
}

html[data-theme="pitwall-telemetry"] {
  --bg: #050606;
  --surface: #0a0c0c;
  --surface-2: #101313;
  --surface-3: #181c1c;
  --text: #fffefa;
  --quiet: #a6afad;
  --muted: #68716f;
  --border: #29302f;
  --accent: #ff3b30;
  --accent-2: #00d9b2;
  --good: #8fd14f;
  --bad: #ff4f59;
  --shadow: rgba(0,0,0,.72);
  --radius: 2px;
  --panel-pattern: linear-gradient(90deg, rgba(255,59,48,.025) 1px, transparent 1px), linear-gradient(rgba(0,217,178,.018) 1px, transparent 1px);
  --panel-pattern-size: 24px 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
}

body {
  padding: clamp(10px, 1.2vw, 24px);
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background-color .5s, color .5s;
}

button,
select,
input {
  font: inherit;
}

button,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: 100%;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 0 4px 18px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: .9;
}

.brand-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.theme-control {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.theme-control label {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.theme-control select {
  width: 100%;
  padding: 9px 30px 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: clamp(248px, 17vw, 310px) minmax(0, 1fr);
  gap: clamp(14px, 1.3vw, 26px);
  align-items: start;
}

.control-panel,
.chart-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  background-image: var(--panel-pattern);
  box-shadow: 0 12px 36px var(--shadow);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}

.control-panel {
  position: sticky;
  top: 10px;
  overflow: hidden;
}

.control-section {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.control-section:last-child {
  border-bottom: 0;
}

.section-heading,
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading strong,
.chart-toolbar strong {
  font-size: 13px;
}

.count-chip {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
}

.bulk-actions {
  display: flex;
  gap: 5px;
}

.bulk-button {
  min-width: 38px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s, filter .25s, box-shadow .25s;
}

.bulk-button.all {
  background: #178150;
}

.bulk-button.none {
  background: #bd2851;
}

.bulk-button:hover {
  filter: brightness(1.18) saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 5px 13px var(--shadow);
}

.bulk-button:active {
  transform: translateY(0) scale(.97);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}

.category-option,
.vehicle-card {
  position: relative;
}

.category-option input,
.vehicle-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.category-option label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: color .25s, background-color .25s, border-color .25s, transform .25s;
}

.category-option label::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--quiet);
  border-radius: 1px;
  background: transparent;
}

.category-option input:checked + label {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: var(--text);
}

.category-option input:checked + label::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent), transparent 40%);
}

.category-option label:hover {
  transform: translateX(2px);
  color: var(--text);
}

.palette-queue {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  margin: 9px 0 7px;
  color: var(--quiet);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.queue-swatch {
  width: 12px;
  height: 8px;
  border: 1px solid color-mix(in srgb, currentColor, transparent 70%);
  border-radius: 1px;
}

.year-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 9px;
}

.year-button {
  flex: 1;
  padding: 4px 3px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--quiet);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.year-button.active {
  border-color: var(--accent);
  color: var(--text);
}

.vehicle-list {
  display: grid;
  gap: 5px;
  max-height: min(56vh, 620px);
  overflow-y: auto;
  scrollbar-color: var(--surface-3) transparent;
}

.vehicle-card label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 11px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .25s, border-color .25s, opacity .25s, transform .25s;
}

.vehicle-card label:hover {
  background: var(--surface-2);
  transform: translateX(2px);
}

.vehicle-card input:checked + label {
  border-color: var(--car-color);
  background: color-mix(in srgb, var(--car-color), transparent 91%);
  color: var(--text);
}

.vehicle-card input:disabled + label {
  opacity: .36;
  cursor: not-allowed;
}

.vehicle-thumb {
  width: 54px;
  height: 36px;
  border-radius: 2px;
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
}

.vehicle-copy {
  min-width: 0;
}

.vehicle-copy strong,
.vehicle-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-copy strong {
  font-size: 10px;
}

.vehicle-copy small {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 8px;
}

.vehicle-color {
  width: 8px;
  height: 18px;
  border-radius: 1px;
  background: var(--car-color, var(--surface-3));
}

.chart-panel {
  min-width: 0;
  padding: clamp(10px, 1.2vw, 22px);
}

.chart-toolbar {
  min-height: 42px;
  padding: 0 3px 10px;
}

.normalization-note {
  color: var(--quiet);
  font-size: 9px;
}

.canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
}

#radar-chart {
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: none;
}

.empty-state {
  position: absolute;
  inset: 50% auto auto 50%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.legend-item:hover,
.legend-item.active {
  border-color: var(--car-color);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--car-color);
}

.tooltip {
  position: fixed;
  z-index: 1000;
  width: min(590px, calc(100vw - 10px));
  max-height: calc(100vh - 10px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--focus-color, var(--accent));
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .62);
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px) scale(.985);
  transition: opacity .5s, transform .5s, background-color .5s;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 8px;
}

.tooltip-head strong {
  font-size: 12px;
}

.tooltip-head span {
  color: var(--quiet);
  font-size: 8px;
  text-transform: uppercase;
}

.comparison-rail {
  margin-bottom: 6px;
  padding: 6px 9px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
}

.rail-track {
  position: relative;
  height: 20px;
}

.rail-track::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--quiet);
  opacity: .5;
}

.rail-segment {
  position: absolute;
  top: 7px;
  height: 5px;
  opacity: .22;
}

.rail-marker {
  position: absolute;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface-2);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px currentColor;
  transform: translateX(-50%);
}

.rail-scale {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tooltip-rows {
  max-height: min(330px, calc(100vh - 130px));
  overflow: hidden auto;
}

.tooltip-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 154px;
  gap: 8px;
  align-items: end;
  min-height: 24px;
  padding: 3px 6px 5px;
  color: var(--quiet);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.tooltip-column-head .fun-column {
  color: var(--accent);
  text-align: left;
}

.tooltip-row {
  display: grid;
  grid-template-columns: 52px minmax(104px, 1fr) 120px 154px;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 6px;
  border-radius: 3px;
}

.tooltip-row.focused {
  background: color-mix(in srgb, var(--car-color), transparent 88%);
  box-shadow: inset 2px 0 var(--car-color);
}

.tooltip-image {
  width: 52px;
  height: 42px;
  border-radius: 2px;
  object-fit: cover;
}

.tooltip-car {
  min-width: 0;
}

.tooltip-car strong,
.tooltip-car small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tooltip-car strong {
  color: var(--car-color);
  font-size: 10px;
}

.tooltip-car small {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 7px;
}

.tooltip-reading {
  text-align: right;
}

.tooltip-value {
  display: block;
  color: var(--car-color);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tooltip-value.tier {
  font-family: "MGS Brush", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: .8;
}

.tooltip-delta {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.tooltip-context {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  font-weight: 650;
  white-space: normal;
}

.tooltip-fun {
  min-height: 38px;
  padding: 5px 0 5px 9px;
  border-left: 1px solid color-mix(in srgb, var(--muted), transparent 75%);
  text-align: left;
}

.tooltip-fun strong {
  display: block;
}

.tooltip-fun strong {
  color: var(--muted);
  font-size: 7px;
  font-weight: 680;
  line-height: 1.2;
}

.better {
  color: #56da7d;
}

.worse {
  color: #ff6b7f;
}

@media (min-width: 2300px) {
  body {
    padding: 28px 34px;
  }

  .workspace {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 30px;
  }

  .control-section {
    padding: 18px;
  }

  .vehicle-list {
    max-height: 820px;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .vehicle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 560px) {
  body {
    padding: 8px;
  }

  .topbar {
    display: grid;
    gap: 14px;
    padding: 8px 2px 14px;
  }

  .theme-control {
    width: 100%;
  }

  .control-section {
    padding: 11px;
  }

  .category-list,
  .vehicle-list {
    grid-template-columns: 1fr;
  }

  .vehicle-list {
    max-height: 320px;
  }

  .chart-panel {
    padding: 8px;
  }

  .chart-toolbar {
    align-items: start;
  }

  .normalization-note {
    max-width: 110px;
    text-align: right;
  }

  .tooltip {
    width: min(370px, calc(100vw - 10px));
    padding: 7px;
  }

  .tooltip-row {
    grid-template-columns: 42px minmax(0, 1fr) 100px;
    grid-template-areas:
      "image car reading"
      "image fun fun";
    gap: 6px;
    min-height: 86px;
    border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%);
  }

  .tooltip-column-head {
    grid-template-columns: minmax(0, 1fr) 100px 128px;
    gap: 6px;
    padding-inline: 4px;
  }

  .tooltip-image {
    grid-area: image;
    width: 42px;
    height: 36px;
  }

  .tooltip-car {
    grid-area: car;
  }

  .tooltip-reading {
    grid-area: reading;
  }

  .tooltip-fun {
    grid-area: fun;
    min-height: 28px;
    padding-block: 3px;
  }

  .tooltip-context {
    max-width: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
