:root {
  --bg: #0b0e14;
  --surface: #131720;
  --border: #232838;
  --text-primary: #e4e7ec;
  --text-muted: #6b7280;
  --success-bg: #113224;
  --success-text: #3ecf8e;
  --danger-bg: #3a1712;
  --danger-text: #f0553c;
  --warning-bg: #3a2c0f;
  --warning-text: #e8b34d;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  margin: 0;
  padding: 24px;
}

.container { max-width: 1100px; margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

h1 { font-size: 18px; font-weight: 500; margin: 0; }
.subtitle { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

.badges { display: flex; gap: 8px; }

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-muted { background: var(--surface); color: var(--text-muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}

th, td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  text-align: center;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 12px;
  background: var(--surface);
}

td:first-child, th:first-child { text-align: left; font-family: var(--font-sans); font-weight: 500; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  font-weight: 600;
}
.chip-alta { background: var(--success-bg); color: var(--success-text); }
.chip-baixa { background: var(--danger-bg); color: var(--danger-text); }
.chip-doji { background: var(--surface); color: var(--text-muted); }

.spark { display: inline-block; width: 5px; margin-right: 2px; vertical-align: bottom; border-radius: 1px; }
.spark-alta { background: var(--success-text); height: 16px; }
.spark-baixa { background: var(--danger-text); height: 8px; }

.loading, .error { color: var(--text-muted); font-family: var(--font-sans); }
.error { color: var(--danger-text); }

.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
