:root {
  --green: #168c50;
  --green-dark: #0f6f3e;
  --green-soft: #eaf7ef;
  --green-faint: #f4fbf7;
  --ink: #0c1320;
  --text: #2f3b4b;
  --muted: #778190;
  --line: #e6eaee;
  --panel: #ffffff;
  --page: #f7f9fa;
  --amber: #f5b31b;
  --red: #ee4242;
  --shadow: 0 10px 32px rgba(18, 31, 49, .075);
  --shadow-soft: 0 5px 18px rgba(18, 31, 49, .055);
  --radius: 18px;
  --max-width: 1510px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(22, 140, 80, .025), transparent 22%),
    linear-gradient(180deg, #fafbfc 0, #f5f7f8 60%, #f8faf9 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #edf0f2;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .025);
}

.header-inner {
  max-width: var(--max-width);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-green { color: var(--green); }
.brand-black { color: #20242b; }

.main-nav {
  height: 66px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
}
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #151a22;
  transition: color .18s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--green);
}

.language-switch {
  display: flex;
  gap: 6px;
}
.lang-btn {
  min-width: 39px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9dee4;
  border-radius: 7px;
  background: #fff;
  color: #4a5361;
  cursor: pointer;
  transition: all .18s ease;
}
.lang-btn.active {
  border-color: rgba(22, 140, 80, .45);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(22, 140, 80, .08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid #dfe4e8;
  border-radius: 9px;
  background: #fff;
  padding: 9px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #232a34; border-radius: 2px; }

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 26px 34px;
}

.panel {
  background: rgba(255,255,255,.97);
  border: 1px solid #e9ecef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, .95fr);
  align-items: center;
  gap: 54px;
  margin-bottom: 28px;
}
.intro-copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.intro-copy > p {
  margin: 0;
  font-size: 17px;
  color: #697485;
}
.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  min-height: 20px;
}
.live-dot, .tiny-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.live-dot { box-shadow: 0 0 0 5px rgba(22,140,80,.10); }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #bfe5ce;
  background: #effaf3;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}
.online-pill.offline {
  background: #fff1f1;
  border-color: #f4c5c5;
  color: #b62929;
}
.online-pill.degraded {
  background: #fff8e9;
  border-color: #f1ddb1;
  color: #9a6810;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.node-strip {
  min-height: 92px;
  padding: 18px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.node-strip-item {
  min-width: 0;
  padding: 0 26px;
  border-right: 1px solid #e8ebee;
}
.node-strip-item:last-child { border-right: 0; }
.node-strip-item span {
  display: block;
  margin-bottom: 7px;
  color: #687484;
  font-size: 13px;
}
.node-strip-item strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.metric-card {
  min-height: 96px;
  padding: 16px 17px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f0f8f3;
  border: 1px solid #d8ebdf;
}
.metric-icon svg {
  width: 27px;
  height: 27px;
  fill: var(--green);
}
.metric-label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: #555f6d;
}
.metric-value {
  display: block;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.metric-value-compact { font-size: 21px; }
.metric-sub {
  min-height: 18px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #747e8d;
  font-size: 12px;
}
.metric-sub .tiny-dot { width: 7px; height: 7px; }

.dashboard-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}
.top-dashboard-grid { grid-template-columns: 1.55fr .78fr 1.32fr; }
.bottom-dashboard-grid { grid-template-columns: 1.25fr 1.2fr 1.3fr; }
.dashboard-card { min-width: 0; overflow: hidden; }
.card-heading {
  min-height: 54px;
  padding: 16px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}
.heading-with-icon { display: flex; align-items: center; gap: 10px; }
.heading-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.heading-icon svg { width: 20px; height: 20px; fill: var(--green); }
.heading-icon.dark svg { fill: #24303c; }

.period-tabs { display: flex; gap: 5px; }
.period-tab {
  height: 30px;
  min-width: 42px;
  border-radius: 7px;
  border: 1px solid #dde2e6;
  background: #fff;
  color: #5d6674;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.period-tab.active {
  border-color: #58b881;
  color: var(--green-dark);
  background: #f4fcf7;
  box-shadow: inset 0 0 0 1px rgba(22,140,80,.06);
}
.auto-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dark);
  font-size: 12px;
}

