body { font-family: Inter, sans-serif; }

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

/* ── Status dots ── */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
  transition: background .3s;
}
.dot.active    { background: #10b981; }
.dot.detecting { background: #f59e0b; animation: blink 1s infinite; }
.dot.warning   { background: #ef4444; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ── Note display card ── */
.note-display {
  background: #0f172a;
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.note-display::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.note-display-inner { position: relative; }

.note-big {
  font-family: 'Space Mono', monospace;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  transition: color 0.15s;
}
.note-big.in-tune  { color: #10b981; }
.note-big.sharp    { color: #f59e0b; }
.note-big.flat     { color: #60a5fa; }

.octave-badge {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  color: #4b5563;
  vertical-align: super;
  font-weight: 400;
}

.swar-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.05em;
  font-family: 'Space Mono', monospace;
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-top: 2px;
}

/* ── Tuner needle ── */
.tuner-wrap {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
}
.tuner-label-flat, .tuner-label-sharp {
  position: absolute;
  top: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.tuner-label-flat  { left:  14px; color: #60a5fa; }
.tuner-label-sharp { right: 14px; color: #f59e0b; }

.needle-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
}
.tuner-cents-row {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 0.65rem;
  color: #9ca3af;
  font-family: 'Space Mono', monospace;
  margin-top: 4px;
}
.tuner-centre-mark {
  font-weight: 700;
  color: #10b981;
}

/* ── History graph ── */
.history-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: #0f172a;
  max-height: 100px;
}

tbody tr:nth-child(even) { background: #f9fafb; }
