/* Preserve upstream theme; keep a large tag collection usable on small screens. */
@import url("/static/css/themes/midnight.css");
.filters { max-height: 9rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#modal .modal-body { width: 100%; min-width: 0; overflow-y: auto; }
#modal .modal-body > * { min-width: 0; }
#modal .modal-meta { flex-wrap: wrap; gap: .6rem 1rem; }
#modal .name-row input { min-width: 0; }
#modal .modal-actions { flex-wrap: wrap; }
@media (max-width: 600px) {
  body header { padding: 1rem; gap: .65rem; }
  body header input { min-width: 0; flex-basis: 100%; order: 1; }
  body .filters { max-height: 7rem; padding-left: 1rem; padding-right: 1rem; }
  body .grid { padding-left: 1rem; padding-right: 1rem; }
  #modal .modal-body { padding: 1rem; max-height: 90dvh; }
  #modal .modal-actions { gap: .4rem; }
  #modal .modal-actions button { padding: .5rem .65rem; }
}
