:root {
  color-scheme: dark;
  --bg: #080b0e;
  --bg-raised: #0e1318;
  --panel: #131a21;
  --panel-2: #18212a;
  --panel-3: #202b35;
  --line: #2c3944;
  --line-soft: #1e2932;
  --text: #f5f3ec;
  --muted: #aeb8bd;
  --dim: #78878f;
  --green: #78d39a;
  --gold: #f0c867;
  --cyan: #66c8d7;
  --purple: #ae93f4;
  --red: #ef727d;
  --orange: #e99a5f;
  --focus: #a9e8ef;
  --shadow: 0 18px 52px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(102, 200, 215, .025) 1px, transparent 1px),
    linear-gradient(180deg, #0b0e12 0, var(--bg) 52%, #07090b 100%);
  background-size: 56px 100%, 100% 100%;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 11px clamp(14px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 14, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 1px solid rgba(120, 211, 154, .52);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(120, 211, 154, .2), rgba(102, 200, 215, .08));
  color: var(--green);
  font-weight: 900;
}

.brand-copy b,
.brand-copy small {
  display: block;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: .76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a,
.library-status {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(19, 26, 33, .8);
  color: var(--muted);
  font-size: .86rem;
}

.site-nav a {
  padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(120, 211, 154, .58);
  color: var(--text);
  background: rgba(120, 211, 154, .09);
}

.library-status {
  padding: 8px 10px;
  color: var(--cyan);
  white-space: nowrap;
}

#app {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 42px) 32px;
}

.page-shell {
  width: 100%;
}

.catalog-intel-rail {
  display: none;
  position: fixed;
  top: 92px;
  z-index: 4;
  width: 140px;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  color: var(--muted);
}

.catalog-intel-left {
  left: max(16px, calc((100vw - 1500px) / 2 - 156px));
}

.catalog-intel-right {
  right: max(16px, calc((100vw - 1500px) / 2 - 156px));
}

.intel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intel-heading b {
  color: var(--dim);
  font-size: .58rem;
  text-align: right;
}

.intel-record {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
}

.intel-record:hover,
.intel-feature:hover {
  color: var(--text);
}

.intel-record span,
.intel-feature {
  min-width: 0;
}

.intel-record small,
.intel-feature small,
.intel-readout span,
.intel-compare span {
  display: block;
  color: var(--dim);
  font-size: .58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intel-record b,
.intel-feature b,
.intel-compare b {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .73rem;
  line-height: 1.18;
}

.intel-record strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: .66rem;
}

.weapon-icon-intel {
  width: 38px;
  height: 32px;
  border: 0;
  background: transparent;
}

.weapon-icon-intel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intel-feature {
  display: grid;
  grid-template-columns: 1fr;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
}

.weapon-icon-intel-feature {
  width: 100%;
  height: 54px;
  margin: 5px 0 3px;
  border: 0;
  background: rgba(19, 26, 33, .5);
}

.weapon-icon-intel-feature img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intel-feature span,
.intel-readout small,
.intel-compare small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: .62rem;
  line-height: 1.35;
}

.intel-readout,
.intel-compare {
  padding: 10px 0 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid var(--cyan);
}

.intel-readout b {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 1.05rem;
}

.intel-compare {
  border-left-color: var(--yellow);
}

.intel-compare button {
  width: 100%;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(240, 200, 103, .5);
  border-radius: 4px;
  background: rgba(240, 200, 103, .08);
  color: var(--text);
  font: inherit;
  font-size: .66rem;
  font-weight: 850;
  cursor: pointer;
}

.intel-compare button:hover {
  background: rgba(240, 200, 103, .15);
}

.intel-empty {
  padding-top: 10px;
  font-size: .69rem;
  line-height: 1.45;
}

.site-footer {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 42px) 88px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line-soft);
}

.site-footer-inner > span,
.site-footer-inner > a {
  min-width: 0;
  padding: 11px 12px;
  background: var(--bg);
  color: var(--muted);
}

