.ops-toolbar,
.ops-tabs,
.ops-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ops-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}
.ops-tabs {
  gap: 0;
  border-bottom: 1px solid #cdd8d4;
}
.ops-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
  color: #52615b;
}
.ops-tabs button.selected {
  color: #12614c;
  border-bottom: 3px solid #12614c;
  font-weight: 600;
}
.ops-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.ops-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d7dfdc;
  border-bottom: 1px solid #d7dfdc;
  margin: 18px 0;
}
.ops-counts button {
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 12px;
  min-height: 88px;
  gap: 6px;
  text-align: left;
}
.ops-counts strong {
  font-size: 24px;
  color: #24483c;
}
.ops-counts span {
  font-size: 13px;
  color: #54635d;
}
.ops-state {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  gap: 6px;
  white-space: nowrap;
}
.ops-state:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #8b9992;
  border-radius: 50%;
  flex-shrink: 0;
}
.ops-ok:before {
  background: #237e5d;
}
.ops-error:before,
.ops-attention:before {
  background: #b83947;
}
.ops-stale:before,
.ops-warning:before {
  background: #b58620;
}
.ops-channel {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.ops-channel .work-channel {
  width: 16px;
  height: 16px;
}
.ops-page .section {
  margin-top: 24px;
}
.ops-page h2 {
  font-size: 18px;
}
.ops-page h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.ops-page table {
  font-size: 13px;
}
.ops-page td {
  max-width: 280px;
  overflow-wrap: anywhere;
}
.ops-page .table-wrap {
  max-width: 100%;
  overflow: auto;
}
.ops-incident {
  padding: 16px 0;
  border-bottom: 1px solid #d7dfdc;
}
.ops-incident p {
  margin: 5px 0 10px;
}
.ops-incident .ops-actions {
  margin-top: 12px;
}
.ops-incident.target-incident {
  border-left: 3px solid #207761;
  padding-left: 12px;
}
@media (max-width: 650px) {
  .ops-mode .sidebar {
    padding: 5px 10px;
    gap: 0;
  }
  .ops-mode .sidebar .brand,
  .ops-mode .sidebar .version {
    display: none;
  }
  .ops-mode .sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 3px;
  }
  .ops-mode .nav-button {
    width: auto;
    flex-shrink: 0;
    padding: 7px 10px;
    min-height: 38px;
    font-size: 12px;
  }
  .ops-mode .topbar {
    min-height: 43px;
    padding: 5px 12px;
  }
  .ops-mode .dev-toolbar {
    padding: 6px 12px;
    gap: 6px;
    font-size: 11px;
  }
  .ops-mode .dev-toolbar select {
    min-height: 30px;
    padding: 5px;
  }
  .ops-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-tabs {
    width: 100%;
  }
  .ops-tabs button {
    font-size: 13px;
    padding: 9px 7px;
  }
  .ops-page .table-wrap {
    max-width: calc(100vw - 32px);
  }
  .ops-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
