@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --scrollbar-track: rgba(148, 163, 184, 0.08);
  --scrollbar-thumb: rgba(148, 163, 184, 0.35);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

body {
  margin: 0;
  font-family: "Nunito", "Baloo 2", "Segoe UI Rounded", "Segoe UI", Tahoma,
    Geneva, Verdana, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-header {
  position: relative;
  padding: 64px clamp(32px, 4vw, 48px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 14px;
  justify-items: center;
  text-align: center;
  background-image: url("/assets/header_backround.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: auto 82%;
}

.app-header h1 {
  margin: 0;
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  font-family: "Baloo 2", "Nunito", "Quicksand", "Segoe UI Rounded", "Segoe UI",
    sans-serif;
  line-height: 1.08;
}

.app-header p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.82);
}

.app-title-primary {
  display: block;
  color: #fbbf24;
  text-shadow: 0 8px 18px rgba(15, 23, 42, 0.55);
}

.app-title-secondary {
  display: block;
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.78);
  margin-top: 8px;
  text-transform: uppercase;
}

.app-badge-cluster {
  position: absolute;
  top: clamp(18px, 3vw, 36px);
  right: clamp(22px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 1;
}

.app-badge-card {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-logo-badge {
  background: rgba(148, 163, 184, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 25px;
}

.app-logo-badge:hover,
.app-logo-badge:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 32px 56px rgba(15, 23, 42, 0.6);
}

.app-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-tagline-primary {
  font-size: 1.25rem;
  color: #facc15;
  white-space: nowrap;
}

.app-tagline-secondary {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.88);
  white-space: nowrap;
}

.app-logo-seasonal {
  width: clamp(82px, 12vw, 132px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.5));
}

.app-support-cta {
  background: rgba(148, 163, 184, 0.08);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 30px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.app-support-cta:hover,
.app-support-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 32px 56px rgba(15, 23, 42, 0.6);
}

.app-support-tag {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.app-support-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fbbf24;
  text-shadow: 0 12px 24px rgba(15, 23, 42, 0.65);
}

.app-support-note {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: 0.04em;
}

.app-content {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 26px 32px 48px;
}

.filters-results-box {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 26px 28px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.5);
  height: min(1280.2px, calc(142.31vh - 99px));
  min-height: 1081.6px;
  max-width: 100%;
  overflow: hidden;
}

.filters-panel {
  flex: 0 0 clamp(320px, 48.6vw, 795.6px);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.55);
  height: 100%;
  max-height: none;
  max-width: clamp(320px, 48.6vw, 795.6px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.filters-panel,
.filters-scroll,
.solutions-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.filters-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 6px;
  min-height: 0;
}

.filter-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: 24px;
}

.filter-section:first-of-type {
  grid-template-columns: repeat(2, minmax(0, 280px));
}

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.filter-section.assets {
  grid-template-columns: 1fr;
  gap: 28px;
}

.filter-group.full-width {
  margin-bottom: 0;
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-label-row {
  min-height: 44px;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  cursor: default;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-left: 8px;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(30, 41, 59, 0.75);
}

.tooltip-text {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.4);
  pointer-events: none;
  text-align: left;
}

.tooltip-trigger:hover .tooltip-text,
.tooltip-trigger:focus .tooltip-text {
  display: block;
}

.tooltip-text br {
  content: "";
}

