/* ============================================================================
   D2 GUN LOCKER  -  01-core-3.css  (part 3 of 4)
   ----------------------------------------------------------------------------
   Contiguous slice of the original stylesheet, cut only at rule boundaries and
   kept in EXACT cascade order (no rules reordered/removed). Load parts in order.
   See README for the component map; rules for one component may span parts.
   ============================================================================ */


  @media (max-width: 1250px) {
    .stats-grid,
    .stats-insight-grid {
      grid-template-columns: 1fr;
    }
    .stats-hero-left {
      max-width: 100%;
    }
    .stats-weapon-art {
      opacity: 0.22;
    }
  }

  .stats-warning-banner {
    border: 1px solid rgba(255,214,122,0.28);
    background: rgba(255,214,122,0.07);
    color: rgba(255,235,180,0.9);
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
  }

  .reload-time-grid,
  .range-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
  }

  .range-summary {
    grid-template-columns: repeat(2, minmax(0,1fr));
    margin-bottom: 10px;
  }

  .reload-time-grid div,
  .range-summary div {
    border: 1px solid var(--border-dim);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 9px;
  }

  .reload-time-grid span,
  .range-summary span {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .reload-time-grid strong,
  .range-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .stats-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    background: var(--bg-secondary);
  }

  .stats-damage-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
  }

  .stats-damage-table th,
  .stats-damage-table td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: left;
  }

  .stats-damage-table th {
    color: var(--text-primary);
    background: rgba(255,255,255,0.035);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
  }

  .stats-damage-table td:nth-child(2),
  .stats-damage-table td:nth-child(3) {
    color: var(--text-primary);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

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

  .cone-card {
    border: 1px solid var(--border-dim);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
  }

  .cone-title {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .cone-svg {
    width: 100%;
    height: 72px;
    margin-top: 4px;
  }

  .cone-line,
  .cone-ellipse {
    stroke: rgba(255,255,255,0.72);
    fill: none;
    stroke-width: 1.7;
  }

  .cone-dot {
    fill: #68e394;
  }

  .cone-value {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  @media (max-width: 1250px) {
    .reload-time-grid,
    .range-summary,
    .cone-grid {
      grid-template-columns: 1fr;
    }
  }

  .stats-row-delta {
    margin-left: 5px;
    font-size: 10px;
    font-weight: 900;
  }
  .stats-row-delta.positive { color: #68e394; }
  .stats-row-delta.negative { color: #ff7676; }

  .stats-damage-perk-banner {
    border: 1px solid rgba(104,227,148,0.32);
    background: rgba(104,227,148,0.08);
    color: #b8ffd0;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
  }

  .falloff-graph-card {
    margin-top: 10px;
    border: 1px solid var(--border-dim);
    border-radius: 9px;
    background: var(--bg-secondary);
    padding: 10px;
    overflow: hidden;
  }

  .falloff-graph-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .falloff-graph-title {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .falloff-graph-sub {
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
  }

  .falloff-legend {
    display: flex;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .falloff-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .falloff-legend i {
    width: 10px;
    height: 3px;
    display: inline-block;
    border-radius: 999px;
  }

  .falloff-legend i.crit { background: #68e394; }
  .falloff-legend i.body { background: var(--accent-bright); }

  .falloff-svg {
    width: 100%;
    height: auto;
    display: block;
  }

  .falloff-bg {
    fill: rgba(0,0,0,0.08);
  }

  .falloff-grid {
    stroke: rgba(255,255,255,0.075);
    stroke-width: 1;
  }

  .falloff-grid.x {
    stroke: rgba(255,255,255,0.055);
  }

  .falloff-axis,
  .falloff-marker-label {
    fill: rgba(255,255,255,0.55);
    font-size: 9px;
    font-weight: 800;
  }

  .falloff-axis-line {
    stroke: rgba(255,255,255,0.22);
    stroke-width: 1;
  }

  .falloff-line {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .falloff-line.crit {
    stroke: #68e394;
  }

  .falloff-line.body {
    stroke: var(--accent-bright);
  }

  .falloff-marker {
    stroke-width: 1.3;
    stroke-dasharray: 4 4;
  }

  .falloff-marker.start {
    stroke: rgba(104,227,148,0.7);
  }

  .falloff-marker.end {
    stroke: rgba(255,118,118,0.7);
  }

  .falloff-legend.multi {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .falloff-legend.multi span {
    border: 1px solid var(--border-dim);
    background: rgba(255,255,255,0.035);
    padding: 4px 6px;
    border-radius: 999px;
  }

  .falloff-legend span.crit.base i,
  .falloff-line.crit.base {
    stroke: #68e394;
    background: #68e394;
  }

  .falloff-legend span.body.base i,
  .falloff-line.body.base {
    stroke: var(--accent-bright);
    background: var(--accent-bright);
  }

  .falloff-line.perk {
    stroke-dasharray: 5 4;
    stroke-width: 2.2;
  }

  .falloff-line.crit.perk-0,
  .falloff-legend span.crit.perk-0 i { stroke: #7cc7ff; background: #7cc7ff; }

  .falloff-line.body.perk-0,
  .falloff-legend span.body.perk-0 i { stroke: #caa7ff; background: #caa7ff; }

  .falloff-line.crit.perk-1,
  .falloff-legend span.crit.perk-1 i { stroke: #ff9f7c; background: #ff9f7c; }

  .falloff-line.body.perk-1,
  .falloff-legend span.body.perk-1 i { stroke: #f77cff; background: #f77cff; }

  .falloff-line.crit.perk-2,
  .falloff-legend span.crit.perk-2 i { stroke: #80ffd1; background: #80ffd1; }

  .falloff-line.body.perk-2,
  .falloff-legend span.body.perk-2 i { stroke: var(--accent-bright); background: var(--accent-bright); }

  .falloff-line.crit.perk-3,
  .falloff-legend span.crit.perk-3 i { stroke: #ff7c9c; background: #ff7c9c; }

  .falloff-line.body.perk-3,
  .falloff-legend span.body.perk-3 i { stroke: #9cff7c; background: #9cff7c; }

  .stats-falloff-graph {
    position: relative;
  }

  .falloff-hover-line {
    pointer-events: none;
    transition: none;
  }

  .falloff-hover-dot {
    pointer-events: none;
    transition: none;
  }

  .falloff-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    background: rgba(13, 16, 24, 0.94);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 7px 10px;
    min-width: 110px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.12s ease;
    font-family: 'Rajdhani', sans-serif;
  }

  .falloff-tooltip.visible {
    opacity: 1;
  }

  .falloff-tooltip-dist {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 4px;
  }

  .falloff-tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
  }

  .falloff-tooltip-label {
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .falloff-tooltip-swatch {
    width: 8px;
    height: 3px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
  }

  .falloff-tooltip-val {
    font-size: 11px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .stats-mod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-dim);
    background: var(--bg-perk);
    border-radius: 10px;
    padding: 10px;
  }

  .stats-mod-sub {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
  }

  .stats-mod-boxes {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  #statsMasterworkBox,
  #statsModBox {
    width: 54px;
    height: 54px;
  }

  .stats-mod-wrap {
    position: relative;
  }

  .stats-mod-wrap .stats-dropdown {
    top: 62px;
    left: auto;
    right: 0;
    min-width: 220px;
    z-index: 5000;
  }

  .stats-mod-wrap:first-child .stats-dropdown {
    left: 0;
    right: auto;
  }

  .stats-damage-table .mini-th {
    display: block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: none;
  }

  .pve-base {
    color: var(--text-dim);
    font-weight: 800;
  }

  .pve-mod-added {
    color: #68e394;
    font-weight: 900;
    margin: 0 3px;
  }

  .pve-mod-added.muted {
    color: rgba(255,255,255,0.24);
  }

  .pve-final {
    color: var(--text-primary);
    font-weight: 900;
  }

  .stats-damage-table tr.has-pve-mod td {
    background: rgba(104,227,148,0.045);
  }

  .pve-mod-legend {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
  }

  .reload-time-grid.single-reload {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .reload-time-grid.single-reload {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .stats-stack-panel {
    border: 1px solid var(--border-dim);
    background: var(--bg-perk);
    border-radius: 10px;
    padding: 10px;
  }

  .stats-stack-panel.empty {
    opacity: 0.82;
  }

  .stats-stack-empty {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
  }

  .stats-stack-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .stack-control {
    border: 1px solid var(--border-dim);
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 8px;
    flex: 0 1 auto;
    min-width: 142px;
    max-width: 230px;
  }

  .stack-control-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .stack-control-head strong {
    color: var(--accent-bright);
    font-variant-numeric: tabular-nums;
  }

  .stack-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
  }

  .stack-btn {
    border: 1px solid var(--border-dim);
    background: rgba(255,255,255,0.035);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 4px 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
  }

  .stack-btn:hover,
  .stack-btn.active {
    border-color: rgba(var(--accent-rgb),0.65);
    background: rgba(var(--accent-rgb),0.13);
    color: var(--text-primary);
  }

  .stack-btn.active {
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.35) inset;
  }

  .layout-resizer {
    position: sticky;
    top: 86px;
    height: calc(100vh - 110px);
    border-radius: 999px;
    cursor: col-resize;
    background:
      linear-gradient(180deg, transparent, rgba(255,255,255,0.16), transparent);
    border-left: 1px solid rgba(255,255,255,0.07);
    border-right: 1px solid rgba(255,255,255,0.07);
    z-index: 20;
    transition: background 0.15s, border-color 0.15s;
  }

  .layout-resizer:hover,
  body.resizing-layout .layout-resizer {
    background:
      linear-gradient(180deg, transparent, rgba(var(--accent-rgb),0.7), transparent);
    border-color: rgba(var(--accent-rgb),0.55);
  }

  body.resizing-layout {
    cursor: col-resize !important;
    user-select: none !important;
  }

  .weapon-list-panel,
  .build-window {
    min-width: 0;
  }

  .app-layout.left-compact .weapon-type,
  .app-layout.left-compact .weapon-badges,
  .app-layout.left-compact .weapon-element,
  .app-layout.left-compact .weapon-archetype-badge,
  .app-layout.left-compact .weapon-season,
  .app-layout.left-compact .weapon-source,
  .app-layout.left-compact .perk-name,
  .app-layout.left-compact .filter-no-options,
  .app-layout.left-compact .weapon-filter-search,
  .app-layout.left-compact .weapon-filter-label,
  .app-layout.left-compact .clear-filter-btn,
  .app-layout.left-compact .weapon-filter-footer {
    display: none !important;
  }

  .app-layout.left-compact .weapon-card {
    padding: 8px;
  }

  .app-layout.left-compact .card-top {
    justify-content: center;
  }

  .app-layout.left-compact .weapon-info {
    min-width: 0;
  }

  .app-layout.left-compact .weapon-name {
    max-width: 72px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .app-layout.left-compact .perk-item {
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .app-layout.left-compact .weapon-filter-grid {
    grid-auto-columns: 110px;
  }

  .app-layout.left-compact .weapon-filter-chip {
    font-size: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    overflow: hidden;
  }

  .app-layout.left-compact .weapon-filter-chip::first-letter {
    font-size: 10px;
  }

  .app-layout.right-compact .build-title,
  .app-layout.right-compact .build-selected,
  .app-layout.right-compact .build-btn,
  .app-layout.right-compact .compare-sub,
  .app-layout.right-compact .stats-meta,
  .app-layout.right-compact .stats-card-title,
  .app-layout.right-compact .stats-api-warning,
  .app-layout.right-compact .stats-warning-banner,
  .app-layout.right-compact .dc-description,
  .app-layout.right-compact .dc-tip-outer {
    font-size: 10px !important;
  }

  .app-layout.right-compact .build-actions {
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
  }

  .app-layout.right-compact .build-btn {
    padding: 5px 7px;
    white-space: nowrap;
  }

  .app-layout.right-compact .stats-grid,
  .app-layout.right-compact .stats-insight-grid,
  .app-layout.right-compact .compare-weapon-row {
    grid-template-columns: 1fr !important;
  }

  .app-layout.right-compact .dc-title,
  .app-layout.right-compact .stats-title {
    font-size: 14px !important;
  }

  .app-layout.right-compact .dc-weapon-render,
  .app-layout.right-compact .stats-weapon-art {
    opacity: 0.22;
    max-width: 40%;
  }

  @media (max-width: 900px) {
    .app-layout {
      grid-template-columns: 1fr !important;
    }

    .layout-resizer {
      display: none;
    }
  }

  :root {
    --ui-scale: 1;
  }

  body {
    zoom: var(--ui-scale);
  }

  .ui-scale-controls {
    position: sticky;
    top: 10px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 0 10px auto;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,14,0.86);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }

  .ui-scale-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  }

  .ui-scale-btn.reset {
    width: auto;
    min-width: 68px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.4px;
  }

  .ui-scale-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb),0.55);
    background: rgba(var(--accent-rgb),0.12);
  }

  /* Faded until hovered; hovering reveals the full control including the live percentage. */
  .ui-scale-controls { opacity: 0.32; transition: opacity 0.2s ease; }
  .ui-scale-controls:hover { opacity: 1; }
  .ui-scale-btn.reset { display: none; }
  .ui-scale-controls:hover .ui-scale-btn.reset { display: inline-flex; align-items: center; justify-content: center; }

  body.ui-scale-large .weapon-card,
  body.ui-scale-large .stats-card,
  body.ui-scale-large .compare-card,
  body.ui-scale-large .weapon-filter-group {
    border-radius: 14px;
  }

  body.ui-scale-small .build-actions {
    gap: 5px;
  }

  body.ui-scale-small .build-btn {
    padding: 5px 7px;
  }

  .ui-scale-controls {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    top: auto !important;
    left: auto !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid rgba(var(--accent-rgb),0.45) !important;
    background: rgba(8,10,14,0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.55) !important;
  }

  .ui-scale-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
  }

  .ui-scale-btn.reset {
    width: auto !important;
    min-width: 68px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .ui-scale-btn:hover {
    border-color: rgba(var(--accent-rgb),0.85) !important;
    background: rgba(var(--accent-rgb),0.16) !important;
  }

  .alt-grid-three {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
  }

  .alt-section {
    min-width: 0;
  }

  @media (max-width: 1100px) {
    .alt-grid-three {
      grid-template-columns: 1fr !important;
    }
  }

  .alt-card.multi-match {
    border-color: rgba(var(--accent-rgb),0.55) !important;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.15) inset;
  }

  .alt-main {
    min-width: 0;
    flex: 1;
  }

  .alt-match-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
  }

  .alt-match-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb),0.32);
    background: rgba(var(--accent-rgb),0.14);
    color: var(--accent-bright);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .alt-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
  }

  .alt-match-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.055);
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .build-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .build-title-row .build-clear-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    position: relative;
    top: 0;

    width: auto;
    min-height: 28px;
    padding: 5px 11px;

    border-radius: 7px;
    border: 1px solid rgba(255,120,120,0.32);

    background: rgba(255,80,80,0.10);
    color: #ffb6b6;

    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.75px;
    line-height: 1;
    text-transform: uppercase;

    flex-shrink: 0;

    transition:
      border-color 0.14s ease,
      background 0.14s ease,
      color 0.14s ease,
      transform 0.14s ease,
      box-shadow 0.14s ease;
  }

  .build-title-row .build-clear-all-btn:hover {
    border-color: rgba(255,120,120,0.58);
    background: rgba(255,80,80,0.18);
    color: #fff;

    transform: translateY(-1px);

    box-shadow:
      0 0 0 1px rgba(255,120,120,0.10) inset,
      0 8px 20px rgba(255,80,80,0.12);
  }

  .build-title-row .build-clear-all-btn:active {
    transform: translateY(0);
  }

  .clear-list-filters,
  .clear-filter-btn,
  .compare-action-btn[data-compare-clear] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px !important;
    border: 1px solid rgba(255,120,120,0.32) !important;

    background: rgba(255,80,80,0.10) !important;
    color: #ffb6b6 !important;

    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;

    transition:
      border-color 0.14s ease,
      background 0.14s ease,
      color 0.14s ease,
      transform 0.14s ease,
      box-shadow 0.14s ease;
  }

  .clear-list-filters:hover,
  .clear-filter-btn:hover,
  .compare-action-btn[data-compare-clear]:hover {
    border-color: rgba(255,120,120,0.58) !important;
    background: rgba(255,80,80,0.18) !important;
    color: #fff !important;

    transform: translateY(-1px);

    box-shadow:
      0 0 0 1px rgba(255,120,120,0.10) inset,
      0 8px 20px rgba(255,80,80,0.12);
  }

  .clear-list-filters:active,
  .clear-filter-btn:active,
  .compare-action-btn[data-compare-clear]:active {
    transform: translateY(0);
  }

  #clearAllFilters,
  #clearAllBtn,
  [data-clear-all-filters],
  .clear-all-top,
  .build-clear-all-btn,
  .filter-controls-clear-btn,
  .right-filter-clear {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 28px !important;
    padding: 5px 11px !important;

    border-radius: 7px !important;
    border: 1px solid rgba(255,120,120,0.32) !important;

    background: rgba(255,80,80,0.10) !important;
    color: #ffb6b6 !important;

    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  #clearAllFilters:hover,
  #clearAllBtn:hover,
  [data-clear-all-filters]:hover,
  .clear-all-top:hover,
  .build-clear-all-btn:hover,
  .filter-controls-clear-btn:hover,
  .right-filter-clear:hover {
    border-color: rgba(255,120,120,0.58) !important;
    background: rgba(255,80,80,0.18) !important;
    color: #fff !important;

    transform: translateY(-1px);

    box-shadow:
      0 0 0 1px rgba(255,120,120,0.10) inset,
      0 8px 20px rgba(255,80,80,0.12);
  }

  .build-title-row .build-clear-all-btn {
    font-weight: 900 !important;
    text-shadow: 0 0 0 currentColor;
  }

  .alt-section-title-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .alt-section-toggle {
    width: 26px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.055);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
  }

  .alt-section-toggle:hover {
    border-color: rgba(var(--accent-rgb),0.55);
    background: rgba(var(--accent-rgb),0.12);
    transform: translateY(-1px);
  }

  .alt-section.collapsed {
    align-self: start;
  }

  .alt-section.collapsed .alt-section-body {
    display: none !important;
  }

  .alt-section.collapsed .alt-section-title {
    margin-bottom: 0;
  }

  .alt-section {
    width: 100%;
    min-width: 0;
  }

  .alt-horizontal-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, minmax(0, auto));
    grid-auto-columns: minmax(260px, 300px);

    gap: 10px 12px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 8px;

    scroll-behavior: smooth;

    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb),0.35) transparent;
  }

  .alt-horizontal-list::-webkit-scrollbar {
    height: 10px;
  }

  .alt-horizontal-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .alt-horizontal-list::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb),0.28);
    border-radius: 999px;
  }

  .alt-horizontal-list::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-rgb),0.45);
  }

  .alt-card {
    min-width: 0;
    height: fit-content;
  }

  .alt-section.collapsed .alt-horizontal-list {
    display: none !important;
  }

  @media (max-width: 900px) {
    .alt-horizontal-list {
      grid-template-rows: repeat(2, minmax(0, auto));
      grid-auto-columns: minmax(240px, 280px);
    }
  }

  @media (max-width: 640px) {
    .alt-horizontal-list {
      grid-template-rows: repeat(1, minmax(0, auto));
      grid-auto-columns: minmax(220px, 88vw);
    }
  }

  #buildContent .alt-grid-three {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  #buildContent .alt-section {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  #buildContent .alt-section-body {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #buildContent .alt-horizontal-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-rows: repeat(3, minmax(0, auto)) !important;
    grid-auto-columns: minmax(275px, 320px) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  #buildContent .alt-card {
    width: 100% !important;
    max-width: none !important;
  }

  #buildContent .build-empty {
    width: 100%;
  }

  .build-content {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .build-window {
    min-width: 0 !important;
  }

  .alt-section-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .alt-section-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 5px 11px;

    border-radius: 7px;
    border: 1px solid rgba(var(--accent-rgb),0.32);

    background: rgba(var(--accent-rgb),0.09);
    color: var(--accent-bright);

    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;

    cursor: pointer;

    transition:
      border-color 0.14s ease,
      background 0.14s ease,
      color 0.14s ease,
      transform 0.14s ease,
      box-shadow 0.14s ease;
  }

  .alt-section-control-btn:hover {
    border-color: rgba(var(--accent-rgb),0.58);
    background: rgba(var(--accent-rgb),0.16);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb),0.10) inset,
      0 8px 20px rgba(var(--accent-rgb),0.10);
  }

  .alt-section.collapsed .alt-section-title-row {
    opacity: 0.92;
  }

  .filter-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .filter-controls-header .filter-controls-title {
    margin-bottom: 0 !important;
  }

  .filter-controls-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 5px 11px;

    border-radius: 7px;
    border: 1px solid rgba(255,120,120,0.32);

    background: rgba(255,80,80,0.10);
    color: #ffb6b6;

    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;

    cursor: pointer;

    transition:
      border-color 0.14s ease,
      background 0.14s ease,
      color 0.14s ease,
      transform 0.14s ease,
      box-shadow 0.14s ease;
  }

  .filter-controls-clear-btn:hover {
    border-color: rgba(255,120,120,0.58);
    background: rgba(255,80,80,0.18);
    color: #fff;

    transform: translateY(-1px);

    box-shadow:
      0 0 0 1px rgba(255,120,120,0.10) inset,
      0 8px 20px rgba(255,80,80,0.12);
  }

  .filter-controls-clear-btn:active {
    transform: translateY(0);
  }

  .right-filter-controls {
    padding: 10px;
    border: 1px solid var(--border-dim);
    background: rgba(255,255,255,0.018);
    border-radius: 10px;
    margin-bottom: 12px;
  }