.activity-card { min-height: 270px; }
.chart-wrap {
  position: relative;
  height: 218px;
  padding: 3px 14px 12px;
}
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid { stroke: #edf0f2; stroke-width: 1; }
.chart-axis { fill: #7a8491; font-size: 10px; }
.chart-area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--green); stroke: #fff; stroke-width: 1.2; }
.loading-state, .loading-cell { color: #89919c; font-size: 13px; }
.loading-state { height: 100%; display: grid; place-items: center; }

.peer-health-card { min-height: 270px; }
.donut-row {
  padding: 14px 20px 14px;
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 18px;
  align-items: center;
}
.donut {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0deg 360deg, #edf0f2 360deg 360deg);
}
.donut-hole {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef1f3;
}
.donut-hole strong { font-size: 25px; letter-spacing: -.04em; }
.donut-hole span { margin-top: 2px; color: #7a8492; font-size: 11px; }
.donut-legend { display: grid; gap: 15px; }
.donut-legend > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: #5e6876; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.green { background: var(--green); }
.legend-dot.amber { background: var(--amber); }
.legend-dot.red { background: var(--red); }
.donut-legend strong { color: #17202b; }
.peer-total { margin: 0 18px; padding: 12px 2px 14px; border-top: 1px solid #edf0f2; color: #697381; font-size: 12px; }

.latest-card { min-height: 270px; }
.spots-table-wrap, .data-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.spots-table th, .spots-table td { padding: 10px 16px; border-bottom: 1px solid #edf0f2; text-align: left; white-space: nowrap; }
.spots-table th { padding-top: 6px; color: #8b929b; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.spots-table td { color: #475261; font-size: 12px; }
.spots-table td:nth-child(2) { color: #131b25; font-weight: 700; }
.spots-table tr:last-child td { border-bottom: 0; }
.band-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--green-soft);
  border: 1px solid #cce9d6;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 11px;
}
.spot-main { display: flex; align-items: center; gap: 8px; }
.spot-comment { display: block; max-width: 130px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; color: #8a929d; font-size: 10px; font-weight: 400; }

.peers-table-card, .node-info-card { min-height: 255px; }
.updated-text { color: #9098a2; font-size: 11px; }
.data-table th, .data-table td { padding: 12px 18px; border-bottom: 1px solid #edf0f2; text-align: left; white-space: nowrap; }
.data-table th { color: #8a929d; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { color: #3f4a59; font-size: 12px; }
.data-table td:first-child { color: #121a24; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.status-inline { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.status-inline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-inline.online { color: var(--green-dark); }
.status-inline.offline { color: #b62f2f; }
.coverage-muted { color: #8b939d; }

.node-info-content {
  display: grid;
  grid-template-columns: 1fr 150px;
  min-height: 192px;
}
.node-info-list { margin: 0; padding: 3px 0 14px 18px; }
.node-info-list > div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; padding: 5px 0; }
.node-info-list dt { color: #687382; font-size: 11px; }
.node-info-list dd { margin: 0; color: #16202c; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.tower-visual {
  position: relative;
  overflow: hidden;
  border-left: 1px solid #edf0f2;
  background: linear-gradient(180deg, #fbfdfc, #f1f6f3);
}
.tower-visual img {
  position: absolute;
  width: 360px;
  max-width: none;
  height: 230px;
  object-fit: cover;
  object-position: 48% 54%;
  right: -102px;
  bottom: -20px;
  opacity: .86;
  filter: saturate(.8) contrast(.96);
}


.error-panel {
  margin-top: 20px;
  padding: 14px 18px;
  border-color: #f0caca;
  background: #fff8f8;
  color: #a72e2e;
  font-size: 13px;
}
.error-panel strong { margin-right: 8px; }

.site-footer { border-top: 1px solid #ebeff1; background: rgba(255,255,255,.6); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 26px 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  color: #7b8490;
  font-size: 13px;
}
.footer-inner a:hover { color: var(--green); }
.footer-divider { color: #a9afb7; }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .top-dashboard-grid { grid-template-columns: 1.35fr .85fr; }
  .latest-card { grid-column: 1 / -1; }
  .bottom-dashboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto auto 1fr auto; }
  .nav-toggle { display: block; grid-column: 3; justify-self: end; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    height: auto;
    padding: 10px;
    border: 1px solid #e4e8eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 44px; padding: 0 14px; border-radius: 9px; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--green-soft); }
  .intro-row { grid-template-columns: 1fr; gap: 22px; }
  .node-strip { max-width: 760px; }
}

@media (max-width: 800px) {
  .page-wrap { padding: 28px 16px 28px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand { font-size: 26px; }
  .language-switch { gap: 4px; }
  .lang-btn { min-width: 34px; height: 32px; padding: 0 7px; font-size: 12px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .top-dashboard-grid, .bottom-dashboard-grid { grid-template-columns: 1fr; }
  .latest-card { grid-column: auto; }
  .node-strip { grid-template-columns: repeat(2, 1fr); padding: 8px 0; }
  .node-strip-item { min-height: 70px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid #edf0f2; }
  .node-strip-item:nth-child(2) { border-right: 0; }
  .node-strip-item:nth-child(3), .node-strip-item:nth-child(4) { border-bottom: 0; }
  .donut-row { grid-template-columns: 160px 1fr; }
  .node-info-content { grid-template-columns: 1fr 130px; }
}

@media (max-width: 560px) {
  .nav-toggle { grid-column: 2; }
  .language-switch { grid-column: 3; justify-self: end; }
  .header-inner { grid-template-columns: auto auto 1fr; }
  .intro-copy h1 { font-size: 36px; }
  .intro-copy > p { font-size: 15px; line-height: 1.6; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 88px; }
  .node-strip { grid-template-columns: 1fr; }
  .node-strip-item { border-right: 0; border-bottom: 1px solid #edf0f2 !important; }
  .node-strip-item:last-child { border-bottom: 0 !important; }
  .donut-row { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
  .node-info-content { grid-template-columns: 1fr; }
  .tower-visual { display: none; }
  .node-info-list { padding-right: 18px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-divider { display: none; }
}

/* --- DXC WebUI v1.1 additions --- */
.main-nav {
  gap: clamp(14px, 2vw, 34px);
}
.main-nav a {
  font-size: 14px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.insight-card {
  min-width: 0;
  min-height: 110px;
  padding: 17px 19px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
}
.insight-label {
  color: #778190;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.insight-value {
  margin-top: 7px;
  color: #111923;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.insight-value-small {
  font-size: 21px;
  letter-spacing: -.025em;
}
.insight-sub {
  margin-top: 6px;
  color: #7d8794;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peers-table-card,
.node-info-card,
.spot-sources-card {
  min-height: 255px;
}

/* Keep the complete tower illustration visible instead of cropping it off. */
.node-info-content {
  grid-template-columns: 1fr 220px;
}
.tower-visual {
  min-height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.tower-visual img {
  position: static;
  width: 100%;
  max-width: 210px;
  height: 176px;
  object-fit: contain;
  object-position: center;
  opacity: .9;
  filter: saturate(.82) contrast(.97);
}

.source-scope {
  color: #9098a2;
  font-size: 10px;
  white-space: nowrap;
}
.source-bars {
  min-height: 190px;
  padding: 2px 18px 16px;
  display: grid;
  gap: 11px;
  align-content: start;
}
.source-row {
  display: grid;
  gap: 6px;
}
.source-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.source-row-head strong {
  color: #18222e;
  font-size: 11px;
}
.source-row-head span {
  color: #7b8592;
  font-size: 10px;
  white-space: nowrap;
}
.source-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}
.source-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #71c593, var(--green));
}

.period-overview-card {
  margin-bottom: 22px;
  overflow: hidden;
}
.period-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 18px 18px;
}
.period-overview-grid > .loading-state {
  grid-column: 1 / -1;
  min-height: 150px;
}
.period-stat-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e8ecef;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff, #fafcfb);
}
.period-stat-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}
.period-stat-spots {
  display: block;
  margin-top: 13px;
  color: #111923;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}
.period-stat-caption {
  display: block;
  margin-top: 3px;
  color: #7d8794;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.period-stat-list {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
  display: grid;
  gap: 7px;
}
.period-stat-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.period-stat-list dt {
  color: #7a8491;
  font-size: 10px;
}
.period-stat-list dd {
  margin: 0;
  color: #1d2733;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .period-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spot-sources-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .main-nav a {
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  .node-info-content {
    grid-template-columns: 1fr 170px;
  }
  .tower-visual img {
    max-width: 165px;
    height: 150px;
  }
}

@media (max-width: 560px) {
  .insight-grid,
  .period-overview-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    min-height: 96px;
  }
  .source-scope {
    width: 100%;
    white-space: normal;
  }
  .node-info-content {
    grid-template-columns: 1fr;
  }
  .tower-visual {
    display: flex;
    min-height: 170px;
    border-left: 0;
    border-top: 1px solid #edf0f2;
  }
  .tower-visual img {
    max-width: 230px;
    height: 160px;
  }
}
