* {
  box-sizing: border-box;
}

/* Final high-contrast theme overrides: keep at end of file. */
html body {
  background-color: #07111d !important;
  color: #c9d9e6 !important;
}
body main {
  background: transparent !important;
}
main header h1,
main h2,
main h3,
.detail h2,
.nodecard h3 {
  color: #f1f8fc !important;
}
main header span,
main header p,
.back,
.hash,
.nodecard small,
.detail small {
  color: #8fa6b8 !important;
}
.detail,
.nodecard,
.stats article,
.telemetry article,
.table,
.tableCard,
.alerts article {
  background: linear-gradient(145deg, #102232, #091826) !important;
  border-color: #21516c !important;
  color: #c9d9e6 !important;
}
.detailgrid article {
  background: #0b1b29 !important;
  border: 1px solid #183d55 !important;
  color: #c9d9e6 !important;
}
.detailgrid article small {
  color: #7892a6 !important;
}
.detailgrid article strong,
.detail strong,
.nodecard strong,
.stats strong {
  color: #e8f7ff !important;
  opacity: 1 !important;
}
.detail .hash {
  color: #a6bccb !important;
}
.pill.ok {
  background: #083b31 !important;
  color: #43e6ad !important;
}
.pill.ko {
  background: #40191f !important;
  color: #ff8994 !important;
}
:root {
  --tech-bg: #07111d;
  --tech-panel: #0d1b2a;
  --tech-cyan: #21d4fd;
  --tech-blue: #1688e7;
  --tech-line: #1b3b52;
}
body {
  background-color: #07111d;
  background-image:
    linear-gradient(rgba(33, 212, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 212, 253, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  color: #d7e6f2;
  font-family: "Segoe UI", ui-monospace, monospace;
}
aside {
  background: linear-gradient(180deg, #07111d, #0a1724);
  border-right: 1px solid #173b55;
  box-shadow: 8px 0 35px #0008;
}
.brand > b {
  background: linear-gradient(145deg, #21d4fd, #0967d2);
  box-shadow: 0 0 24px #21d4fd66;
}
.brand strong,
h1,
h2,
h3 {
  letter-spacing: 0.03em;
}
main {
  min-height: 100vh;
}
.stats article,
.nodecard,
.detail,
.table,
.alerts article {
  background: linear-gradient(
    145deg,
    rgba(16, 34, 50, 0.97),
    rgba(9, 24, 38, 0.97)
  );
  border-color: #1a4059;
  color: #d7e6f2;
  box-shadow: 0 8px 28px #0005;
}
.stats strong,
.nodecard h3,
.detail strong,
td {
  color: #e9f7ff;
}
.nodecard:hover {
  border-color: #21d4fd;
  box-shadow:
    0 0 0 1px #21d4fd55,
    0 12px 34px #0008;
  transform: translateY(-2px);
}
.filters input,
.filters select,
.filters a {
  background: #0c1b29;
  border-color: #20445c;
  color: #d8e7f2;
}
.filters button {
  background: linear-gradient(135deg, #1688e7, #21bfea);
  box-shadow: 0 0 16px #1688e744;
}
th {
  background: #0b1b29;
  color: #6edcff;
  border-color: #17384e;
}
td {
  border-color: #163044;
}
.pill.ok {
  background: #083b31;
  color: #43e6ad;
  border: 1px solid #18a978;
  box-shadow: 0 0 12px #18a97833;
}
.pill.ko {
  background: #40191f;
  color: #ff7d89;
  border: 1px solid #d94858;
  box-shadow: 0 0 12px #d9485833;
}
.siteFooter {
  margin-top: 34px;
  padding: 20px 0;
  border-top: 1px solid #17384e;
  text-align: center;
  color: #7591a6;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.siteFooter a {
  color: #21d4fd;
  text-decoration: none;
}
.siteFooter a:hover {
  text-shadow: 0 0 10px #21d4fd;
}
body {
  margin: 0;
  background: #f3f6f9;
  color: #172231;
  font:
    14px system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #101a27;
  color: #aebdca;
  padding: 28px 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid #293746;
  padding-bottom: 24px;
}
.brand > b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #1688e7;
  font-size: 22px;
}
.brand small {
  display: block;
  color: #62b8fb;
  letter-spacing: 2px;
  font-size: 9px;
}
.brand strong {
  font-size: 16px;
}
nav {
  line-height: 3.3;
  margin-top: 22px;
}
nav a {
  display: block;
  color: #9fb0bf;
  text-decoration: none;
  padding: 0 12px;
  border-radius: 8px;
  margin: 5px 0;
}
nav a:hover,
nav a.active {
  color: #fff;
  background: #1688e7;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}
.filters input,
.filters select,
.filters button,
.filters a {
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #344454;
  text-decoration: none;
}
.filters input {
  min-width: 280px;
}
.filters button {
  background: #1688e7;
  color: #fff;
  border-color: #1688e7;
  cursor: pointer;
}
.nodecard {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 20px;
}
.nodecard:hover {
  border-color: #1688e7;
  box-shadow: 0 8px 24px #16324a14;
}
.detail {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 25px;
  margin-top: 18px;
}
.hash {
  word-break: break-all;
  color: #6f7f8f;
}
.detailgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.detailgrid article {
  padding: 14px;
  background: #f7f9fb;
  border-radius: 9px;
}
.detailgrid small,
.detailgrid strong {
  display: block;
}
.detailgrid strong {
  margin-top: 6px;
  word-break: break-word;
}
.back {
  color: #1688e7;
  text-decoration: none;
}
.alerts {
  display: grid;
  gap: 12px;
}
.alerts article {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-left: 4px solid #e3a321;
  border-radius: 10px;
  padding: 17px;
}
.alerts p {
  margin: 4px 0;
}
.alerts .empty {
  border-left-color: #16ad74;
}
aside footer {
  position: absolute;
  bottom: 28px;
}
aside i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #19c787;
  border-radius: 50%;
  margin-right: 8px;
}
main {
  margin-left: 240px;
  padding: 36px;
  max-width: 1600px;
}
header p {
  font-size: 9px;
  letter-spacing: 2px;
  color: #718092;
  font-weight: 800;
  margin: 0;
}
h1 {
  margin: 5px 0;
}
header span,
small {
  color: #778696;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.stats article,
.nodes article,
.table {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
}
.stats article {
  padding: 18px;
  color: #7a8998;
  font-size: 9px;
  letter-spacing: 1px;
}
.stats strong {
  display: block;
  color: #182535;
  font-size: 28px;
  margin-top: 6px;
}
.nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.nodes article {
  padding: 20px;
}
.nodes h3 {
  margin: 9px 0 3px;
}
.pill {
  font-size: 9px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 12px;
}
.ok {
  background: #e4f7ef;
  color: #138b61;
}
.ko {
  background: #feeaea;
  color: #d94848;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}
dt {
  color: #7c8995;
  font-size: 10px;
}
dd {
  margin: 2px 0 12px;
  font-weight: 700;
}
.table {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #edf0f3;
  white-space: nowrap;
}
th {
  font-size: 9px;
  color: #7d8b99;
  background: #f8fafc;
}
code {
  font-size: 11px;
}
@media (max-width: 750px) {
  .filters {
    flex-direction: column;
  }
  .filters input {
    min-width: 0;
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  aside {
    position: relative;
    width: 100%;
    height: auto;
  }
  .brand {
    border: 0;
    padding: 0;
  }
  nav,
  aside footer {
    display: none;
  }
  main {
    margin: 0;
    padding: 20px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Definitive high-contrast overrides */
html body {
  background-color: #07111d !important;
  color: #c9d9e6 !important;
}
body main {
  background: transparent !important;
}
main header h1,
main h2,
main h3,
.detail h2,
.nodecard h3 {
  color: #f1f8fc !important;
}
main header span,
main header p,
.back,
.hash,
.nodecard small,
.detail small {
  color: #8fa6b8 !important;
}
.detail,
.nodecard,
.stats article,
.table,
.alerts article {
  background: linear-gradient(145deg, #102232, #091826) !important;
  border-color: #21516c !important;
  color: #c9d9e6 !important;
}
.detailgrid article {
  background: #0b1b29 !important;
  border: 1px solid #183d55 !important;
  color: #c9d9e6 !important;
}
.detailgrid article small {
  color: #7892a6 !important;
}
.detailgrid article strong,
.detail strong,
.nodecard strong,
.stats strong {
  color: #e8f7ff !important;
  opacity: 1 !important;
}
.detail .hash {
  color: #a6bccb !important;
}
.pill.ok {
  background: #083b31 !important;
  color: #43e6ad !important;
}
.pill.ko {
  background: #40191f !important;
  color: #ff8994 !important;
}
