* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  background: #0a0c10;
  color: #e6e9ef;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.grid {
  flex: 1;
  display: grid;
  gap: 8px;
  padding: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-content: start;
}

.card {
  background: #11141a;
  border: 1px solid #1d222c;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b93a3;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.big {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.bigrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gold {
  color: #f4b13e;
}
.sub {
  font-size: 11px;
  color: #8b93a3;
  margin: 2px 0 6px;
}

.rows {
  margin-top: 4px;
}
.vrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 2.5px 0;
  font-variant-numeric: tabular-nums;
}
.vname {
  color: #9aa3b5;
  flex: 0 0 auto;
  min-width: 96px;
}
.vval {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-left: auto;
  text-align: right;
}
.vsub {
  color: #667086;
  font-size: 11px;
  min-width: 84px;
  text-align: right;
  font-family: ui-monospace, Menlo, monospace;
}
.vbar {
  flex: 1;
  height: 5px;
  background: #1c2028;
  border-radius: 3px;
  overflow: hidden;
}
.vbar i {
  display: block;
  height: 100%;
  background: #f4b13e;
  border-radius: 3px;
}

.pos {
  color: #34d17d;
}
.neg {
  color: #f0616d;
}

.subhead {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1d222c;
}

canvas {
  width: 100%;
  height: 34px;
  display: block;
  margin: 4px 0 2px;
}

/* SIGNALE-Karte */
#quad {
  height: 172px;
  margin: 2px 0 6px;
  background: #0d1015;
  border-radius: 6px;
}
.sigrow .vname {
  min-width: 92px;
}
.lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #3a4152;
}
.lamp.g {
  background: #34d17d;
}
.lamp.y {
  background: #f4b13e;
}
.lamp.r {
  background: #f0616d;
}
.lamp.n {
  background: #55607a;
}
.sigstate {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: #9aa3b5;
}
.sigstate.g {
  color: #34d17d;
}
.sigstate.y {
  color: #f4b13e;
}
.sigstate.r {
  color: #f0616d;
}
.sigstate.n {
  color: #9aa3b5;
}

.dots {
  display: inline-flex;
  gap: 4px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a4152;
  display: inline-block;
}
.dots i.on {
  background: #34d17d;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px 8px;
  font-size: 10.5px;
  color: #667086;
  font-variant-numeric: tabular-nums;
}
