.dispatch-filters {
  display: grid;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s3);
  min-width: 0;
}
.filter-field {
  min-width: 0;
}
.filter-trigger {
  width: 100%;
  min-height: 52px;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: var(--inset);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
}
.filter-trigger:hover {
  border-color: var(--label);
}
.filter-trigger[aria-expanded="true"] {
  background: var(--raised);
  border-color: var(--accentSoft);
}
.filter-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.filter-trigger > svg:last-child {
  color: var(--secondary);
  margin-inline-start: auto;
}
.filter-trigger[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
  color: var(--accentSoft);
}
.filter-symbol {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r1);
  color: var(--kind, var(--secondary));
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.filter-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.filter-label {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.15;
}
.filter-value {
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.filter-popup {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  z-index: 8;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: var(--raised);
  color: var(--fg);
  box-shadow: var(--shadow);
}
.filter-popup[hidden] { display: none; }
.filter-options {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--label) transparent;
}
.filter-options [role="option"] {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: var(--r1);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.filter-options [role="option"]:first-child {
  margin-bottom: 4px;
}
.filter-options [role="option"]:hover,
.filter-options [data-active] {
  background: var(--softBorder);
}
.filter-options [aria-selected="true"] {
  color: var(--accentSoft);
  background: color-mix(in srgb, var(--accentSoft) 10%, var(--raised));
  font-weight: 700;
}
.filter-options [data-active] {
  box-shadow: inset 2px 0 var(--accentSoft);
}
.option-label {
  flex: 1;
}
.filter-options [role="option"] > svg:last-child {
  flex: none;
  visibility: hidden;
}
.filter-options [aria-selected="true"] > svg:last-child {
  visibility: visible;
}
.filter-options[aria-multiselectable] [role="option"] > svg:last-child {
  visibility: visible;
  border: 1px solid var(--label);
  border-radius: 4px;
  color: transparent;
}
.filter-options[aria-multiselectable] [aria-selected="true"] > svg:last-child {
  border-color: var(--accentSoft);
  background: var(--accentSoft);
  color: var(--ink);
}
.filter-done {
  flex: none;
  min-height: 44px;
  margin-top: var(--s1);
  background: var(--inset);
  color: var(--accentSoft);
  border-radius: var(--r1);
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .dispatch-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 5px 0 0;
  }
  .filter-field:nth-child(3) {
    grid-column: span 2;
  }
  .filter-trigger {
    padding: 6px 8px;
    gap: 6px;
  }
  .filter-trigger .filter-symbol {
    width: 22px;
    height: 26px;
    background: transparent;
  }
}