.tooltip-mapping {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-term {
  white-space: nowrap;
  text-align: right;
  flex: 0 0 80px;
}

.tooltip-arrow {
  color: #facc15;
  font-weight: 700;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-value {
  white-space: nowrap;
  flex: 0 0 auto;
}

.legend {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 500;
}

.deck-size-group .button-group,
.trait-option-group .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-option-group {
  grid-column: 1 / -1;
}

.trait-option-group .button-group {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.pill-button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.trait-option-group .pill-button {
  flex: 0 1 auto;
  white-space: nowrap;
  padding: 10px 18px;
  min-width: 0;
}

.pill-button:hover {
  background: rgba(30, 41, 59, 0.75);
}

.pill-button.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #f8fafc;
  transform: translateY(-1px);
}

.trait-value-group {
  --trait-value-button-width: clamp(60px, 5.8vw, 60px);
  --trait-value-gap: clamp(8px, 1vw, 12px);
}

.trait-value-mask {
  overflow: hidden;
  width: min(
    100%,
    calc(4 * var(--trait-value-button-width) + 3 * var(--trait-value-gap))
  );
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
}

.trait-value-track {
  --trait-value-step: calc(
    var(--trait-value-button-width) + var(--trait-value-gap)
  );
  display: flex;
  flex-wrap: nowrap;
  gap: var(--trait-value-gap);
  justify-content: flex-start;
  position: relative;
  flex: 0 0 auto;
  transform: translateX(
    calc(-1 * var(--trait-value-step) * var(--trait-value-index, 0))
  );
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.trait-value-track .pill-button {
  flex: 0 0 var(--trait-value-button-width);
  min-width: var(--trait-value-button-width);
}

.pill-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(clamp(88px, 11vw, 128px), 1fr)
  );
  gap: clamp(10px, 1vw, 14px);
}

.asset-grid.card-grid {
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(70px, 7vw, 95px), clamp(70px, 7vw, 95px))
  );
  gap: clamp(6px, 0.6vw, 10px);
  justify-content: flex-start;
}

.asset-grid.trait-grid {
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(56px, 6vw, 72px), clamp(56px, 6vw, 72px))
  );
  gap: clamp(6px, 0.6vw, 10px);
  justify-content: flex-start;
}

.asset-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.7vw, 12px);
  padding: clamp(10px, 0.9vw, 14px) clamp(8px, 0.8vw, 12px)
    clamp(12px, 1vw, 16px);
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
  min-height: clamp(150px, 18vw, 176px);
}

.asset-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.35);
}

.asset-tile:not(.required):not(.forbidden):not(.trait-min4):not(
    .trait-min2
  ):not(.trait-max1):hover {
  background: rgba(15, 23, 42, 0.4);
}

.asset-tile:focus {
  outline: none;
  box-shadow: none;
}

.asset-tile img {
  width: clamp(72px, 8vw, 104px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.4);
}

.asset-state {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: rgba(191, 219, 254, 0.95);
  margin-top: auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.45);
}

.asset-state.placeholder {
  background: transparent;
  color: transparent;
  box-shadow: none;
  border: none;
  pointer-events: none;
}

.asset-tile.card {
  padding: 0;
  min-height: auto;
  width: clamp(70px, 7vw, 95px);
  height: clamp(77px, 7.7vw, 105px);
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}

.asset-tile.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center;
  box-shadow: none;
}

.asset-tile.trait {
  padding: 0;
  min-height: auto;
  width: clamp(56px, 6vw, 72px);
  height: clamp(62px, 6.3vw, 80px);
  justify-content: center;
  gap: 0;
  box-shadow: none;
}

.asset-tile.trait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: none;
}

.asset-tile.trait:hover {
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.35);
}

.asset-tile.trait:not(.trait-min4):not(.trait-min2):not(.trait-max1):hover {
  background: rgba(15, 23, 42, 0.3);
}

.asset-tile.card .asset-state-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: clamp(20px, 2vw, 24px);
  height: clamp(20px, 2vw, 24px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 700;
  color: #0f172a;
  box-shadow: none;
  pointer-events: none;
}

.asset-tile.card .asset-state-icon::before {
  content: "";
}

.asset-tile.card .asset-state-icon.state-required {
  background: rgba(59, 130, 246, 0.85);
  color: #f8fafc;
}

.asset-tile.card .asset-state-icon.state-required::before {
  content: "\2713";
}

.asset-tile.card .asset-state-icon.state-forbidden {
  background: rgba(248, 113, 113, 0.95);
  color: #fee2e2;
}

