/* Выборка — design/work/data.html */

.selection-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--pub-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.35rem 1.5rem;
}

.selection-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.selection-filters-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #3a5a38;
}

.selection-filters-title svg {
  flex-shrink: 0;
  color: #3a5a38;
}

.selection-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--pub-border);
  border-radius: 4px;
  background: var(--surface);
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.selection-collapse-btn:hover {
  background: var(--combo-hover);
  color: var(--text);
}

.selection-collapse-btn svg {
  transition: transform 0.2s ease;
}

.selection-filters-card.is-collapsed .selection-collapse-btn svg {
  transform: rotate(180deg);
}

#selection-form {
  display: block;
}

.selection-filters-panel {
  display: grid;
  gap: 1.1rem;
}

.selection-filters-panel.is-collapsed {
  display: none;
}

.selection-filters-panel.is-loading {
  opacity: 0.88;
}

.selection-filters-panel.is-loading .selection-field select {
  cursor: progress;
}

.selection-filters-hint {
  margin: 0 0 0.25rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #cfe7c8;
  background: var(--pub-accent-soft);
  color: #2e4a2d;
  font-size: 0.875rem;
  line-height: 1.35;
}

.selection-filters-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1rem;
  align-items: start;
}

.selection-filters-side--left {
  display: contents;
}

.selection-filters-side--right {
  display: contents;
}

.selection-filter-pane--geo {
  grid-column: 1;
  grid-row: 1;
}

.selection-filter-pane--series {
  grid-column: 2;
  grid-row: 1;
}

.selection-filters-stack--observe {
  grid-column: 1;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
  min-height: 0;
}

.selection-filter-pane--management {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
}

.selection-filters-stack--observe .selection-filter-pane--plot {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.selection-field--full {
  grid-column: 1 / -1;
}

.selection-filter-pane {
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
  background: var(--surface);
  min-width: 0;
}

.selection-filter-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}

