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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.widget {
  width: 80vw;
  text-align: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

h1 {
  font-size: 1rem;
  font-weight: 600;
}

#status {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 500;
}

.connected    { background: #065f46; color: #6ee7b7; }
.connecting   { background: #78350f; color: #fbbf24; }
.disconnected { background: #7f1d1d; color: #fca5a5; }
.error        { background: #7f1d1d; color: #fca5a5; }

.chart-container {
  position: relative;
  height: 50vh;
  background: #1e293b;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.latest-value {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3b82f6;
  padding: 0.4rem;
}
