:where(.dem-shell) [data-dem-facet] [hidden] { display: none !important; }
:where(.dem-shell) [data-dem-facet] .dem-filter-option:has(input:disabled) { cursor: default; opacity: .55; }
:where(.dem-shell) .dem-facet-dropdown > summary,
:where(.dem-shell) .dem-facet-more > summary,
:where(.dem-shell) .dem-facet-branch > summary {
  align-items: center;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: .5em;
  list-style: none;
  min-block-size: 32px;
}
:where(.dem-shell) [data-dem-facet] summary::-webkit-details-marker { display: none; }
:where(.dem-shell) [data-dem-facet] summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
:where(.dem-shell) .dem-facet-dropdown {
  background: var(--dem-field-background);
  border: 1px solid var(--dem-field-border);
  border-radius: var(--dem-field-radius);
  min-inline-size: 0;
}
:where(.dem-shell) .dem-facet-dropdown > summary { min-block-size: 42px; padding: 6px 10px; }
:where(.dem-shell) .dem-facet-dropdown > summary > .dem-module-icon { margin-inline-start: auto; }
:where(.dem-shell) .dem-facet-selected { font-size: .85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.dem-shell) .dem-facet-dropdown > .dem-filter-options { max-block-size: min(55vh, 20rem); overflow: auto; padding: 8px 10px 10px; }
:where(.dem-shell) .dem-facet-node { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
:where(.dem-shell) .dem-facet-node > .dem-filter-option { grid-column: 1; grid-row: 1; }
:where(.dem-shell) .dem-facet-branch { display: contents; }
:where(.dem-shell) .dem-facet-branch > summary { grid-column: 2; grid-row: 1; justify-content: center; min-inline-size: 32px; }
:where(.dem-shell) .dem-facet-branch:not([open]) > .dem-facet-children { display: none; }
:where(.dem-shell) .dem-facet-branch::details-content { display: contents; }
:where(.dem-shell) .dem-facet-children,
:where(.dem-shell) .dem-facet-extra { display: grid; gap: 7px; }
:where(.dem-shell) .dem-facet-children {
  border-inline-start: 1px solid var(--dem-line);
  grid-column: 1 / -1;
  margin-inline-start: 9px;
  padding-inline-start: .8em;
}
:where(.dem-shell) .dem-facet-more[open] .dem-facet-show-more,
:where(.dem-shell) .dem-facet-more:not([open]) .dem-facet-show-less { display: none; }
:where(.dem-shell) [data-dem-facet] details[open] > summary > .dem-module-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  :where(.dem-shell) [data-dem-facet] summary > .dem-module-icon { transition: transform 150ms ease; }
  :where(.dem-shell) [data-dem-facet] details[open] > :not(summary) { animation: dem-facet-reveal 150ms ease-out; }
  @keyframes dem-facet-reveal { from { opacity: 0; } }
}