.site-footer-inner small {
  display: block;
  color: var(--dim);
  font-size: .61rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer-inner b {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .76rem;
}

.site-footer-inner a:hover b {
  color: var(--cyan);
}

@media (min-width: 1800px) and (min-height: 720px) {
  .catalog-intel-rail {
    display: block;
  }
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 17px;
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-heading h1,
.detail-copy h1,
.compare-heading h1 {
  margin-bottom: 5px;
  font-size: 4rem;
  line-height: 1;
}

.page-heading p,
.compare-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.arsenal-totals {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.total-chip {
  display: grid;
  min-width: 92px;
  padding: 8px 10px;
  border-left: 2px solid var(--green);
  background: var(--panel);
}

.total-chip span {
  color: var(--dim);
  font-size: .68rem;
  text-transform: uppercase;
}

.total-chip b {
  margin-top: 2px;
  font-size: 1rem;
}

.catalog-toolbar {
  position: sticky;
  top: 70px;
  z-index: 30;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 11, 14, .96);
  backdrop-filter: blur(12px);
}

.toolbar-primary,
.toolbar-secondary,
.filter-set,
.view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.toolbar-primary {
  justify-content: space-between;
}

.toolbar-secondary {
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 190px;
}

.search-field label {
  position: absolute;
  left: 11px;
  top: 6px;
  color: var(--dim);
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 19px 38px 5px 11px;
  background: var(--panel);
  color: var(--text);
}

.search-field input:focus {
  border-color: var(--cyan);
}

.search-clear {
  position: absolute;
  right: 7px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
}

.search-clear:hover {
  background: var(--panel-3);
  color: var(--text);
}

.sort-field {
  display: grid;
  gap: 3px;
  color: var(--dim);
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sort-field select {
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 30px 5px 9px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.filter-set {
  flex: 0 0 auto;
}

.filter-label {
  color: var(--dim);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-button,
.view-button,
.source-button {
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: .78rem;
}

.filter-button:hover,
.view-button:hover,
.source-button:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.filter-button.active,
.source-button.active,
.view-button.active {
  border-color: var(--green);
  background: rgba(120, 211, 154, .12);
  color: var(--text);
}

.view-actions {
  margin-left: auto;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 13px 0 10px;
}

.catalog-summary b {
  font-size: 1.08rem;
}

.catalog-summary span {
  color: var(--dim);
  font-size: .78rem;
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.weapon-card {
  --class-color: var(--cyan);
  position: relative;
  display: grid;
  grid-template-rows: auto 118px auto auto;
  min-width: 0;
  min-height: 312px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--class-color);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .035), transparent 42%), var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.weapon-card:hover {
  border-color: color-mix(in srgb, var(--class-color) 70%, var(--line));
  background: linear-gradient(155deg, rgba(255, 255, 255, .055), transparent 42%), var(--panel-2);
  transform: translateY(-2px);
}

.weapon-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px 3px;
}

.weapon-badges,
.weapon-tags,
.detail-tags,
.compare-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.class-badge,
.crate-badge,
.ammo-badge,
.rank-tag,
.mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1;
}

.class-badge {
  border-color: color-mix(in srgb, var(--class-color) 60%, var(--line));
  color: var(--class-color);
}

.crate-badge {
  border-color: rgba(240, 200, 103, .52);
  background: rgba(240, 200, 103, .08);
  color: var(--gold);
}

.ammo-badge {
  color: var(--muted);
}

.compare-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-raised);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.compare-toggle:hover,
.compare-toggle.selected {
  border-color: var(--green);
  background: rgba(120, 211, 154, .12);
  color: var(--green);
}

.weapon-card-link {
  display: contents;
}

.weapon-art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 12px;
  background:
    linear-gradient(90deg, transparent, rgba(102, 200, 215, .045) 46%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.weapon-art img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 11px rgba(0, 0, 0, .48));
}

.weapon-card-copy {
  min-width: 0;
  padding: 8px 12px 0;
}

.weapon-card-copy h2 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 1.22rem;
  line-height: 1.08;
}

