:root {
  --bg: #e4e0d5;
  --bg-grid: rgba(24, 27, 30, 0.06);
  --sheet: rgba(248, 246, 240, 0.94);
  --sheet-strong: #fdfcf8;
  --line: #bdb6a7;
  --line-soft: rgba(86, 78, 66, 0.18);
  --ink: #17191c;
  --ink-soft: #5d5b56;
  --healthy: #1f7a4d;
  --healthy-soft: rgba(31, 122, 77, 0.12);
  --degraded: #9f6b11;
  --degraded-soft: rgba(159, 107, 17, 0.12);
  --down: #ae3b2f;
  --down-soft: rgba(174, 59, 47, 0.12);
  --unknown-soft: rgba(89, 91, 94, 0.1);
  --accent: #112c45;
  --traffic-ingress: #c46a1a;
  --traffic-egress-raw: #ae3b2f;
  --traffic-egress-gzip: #2a6fb0;
  --traffic-savings: #1f7a4d;
  --shadow: 0 14px 34px rgba(22, 25, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0)
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 63px,
      var(--bg-grid) 64px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 63px,
      var(--bg-grid) 64px
    ),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
}

body {
  padding: 18px;
}

.telemetry-page {
  display: grid;
  gap: 14px;
  max-width: 1600px;
  margin: 0 auto;
}

.summary-strip,
.sheet-block {
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.summary-strip {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns:
    minmax(92px, 0.8fr)
    minmax(92px, 0.8fr)
    minmax(92px, 0.8fr)
    minmax(100px, 0.9fr)
    minmax(360px, 2.6fr)
    auto
    minmax(86px, 0.75fr)
    56px
    minmax(170px, 1.25fr);
  gap: 1px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.summary-cell {
  min-height: 82px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.46);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.summary-cell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.summary-range-select {
  font-size: 0.7rem;
  padding: 2px 6px;
  max-width: 160px;
}

.summary-cell-clock {
  justify-items: start;
  text-align: left;
}

.summary-cell-wide {
  min-width: 180px;
}

.summary-cell-traffic {
  justify-items: stretch;
  text-align: left;
  min-width: 0;
}

.summary-inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.summary-inline-metrics-traffic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.summary-inline-metric {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.summary-inline-metric strong {
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  line-height: 1.15;
  word-break: break-word;
}

.summary-label,
.block-kicker,
.data-table th,
.filter-input,
.filter-select,
.method-chip,
.state-chip {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-label,
.block-kicker,
.data-table th {
  color: var(--ink-soft);
}

.summary-cell strong {
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
}

.summary-inline-metric-traffic {
  min-width: 0;
}

.summary-inline-metric-traffic .summary-label {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.summary-inline-metric-traffic strong {
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: anywhere;
}

#summary-total-ingress {
  color: var(--traffic-ingress);
}

#summary-total-egress-raw {
  color: var(--traffic-egress-raw);
}

#summary-total-egress-gzip {
  color: var(--traffic-egress-gzip);
}

#summary-total-savings {
  color: var(--traffic-savings);
}

.metric-ingress {
  color: var(--traffic-ingress);
}

.metric-egress-raw {
  color: var(--traffic-egress-raw);
}

.metric-egress-gzip {
  color: var(--traffic-egress-gzip);
}

.metric-savings {
  color: var(--traffic-savings);
}

.summary-time {
  font-size: 1rem !important;
}

.summary-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-setting-field {
  display: grid;
  gap: 6px;
}

.summary-select {
  width: 100%;
}

.summary-debug-zone {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(17, 44, 69, 0.035);
}

.summary-debug-head {
  display: grid;
  gap: 6px;
}

.summary-debug-head h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storage-debug-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.storage-debug-summary-card,
.storage-debug-category {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.7);
}

.storage-debug-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.storage-debug-summary-card strong,
.storage-debug-category-metrics strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.storage-debug-categories {
  display: grid;
  gap: 6px;
}

