/* Narrow-screen layout fixes loaded after the company stylesheet. */
@media (max-width: 640px) {
  .network-panel {
    overflow: hidden;
  }

  .network-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 0;
  }

  .network-numbers > div {
    min-width: 0;
  }

  .network-numbers > div:nth-child(-n + 2) {
    padding-bottom: 16px;
  }

  .network-numbers > div:nth-child(-n + 2) > strong,
  .network-numbers > div:nth-child(-n + 2) > small {
    white-space: nowrap;
  }

  .network-numbers > div:nth-child(-n + 2) > strong {
    font-size: clamp(23px, 7vw, 28px);
  }

  .network-numbers > div:nth-child(3),
  .network-numbers > div:nth-child(4) {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .network-numbers > div:nth-child(4) {
    margin-top: 16px;
  }

  .network-numbers > div:last-child > strong.mono {
    max-width: 100%;
    font-size: clamp(18px, 5.7vw, 24px) !important;
    line-height: 1.25;
    white-space: nowrap;
  }

  .network-numbers .connection-detail {
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
    padding: 16px;
  }

  .service-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .service-row > div:first-child > div {
    min-width: 0;
  }

  .service-row > div:first-child strong {
    overflow-wrap: anywhere;
  }

  .service-row > div:first-child small {
    display: none;
  }

  .service-row > p {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding-left: 50px;
    overflow-wrap: anywhere;
  }

  .service-row > .state:last-child {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .service-row > p {
    padding-left: 0;
  }
}