.weapon-card-copy p {
  display: -webkit-box;
  min-height: 39px;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.weapon-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.utility-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.utility-stat-row .weapon-stat span,
.utility-stat-row .weapon-stat b {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.utility-stat-row .weapon-stat b {
  font-size: .76rem;
  line-height: 1.18;
}

.weapon-stat {
  min-width: 0;
  padding: 7px 7px 8px;
  border-right: 1px solid var(--line-soft);
}

.weapon-stat:last-child {
  border-right: 0;
}

.weapon-stat span,
.detail-stat span,
.compare-stat span {
  display: block;
  overflow: hidden;
  color: var(--dim);
  font-size: .61rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.weapon-stat b {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weapon-tags {
  min-height: 30px;
  padding: 4px 12px 10px;
}

.rank-tag {
  border-color: rgba(174, 147, 244, .36);
  background: rgba(174, 147, 244, .07);
  color: #c8b7f6;
  cursor: pointer;
}

.rank-tag:hover {
  border-color: var(--purple);
  color: var(--text);
}

.empty-state {
  padding: 50px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 7px;
}

.empty-state p {
  margin-bottom: 14px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 750;
}

.primary-button {
  border-color: rgba(120, 211, 154, .6);
  background: var(--green);
  color: #07120c;
}

.primary-button:hover {
  background: #9ae2b2;
}

.secondary-button {
  background: var(--panel);
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--cyan);
}

.primary-button:disabled,
.secondary-button:disabled {
  border-color: var(--line);
  background: var(--panel);
  color: var(--dim);
  cursor: not-allowed;
  opacity: .65;
}

.danger-button {
  border-color: rgba(239, 114, 125, .52);
  background: rgba(239, 114, 125, .08);
  color: #ffc2c7;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(680px, calc(100% - 24px));
  min-height: 54px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(120, 211, 154, .55);
  border-radius: 8px;
  background: rgba(14, 19, 24, .97);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.compare-tray-label {
  flex: 0 0 auto;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-selection {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 5px 4px 8px;
  background: var(--panel);
  white-space: nowrap;
  font-size: .77rem;
}

.compare-chip button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.compare-chip button:hover {
  background: rgba(239, 114, 125, .12);
  color: var(--red);
}

.detail-page {
  padding-bottom: 30px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--dim);
  font-size: .78rem;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.detail-hero {
  --class-color: var(--cyan);
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  min-height: 390px;
  padding: clamp(18px, 4vw, 46px) 0;
  border-top: 3px solid var(--class-color);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(102, 200, 215, .05), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.detail-art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.detail-art img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 24px 18px rgba(0, 0, 0, .55));
}

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

.detail-copy h1 {
  overflow-wrap: anywhere;
}

.detail-meta {
  margin-bottom: 12px;
  color: var(--muted);
}

.detail-read {
  max-width: 720px;
  margin: 14px 0 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.58;
}

.detail-tags {
  margin-bottom: 17px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 7px;
}

.detail-stat {
  min-width: 0;
  min-height: 74px;
  border-left: 2px solid var(--class-color);
  padding: 10px 11px;
  background: var(--panel);
}

.detail-stat b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.16rem;
}

.detail-stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.detail-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.section-heading p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
  text-align: right;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-block {
  min-width: 0;
  border-left: 2px solid var(--line);
  padding: 2px 4px 2px 13px;
}

.insight-block.good {
  border-color: var(--green);
}

.insight-block.watch {
  border-color: var(--red);
}

.insight-block.context {
  border-color: var(--gold);
}

.insight-block span {
  color: var(--dim);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-block h3 {
  margin: 4px 0 5px;
  font-size: 1rem;
}

.insight-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-panel {
  min-width: 0;
}

.chart-panel h3 {
  margin-bottom: 4px;
  font-size: .95rem;
}

.chart-panel p {
  margin-bottom: 9px;
  color: var(--dim);
  font-size: .75rem;
}

.chart-empty {
  display: grid;
  align-content: center;
  min-height: 270px;
  padding: 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 19, 24, .55);
}

.chart-empty p {
  max-width: 440px;
  margin-bottom: 0;
  line-height: 1.5;
}

.curve-chart {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 19, 24, .55);
}

.chart-grid-line {
  stroke: #26343e;
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--dim);
  font-size: 10px;
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-line.velocity {
  stroke: var(--cyan);
}

.chart-point {
  fill: var(--bg);
  stroke: var(--green);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-point.velocity {
  stroke: var(--cyan);
}

.compatibility-list {
  border-top: 1px solid var(--line);
}

.compatibility-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.compatibility-label {
  padding-top: 5px;
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compatibility-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compatibility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(19, 26, 33, .48);
}

.compatibility-item b {
  overflow-wrap: anywhere;
  font-size: .69rem;
}

.integrated-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.integrated-strip span {
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.integrated-strip b {
  font-size: .72rem;
}

.compatibility-empty {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .78rem;
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.loadout-item {
  min-width: 0;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  background: rgba(19, 26, 33, .55);
}

.loadout-item-wide {
  grid-column: span 2;
}

.loadout-item span {
  display: block;
  color: var(--dim);
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.loadout-item b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: .84rem;
  line-height: 1.4;
}

.source-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  color: var(--dim);
  font-size: .72rem;
}

.source-line a {
  color: var(--cyan);
}

.source-line a:hover {
  color: var(--text);
}

.compare-page {
  padding-bottom: 28px;
}

.compare-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.attachment-builder {
  border-bottom: 1px solid var(--line);
}

.builder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 9px;
}

.builder-title .eyebrow {
  margin: 0;
}

.builder-title b {
  color: var(--dim);
  font-size: .68rem;
  text-transform: uppercase;
}

.attachment-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.attachment-build {
  min-width: 0;
  padding: 12px 14px 14px 0;
}

.attachment-build + .attachment-build {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 14px;
}

.build-heading,
.build-heading-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.build-heading span {
  display: block;
  color: var(--cyan);
  font-size: .64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.build-heading h2 {
  margin: 1px 0 0;
  font-size: 1.15rem;
}

.build-heading-actions b {
  color: var(--dim);
  font-size: .68rem;
}

.build-heading-actions button {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 1px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
}

.build-heading-actions button:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.build-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.build-slot {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.build-slot > span {
  color: var(--dim);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.build-slot select {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 24px 5px 8px;
  background: var(--panel);
  color: var(--text);
  font-size: .76rem;
}

.build-effects {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.build-effect {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: min(100%, 180px);
  max-width: 100%;
  border-left: 2px solid var(--green);
  padding: 4px 8px 4px 5px;
  background: rgba(120, 211, 154, .045);
}

.build-effect.integrated {
  border-color: var(--cyan);
  background: rgba(102, 200, 215, .045);
}

.build-effect span:last-child {
  min-width: 0;
}

.build-effect b,
.build-effect small {
  display: block;
  overflow-wrap: anywhere;
}

.build-effect b {
  font-size: .69rem;
}

.build-effect small {
  margin-top: 1px;
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.25;
}

.attachment-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1217;
}

.attachment-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attachment-icon.small {
  width: 25px;
  height: 25px;
}

.attachment-glyph {
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 900;
}

.bare-build,
.no-build-slots {
  color: var(--dim);
  font-size: .69rem;
}

.bare-build {
  display: flex;
  gap: 7px;
}

.bare-build b {
  color: var(--muted);
}

.build-count-badge {
  color: var(--green);
  font-size: .68rem;
  font-weight: 850;
}

.versus-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
}

.range-control {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.range-control label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.range-control input {
  width: 100%;
  accent-color: var(--green);
}

.range-value {
  min-width: 63px;
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

.compare-weapon-heads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
}

.compare-weapon-head {
  --class-color: var(--cyan);
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-top: 3px solid var(--class-color);
  padding-top: 10px;
}

.compare-weapon-head img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .5));
}

.compare-weapon-head h2 {
  margin: 5px 0 7px;
  overflow-wrap: anywhere;
  font-size: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  width: 25%;
  color: var(--muted);
  font-size: .75rem;
}

.compare-table td {
  width: 37.5%;
  font-weight: 800;
}

.compare-table td.winner {
  background: rgba(120, 211, 154, .08);
  color: #b8edca;
}

.compare-table td.loser {
  color: #d5d1c7;
}

.advantage {
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  font-size: .66rem;
  font-weight: 850;
}

.compare-verdict {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.verdict-block {
  min-width: 0;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.verdict-block:nth-child(1) {
  border-color: var(--green);
}

.verdict-block:nth-child(2) {
  border-color: var(--cyan);
}

.verdict-block:nth-child(3) {
  border-color: var(--gold);
}

.verdict-block span {
  color: var(--dim);
  font-size: .67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.verdict-block h3 {
  margin: 5px 0;
  font-size: .98rem;
}

.verdict-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.48;
}

.multi-compare-page {
  padding-bottom: 34px;
}

.multi-compare-page .compare-heading {
  align-items: end;
}

.multi-compare-page .compare-heading h1 {
  font-size: 3.2rem;
}

.compare-roster-section {
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
}

.compare-add-row {
  grid-template-columns: minmax(260px, 500px);
}

.compare-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.compare-roster-item {
  --series-color: var(--green);
  display: grid;
  grid-template-columns: 27px 70px minmax(0, 1fr) auto 27px;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--series-color);
  border-radius: 5px;
  padding: 5px;
  background: rgba(19, 26, 33, .68);
}

.weapon-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}

.weapon-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 5px 5px rgba(0, 0, 0, .44));
}

.weapon-icon-compare-roster {
  width: 70px;
  height: 44px;
}

.compare-roster-copy {
  min-width: 0;
}

.compare-roster-copy b,
.compare-roster-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-roster-copy b {
  font-size: .82rem;
}

.compare-roster-copy small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .61rem;
  font-weight: 750;
  text-transform: uppercase;
}

