.live-report-section {
  padding-top: 12px;
}

.report-shell {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(98, 217, 255, .2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 217, 255, .12), transparent 34%),
    linear-gradient(220deg, rgba(125, 226, 162, .085), transparent 32%),
    rgba(8, 13, 22, .92);
  box-shadow: var(--shadow);
}

.report-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .46;
}

.report-shell > * {
  position: relative;
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.report-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.report-controls,
.report-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-action {
  cursor: pointer;
}

.report-action[disabled] {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.report-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.report-toolbar[hidden],
.report-toolbar__actions [hidden],
.raw-json-panel[hidden] {
  display: none;
}

.report-toolbar__status {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.report-stage {
  margin-top: 18px;
}

.report-empty,
.report-loading,
.report-error {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.report-empty p,
.report-loading p,
.report-error p {
  margin-top: 6px;
  color: var(--muted);
}

.report-empty__mark,
.report-spinner,
.report-error__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 217, 255, .32);
  background: rgba(98, 217, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 28px rgba(98, 217, 255, .14);
}

.report-empty__mark {
  position: relative;
}

.report-empty__mark::before,
.report-empty__mark::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.report-empty__mark::before {
  width: 20px;
  height: 2px;
  left: 12px;
  top: 22px;
}

.report-empty__mark::after {
  width: 2px;
  height: 20px;
  left: 21px;
  top: 13px;
}

.report-spinner {
  border-color: rgba(98, 217, 255, .18);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: report-spin .9s linear infinite;
}

.report-error {
  border-color: rgba(255, 125, 112, .28);
  background: rgba(255, 125, 112, .07);
}

.report-error__mark {
  display: grid;
  place-items: center;
  border-color: rgba(255, 125, 112, .38);
  color: var(--coral);
  background: rgba(255, 125, 112, .08);
  font-size: 26px;
  font-weight: 900;
}

@keyframes report-spin {
  to {
    transform: rotate(360deg);
  }
}

.report-result {
  display: grid;
  gap: 18px;
}

.report-hero-panel,
.report-panel,
.raw-json-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent),
    rgba(255, 255, 255, .04);
}

.report-hero-panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.report-identity p {
  margin-top: 6px;
  color: var(--muted);
}

.report-hero-panel__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.report-status,
.mini-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(98, 217, 255, .32);
  border-radius: 999px;
  color: #c9f4ff;
  background: rgba(98, 217, 255, .105);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.report-status::before,
.mini-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.report-status--ok,
.mini-status--ok {
  border-color: rgba(125, 226, 162, .42);
  color: #d6ffe2;
  background: rgba(125, 226, 162, .11);
}

.report-status--warning,
.mini-status--warning {
  border-color: rgba(243, 199, 101, .46);
  color: #ffe4aa;
  background: rgba(243, 199, 101, .12);
}

.report-status--error,
.mini-status--error {
  border-color: rgba(255, 125, 112, .45);
  color: #ffc8c2;
  background: rgba(255, 125, 112, .11);
}

.report-status--neutral,
.mini-status--neutral {
  color: #c9f4ff;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(98, 217, 255, .18);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, .52);
}

.score-ring {
  --score: 0%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 13, 22, .96) 0 58%, transparent 59%),
    conic-gradient(var(--green) var(--score), rgba(255, 255, 255, .09) 0);
  box-shadow: 0 0 36px rgba(125, 226, 162, .12);
}

.score-ring strong,
.score-ring span {
  grid-area: 1 / 1;
}

.score-ring strong {
  margin-top: -10px;
  font-size: 25px;
  line-height: 1;
}

.score-ring span {
  align-self: end;
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.score-card__details {
  display: grid;
  gap: 2px;
  min-width: 110px;
}

.score-card__label,
.score-card__details small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.score-card__details strong {
  font-size: 22px;
}

.report-panel {
  overflow: hidden;
}

.report-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(90deg, rgba(98, 217, 255, .11), transparent),
    rgba(255, 255, 255, .025);
}

.report-panel__head h3 {
  font-size: 16px;
  text-transform: uppercase;
}

