:root {
  --sidebar-w: 220px;
}

body {
  background: var(--bs-tertiary-bg);
  font-size: .925rem;
}

.sidebar {
  background: var(--bs-body-bg);
}

@media (min-width: 992px) {
  .sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}

.sidebar .brand {
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border-color);
}

.sidebar .nav-link {
  color: var(--bs-body-color);
  border-radius: .375rem;
  padding: .45rem .75rem;
}

.sidebar .nav-link i {
  width: 1.25rem;
  display: inline-block;
}

.sidebar .nav-link:hover {
  background: var(--bs-secondary-bg);
}

.sidebar .nav-link.active {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  font-weight: 500;
}

.main-col {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  background: var(--bs-body-bg);
  position: sticky;
  top: 0;
  z-index: 1010;
}

.content {
  padding: 1rem;
}

@media (min-width: 768px) {
  .content {
    padding: 1.25rem 1.5rem;
  }
}

.card {
  border-color: var(--bs-border-color-translucent);
}

.table-responsive.card {
  overflow-x: auto;
}

.domain-table th,
.domain-table td {
  white-space: nowrap;
}

.domain-table td.domain-cell,
.domain-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-check {
  width: 2rem;
}

.sort-link {
  color: inherit;
  text-decoration: none;
}

.sort-link:hover {
  text-decoration: underline;
}

.dr {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.dr-lo { color: var(--bs-body-color); }
.dr-mid { color: var(--bs-success-text-emphasis); }
.dr-hi { color: var(--bs-primary-text-emphasis); font-weight: 700; }

.tile .tile-label {
  font-size: .8rem;
  color: var(--bs-secondary-color);
}

.tile .tile-value {
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tile .tile-hint {
  font-size: .75rem;
  color: var(--bs-tertiary-color);
}

a.tile:hover {
  border-color: var(--bs-primary-border-subtle);
}

.notes-cell {
  max-width: 220px;
}

.raw-json {
  max-height: 320px;
  overflow: auto;
  background: var(--bs-tertiary-bg);
  padding: .75rem;
  border-radius: .375rem;
  font-size: .75rem;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}
