.theme-filter-btn {
  --theme-color: var(--rm-teal-deep, #007f8b);
  display: grid;
  grid-template-columns: 0.3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  min-height: 2.7rem;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  border: 1px solid rgb(16 35 26 / 0.1);
  border-radius: 0.7rem;
  background: #fff;
  color: #10231a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.theme-filter-btn__mark {
  align-self: stretch;
  width: 0.35rem;
  min-height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--theme-tint, color-mix(in srgb, var(--theme-color) 42%, #fff)) 0%,
    var(--theme-color) 100%
  );
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-filter-btn__label {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.theme-filter-btn:hover {
  border-color: color-mix(in srgb, var(--theme-color) 42%, rgb(16 35 26 / 0.12));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(16 35 26 / 0.05);
}

.theme-filter-btn:hover .theme-filter-btn__mark {
  transform: scaleY(1.06);
}

.theme-filter-btn--active {
  border-color: color-mix(in srgb, var(--theme-color) 55%, transparent);
  background: color-mix(in srgb, var(--theme-color) 12%, #fff);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--theme-color) 18%, transparent),
    0 8px 18px rgb(16 35 26 / 0.04);
}

.theme-filter-btn--active .theme-filter-btn__mark {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 22%, transparent);
}

.theme-filter-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-color) 55%, transparent);
  outline-offset: 2px;
}

.theme-tag {
  --theme-color: var(--rm-teal-deep, #007f8b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 1.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--theme-color) 14%, #fff);
  color: color-mix(in srgb, var(--theme-color) 72%, #10231a);
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-color) 22%, transparent);
}