.compare-build-button {
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--bg-raised);
  color: var(--muted);
  cursor: pointer;
  font-size: .69rem;
  font-weight: 850;
}

.compare-build-button:hover {
  border-color: var(--series-color);
  color: var(--text);
}

.compare-remove-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 1.05rem;
}

.compare-remove-button:hover:not(:disabled) {
  background: rgba(239, 114, 125, .12);
  color: var(--red);
}

.compare-remove-button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.compare-range-control {
  position: sticky;
  top: 70px;
  z-index: 24;
  background: rgba(8, 11, 14, .96);
  backdrop-filter: blur(12px);
}

.compare-chart-section,
.compare-results-section {
  padding-top: 17px;
}

.compare-chart-section .section-heading,
.compare-results-section .section-heading {
  padding-bottom: 9px;
}

.compare-chart-tabs {
  padding-top: 0;
}

.compare-chart-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.compare-chart-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(14, 19, 24, .58);
}

.compare-chart-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 39px;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 9px;
}

.compare-chart-panel > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.compare-chart-panel > header span {
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 900;
}

.compare-chart-panel > header h3 {
  overflow: hidden;
  color: var(--text);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-chart-panel > header small {
  flex: 0 0 auto;
  color: var(--dim);
  font-size: .59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-chart-scroll {
  width: 100%;
  overflow: hidden;
}

.mini-chart-scroll .compact-behavior-chart {
  width: 100%;
  min-width: 0;
  height: clamp(170px, 18vw, 190px);
  aspect-ratio: auto;
  background: transparent;
}

.compact-behavior-chart .behavior-axis-label {
  font-size: 13px;
}

.mini-chart-readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border-top: 1px solid var(--line-soft);
}

.mini-chart-readouts a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  border-right: 1px solid var(--line-soft);
  padding: 4px 7px;
  color: var(--muted);
}

.mini-chart-readouts a:last-child {
  border-right: 0;
}

.mini-chart-readouts a:hover b {
  color: var(--series-color);
}

.mini-chart-readouts b {
  overflow: hidden;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-chart-readouts .series-number {
  width: 22px;
  height: 22px;
  font-size: .58rem;
}

.fire-output-head,
.fire-output-row {
  display: grid;
  grid-template-columns: minmax(78px, 1.2fr) repeat(4, minmax(48px, .72fr));
  gap: 6px;
  align-items: center;
}

.fire-output-head {
  min-height: 32px;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 9px;
  color: var(--dim);
  font-size: .56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fire-output-head span:not(:first-child) {
  text-align: right;
}

.fire-output-row {
  min-height: 43px;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 9px;
  color: var(--muted);
}

.fire-output-row:last-child {
  border-bottom: 0;
}

.fire-output-row:hover {
  background: rgba(255, 255, 255, .025);
}

.fire-output-weapon {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.fire-output-weapon .series-number {
  width: 23px;
  height: 23px;
  border-color: color-mix(in srgb, var(--series-color) 72%, transparent);
  color: var(--series-color);
  font-size: .57rem;
}

.fire-output-weapon b {
  overflow: hidden;
  color: var(--text);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fire-output-metric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
}

.fire-output-metric > b {
  overflow: hidden;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
}

.fire-output-metric > i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
}

.fire-output-metric em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--series-color);
}

.fire-output-metric.is-leader > b {
  color: var(--series-color);
}

.dashboard-source {
  grid-column: 1 / -1;
  padding: 1px 1px 3px;
  color: var(--dim);
  font-size: .65rem;
}

.handling-chart {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.handling-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 0;
  color: var(--dim);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.handling-chart-legend b {
  margin-left: auto;
  color: var(--muted);
}

.handling-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.handling-chart-legend i {
  width: 13px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}

.handling-chart-legend i.range {
  background: var(--cyan);
}

.handling-chart-row {
  display: grid;
  grid-template-columns: minmax(190px, 255px) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 67px;
  border-top: 1px solid var(--line-soft);
  padding: 8px 0;
}

.handling-chart-weapon {
  display: grid;
  grid-template-columns: 27px 58px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--text);
}

.handling-chart-weapon:hover b {
  color: var(--series-color);
}

.handling-chart-weapon b,
.handling-chart-weapon small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handling-chart-weapon b {
  font-size: .78rem;
}

.handling-chart-weapon small {
  margin-top: 3px;
  color: var(--dim);
  font-size: .6rem;
}

.weapon-icon-handling-chart {
  width: 58px;
  height: 34px;
}

.handling-chart-bars {
  display: grid;
  gap: 7px;
}

.handling-chart-bar {
  display: grid;
  grid-template-columns: 78px minmax(100px, 1fr) 28px;
  gap: 8px;
  align-items: center;
  font-size: .64rem;
}

