:root {
  --db-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --db-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --db-radius: 0.5rem;
  --db-radius-sm: 0.375rem;
  --db-transition: 160ms ease;
  --db-sidebar-width: 17.5rem;
}

html[data-bs-theme="light"] {
  color-scheme: light;
  --db-bg: #f3f5f7;
  --db-ink: #111827;
  --db-muted: #667085;
  --db-soft: #8792a0;
  --db-panel: #ffffff;
  --db-panel-muted: #f7f9fb;
  --db-panel-strong: #eef3f6;
  --db-line: #d9e1ea;
  --db-line-strong: #c5cfdb;
  --db-input-bg: #ffffff;
  --db-table-head: #f7f9fb;
  --db-row-hover: #f2f7f8;
  --db-accent: #087f8c;
  --db-accent-hover: #066b76;
  --db-accent-soft: #dff7f6;
  --db-success: #0f7a5f;
  --db-success-bg: #def8ee;
  --db-warning: #a9650d;
  --db-warning-bg: #fff1d7;
  --db-danger: #be3a2b;
  --db-danger-bg: #fee4e2;
  --db-info: #346fb0;
  --db-info-bg: #e4efff;
  --db-neutral-bg: #e9eef4;
  --db-neutral-ink: #3f4b5a;
  --db-code-bg: #111820;
  --db-code-ink: #e8eef6;
  --db-sidebar-bg: #101318;
  --db-sidebar-panel: rgba(255, 255, 255, 0.07);
  --db-sidebar-line: rgba(255, 255, 255, 0.13);
  --db-sidebar-ink: #f7fafc;
  --db-sidebar-muted: rgba(247, 250, 252, 0.64);
  --db-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  --db-focus: 0 0 0 0.2rem rgba(8, 127, 140, 0.2);
  --bs-body-bg: var(--db-bg);
  --bs-body-color: var(--db-ink);
  --bs-border-color: var(--db-line);
  --bs-secondary-color: var(--db-muted);
  --bs-tertiary-bg: var(--db-panel-muted);
  --bs-link-color: var(--db-accent);
  --bs-link-hover-color: var(--db-accent-hover);
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
  --db-bg: #0b0d10;
  --db-ink: #eef2f7;
  --db-muted: #9aa5b3;
  --db-soft: #758191;
  --db-panel: #11161d;
  --db-panel-muted: #151b23;
  --db-panel-strong: #1b232d;
  --db-line: #283341;
  --db-line-strong: #364456;
  --db-input-bg: #0f141b;
  --db-table-head: #151b23;
  --db-row-hover: #17242a;
  --db-accent: #22b8bd;
  --db-accent-hover: #5bd4d6;
  --db-accent-soft: rgba(34, 184, 189, 0.14);
  --db-success: #44d19f;
  --db-success-bg: rgba(68, 209, 159, 0.14);
  --db-warning: #f2b84b;
  --db-warning-bg: rgba(242, 184, 75, 0.14);
  --db-danger: #ff7a6e;
  --db-danger-bg: rgba(255, 122, 110, 0.14);
  --db-info: #8ab7ff;
  --db-info-bg: rgba(138, 183, 255, 0.14);
  --db-neutral-bg: #202a36;
  --db-neutral-ink: #c9d3df;
  --db-code-bg: #080b0f;
  --db-code-ink: #edf4fb;
  --db-sidebar-bg: #07090c;
  --db-sidebar-panel: rgba(255, 255, 255, 0.07);
  --db-sidebar-line: rgba(255, 255, 255, 0.11);
  --db-sidebar-ink: #f7fafc;
  --db-sidebar-muted: rgba(247, 250, 252, 0.58);
  --db-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
  --db-focus: 0 0 0 0.2rem rgba(34, 184, 189, 0.25);
  --bs-body-bg: var(--db-bg);
  --bs-body-color: var(--db-ink);
  --bs-border-color: var(--db-line);
  --bs-secondary-color: var(--db-muted);
  --bs-tertiary-bg: var(--db-panel-muted);
  --bs-link-color: var(--db-accent);
  --bs-link-hover-color: var(--db-accent-hover);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--db-bg);
  color: var(--db-ink);
  font-family: var(--db-font-sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--db-accent);
}

code,
pre {
  font-family: var(--db-font-mono);
}

code {
  color: var(--db-ink);
}

::selection {
  background: var(--db-accent-soft);
}

:focus-visible {
  outline: 0;
  box-shadow: var(--db-focus);
}