.selection-filter-group--geo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-filter-group--stack {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.selection-filter-group__title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.selection-filter-group__title--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.selection-filter-group__title--icon svg {
  flex: 0 0 auto;
  color: var(--pub-accent);
}

.selection-filter-group--series {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-date-range {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.selection-date-range[hidden] {
  display: none;
}

.selection-filter-group--taxonomy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-management-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1 1 auto;
  min-height: 0;
}

.selection-management-row {
  display: grid;
  grid-template-columns: minmax(4.25rem, 6.5rem) minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: start;
}

.selection-management-status {
  min-width: 0;
  min-height: 2.75rem;
  align-content: flex-start;
}

.selection-management-status:not(:has(.ui-msg:not(:empty))):not(:has(.selection-geo-context.is-visible)) {
  min-height: 0;
}

.selection-management-status .ui-msg:empty {
  display: none;
}

.selection-management-hint {
  margin: 0 0 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--pub-border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.selection-management-actions {
  --selection-action-btn-h: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}

.selection-management-actions > .btn,
.selection-management-actions > .selection-plot-coord-action {
  min-width: 0;
}

.selection-management-actions .btn,
.selection-management-actions .selection-coord-btn {
  width: 100%;
  height: var(--selection-action-btn-h);
  min-height: var(--selection-action-btn-h);
  max-height: var(--selection-action-btn-h);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-management-actions .btn svg {
  flex-shrink: 0;
}

.selection-management-actions .btn:hover,
.selection-management-actions .selection-coord-btn:hover {
  transform: none;
  box-shadow: none;
}

.selection-management-actions .btn-primary {
  background: #3a5a38;
  color: #fff;
  border: 1px solid #3a5a38;
}

.selection-management-actions .btn-primary:hover {
  background: #2e4a2d;
  border-color: #2e4a2d;
}

.selection-management-actions .btn-secondary {
  background: var(--surface);
  border: 1px solid var(--pub-border);
  color: #6b7280;
}

.selection-management-actions .btn-secondary:hover {
  background: var(--combo-hover);
  color: #1f2937;
}

.selection-plot-coord-action {
  display: flex;
  min-width: 0;
  height: var(--selection-action-btn-h);
}

.selection-field-note {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.35;
  color: #9ca3af;
}

.selection-plot-coord-action .selection-coord-btn {
  flex: 1 1 auto;
  min-height: 0;
}

.selection-plot-coord-action.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.selection-plot-coord-action[hidden] {
  display: block !important; /* override native [hidden] display:none */
}

.selection-plot-coord-action.is-hidden[hidden] {
  visibility: hidden;
  opacity: 0;
}

.selection-plot-coord-action [hidden],
.selection-coord-btn[hidden] {
  display: none !important;
}

.selection-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.selection-field select,
.selection-field input {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  border: 1px solid var(--pub-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1f2937;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selection-field input[type="date"],
.selection-field input[type="number"] {
  padding-right: 0.75rem;
  background-image: none;
}

.selection-field select:focus,
.selection-field input:focus {
  outline: none;
  border-color: #3a5a38;
  box-shadow: 0 0 0 3px rgba(58, 90, 56, 0.1);
}

.selection-status-area {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}

.selection-management-status .selection-geo-context.is-visible,
.selection-management-status .ui-msg:not(:empty) {
  flex: 1 1 8.5rem;
  max-width: 100%;
}

.selection-page .btn-primary {
  background: #3a5a38;
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.selection-page .btn-primary:hover {
  background: #2e4a2d;
}

.selection-page .btn-secondary {
  background: var(--surface);
  border: 1px solid var(--pub-border);
  color: #6b7280;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.selection-page .btn-secondary:hover {
  background: var(--combo-hover);
  color: #1f2937;
}

.selection-page .ui-msg {
  min-height: 0;
  font-weight: 500;
  font-size: 0.8125rem;
  flex: 0 0 auto;
}

/* Пустые бейджи не занимают место в панели «Управление». */
.selection-page .ui-msg:empty {
  display: none;
}

.selection-geo-context {
  flex: 0 0 auto;
}

.selection-page .ui-msg.ok {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--pub-accent-soft);
  color: var(--text);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.selection-page .ui-msg.ok.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.selection-page .ui-msg.ok::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.selection-page .ui-msg.hint,
.selection-page .ui-msg.error {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.selection-page .ui-msg.hint {
  background: var(--pub-accent-soft);
  color: var(--text);
}

.selection-page .ui-msg.hint.is-dismissing,
.selection-page .ui-msg.error.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.selection-page .ui-msg.hint::before {
  content: "i";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.selection-page .ui-msg.error {
  background: #fef3f2;
  color: #b42318;
}

.selection-page .ui-msg.error::before {
  content: "!";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #f04438;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.selection-geo-context {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-height: 0;
  overflow: hidden;
  padding: 0 0.85rem;
  margin: 0;
  border-radius: 8px;
  background: var(--pub-accent-soft);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    padding 0.5s ease,
    margin 0.5s ease;
}

.selection-geo-context.is-visible {
  max-height: 8rem;
  padding: 0.65rem 0.85rem;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.selection-geo-context.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.selection-field--limit {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 6.5rem;
}

.selection-field--limit input[type="number"] {
  width: 100%;
  max-width: 6.5rem;
  min-width: 4.25rem;
  box-sizing: border-box;
}

.selection-coord-btn {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e4b8c8;
  background: linear-gradient(180deg, #fdf0f4 0%, #f8e4ec 100%);
  color: #7a3d52;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(122, 61, 82, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.selection-coord-btn:hover {
  background: linear-gradient(180deg, #fce8f0 0%, #f5d6e2 100%);
  border-color: #d492a8;
  color: #6b3347;
  box-shadow: 0 1px 3px rgba(122, 61, 82, 0.1);
}

.selection-coord-btn--swap {
  border-color: #e8c89a;
  background: linear-gradient(180deg, #fff8ee 0%, #fcefd9 100%);
  color: #7a5528;
}

.selection-coord-btn--swap:hover {
  background: linear-gradient(180deg, #fcefd9 0%, #f5e2bf 100%);
  border-color: #d4a86a;
  color: #6b4820;
}

.selection-geo-context::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selection-geo-body strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.selection-geo-detail {
  font-size: 0.6875rem;
  opacity: 0.85;
}

/* Результаты */
.selection-results-card {
  padding-bottom: 1rem;
}

.selection-results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-bottom: 1px solid var(--pub-border);
  margin-bottom: 0.85rem;
}

.selection-results-tabs .tab-btn {
  position: relative;
  margin: 0;
  padding: 0 0 0.7rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.selection-results-tabs .tab-btn:hover {
  color: var(--text);
}

.selection-results-tabs .tab-btn.active {
  color: var(--text);
  background: transparent;
}

.selection-results-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pub-accent);
}

.selection-results-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.selection-table-wrap {
  overflow-x: auto;
}

.selection-page table.selection-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.8125rem;
}

.selection-page table.selection-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  color: #3a5a38;
  font-weight: 600;
  border-bottom: 1px solid var(--pub-border);
  background: var(--bg);
  cursor: pointer;
  user-select: none;
}

.selection-page table.selection-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--pub-border);
  color: #1f2937;
  vertical-align: middle;
}

.selection-page table.selection-table tbody tr:hover td {
  background: var(--bg);
}

.selection-page table.selection-table tbody tr:nth-child(2n) {
  background: transparent;
}

.selection-page table.selection-table tbody tr:nth-child(2n):hover td {
  background: var(--bg);
}

.selection-table-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.selection-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.selection-page-info {
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 8rem;
  text-align: center;
}

.selection-pager-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.selection-page .selection-pager-controls .btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--pub-border);
  background: var(--surface);
  color: var(--muted);
}

.selection-page .selection-pager-controls .btn:hover:not(:disabled) {
  background: var(--combo-hover);
  color: var(--text);
}

.selection-page .selection-pager-controls .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tab-panel-hidden {
  display: none;
}

.selection-panel-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pub-heading);
}

.selection-panel-lead {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.selection-chart-wrap {
  position: relative;
  margin-top: 0.5rem;
  min-height: 22rem;
}

#year-chart {
  display: block;
  min-height: 20rem;
}

#filters-panel.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

#filters-panel.is-loading::after {
  content: "Обновление фильтров…";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.chart-captions {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text);
}

.chart-caption-line {
  margin: 0.05rem 0;
}

.selection-page .chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(31, 41, 55, 0.95);
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  opacity: 0;
}

.selection-cite-note {
  margin: 1.35rem 0 1.5rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--pub-accent);
  background: var(--pub-accent-soft);
  border-radius: 0 8px 8px 0;
}

.selection-cite-note__title {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pub-heading);
}

