:root {
  --bg:        #07090a;
  --panel-bg:  #0b0e0c;
  --border:    #172017;
  --text:      #7aaa7a;
  --muted:     #2e422e;
  --green:     #73bf69;
  --blue:      #5794f2;
  --amber:     #ffb545;
  --mono:      'Courier New', 'Lucida Console', monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #080b08;
}

.header-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 10px rgba(115, 191, 105, 0.5);
}

.header-time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: auto;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.status-dot.ok  { background: var(--green); box-shadow: 0 0 7px var(--green); }
.status-dot.err { background: #e05050;      box-shadow: 0 0 7px #e05050; }

/* Layout */

main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px;
}

.panel-row {
  display: flex;
  gap: 2px;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.panel.half { flex: 1; min-width: 0; }

.panel-label {
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px 4px;
  border-bottom: 1px solid var(--border);
}

/* Canvas (seismograph) */

canvas {
  display: block;
  width: 100%;
  height: 195px;
  border-radius: 3px;
  cursor: crosshair;
}

/* Meter container */

.meter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px 24px;
}

.meter-unit {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Odometer */

.odometer {
  display: flex;
  align-items: stretch;
  gap: 3px;
  background: #060706;
  border: 2px solid #1c221c;
  border-radius: 6px;
  padding: 5px 8px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.8),
    inset 0 1px 4px rgba(0,0,0,0.7),
    0 0 0 1px #0f140f;
}

.odo-digit {
  position: relative;
  width: 40px;
  height: 60px;
  overflow: hidden;
  background: #0a0d0a;
  border-radius: 4px;
  border: 1px solid #1a201a;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.9),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

/* top/bottom fade simulates the drum curve */
.odo-digit::before,
.odo-digit::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  z-index: 2;
  pointer-events: none;
}
.odo-digit::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(5,8,5,0.95) 0%, transparent 100%);
}
.odo-digit::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(5,8,5,0.95) 0%, transparent 100%);
}

.odo-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.odo-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-size: 44px;
  font-weight: 700;
  font-family: var(--mono);
  color: #ddeedd;
  text-shadow:
    0 0 12px rgba(180, 230, 180, 0.35),
    0 1px 0 rgba(255,255,255,0.08);
  user-select: none;
  letter-spacing: -0.02em;
}

.odo-sep {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  width: 18px;
  font-size: 40px;
  font-weight: 700;
  color: #3a503a;
  font-family: var(--mono);
  user-select: none;
}
