:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #f4f7f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f7f8;
}

a { color: inherit; }

.topbar {
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid #dce4e7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span { display: grid; gap: 2px; }
.brand strong { color: #0c439e; font-size: 18px; }
.brand small { color: #53616b; font-size: 12px; }

.environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #315144;
  font-size: 12px;
  font-weight: 700;
}

.environment i,
.status-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a36a;
  box-shadow: 0 0 0 4px #daf3e7;
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #087a62;
  font-size: 11px;
  font-weight: 800;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 48px; line-height: 1.1; letter-spacing: 0; }
.overview-copy > p:last-child { max-width: 720px; margin-bottom: 0; color: #596770; font-size: 16px; line-height: 1.7; }

.operational-status {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #eaf7f1;
  border: 1px solid #b9dfcf;
  border-radius: 6px;
}

.operational-status div { display: grid; gap: 3px; }
.operational-status strong { color: #087253; font-size: 16px; }
.operational-status small { color: #527067; }

.metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid #dce4e7;
  border-radius: 6px;
}

.metrics div { min-width: 0; padding: 20px 22px; border-right: 1px solid #e2e8ea; }
.metrics div:last-child { border-right: 0; }
.metrics dt { color: #68767e; font-size: 12px; font-weight: 700; }
.metrics dd { margin: 7px 0 5px; color: #0e3f78; font-size: 28px; font-weight: 750; overflow-wrap: anywhere; }
.metrics span { color: #7a878e; font-size: 12px; }

.outputs { padding-top: 42px; }
.output-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #56666e;
  font-size: 11px;
  font-weight: 750;
}
.output-state i { width: 8px; height: 8px; border-radius: 50%; background: #9aa7ac; }
.output-state.live { color: #087253; }
.output-state.live i { background: #16a36a; }
.output-state.stale { color: #8a650d; }
.output-state.stale i { background: #d59a14; }
.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.output-project {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d7e1e4;
  border-radius: 6px;
}
.output-project > header {
  min-height: 70px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e1e7e9;
}
.output-project > header div { min-width: 0; display: grid; gap: 4px; }
.output-project > header strong { font-size: 14px; overflow-wrap: anywhere; }
.output-project > header small { color: #75838a; font-size: 10px; }
.output-project > header > span { color: #087253; font-size: 10px; font-weight: 800; }
.output-project dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.output-project dl div { min-width: 0; padding: 14px 18px; border-right: 1px solid #e7ecee; border-bottom: 1px solid #e7ecee; }
.output-project dl div:nth-child(3n) { border-right: 0; }
.output-project dl div:nth-last-child(-n+3) { border-bottom: 0; }
.output-project dt { color: #718087; font-size: 10px; font-weight: 700; }
.output-project dd { margin: 6px 0 0; color: #123f75; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.output-project > footer {
  min-height: 48px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #77858c;
  font-size: 9px;
  border-top: 1px solid #e1e7e9;
}
.output-project > footer strong { color: #087253; font-size: 9px; }
.output-empty {
  min-height: 110px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #d7e1e4;
  border-radius: 6px;
}
.output-empty strong { font-size: 14px; }
.output-empty span { color: #6d7b82; font-size: 12px; }

.topology { padding: 42px 0 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 0; font-size: 22px; }
.section-heading > span { color: #708087; font-size: 12px; }

.pipeline {
  display: grid;
  grid-template-columns: 1.25fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 10px;
}

.source-stack { display: grid; gap: 10px; }
.node {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d7e1e4;
  border-radius: 6px;
}

.node div { min-width: 0; display: grid; gap: 6px; }
.node strong { font-size: 14px; overflow-wrap: anywhere; }
.node small { color: #69777f; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.node-code {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #0c439e;
  font-size: 12px;
  font-weight: 800;
}

.node-code.wind { background: #1659b7; }
.node-code.solar { color: #72530a; background: #f6c85b; }
.node-code.agent { background: #087a62; }
.node-code.os { background: #166f72; }
.node-code.owner { background: #16428f; }
.flow-arrow { color: #1d8a6c; font-size: 22px; text-align: center; }

.boundary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px 22px;
  padding: 14px 18px;
  color: #485861;
  background: #eef2f3;
  border-top: 1px solid #d4dde0;
  border-bottom: 1px solid #d4dde0;
  font-size: 12px;
}

.boundary strong { color: #1e303a; }
.boundary span::before { content: "✓"; margin-right: 6px; color: #07805f; font-weight: 800; }

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #728087;
  font-size: 11px;
}

footer nav { display: flex; gap: 18px; }
footer a { color: #0c5eaa; font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .overview { align-items: stretch; flex-direction: column; gap: 22px; }
  .operational-status { min-width: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid #e2e8ea; }
  .pipeline { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .output-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  main { width: min(100% - 28px, 1240px); padding-top: 28px; }
  h1 { font-size: 32px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; border-bottom: 1px solid #e2e8ea; }
  .metrics div:last-child { border-bottom: 0; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .output-project dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .output-project dl div:nth-child(3n) { border-right: 1px solid #e7ecee; }
  .output-project dl div:nth-child(2n) { border-right: 0; }
  .output-project dl div:nth-last-child(-n+3) { border-bottom: 1px solid #e7ecee; }
  .output-project dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .output-project > footer { align-items: flex-start; }
  .boundary { align-items: flex-start; flex-direction: column; }
}