.storage-debug-category-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.storage-debug-category-head::-webkit-details-marker {
  display: none;
}

.storage-debug-category-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.storage-debug-category-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.35;
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.storage-debug-category-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  flex: 0 0 auto;
}

.storage-debug-category-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line-soft);
}

.storage-debug-key-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.storage-debug-category-body > .bucket-detail-empty {
  margin-top: 10px;
}

.storage-debug-key-item {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(17, 44, 69, 0.025);
}

.storage-debug-key-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.storage-debug-key-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.storage-debug-key-copy strong,
.storage-debug-key-copy span,
.storage-debug-key-metrics span {
  font-size: 0.76rem;
}

.storage-debug-key-copy strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storage-debug-key-copy span {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.storage-debug-key-metrics {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  flex: 0 0 auto;
}

.storage-debug-key-path {
  display: block;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storage-debug-category[open] .storage-debug-category-head {
  border-bottom: 1px solid var(--line-soft);
}

.summary-danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(174, 59, 47, 0.22);
  background: rgba(174, 59, 47, 0.06);
}

.summary-danger-copy {
  display: grid;
  gap: 6px;
}

.summary-danger-copy h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--down);
}

.summary-danger-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.summary-cell-config {
  align-content: center;
  justify-items: center;
  padding-inline: 8px;
}

.summary-action {
  min-height: 30px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(17, 44, 69, 0.26);
  background: rgba(17, 44, 69, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.summary-action:hover,
.dashboard-modal-close:hover,
.incoming-request-detail-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.summary-action-icon {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

.summary-action-danger {
  width: auto;
  min-width: 140px;
  border-color: rgba(174, 59, 47, 0.3);
  background: rgba(174, 59, 47, 0.12);
  color: var(--down);
}

.summary-action:disabled,
.dashboard-modal-close:disabled,
.incoming-request-detail-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.summary-cell-live {
  align-content: center;
  justify-items: center;
  padding-inline: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(17, 44, 69, 0.26);
  background: rgba(17, 44, 69, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.live-pill:hover {
  background: rgba(255, 255, 255, 0.92);
}

.live-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  flex-shrink: 0;
}

.live-pill.is-live .live-dot {
  background: var(--healthy);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-pill.is-paused .live-dot {
  background: var(--ink-soft);
  animation: none;
}

.live-pill.is-error .live-dot {
  background: var(--down);
  animation: none;
}

.live-pill.is-error {
  color: var(--down);
  border-color: rgba(174, 59, 47, 0.3);
  background: rgba(174, 59, 47, 0.12);
}

.live-pill.is-locked {
  color: var(--accent);
  border-color: rgba(17, 44, 69, 0.3);
  background: rgba(17, 44, 69, 0.16);
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .summary-action-stack.has-unread,
  .data-table tbody tr.error-log-unread td::before {
    animation: none !important;
  }
}

.summary-refresh-age {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.summary-refresh-age.is-error {
  color: var(--down);
}

.dashboard-modal-open {
  overflow: hidden;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dashboard-modal[hidden] {
  display: none;
}

.dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 28, 0.42);
  backdrop-filter: blur(6px);
}

.dashboard-modal-auth {
  z-index: 95;
}

.dashboard-modal-backdrop-locked {
  background: rgba(17, 28, 42, 0.76);
  backdrop-filter: blur(60px) saturate(0.65);
}

.dashboard-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 24px 48px rgba(22, 25, 28, 0.22);
}

.dashboard-modal-panel-scroll {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
}

.dashboard-modal-panel-compact {
  width: min(620px, 100%);
}

.dashboard-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.42);
}

.dashboard-modal-head h2,
.block-head h2 {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-modal-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dashboard-modal-body-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-modal-actions-split {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dashboard-modal-close,
.incoming-request-detail-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(23, 25, 28, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-auth-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.dashboard-auth-form {
  display: grid;
  gap: 12px;
}

.dashboard-auth-input {
  width: 100%;
  min-width: 0;
}

.dashboard-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  cursor: pointer;
}

.dashboard-auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.dashboard-auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(174, 59, 47, 0.22);
  background: rgba(174, 59, 47, 0.08);
  color: var(--down);
  line-height: 1.4;
}

.dashboard-warning-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(174, 59, 47, 0.2);
  background: rgba(174, 59, 47, 0.06);
}

.dashboard-warning-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.status-healthy strong {
  color: var(--healthy);
}

.status-degraded strong {
  color: var(--degraded);
}

.status-down strong {
  color: var(--down);
}

.sheet-block {
  padding: 14px;
}

.compact-block {
  padding-top: 12px;
}

.internal-process-band {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(42, 88, 91, 0.28);
  background:
    linear-gradient(135deg, rgba(42, 88, 91, 0.1), rgba(255, 255, 255, 0.28)),
    rgba(226, 235, 232, 0.78);
  box-shadow: var(--shadow);
}

.internal-process-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.internal-process-head h2 {
  margin: 6px 0 0;
  color: #1f4d50;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.internal-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  min-width: min(620px, 100%);
}

.internal-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 88, 91, 0.22);
  background: rgba(255, 255, 255, 0.62);
}

