@media (max-width: 1100px) {
  .status-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric:nth-child(3) {
    border-right: 0;
  }

  .metric:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: min(290px, 86vw);
    transition: transform 160ms ease;
  }

  .shell.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgb(0 0 0 / 28%);
  }

  .menu-button {
    display: block;
    color: var(--text);
    background: white;
    border-color: var(--line);
  }

  .topbar {
    min-height: 68px;
    padding: 9px 14px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .topbar-actions .button,
  .profile span:last-child {
    display: none;
  }

  .content {
    padding: 16px 12px 42px;
  }

  .status-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .metric:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(even) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-actions {
    width: 100%;
    margin-left: 0;
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    display: grid;
    padding: 5px 0;
    border: 0;
    grid-template-columns: 112px 1fr;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--text-soft);
    font-size: 12px;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .detail-list dd {
    padding-top: 2px;
  }
}

