.screx-filter-wrap {
  --screx-filter-bg: var(--sd-color-card-background, var(--color-background-primary, Canvas));
  --screx-filter-fg: var(--sd-color-card-text, var(--color-foreground-primary, CanvasText));
  --screx-filter-border: var(--sd-color-card-border, color-mix(in srgb, currentColor 22%, transparent));
  --screx-filter-accent: var(--sd-color-primary, #0071bc);
  --screx-filter-active-bg: #eaf3ff;
  --screx-filter-shadow: 0 0 0 2px color-mix(in srgb, var(--screx-filter-accent) 28%, transparent);
}

[data-theme="dark"] .screx-filter-wrap,
[data-mode="dark"] .screx-filter-wrap,
[data-bs-theme="dark"] .screx-filter-wrap,
.dark .screx-filter-wrap {
  --screx-filter-bg: color-mix(in srgb, Canvas 88%, black);
  --screx-filter-fg: color-mix(in srgb, CanvasText 92%, white);
  --screx-filter-border: color-mix(in srgb, currentColor 35%, transparent);
  --screx-filter-active-bg: #223449;
}

.screx-inline-tags,
.screx-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.screx-tag-badge {
  display: inline-block;
  white-space: nowrap;
}

a.screx-tag-link,
a.screx-tag-link:any-link,
a.screx-tag-link:hover,
a.screx-tag-link:focus,
a.screx-tag-link:active,
a.screx-tag-link:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

a.screx-tag-link *,
a.screx-tag-link:hover *,
a.screx-tag-link:focus *,
a.screx-tag-link:active *,
a.screx-tag-link:visited * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

.screx-tag-link:hover .screx-tag-badge {
  opacity: 0.88;
}

.screx-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.screx-filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sd-color-card-text, inherit);
}

.screx-filter-select {
  min-width: 13rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--screx-filter-border);
  border-radius: 0.25rem;
  background: var(--screx-filter-bg);
  color: var(--screx-filter-fg);
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.screx-filter-select:focus {
  outline: 2px solid var(--screx-filter-accent);
  outline-offset: 1px;
  border-color: var(--screx-filter-accent);
  box-shadow: var(--screx-filter-shadow);
}

.screx-filter-select.is-active {
  border-color: var(--screx-filter-accent);
  border-width: 2px;
  background: var(--screx-filter-active-bg);
  box-shadow: var(--screx-filter-shadow);
}

.screx-filter-reset {
  cursor: pointer;
}

.screx-summary-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0.1rem 0 0.55rem;
}

.screx-results-summary {
  margin: 0;
  font-weight: 600;
  color: var(--sd-color-card-text, inherit);
}

.screx-empty-row {
  color: var(--sd-color-muted, #6c757d);
  font-style: italic;
}

/* Generated from [tags.categories.*].color in screx.toml */
.screx-tag-badge.screx-tag-category-default { background-color: #4545da !important; color: #ffffff !important; }