.internal-summary-card strong {
  color: #1f4d50;
  font-size: 1.2rem;
  line-height: 1;
}

.summary-action-stack {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 70px;
  min-height: 48px;
  padding: 6px 8px;
}

.summary-action-stack strong {
  color: var(--down);
  font-size: 1.05rem;
}

.summary-action-stack.has-unread {
  border-color: rgba(174, 59, 47, 0.45);
  background: rgba(174, 59, 47, 0.16);
  animation: error-flash 1.1s ease-in-out infinite;
}

@keyframes error-flash {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(174, 59, 47, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(174, 59, 47, 0.16);
  }
}

.internal-process-grid {
  display: grid;
  gap: 12px;
}

.internal-table-block {
  border-color: rgba(42, 88, 91, 0.24);
  background: rgba(250, 252, 249, 0.82);
  box-shadow: none;
}

.internal-table-block .table-frame {
  border-color: rgba(42, 88, 91, 0.18);
}

.internal-table-block .data-table thead th {
  background: rgba(217, 232, 226, 0.96);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.block-head-split {
  align-items: flex-start;
}

#error-logs-section > .block-head-split {
  flex-direction: column;
  align-items: stretch;
}

.error-log-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

#error-logs-section .filter-row {
  width: 100%;
}

.error-log-toolbar {
  width: auto !important;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.error-log-action-button {
  width: auto;
  min-width: 124px;
}

#error-log-filter-text {
  flex: 1 1 220px;
  min-width: 220px;
}

#error-log-filter-from,
#error-log-filter-to {
  flex: 0 1 168px;
  min-width: 168px;
}

#error-log-filter-source {
  flex: 0 1 108px;
  min-width: 108px;
}

#error-log-filter-endpoint {
  flex: 1 1 144px;
  min-width: 144px;
}

