:root {
  --bg: #020604;
  --panel: #06110B;
  --ink: #D7FFE2;
  --soft: #9BFFB1;
  --muted: #5EA870;
  --green: #00FF66;
  --green-2: #66FF99;
  --green-dark: #123A21;
  --border: #00B84A;
  --bad: #E6FFE9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 8px;
  display: grid;
  grid-template-rows: 76px 1fr 62px;
  gap: 8px;
  outline: none;
}

#viz {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 3px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  background: rgba(3, 16, 8, 0.72);
}

.eyebrow {
  color: var(--green-2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel {
  position: relative;
  z-index: 1;
  min-height: 0;
  border: 3px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  background: rgba(6, 17, 11, 0.22);
}

.rows {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: 0;
}

.row {
  min-height: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--green-dark);
  border-radius: 0;
  padding: 4px 0;
  background: rgba(2, 6, 4, 0.08);
  overflow: hidden;
}

.row:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.label::before {
  content: ">";
  margin-right: 5px;
  color: var(--green);
}

.value {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.08;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.value.good {
  color: var(--green);
}

.value.dim {
  color: var(--muted);
}

.value.bad {
  color: var(--bad);
}

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  border-radius: 4px;
  background: rgba(3, 16, 8, 0.72);
  color: var(--soft);
  font-size: 17px;
  font-weight: 800;
}
