:root {
  color-scheme: light;
  --cc-bg: #ffffff;
  --cc-text: #49635e;
  --cc-muted: #82958f;
  --cc-faint: #a2b2ae;
  --cc-accent: #03b79b;
  --cc-up: #13a66f;
  --cc-down: #e54b59;
  --cc-grid: rgba(19, 61, 54, 0.065);
  --cc-divider: rgba(19, 61, 54, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--cc-bg);
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

button { font: inherit; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  letter-spacing: 0;
}

.chart-empty {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--cc-muted);
  font-size: 12px;
}

.chart-empty.is-visible { display: flex; }

.chart-empty.is-loading::before {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(3, 183, 155, 0.16);
  border-top-color: var(--cc-accent);
  border-radius: 50%;
  content: "";
  animation: cc-chart-spin 0.8s linear infinite;
}

@keyframes cc-chart-spin {
  to { transform: rotate(360deg); }
}