.error-log-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.error-log-pagination-copy {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.error-log-pagination-controls,
.error-log-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.error-log-pagination-controls {
  justify-content: flex-end;
}

.error-log-page-button {
  min-width: 42px;
  justify-content: center;
}

.error-log-message-cell {
  max-height: 96px;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.error-log-detail-trace-button {
  justify-self: start;
  width: auto;
  min-width: 140px;
}

.error-log-page-button.is-current {
  border-color: rgba(17, 44, 69, 0.32);
  background: rgba(17, 44, 69, 0.12);
  color: var(--accent);
}

.error-log-page-ellipsis {
  min-width: 18px;
  text-align: center;
  color: var(--ink-soft);
}

.table-frame {
  overflow: auto;
  border: 1px solid var(--line-soft);
  background: var(--sheet-strong);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  table-layout: fixed;
}

.hosts-table {
  min-width: 920px;
}

.operations-table {
  min-width: 840px;
}

.incoming-requests-table {
  min-width: 1240px;
}

.error-logs-table {
  min-width: 1180px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(232, 227, 216, 0.94);
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
}

.data-table th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  line-height: 1.15;
  white-space: normal;
}

#services-trend-header,
#endpoints-trend-header,
.endpoint-window-cell {
  text-align: center;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(17, 44, 69, 0.018);
}

.data-table tbody tr:hover td {
  background: rgba(17, 44, 69, 0.05);
}

.data-table tbody tr.error-log-unread td {
  background-color: rgba(174, 59, 47, 0.065);
  font-weight: 600;
}

.data-table tbody tr.error-log-unread td:first-child {
  position: relative;
  padding-left: 26px;
}

.data-table tbody tr.error-log-unread td:first-child::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 0 0 rgba(174, 59, 47, 0.22);
  transform: translateY(-50%) scale(0.9);
  animation: error-log-dot-pulse 1s ease-in-out infinite;
}

@keyframes error-log-dot-pulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0 0 rgba(174, 59, 47, 0.18);
    transform: translateY(-50%) scale(0.9);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(174, 59, 47, 0);
    transform: translateY(-50%) scale(1);
  }
}

.cell-primary {
  font-weight: 600;
}

.truncate {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
}

