@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 14px 14px;
  }

  .topbar .brand {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .topbar .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar form {
    position: static;
    align-self: center;
  }

  .topbar nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  .topbar nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #101f31;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .topbar nav a.active {
    border-color: #2c6fa4;
    background: #173553;
    box-shadow: inset 0 0 0 1px rgba(50, 165, 255, .15);
  }

  .container {
    max-width: 100%;
    padding: 26px 12px 56px;
    overflow-x: hidden;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .table-panel {
    width: 100%;
    overflow: hidden;
  }

  .table-panel table {
    width: 100%;
    table-layout: fixed;
  }

  .table-panel th:nth-child(2),
  .table-panel td:nth-child(2),
  .table-panel th:nth-child(3),
  .table-panel td:nth-child(3) {
    display: none;
  }

  .table-panel th:first-child,
  .table-panel td:first-child {
    width: auto;
    padding: 15px 12px;
  }

  .table-panel th:last-child,
  .table-panel td:last-child {
    width: 66px;
    padding: 15px 12px 15px 4px;
    text-align: right;
  }

  .table-panel td:first-child strong {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .event-list {
    max-height: none;
  }

  .event {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 14px 12px;
  }

  .event .event-body {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .event pre {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .file-card {
    min-width: 0;
  }

  .file-card div,
  .file-card strong,
  .file-card small {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .topbar nav a {
    font-size: 12px;
  }

  .topbar .ghost {
    padding: 8px 6px;
    font-size: 12px;
  }
}