.report-panel__meta {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.report-panel__body {
  padding: 14px;
}

.report-summary,
.report-grid,
.progress-grid,
.service-matrix,
.endpoint-grid,
.security-check-grid,
.monitoring-diagnostics,
.backup-proof,
.version-stack,
.cert-grid {
  display: grid;
  gap: 10px;
}

.report-summary,
.monitoring-diagnostics,
.backup-proof,
.version-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.report-summary--facts,
.progress-grid,
.service-matrix,
.endpoint-grid,
.security-check-grid,
.cert-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-snapshot {
  display: grid;
  gap: 14px;
}

.report-field,
.progress-card,
.service-card,
.endpoint-card,
.security-check,
.cert-card,
.version-chip,
.report-nested-item,
.check-row,
.port-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.report-field span,
.report-kv__key,
.progress-card__top span,
.version-chip span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-field strong,
.version-chip strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.progress-card {
  display: grid;
  gap: 10px;
}

.progress-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-card__top strong {
  overflow-wrap: anywhere;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress-track__fill {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(98, 217, 255, .22);
}

.report-kv {
  display: grid;
  gap: 8px;
}

.report-kv__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.report-kv__row:last-child {
  border-bottom: 0;
}

.report-value,
.report-scalar {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.report-token-row,
.port-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-token,
.port-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .045);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.report-nested-list,
.checks-list {
  display: grid;
  gap: 8px;
}

.report-item__index,
.check-row__index {
  display: inline-flex;
  min-width: 28px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  border-radius: var(--radius-sm);
  color: #041018;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.service-card h4,
.endpoint-card h4,
.security-check h4,
.port-group h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.service-card--ok,
.endpoint-card--ok,
.security-check--ok,
.check-row--ok {
  border-color: rgba(125, 226, 162, .3);
  background: rgba(125, 226, 162, .065);
}

.service-card--warning,
.endpoint-card--warning,
.security-check--warning,
.check-row--warning {
  border-color: rgba(243, 199, 101, .34);
  background: rgba(243, 199, 101, .075);
}

.service-card--error,
.endpoint-card--error,
.security-check--error,
.check-row--error {
  border-color: rgba(255, 125, 112, .36);
  background: rgba(255, 125, 112, .08);
}

.port-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.port-group h4 {
  color: var(--cyan);
}

.cert-card,
.backup-proof .report-field {
  background:
    linear-gradient(135deg, rgba(243, 199, 101, .07), transparent 44%),
    rgba(255, 255, 255, .045);
}

.endpoint-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.monitoring-diagnostics .report-field {
  border-color: rgba(169, 149, 255, .2);
  background: rgba(169, 149, 255, .06);
}

.version-chip {
  display: grid;
  align-content: start;
}

.checks-console {
  display: grid;
  gap: 12px;
}

.checks-console__summary {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(125, 226, 162, .24);
  border-radius: var(--radius);
  background: rgba(125, 226, 162, .065);
}

.checks-console__summary strong {
  font-size: 24px;
}

.checks-console__summary span,
.checks-console__more {
  color: var(--muted);
}

.check-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.check-row__index {
  margin-bottom: 0;
}

.raw-json-block {
  max-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--code);
}

.raw-json-block code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4faff;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .report-head,
  .report-summary,
  .report-summary--top,
  .report-summary--facts,
  .monitoring-diagnostics,
  .backup-proof,
  .version-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-controls,
  .report-toolbar__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .report-hero-panel,
  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-hero-panel__right {
    justify-content: flex-start;
  }

  .service-matrix,
  .endpoint-grid,
  .security-check-grid,
  .cert-grid,
  .port-map,
  .progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .report-shell,
  .report-empty,
  .report-loading,
  .report-error,
  .report-hero-panel,
  .report-panel__body {
    padding: 16px;
  }

  .report-head,
  .report-summary,
  .report-summary--top,
  .report-summary--facts,
  .monitoring-diagnostics,
  .backup-proof,
  .version-stack {
    grid-template-columns: 1fr;
  }

  .report-controls,
  .report-action,
  .report-toolbar__actions,
  .report-copy,
  .report-json-toggle {
    width: 100%;
  }

  .report-kv__row,
  .check-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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