/* Scoped to router/search cards; no clipping of the page or its data. */
@media (max-width: 767px) {
  .router-search-panel,
  .router-pairs,
  .router-pair {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .router-search-panel > *,
  .router-pair > *,
  .router-pair .router-card,
  .router-pair .card-body-block,
  .router-pair .card-header-block > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .router-pair .card-header-block {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .router-pair .card-header-block > div {
    flex: 1 1 100% !important;
  }
  .router-pair .card-header-block h2,
  .router-pair .card-header-block p {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  .router-pair .metric-row {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .router-pair .metric-row > * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .router-pair .metric-row strong { text-align: right !important; }
  .router-pair .card-actions,
  .router-pair .edit-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .router-pair .card-actions > *,
  .router-pair .edit-actions > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .router-pair .card-actions > .inline-field {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .router-pair input,
  .router-pair select,
  .router-search-panel input {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .router-pair .card-actions > button,
  .router-pair .edit-actions > button {
    flex: 1 1 10rem !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