.selection-cite-note__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
}

.selection-cite-note .cc-license {
  font-weight: 600;
}

.selection-export-board {
  width: 100%;
}

.selection-export-grid--groups {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-export-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  background: var(--bg);
}

.selection-export-group-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pub-heading);
}

.selection-export-group-note {
  margin: 0;
  flex: 1 1 auto;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.selection-export-group-alt {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.selection-export-group-main {
  align-self: start;
  margin-top: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.selection-export-group-main[href="#"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.selection-export-group-main[href="#"]:hover {
  transform: none;
  box-shadow: none;
  background: #dff0d9;
}

.selection-export-group-alt-label {
  margin-right: 0.25rem;
}

.selection-export-group-link {
  color: var(--pub-accent);
  font-weight: 500;
  text-decoration: none;
}

.selection-export-group-link:hover {
  text-decoration: underline;
}

.selection-export-group-link[href="#"] {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}

.selection-export-group-sep {
  margin: 0 0.2rem;
  color: #d1d5db;
}

/*
  Вариант «6 карточек-кнопок» — оставлен на будущее (см. историю чата).
*/

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #9ca3af;
  padding: 1.25rem;
}

.status-row td {
  padding: 0;
  border: none;
}

@media (max-width: 1100px) {
  .selection-filters-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .selection-filters-side--left,
  .selection-filters-side--right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 1;
  }

  .selection-filters-stack--observe {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .selection-filter-pane--geo,
  .selection-filter-pane--series,
  .selection-filter-pane--taxonomy,
  .selection-filter-pane--management,
  .selection-filter-pane--plot {
    grid-column: 1;
    grid-row: auto;
    display: block;
  }

  .selection-filter-pane--management {
    display: flex;
    flex-direction: column;
  }

  .selection-management-actions {
    margin-top: 0;
  }

  .selection-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .selection-filter-group,
  .selection-filter-group--taxonomy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Ensure series remains 2×2 on mid screens. */
  .selection-filter-group--series {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-management-actions {
    grid-template-columns: 1fr 1fr;
  }

  .selection-plot-coord-action {
    grid-column: 1 / -1;
  }

  .selection-export-grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .selection-filter-group,
  .selection-filter-group--taxonomy,
  .selection-filter-group--series {
    grid-template-columns: 1fr;
  }

  .selection-management-actions {
    grid-template-columns: 1fr;
  }

  .selection-export-grid--groups {
    grid-template-columns: 1fr;
  }

  .selection-management-row {
    grid-template-columns: 1fr;
  }
}