.ui-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn .ui-icon {
  flex: 0 0 auto;
  margin-right: 0.35rem;
}

.btn {
  border-radius: var(--db-radius-sm);
  font-weight: 750;
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-bg: var(--db-accent);
  --bs-btn-border-color: var(--db-accent);
  --bs-btn-hover-bg: var(--db-accent-hover);
  --bs-btn-hover-border-color: var(--db-accent-hover);
  --bs-btn-focus-shadow-rgb: 8, 127, 140;
  --bs-btn-active-bg: var(--db-accent-hover);
  --bs-btn-active-border-color: var(--db-accent-hover);
}

.btn-outline-secondary {
  --bs-btn-color: var(--db-ink);
  --bs-btn-border-color: var(--db-line-strong);
  --bs-btn-hover-bg: var(--db-panel-strong);
  --bs-btn-hover-border-color: var(--db-line-strong);
  --bs-btn-hover-color: var(--db-ink);
}

.form-control,
.form-select {
  min-height: 2.55rem;
  border-color: var(--db-line);
  border-radius: var(--db-radius-sm);
  background-color: var(--db-input-bg);
  color: var(--db-ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--db-accent);
  box-shadow: var(--db-focus);
}

.form-control::placeholder {
  color: var(--db-soft);
}

.form-label {
  color: var(--db-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.alert {
  border-radius: var(--db-radius);
}

.brand-lockup,
.login-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--db-sidebar-line);
  border-radius: var(--db-radius);
  background: var(--db-sidebar-panel);
  color: #ffffff;
  font-weight: 850;
}

.brand-lockup__name {
  color: var(--db-sidebar-ink);
  font-weight: 850;
  line-height: 1.1;
}

.brand-lockup__meta {
  color: var(--db-sidebar-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--db-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: auto;
  border-right: 1px solid var(--db-sidebar-line);
  background: var(--db-sidebar-bg);
  color: var(--db-sidebar-ink);
  padding: 1.25rem;
}

.sidebar-main,
.sidebar-footer {
  display: grid;
  gap: 1.25rem;
}

.app-nav {
  display: grid;
  gap: 0.25rem;
}

.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.65rem;
  border: 1px solid transparent;
  border-radius: var(--db-radius);
  color: var(--db-sidebar-muted);
  font-weight: 760;
  padding: 0.6rem 0.72rem;
  text-decoration: none;
  transition: background-color var(--db-transition), border-color var(--db-transition), color var(--db-transition), transform var(--db-transition);
}

.app-nav__link:hover,
.app-nav__link:focus {
  border-color: var(--db-sidebar-line);
  background: var(--db-sidebar-panel);
  color: var(--db-sidebar-ink);
}

.app-nav__link--active,
.app-nav__link--active:hover,
.app-nav__link--active:focus {
  border-color: rgba(34, 184, 189, 0.28);
  background: rgba(34, 184, 189, 0.14);
  color: #ffffff;
}

.app-nav__link--active .ui-icon {
  color: var(--db-accent-hover);
}

.release-info {
  color: var(--db-sidebar-muted);
  border-top: 1px solid var(--db-sidebar-line);
  border-bottom: 1px solid var(--db-sidebar-line);
  font-family: var(--db-font-mono);
  padding: 0.75rem 0;
}

.release-info__line,
.release-info__warning {
  display: block;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-info__date {
  color: var(--db-sidebar-muted);
}

.release-info__warning {
  color: #f6d58f;
}

.sidebar-tools {
  display: grid;
  gap: 0.75rem;
}

.sidebar-signout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-panel);
  color: var(--db-ink);
  transition: background-color var(--db-transition), border-color var(--db-transition), color var(--db-transition), transform var(--db-transition);
}

.app-sidebar .theme-toggle {
  width: 100%;
  background: var(--db-sidebar-panel);
  border-color: var(--db-sidebar-line);
  color: var(--db-sidebar-ink);
}

.theme-toggle:hover,
.icon-button:hover,
.theme-toggle:focus,
.icon-button:focus {
  border-color: var(--db-accent);
  color: var(--db-accent);
}

.theme-toggle__icon {
  display: inline-grid;
}

html[data-bs-theme="light"] .theme-toggle__icon--dark,
html[data-bs-theme="dark"] .theme-toggle__icon--light {
  display: none;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--db-sidebar-line);
  background: var(--db-sidebar-bg);
  color: var(--db-sidebar-ink);
  padding: 0.75rem 1rem;
}