.handling-chart-bar > span {
  color: var(--muted);
  font-weight: 750;
}

.handling-chart-bar > i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
}

.handling-chart-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.handling-chart-bar em.range {
  background: var(--cyan);
}

.handling-chart-bar > b {
  color: var(--text);
  text-align: right;
}

.compact-source {
  margin-top: 0;
  border-top: 0;
}

.compact-handling-chart {
  border: 0;
}

.compact-handling-chart .handling-chart-legend {
  min-height: 31px;
  padding: 6px 9px;
}

.compact-handling-chart .handling-chart-row {
  grid-template-columns: minmax(104px, 132px) minmax(115px, 1fr);
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
}

.compact-handling-chart .handling-chart-weapon {
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 6px;
}

.compact-handling-chart .weapon-icon-handling-chart,
.compact-handling-chart .handling-chart-weapon small {
  display: none;
}

.compact-handling-chart .handling-chart-bars {
  gap: 4px;
}

.compact-handling-chart .handling-chart-bar {
  grid-template-columns: 48px minmax(45px, 1fr) 23px;
  gap: 5px;
  font-size: .57rem;
}

.compact-handling-chart .handling-chart-bar > i {
  height: 5px;
}

.compare-chart-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 40px;
  padding: 7px 1px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-chart-heading span {
  margin-right: auto;
  color: var(--text);
  font-size: .8rem;
  font-weight: 850;
}

.compare-chart-heading b {
  color: var(--dim);
  font-size: .65rem;
  text-transform: uppercase;
}

.compare-fire-readouts {
  margin-bottom: 3px;
}

.compare-build-workbench {
  padding-top: 11px;
}

.builder-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-title-actions button,
.section-action {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 9px;
  background: var(--bg-raised);
  color: var(--muted);
  cursor: pointer;
  font-size: .67rem;
  font-weight: 850;
}

.builder-title-actions button:hover,
.section-action:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.compare-build-workbench.collapsed .compare-build-tabs {
  border-bottom-color: var(--line-soft);
}

.compare-build-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  scrollbar-width: thin;
}

.compare-build-tabs > button {
  --series-color: var(--green);
  display: grid;
  grid-template-columns: 27px 44px minmax(90px, auto);
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px 4px 5px;
  background: var(--bg-raised);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.compare-build-tabs > button:hover,
.compare-build-tabs > button.active {
  border-color: var(--series-color);
  color: var(--text);
}

.compare-build-tabs > button.active {
  background: color-mix(in srgb, var(--series-color) 9%, var(--bg-raised));
}

.compare-build-tabs > button b,
.compare-build-tabs > button small {
  display: block;
}

.weapon-icon-tab {
  width: 44px;
  height: 28px;
}

.compare-build-tabs > button b {
  font-size: .72rem;
}

.compare-build-tabs > button small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .59rem;
  text-transform: uppercase;
}

.compare-attachment-build,
.compare-attachment-build + .compare-attachment-build {
  border: 0;
  padding: 12px 0 14px;
}

.compare-attachment-build .build-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.compare-leaders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 4px 0 13px;
}

.compare-leader {
  min-width: 0;
  border-left: 2px solid var(--line);
  padding: 4px 10px;
  background: rgba(19, 26, 33, .5);
}

.compare-leader:nth-child(1) {
  border-color: var(--green);
}

.compare-leader:nth-child(2) {
  border-color: var(--cyan);
}

.compare-leader:nth-child(3) {
  border-color: var(--gold);
}

.compare-leader:nth-child(4) {
  border-color: var(--purple);
}

.compare-leader span,
.compare-leader b,
.compare-leader strong {
  display: block;
}

.compare-leader span {
  color: var(--dim);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compare-leader b {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: .8rem;
}

.compare-leader strong {
  margin-top: 2px;
  color: var(--green);
  font-size: .75rem;
}

.compare-table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.compare-stats-tabs {
  padding-top: 0;
}

.compare-results-heading {
  align-items: center;
}

.compare-results-heading > div {
  min-width: 0;
}

.compare-results-heading .section-action {
  flex: 0 0 auto;
}

.multi-compare-table {
  table-layout: auto;
}

.multi-compare-table th,
.multi-compare-table td {
  width: auto;
  min-width: 145px;
  padding: 10px 11px;
}

.multi-compare-table th:first-child,
.multi-compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 185px;
  min-width: 185px;
  background: var(--bg-raised);
}

.multi-compare-table thead th {
  vertical-align: middle;
}

.multi-compare-table thead th:not(:first-child) {
  border-top: 2px solid var(--series-color);
}

.multi-compare-table thead th .series-number {
  display: grid;
  margin: 0;
}

.multi-compare-table thead th a {
  color: var(--text);
}

.multi-compare-table thead th a:hover {
  color: var(--series-color);
}

.compare-table-weapon {
  display: grid;
  grid-template-columns: 27px 54px;
  justify-content: center;
  align-items: center;
  gap: 4px 7px;
}