.asset-tile.card .asset-state-icon.state-forbidden::before {
  content: "\2715";
}

.asset-tile.card.forbidden img {
  filter: saturate(0.5) brightness(0.8);
  opacity: 0.65;
}

.asset-tile.trait .asset-state,
.asset-tile.trait .asset-state.placeholder,
.asset-tile.trait .asset-state-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  margin-top: 0;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.asset-tile.trait .asset-state.placeholder {
  opacity: 0;
}

.asset-tile.trait .trait-badge {
  font-weight: 700;
  width: clamp(20px, 2vw, 24px);
  height: clamp(20px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.asset-tile.trait .trait-badge.trait-badge-2 {
  background: rgba(59, 130, 246, 0.85);
  color: #f8fafc;
}

.asset-tile.trait .trait-badge.trait-badge-4 {
  background: rgba(45, 212, 191, 0.85);
  color: #ecfeff;
}

.asset-tile.trait .asset-state-icon.state-forbidden {
  background: rgba(248, 113, 113, 0.95);
  color: #fee2e2;
  width: clamp(20px, 2vw, 24px);
  height: clamp(20px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 700;
  box-shadow: none;
}

.asset-tile.trait .asset-state-icon.state-forbidden::before {
  content: "\2715";
}

.asset-tile.trait.state-max1 {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: none;
}

.asset-tile.trait.state-max1 img {
  filter: saturate(0.5) brightness(0.8);
  opacity: 0.65;
}

.asset-tile.required {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: none;
  background: rgba(59, 130, 246, 0.18);
}

.asset-tile.required .asset-state {
  background: rgba(37, 99, 235, 0.3);
  color: #dbeafe;
}

.asset-tile.forbidden {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: none;
  background: rgba(248, 113, 113, 0.18);
}

.asset-tile.forbidden .asset-state {
  background: rgba(220, 38, 38, 0.32);
  color: #fee2e2;
}

.asset-tile.trait-min4 {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: none;
  background: rgba(45, 212, 191, 0.18);
}

.asset-tile.trait-min2 {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: none;
  background: rgba(59, 130, 246, 0.18);
}

.asset-tile.trait-max1 {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: none;
  background: rgba(248, 113, 113, 0.18);
}

.filter-label {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(226, 232, 240, 0.92);
}

.hint {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.7);
  margin: 6px 0 0;
}

select,
button {
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: inherit;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

button:focus {
  outline: none;
  box-shadow: none;
}

.pill-button:focus,
.pill-button:focus-visible {
  outline: none;
  box-shadow: none;
}

select[multiple] {
  min-height: 180px;
  resize: vertical;
}

.filters-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

button.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
}

button.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

button.secondary {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
}

button.secondary:hover {
  background: rgba(30, 41, 59, 0.75);
}

.results-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.status-message {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.9);
}

.status-message.error {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(185, 28, 28, 0.22);
  color: #fecaca;
}

.status-message.loading {
  border-style: dashed;
  opacity: 0.85;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.28);
  background: rgba(248, 250, 252, 0.2);
  row-gap: 10px;
}

.results-total {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f1f5f9;
}

.results-total .results-total-label {
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-left: 0.35em;
}

.results-meta strong {
  font-size: 1.05rem;
}

.site-footer {
  text-align: center;
  padding: 36px 24px 28px;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.6;
}