.mobile-topbar .theme-toggle,
.mobile-topbar .icon-button {
  border-color: var(--db-sidebar-line);
  background: var(--db-sidebar-panel);
  color: var(--db-sidebar-ink);
}

.app-offcanvas {
  --bs-offcanvas-bg: var(--db-sidebar-bg);
  --bs-offcanvas-color: var(--db-sidebar-ink);
}

.app-offcanvas .btn-close {
  filter: invert(1) grayscale(100%);
}

.app-offcanvas .brand-lockup {
  --db-sidebar-ink: #ffffff;
}

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

.app-main__inner,
.public-shell__inner {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: clamp(1rem, 2.2vw, 2rem);
}

.public-shell {
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.page-title {
  color: var(--db-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.18rem 0 0;
}

.muted-label,
.metric-card__label {
  color: var(--db-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-panel);
  padding: 0.55rem 0.7rem;
}

.user-card__avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: var(--db-radius-sm);
  background: var(--db-accent-soft);
  color: var(--db-accent);
  font-weight: 850;
}

.user-card__name,
.user-card__roles {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card__name {
  color: var(--db-ink);
  font-weight: 800;
}

.user-card__roles {
  color: var(--db-muted);
  font-size: 0.78rem;
}

.app-flashes:empty {
  display: none;
}

.app-panel,
.command-panel,
.content-panel,
.data-panel,
.filter-panel,
.form-panel,
.metric-card,
.nav-panel,
.surface {
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-panel);
  box-shadow: var(--db-shadow);
}

.command-panel,
.content-panel,
.data-panel,
.filter-panel,
.form-panel,
.metric-card,
.nav-panel {
  min-width: 0;
}

.metric-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 1rem;
}

.metric-value {
  color: var(--db-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 0.45rem;
}

.metric-card__meta {
  color: var(--db-muted);
  font-size: 0.84rem;
  margin-top: 0.45rem;
}

.data-panel {
  overflow: hidden;
}

.form-panel,
.filter-panel,
.content-panel {
  padding: 1.25rem;
}

.section-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--db-line);
  padding: 1rem 1.25rem;
}

.panel-title {
  color: var(--db-ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.panel-subtitle {
  color: var(--db-muted);
  margin: 0.25rem 0 0;
}

.status-notice {
  color: var(--db-warning);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 1.25rem;
}

.status-notice:empty {
  display: none;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--db-ink);
  --bs-table-border-color: var(--db-line);
  --bs-table-hover-bg: var(--db-row-hover);
  margin-bottom: 0;
}

.table-responsive {
  min-height: 16rem;
}

.table-responsive--compact {
  min-height: 0;
}

.data-table thead th,
.log-table thead th,
.health-package-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--db-line-strong);
  background: var(--db-table-head);
  color: var(--db-muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-table {
  min-width: 46rem;
}

.log-table {
  min-width: 66rem;
}

.health-package-table {
  min-width: 58rem;
}

.data-table td,
.data-table th {
  padding: 0.85rem 1rem;
}

.data-table code {
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color var(--db-transition);
}

.empty-state {
  border: 1px dashed var(--db-line-strong);
  border-radius: var(--db-radius);
  background: var(--db-panel-muted);
  color: var(--db-muted);
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.status-pill,
.log-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-width: 4.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  padding: 0.34rem 0.62rem;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.status-pill--online,
.log-badge--ok {
  background: var(--db-success-bg);
  color: var(--db-success);
}

.status-pill--offline,
.log-badge--warn {
  background: var(--db-warning-bg);
  color: var(--db-warning);
}

.status-pill--neutral,
.log-badge--neutral {
  background: var(--db-neutral-bg);
  color: var(--db-neutral-ink);
}

.status-pill--danger,
.log-badge--danger {
  background: var(--db-danger-bg);
  color: var(--db-danger);
}

.status-pill--online::before {
  animation: statusPulse 2.6s ease-in-out infinite;
}

.status-pill--updated {
  animation: statusUpdate 800ms ease;
}

.content-panel--intro {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-panel__title {
  color: var(--db-ink);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 850;
  letter-spacing: 0;
  margin: 0.25rem 0 0.5rem;
}

.content-panel__text {
  color: var(--db-muted);
  max-width: 48rem;
  margin-bottom: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-tile {
  min-width: 0;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-panel-muted);
  padding: 1rem;
}

.feature-tile__label {
  color: var(--db-ink);
  font-weight: 850;
  margin-bottom: 0.4rem;
}

.feature-tile p {
  color: var(--db-muted);
  margin: 0;
}

.setup-command,
.log-json,
.diagnostic-list {
  overflow: auto;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-code-bg);
  color: var(--db-code-ink);
  font-size: 0.84rem;
  padding: 0.85rem;
}

.setup-command {
  margin-bottom: 0;
}

.login-stage {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(7, 9, 12, 0.92), rgba(8, 127, 140, 0.58)),
    url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.login-panel {
  width: min(100%, 26rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--db-radius);
  background: color-mix(in srgb, var(--db-panel) 92%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.login-panel .brand-mark {
  border-color: var(--db-line);
  background: var(--db-accent-soft);
  color: var(--db-accent);
}

.login-panel h1 {
  color: var(--db-ink);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0.12rem 0 0;
}

.login-panel__intro {
  color: var(--db-muted);
  margin: 1rem 0 1.25rem;
}

.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.log-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem;
}

.log-tab {
  display: flex;
  min-width: 9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--db-radius-sm);
  color: var(--db-muted);
  font-weight: 850;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
}

.log-tab:hover,
.log-tab:focus {
  background: var(--db-panel-strong);
  color: var(--db-ink);
}

.log-tab--active,
.log-tab--active:hover,
.log-tab--active:focus {
  background: var(--db-accent);
  color: #ffffff;
}

.log-toolbar .form-label {
  text-transform: uppercase;
}

.log-results {
  padding: 0;
}

.log-results__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--db-line);
  padding: 1rem 1.25rem;
}