.detail-value {
  margin-top: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail-body {
  display: grid;
  gap: 6px;
}

.detail-message,
.bucket-detail-item pre {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(17, 44, 69, 0.04);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-message-scroll {
  max-height: min(46vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bucket-detail-errors {
  display: grid;
  gap: 8px;
}

.bucket-detail-item {
  border: 1px solid rgba(174, 59, 47, 0.18);
  background: rgba(174, 59, 47, 0.05);
}

.bucket-detail-item header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 0;
  color: var(--down);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.trace-span-list {
  display: grid;
  gap: 8px;
}

.trace-chain-text {
  max-height: min(42vh, 360px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 0.76rem;
  line-height: 1.6;
}

.trace-span-item {
  border-color: rgba(17, 44, 69, 0.18);
  background: rgba(17, 44, 69, 0.04);
}

.trace-span-item header {
  color: var(--accent);
}

.trace-span-internal {
  border-color: rgba(42, 88, 91, 0.24);
  background: rgba(42, 88, 91, 0.07);
}

.trace-span-internal header {
  color: #1f4d50;
}

.protocol-chip {
  min-width: auto;
  min-height: 20px;
  padding-inline: 6px;
  color: #1f4d50;
  background: rgba(42, 88, 91, 0.1);
  border-color: rgba(42, 88, 91, 0.24);
}

.trace-span-meta {
  padding: 0 12px 12px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bucket-detail-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  background: rgba(17, 44, 69, 0.04);
  color: var(--ink-soft);
  line-height: 1.45;
}

.hosts-table .col-host {
  width: 30%;
}

.hosts-table .col-state {
  width: 11%;
}

.hosts-table .col-metric,
.endpoints-table .col-metric,
.operations-table .col-metric {
  width: 9%;
}

.incoming-requests-table .col-last {
  width: 10%;
}

.hosts-table .col-spark,
.endpoints-table .col-trend {
  width: 260px;
}

.endpoints-table .col-method {
  width: 6%;
}

.endpoints-table .col-path {
  width: 18%;
}

.endpoints-table .col-host,
.incoming-requests-table .col-host {
  width: 14%;
}

.endpoints-table .col-state,
.incoming-requests-table .col-state {
  width: 8%;
}

.hosts-table .col-bytes,
.endpoints-table .col-bytes,
.incoming-requests-table .col-bytes {
  width: 9%;
}

.operations-table .col-operation {
  width: 34%;
}

.operations-table .col-source {
  width: 22%;
}

.incoming-requests-table .col-protocol {
  width: 7%;
}

.incoming-requests-table .col-operation {
  width: 17%;
}

.incoming-requests-table .col-action {
  width: 8%;
}

.state-chip,
.method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-weight: 500;
}

.state-chip.healthy {
  color: var(--healthy);
  background: var(--healthy-soft);
  border-color: rgba(31, 122, 77, 0.28);
}

.state-chip.degraded {
  color: var(--degraded);
  background: var(--degraded-soft);
  border-color: rgba(159, 107, 17, 0.28);
}

.state-chip.down {
  color: var(--down);
  background: var(--down-soft);
  border-color: rgba(174, 59, 47, 0.28);
}

.state-chip.unknown {
  color: var(--ink-soft);
  background: var(--unknown-soft);
  border-color: rgba(89, 91, 94, 0.22);
}

.method-chip {
  min-width: 52px;
  justify-content: center;
  color: var(--accent);
  background: rgba(17, 44, 69, 0.08);
  border-color: rgba(17, 44, 69, 0.18);
}

.method-post,
.method-put,
.method-patch,
.method-delete {
  color: var(--down);
  background: rgba(174, 59, 47, 0.08);
  border-color: rgba(174, 59, 47, 0.18);
}

.endpoint-window-cell {
  min-width: 240px;
}

.endpoint-window-strip {
  display: grid;
  gap: 2px;
  align-items: stretch;
  margin-inline: auto;
}

.endpoint-window-bar {
  display: block;
  width: 100%;
  min-height: 20px;
  height: 20px;
  border: 1px solid rgba(23, 25, 28, 0.12);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}

.endpoint-window-bar.healthy {
  background: #22b573;
}

.endpoint-window-bar.degraded {
  background: #e3b33f;
}

.endpoint-window-bar.down {
  background: #d35649;
}

.endpoint-window-bar.unknown {
  background: rgba(93, 91, 86, 0.16);
}

.endpoint-window-bar:hover,
.endpoint-window-bar:focus-visible {
  outline: 2px solid rgba(17, 44, 69, 0.3);
  outline-offset: 1px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-input,
.filter-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-family: inherit;
}

.filter-input {
  min-width: min(360px, 44vw);
}

.filter-input-date {
  min-width: 190px;
}

.filter-input:focus,
.filter-select:focus {
  outline: 2px solid rgba(17, 44, 69, 0.18);
  outline-offset: 1px;
}

.empty-row td {
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .error-log-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .error-log-toolbar {
    width: 100% !important;
    justify-content: flex-start;
  }

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

  .summary-cell-wide,
  .summary-cell-traffic {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body {
    padding: 10px;
  }

  .summary-strip {
    top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-cell-wide {
    grid-column: span 2;
  }

  .summary-inline-metrics,
  .summary-inline-metrics-traffic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-cell-traffic {
    grid-column: span 2;
  }

  .summary-settings-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .storage-debug-summary-grid {
    grid-template-columns: 1fr;
  }

  .storage-debug-category-head,
  .summary-danger-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .internal-process-head {
    align-items: stretch;
    flex-direction: column;
  }

  .internal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .internal-summary-card {
    padding: 9px;
  }

  .storage-debug-category-metrics {
    justify-items: start;
    text-align: left;
  }

  .storage-debug-key-head {
    flex-direction: column;
  }

  .storage-debug-key-metrics {
    justify-items: start;
    text-align: left;
  }

  .dashboard-modal {
    padding: 10px;
  }

  .dashboard-modal-head,
  .dashboard-modal-body {
    padding: 14px;
  }

  .dashboard-modal-actions-split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .sheet-block {
    padding: 10px;
  }

  .block-head,
  .block-head-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-input,
  .filter-select {
    width: 100%;
    min-width: 0;
  }

  #error-log-filter-text,
  #error-log-filter-from,
  #error-log-filter-to,
  #error-log-filter-source,
  #error-log-filter-endpoint {
    flex-basis: auto;
    min-width: 0;
  }
}