.site-footer a {
  color: rgba(191, 219, 254, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
  color: #f8fafc;
  border-color: rgba(191, 219, 254, 0.8);
}

.pagination {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 12px;
  min-width: 90px;
}

.pagination span {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.75);
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.solution-card {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

.solution-line {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.solution-line::-webkit-scrollbar {
  height: 8px;
}

.solution-line::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.solution-line::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.solution-id {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  padding: 0;
  margin-right: 12px;
  width: 3.6ch;
  text-align: right;
}

.card-strip,
.trait-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow-x: auto;
}

.trait-strip {
  gap: 6px;
}

.card-strip,
.trait-strip {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.card-strip::-webkit-scrollbar,
.trait-strip::-webkit-scrollbar {
  height: 6px;
}

.card-strip::-webkit-scrollbar-thumb,
.trait-strip::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.card-strip::-webkit-scrollbar-thumb:hover,
.trait-strip::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.filters-panel::-webkit-scrollbar,
.filters-scroll::-webkit-scrollbar,
.solutions-list::-webkit-scrollbar {
  width: 10px;
}

.filters-panel::-webkit-scrollbar-track,
.filters-scroll::-webkit-scrollbar-track,
.solutions-list::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.filters-panel::-webkit-scrollbar-thumb,
.filters-scroll::-webkit-scrollbar-thumb,
.solutions-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.filters-panel::-webkit-scrollbar-thumb:hover,
.filters-scroll::-webkit-scrollbar-thumb:hover,
.solutions-list::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.card-tile,
.trait-tile {
  flex: 0 0 auto;
  text-align: center;
  min-width: 0;
}

.trait-tile {
  --trait-icon-size: clamp(38px, 4vw, 54px);
  --trait-halo-size: calc(var(--trait-icon-size) + 4px);
  position: relative;
  padding: 4px 2px 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.card-tile img {
  display: block;
  width: clamp(70px, 7vw, 95px);
  height: auto;
  border-radius: 12px;
  margin: 0;
  border: none;
}

.card-tile {
  overflow: hidden;
  border-radius: 12px;
}

.card-tile img {
  transform: scale(1.25);
  transform-origin: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.45);
}

.trait-tile img {
  display: block;
  position: relative;
  z-index: 1;
  width: var(--trait-icon-size);
  height: var(--trait-icon-size);
  box-shadow: none;
}

.trait-tile.trait-low img {
  filter: saturate(0.35) brightness(0.85);
  opacity: 0.55;
}

.trait-tile::before {
  content: "";
  position: absolute;
  width: var(--trait-halo-size);
  height: var(--trait-halo-size);
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  pointer-events: none;
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.trait-tile.trait-tier-2::before {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.trait-tile.trait-tier-3::before {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.trait-tile.trait-tier-4::before {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.3);
}

.trait-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(226, 232, 240, 0.9);
}

.trait-count-2 {
  color: rgba(191, 219, 254, 0.95);
}

.trait-count-4 {
  color: rgba(236, 254, 255, 0.98);
}

.trait-count-low {
  color: rgba(148, 163, 184, 0.68);
}

@media (max-width: 1080px) {
  .app-content {
    flex-direction: column;
  }

  .filters-results-box {
    flex-direction: column;
    padding: 22px 20px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .filters-panel {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    height: auto;
    max-width: none;
    overflow: visible;
  }

  .filter-section {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .filters-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .results-panel {
    width: 100%;
    height: auto;
  }

  .solutions-list {
    overflow-y: visible;
    padding-right: 0;
  }

  .filters-scroll {
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-height: 820px) {
  .filters-results-box {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 72px 20px 32px;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 18px;
  }

  .app-badge-cluster {
    position: static;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }

  .app-logo-badge {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 20px;
  }

  .app-support-cta {
    padding: 16px 20px;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .app-tagline {
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .app-tagline-primary,
  .app-tagline-secondary {
    white-space: normal;
  }

  .app-tagline-primary {
    font-size: 1rem;
  }

  .app-tagline-secondary {
    font-size: 0.92rem;
  }

  .app-logo-seasonal {
    width: clamp(96px, 40vw, 140px);
  }

  .app-header h1,
  .app-header p {
    grid-column: 1;
    justify-self: center;
    text-align: center;
  }

  .app-header h1 {
    font-size: 2.6rem;
  }

  .app-content {
    padding: 22px 20px 36px;
  }

  .filters-panel {
    padding: 18px 16px;
  }

  select[multiple] {
    min-height: 140px;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }

  .results-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination {
    margin-left: 0;
  }

  .pagination button {
    min-width: 0;
    flex: 1;
  }
}