.log-level-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.log-level-strip span {
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius-sm);
  background: var(--db-panel-muted);
  color: var(--db-muted);
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
}

.log-time,
.log-request-id,
.log-http-cell code,
.log-path {
  font-family: var(--db-font-mono);
}

.log-time {
  color: var(--db-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.log-http-cell {
  min-width: 12rem;
}

.log-message-cell {
  min-width: 22rem;
}

.log-path {
  max-width: 22rem;
  overflow: hidden;
  color: var(--db-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-row {
  border-top: 1px solid var(--db-line);
  padding: 0.75rem 0;
}

.log-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.log-json {
  max-height: 18rem;
  margin-top: 0.35rem;
}

.diagnostic-kv {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 0.55rem 1rem;
}

.diagnostic-kv dt {
  color: var(--db-muted);
  font-weight: 750;
}

.diagnostic-kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.diagnostic-list {
  max-height: 10rem;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.diagnostic-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.health-command {
  display: grid;
  grid-template-columns: 0.45rem minmax(0, 1fr);
  overflow: hidden;
}

.health-command__rail,
.health-check__rail {
  background: var(--db-soft);
}

.health-command__body {
  padding: 1.25rem;
}

.health-command__header,
.health-panel__header,
.health-check__top,
.health-storage-row__name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.health-command__header {
  flex-wrap: wrap;
}

.health-command p,
.health-check p {
  color: var(--db-muted);
  margin: 0;
}

.health-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.health-title h2,
.health-panel h2,
.health-technical h2 {
  margin: 0;
}

.health-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.health-title__dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--db-soft);
}

.health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.health-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--db-line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.health-meta div,
.health-signal-grid div {
  min-width: 0;
}

.health-meta span,
.health-signal-grid span,
.health-signal-grid small {
  color: var(--db-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.health-meta strong,
.health-signal-grid strong {
  display: block;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.health-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr);
  gap: 1rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.health-panel {
  min-width: 0;
  padding: 1.25rem;
}

.health-panel__header {
  align-items: center;
  border-bottom: 1px solid var(--db-line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.health-panel h2,
.health-technical h2 {
  font-size: 1.05rem;
  font-weight: 850;
}

.health-check-list {
  display: grid;
  gap: 0.75rem;
}

.health-check {
  display: grid;
  grid-template-columns: 0.3rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-panel-muted);
}

.health-check__body {
  min-width: 0;
  padding: 0.85rem 1rem;
}

.health-check__top {
  align-items: center;
}

.health-check h3 {
  min-width: 0;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.health-check__value {
  color: var(--db-ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
  margin: 0.4rem 0 0.25rem;
  overflow-wrap: anywhere;
}

.health-check__action {
  border-top: 1px solid var(--db-line);
  color: var(--db-ink);
  font-size: 0.86rem;
  font-weight: 750;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
}

.health-check--compact .health-check__body {
  padding: 0.7rem 0.8rem;
}

.health-check--compact .health-check__value {
  font-size: 0.98rem;
}

.health-tone--ok .health-command__rail,
.health-tone--ok .health-check__rail,
.health-tone--ok .health-title__dot {
  background: var(--db-success);
}

.health-tone--info .health-command__rail,
.health-tone--info .health-check__rail,
.health-tone--info .health-title__dot {
  background: var(--db-info);
}

.health-tone--warn .health-command__rail,
.health-tone--warn .health-check__rail,
.health-tone--warn .health-title__dot {
  background: var(--db-warning);
}

.health-tone--danger .health-command__rail,
.health-tone--danger .health-check__rail,
.health-tone--danger .health-title__dot {
  background: var(--db-danger);
}

.health-empty {
  display: grid;
  gap: 0.2rem;
  border: 1px solid color-mix(in srgb, var(--db-success) 38%, var(--db-line));
  border-radius: var(--db-radius);
  background: var(--db-success-bg);
  color: var(--db-success);
  padding: 1rem;
}

.health-empty span {
  color: var(--db-muted);
}

.health-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.health-signal-grid div {
  border-left: 2px solid var(--db-line);
  padding-left: 0.8rem;
}

.health-storage-list,
.health-log-list,
.health-release-kv {
  border-top: 1px solid var(--db-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.health-composer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  border-top: 1px solid var(--db-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.health-composer-summary div {
  min-width: 0;
  border-left: 2px solid var(--db-line);
  padding-left: 0.75rem;
}

.health-composer-summary span,
.health-composer-summary small,
.health-package-table small {
  color: var(--db-muted);
}

.health-composer-summary span {
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.health-composer-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.health-package-table td {
  vertical-align: top;
}

.health-package-name {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.health-package-name strong,
.health-package-table code {
  overflow-wrap: anywhere;
}

.health-package-name span {
  border-radius: 999px;
  background: var(--db-neutral-bg);
  color: var(--db-neutral-ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  text-transform: uppercase;
}

.health-storage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.8fr);
  gap: 1rem;
  padding: 0.75rem 0;
}

.health-storage-row + .health-storage-row,
.health-log-row + .health-log-row {
  border-top: 1px solid var(--db-line);
}

.health-storage-row code,
.health-log-row code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.health-storage-row__meta {
  color: var(--db-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  font-size: 0.85rem;
  font-weight: 750;
}

.health-meter {
  height: 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--db-neutral-bg);
  margin-top: 0.45rem;
}

.health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--db-accent);
}

.health-log-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
}

.health-log-row strong {
  overflow-wrap: anywhere;
}

.health-technical > details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.health-technical > details > summary::-webkit-details-marker {
  display: none;
}

.health-technical > details > summary strong {
  display: block;
  font-size: 1.05rem;
}

.health-technical > details > summary > span:last-child {
  color: var(--db-muted);
  font-size: 0.88rem;
  text-align: right;
}

.health-technical__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--db-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.health-technical__body section {
  min-width: 0;
}

.health-technical__body h2 {
  margin-bottom: 0.8rem;
}

.health-raw-lists {
  border-top: 1px solid var(--db-line);
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.health-raw-lists summary {
  color: var(--db-muted);
  cursor: pointer;
  font-weight: 850;
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 32%, transparent);
  }

  50% {
    box-shadow: 0 0 0 0.28rem transparent;
  }
}

@keyframes statusUpdate {
  0% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-1px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1199.98px) {
  .metric-grid--four,
  .log-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .health-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .health-workspace,
  .health-grid,
  .health-technical__body {
    grid-template-columns: 1fr;
  }

  .health-composer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .app-main__inner,
  .public-shell__inner {
    padding: 1rem;
  }

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

  .user-card {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .metric-grid--three,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 575.98px) {
  .metric-grid--four,
  .log-summary-grid {
    grid-template-columns: 1fr;
  }

  .log-tab {
    min-width: 7.5rem;
  }

  .log-results__header {
    padding: 1rem;
  }

  .health-command__body,
  .health-panel {
    padding: 1rem;
  }

  .health-command__header,
  .health-actions,
  .health-panel__header,
  .health-check__top,
  .health-storage-row__name,
  .health-technical > details > summary {
    align-items: stretch;
    flex-direction: column;
  }

  .health-meta,
  .health-signal-grid,
  .health-composer-summary,
  .health-storage-row {
    grid-template-columns: 1fr;
  }

  .health-storage-row__meta {
    justify-content: flex-start;
  }

  .health-technical > details > summary > span:last-child {
    text-align: left;
  }
}