.compare-table-weapon > a {
  grid-column: 1 / -1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weapon-icon-table {
  width: 54px;
  height: 32px;
}

.multi-compare-table td b,
.multi-compare-table td small {
  display: block;
}

.multi-compare-table .compare-section-row th {
  position: static;
  width: auto;
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom-color: var(--line);
  padding: 8px 11px;
  background: rgba(102, 200, 215, .07);
  color: var(--cyan);
  font-size: .64rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.multi-compare-table .compare-text-row td b {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.multi-compare-table .compare-text-row td small {
  color: var(--dim);
  line-height: 1.25;
  text-transform: none;
}

.multi-compare-table td b {
  font-size: .78rem;
}

.multi-compare-table td small {
  margin-top: 3px;
  color: var(--green);
  font-size: .59rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chart-lab-page {
  padding-bottom: 30px;
}

.chart-lab-heading {
  align-items: end;
}

.lab-count {
  display: grid;
  min-width: 112px;
  border-left: 2px solid var(--cyan);
  padding: 5px 0 5px 12px;
}

.lab-count b {
  font-size: 1.65rem;
  line-height: 1;
}

.lab-count span {
  margin-top: 4px;
  color: var(--dim);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-selector {
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
}

.lab-add-row {
  display: grid;
  grid-template-columns: minmax(260px, 500px) auto;
  gap: 8px;
  align-items: end;
}

.weapon-picker {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  z-index: 40;
}

.weapon-picker [hidden] {
  display: none !important;
}

.weapon-picker-label,
.weapon-picker-search > span {
  color: var(--dim);
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.weapon-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
  text-align: left;
}

.weapon-picker-trigger:hover,
.weapon-picker-trigger[aria-expanded="true"] {
  border-color: var(--cyan);
}

.weapon-picker-trigger:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.weapon-picker-caret {
  color: var(--cyan);
  font-size: .9rem;
}

.weapon-picker-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 90;
  width: min(500px, calc(100vw - 32px));
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 8px;
  background: #0b1016;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .58);
}

.weapon-picker-search {
  display: grid;
  gap: 5px;
}

.weapon-picker-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  background: var(--bg-raised);
  color: var(--text);
}

.weapon-picker-search input:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(102, 200, 215, .16);
}

.weapon-picker-results {
  max-height: 365px;
  margin-top: 7px;
  overflow-y: auto;
  border-top: 1px solid var(--line-soft);
  scrollbar-width: thin;
}

.weapon-picker-group-label {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 5px 5px;
  background: #0b1016;
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weapon-picker-choice {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.weapon-picker-choice:hover,
.weapon-picker-choice:focus-visible {
  background: rgba(102, 200, 215, .09);
  outline: 0;
}

.weapon-picker-choice b,
.weapon-picker-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weapon-picker-choice b {
  font-size: .8rem;
}

.weapon-picker-choice small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weapon-icon-picker {
  width: 76px;
  height: 44px;
}

.weapon-picker-empty {
  margin: 0;
  padding: 18px 8px;
  color: var(--dim);
  font-size: .76rem;
  text-align: center;
}

.lab-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.lab-roster-item {
  --series-color: var(--green);
  display: grid;
  grid-template-columns: 27px 50px minmax(0, 1fr) 27px;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 47px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--series-color);
  border-radius: 5px;
  padding: 5px 5px 5px 7px;
  background: rgba(19, 26, 33, .66);
}

.weapon-icon-roster {
  width: 50px;
  height: 32px;
}

.series-number {
  --series-color: inherit;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid var(--series-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--series-color) 12%, var(--bg));
  color: var(--text);
  font-size: .69rem;
  font-weight: 900;
}

.lab-roster-copy {
  min-width: 0;
}

.lab-roster-copy b,
.lab-roster-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-roster-copy b {
  font-size: .8rem;
}

.lab-roster-copy small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .63rem;
  font-weight: 750;
  text-transform: uppercase;
}

.lab-roster-item > button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 1.05rem;
}

.lab-roster-item > button:hover {
  background: rgba(239, 114, 125, .12);
  color: var(--red);
}

.lab-roster-empty {
  grid-column: 1 / -1;
  padding: 10px 0 2px;
  color: var(--dim);
  font-size: .78rem;
}

.lab-view-tabs {
  display: flex;
  gap: 3px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}

.lab-view-tabs button {
  min-height: 39px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 7px 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .79rem;
  font-weight: 850;
}

.lab-view-tabs button:hover {
  color: var(--text);
}

.lab-view-tabs button.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(120, 211, 154, .06);
}

.behavior-panel {
  min-width: 0;
  padding-top: 16px;
}

.behavior-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 1px 10px;
}

.behavior-panel-heading .eyebrow {
  margin-bottom: 3px;
}

.behavior-panel-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.segmented-control,
.plot-encoding {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.segmented-control {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: var(--bg-raised);
}

.segmented-control button {
  min-height: 29px;
  border: 0;
  border-radius: 4px;
  padding: 4px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}

.segmented-control button:hover {
  color: var(--text);
}

.segmented-control button.active {
  background: var(--panel-3);
  color: var(--green);
}

.plot-encoding {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plot-encoding span {
  border-left: 2px solid var(--line);
  padding-left: 7px;
  color: var(--dim);
  font-size: .67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.behavior-range {
  padding-top: 9px;
}

.chart-scroll {
  width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: thin;
}

.behavior-chart {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  aspect-ratio: 1000 / 410;
  background: rgba(14, 19, 24, .58);
}

.fire-chart {
  aspect-ratio: 1000 / 430;
}

.behavior-grid-line {
  stroke: #26343e;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.behavior-axis-label,
.behavior-axis-title {
  fill: var(--dim);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.behavior-axis-label {
  font-size: 11px;
}

.behavior-axis-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.behavior-series {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.behavior-series.baseline {
  stroke-dasharray: 8 6;
  opacity: .78;
}

.behavior-inspector {
  stroke: var(--text);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: .72;
  vector-effect: non-scaling-stroke;
}

.behavior-marker {
  stroke: var(--bg);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.curve-readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px 14px;
  border-bottom: 1px solid var(--line);
}

.curve-readout {
  --series-color: var(--green);
  display: grid;
  grid-template-columns: 27px 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px 1px;
  border-bottom: 1px solid var(--line-soft);
}

.weapon-icon-readout {
  width: 48px;
  height: 30px;
}

.curve-readout:hover b {
  color: var(--series-color);
}

.curve-readout-name {
  min-width: 0;
}

.curve-readout-name b,
.curve-readout-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curve-readout-name b {
  font-size: .79rem;
}

.curve-readout-name small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .63rem;
  text-transform: uppercase;
}

.curve-readout strong {
  color: var(--series-color);
  font-size: .86rem;
  white-space: nowrap;
}

.fire-point circle {
  stroke: var(--bg);
  stroke-width: 3;
  opacity: .9;
  vector-effect: non-scaling-stroke;
}

.fire-point-guide {
  stroke: var(--dim);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: .62;
  vector-effect: non-scaling-stroke;
}

.fire-point text {
  fill: #071015;
  font-size: 11px;
  font-weight: 950;
  pointer-events: none;
}

.fire-readouts {
  border-bottom: 1px solid var(--line);
}

.fire-readout {
  --series-color: var(--green);
  display: grid;
  grid-template-columns: 28px 48px minmax(140px, 1fr) repeat(3, minmax(62px, .35fr));
  gap: 8px;
  align-items: center;
  min-height: 39px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .76rem;
}

.fire-readout:hover b {
  color: var(--series-color);
}

.fire-readout b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fire-readout-head {
  min-height: 31px;
  color: var(--dim);
  font-size: .64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fire-readout-head:hover b {
  color: inherit;
}

.heat-scale {
  display: grid;
  grid-template-columns: auto minmax(120px, 240px) auto;
  justify-content: end;
  align-items: center;
  gap: 7px;
  padding: 0 1px 9px;
  color: var(--dim);
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heat-scale i {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold), var(--cyan), var(--green));
}

.metric-map-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.metric-map-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
}

.metric-map-table th,
.metric-map-table td {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 10px;
  text-align: left;
}

.metric-map-table th:last-child,
.metric-map-table td:last-child {
  border-right: 0;
}

.metric-map-table thead th {
  color: var(--dim);
  font-size: .65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-map-table thead th:first-child,
.metric-map-table tbody th {
  width: 240px;
}

.metric-map-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 27px 48px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  border-left: 2px solid var(--series-color);
  background: var(--bg-raised);
}

.metric-weapon-copy {
  min-width: 0;
}

.metric-map-table tbody th a,
.metric-map-table tbody th small {
  display: block;
}

.metric-map-table tbody th a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-map-table tbody th a:hover {
  color: var(--series-color);
}

.metric-map-table tbody th small {
  margin-top: 2px;
  color: var(--dim);
  font-size: .62rem;
  text-transform: uppercase;
}

.metric-heat-cell b,
.metric-heat-cell small {
  display: block;
}

.metric-heat-cell b {
  font-size: .8rem;
}

.metric-heat-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .61rem;
  text-transform: uppercase;
}

.metric-heat-cell.heat-bottom {
  background: rgba(239, 114, 125, .14);
}

.metric-heat-cell.heat-low {
  background: rgba(233, 154, 95, .13);
}

.metric-heat-cell.heat-mid {
  background: rgba(240, 200, 103, .13);
}

.metric-heat-cell.heat-high {
  background: rgba(102, 200, 215, .13);
}

.metric-heat-cell.heat-top {
  background: rgba(120, 211, 154, .17);
}

.metric-heat-cell.heat-none {
  color: var(--dim);
  background: rgba(120, 135, 143, .05);
}

.chart-lab-empty {
  display: grid;
  justify-items: start;
  min-height: 280px;
  align-content: center;
  border-bottom: 1px solid var(--line);
  padding: 30px 2px;
}

.chart-lab-empty h2 {
  margin-bottom: 5px;
}

.chart-lab-empty p {
  margin-bottom: 13px;
  color: var(--muted);
}

.compact-list .weapon-card {
  grid-template-columns: 108px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  min-height: 104px;
}

.compact-list .weapon-card-top {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  padding: 0;
}

.compact-list .weapon-badges,
.compact-list .weapon-tags {
  display: none;
}

.compact-list .weapon-card-link {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 108px minmax(0, 1fr);
}

.compact-list .weapon-art {
  min-height: 98px;
  padding: 5px 8px;
}

.compact-list .weapon-art img {
  height: 86px;
}

.compact-list .weapon-card-copy {
  align-self: center;
  padding: 12px 44px 10px 8px;
}

.compact-list .weapon-card-copy p {
  min-height: 0;
  margin-bottom: 0;
  -webkit-line-clamp: 1;
}

.compact-list .weapon-stat-row {
  grid-column: 3;
  grid-template-columns: repeat(2, 74px);
  align-self: stretch;
  border-top: 0;
  border-left: 1px solid var(--line-soft);
}

.compact-list .utility-stat-row {
  grid-template-columns: repeat(3, 74px);
}

.compact-list .weapon-stat {
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line-soft);
}

.compact-list .weapon-stat:nth-child(2n) {
  border-right: 0;
}

@media (max-width: 1050px) {
  .page-heading h1,
  .detail-copy h1,
  .compare-heading h1 {
    font-size: 3rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .library-status {
    display: none;
  }

  .page-heading {
    align-items: start;
  }

  .arsenal-totals {
    flex-direction: column;
  }

  .total-chip {
    min-width: 112px;
  }

  .detail-hero {
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  }

  .detail-stats {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .insight-grid,
  .compare-verdict {
    grid-template-columns: 1fr;
  }

  .lab-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page-heading h1,
  .detail-copy h1,
  .compare-heading h1 {
    font-size: 2.5rem;
  }

  .compare-weapon-head h2 {
    font-size: 1.6rem;
  }

  .multi-compare-page .compare-heading h1 {
    font-size: 2.35rem;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 9px;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  #app {
    padding-top: 14px;
  }

  .page-heading,
  .compare-heading {
    display: block;
  }

  .lab-count {
    width: fit-content;
    margin-top: 13px;
  }

  .arsenal-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 13px;
  }

  .total-chip {
    min-width: 0;
  }

  .catalog-toolbar {
    position: relative;
    top: auto;
  }

  .toolbar-primary {
    align-items: stretch;
  }

  .sort-field select {
    min-height: 48px;
  }

  .weapon-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 22px;
  }

  .detail-art img {
    max-height: 245px;
  }

  .chart-grid,
  .loadout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compare-controls,
  .compare-weapon-heads {
    grid-template-columns: 1fr;
  }

  .attachment-build-grid {
    grid-template-columns: 1fr;
  }

  .attachment-build,
  .attachment-build + .attachment-build {
    padding-inline: 0;
  }

  .attachment-build + .attachment-build {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .versus-mark {
    display: none;
  }

  .compare-weapon-head {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .compact-list .weapon-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .compact-list .weapon-card-link {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .compact-list .weapon-stat-row {
    display: none;
  }

  .behavior-panel-heading {
    align-items: start;
  }

  .compare-range-control {
    top: 0;
  }

  .compare-chart-dashboard {
    grid-template-columns: 1fr;
  }

  .compare-leaders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handling-chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .handling-chart-weapon {
    grid-template-columns: 27px 50px minmax(0, 1fr);
  }

  .weapon-icon-handling-chart {
    width: 50px;
    height: 30px;
  }

  .compare-results-heading {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-nav a {
    font-size: .78rem;
  }

  .page-heading h1,
  .detail-copy h1,
  .compare-heading h1 {
    font-size: 2rem;
  }

  .toolbar-primary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .view-actions {
    margin-left: 0;
  }

  .sort-field {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .sort-field select {
    min-height: 38px;
  }

  .arsenal-totals {
    grid-template-columns: 1fr 1fr;
  }

  .total-chip:last-child {
    grid-column: 1 / -1;
  }

  .weapon-card {
    grid-template-rows: auto 105px auto auto;
    min-height: 292px;
  }

  .weapon-art img {
    height: 100px;
  }

  .detail-stats,
  .chart-grid,
  .loadout-grid {
    grid-template-columns: 1fr;
  }

  .loadout-item-wide {
    grid-column: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 7px;
    text-align: left;
  }

  .compare-table th,
  .compare-table td {
    padding: 9px 6px;
    font-size: .76rem;
  }

  .compare-table th {
    width: 30%;
  }

  .compare-table td {
    width: 35%;
  }

  .compare-tray {
    align-items: center;
    gap: 6px;
    padding-left: 8px;
  }

  .compare-tray-label {
    display: none;
  }

  .compare-selection {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .compare-chip {
    flex: 0 0 auto;
  }

  .compare-tray .primary-button {
    flex: 0 0 auto;
    padding-inline: 9px;
    font-size: .72rem;
  }

  .compatibility-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .compatibility-label {
    padding-top: 0;
  }

  .lab-add-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .compare-add-row {
    grid-template-columns: 1fr;
  }

  .compare-add-row .weapon-picker {
    grid-column: 1;
  }

  .lab-roster {
    grid-template-columns: 1fr;
  }

  .compare-roster {
    grid-template-columns: 1fr;
  }

  .compare-roster-item {
    grid-template-columns: 25px 58px minmax(0, 1fr) auto 25px;
    gap: 5px;
  }

  .weapon-icon-compare-roster {
    width: 58px;
  }

  .compare-roster-copy small {
    font-size: .56rem;
  }

  .compare-build-button {
    padding-inline: 5px;
    font-size: .63rem;
  }

  .lab-view-tabs button {
    flex: 1 1 0;
    padding-inline: 6px;
    font-size: .7rem;
  }

  .behavior-panel-heading {
    display: block;
  }

  .segmented-control,
  .plot-encoding {
    width: 100%;
    margin-top: 9px;
  }

  .segmented-control button {
    flex: 1 1 0;
  }

  .plot-encoding {
    justify-content: flex-start;
  }

  .curve-readouts {
    grid-template-columns: 1fr;
  }

  .fire-readout {
    grid-template-columns: 28px 40px minmax(105px, 1fr) repeat(3, 48px);
    gap: 5px;
    font-size: .7rem;
  }

  .weapon-icon-readout {
    width: 40px;
  }

  .weapon-picker-popover {
    width: 100%;
  }

  .multi-compare-table th,
  .multi-compare-table td {
    width: auto;
    min-width: 132px;
    padding: 8px;
  }

  .multi-compare-table th:first-child,
  .multi-compare-table td:first-child {
    width: 155px;
    min-width: 155px;
  }

  .compare-results-heading {
    display: grid;
    gap: 8px;
  }

  .compare-results-heading .section-action {
    width: fit-content;
  }

  .compare-leaders {
    grid-template-columns: 1fr;
  }

  .handling-chart-legend b {
    width: 100%;
    margin-left: 0;
  }

  .handling-chart-bar {
    grid-template-columns: 62px minmax(90px, 1fr) 25px;
  }

  .heat-scale {
    grid-template-columns: auto minmax(90px, 1fr) auto;
  }
}

@media (max-width: 780px) {
  .site-footer {
    padding-bottom: 76px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-inner > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer-inner > :last-child {
    grid-column: auto;
  }
}

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