:root {
  --bg-0: #0f0f0f;
  --bg-1: #181818;
  --bg-2: #222222;
  --border: #2c2c2c;
  --text-0: #f0f0f0;
  --text-1: #c8c8c8;
  --text-2: #909090;
  --accent: #4e9bff;
  --up: #d04646;
  --down: #2a8fd8;
}

html,
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tile {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.tile-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
}

.tile-body {
  padding: 0.75rem 1rem;
}

.muted {
  color: var(--text-2);
}

.pct-up {
  color: var(--up);
}

.pct-down {
  color: var(--down);
}

.tradingview-widget-container {
  width: 100%;
}

.placeholder-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-2);
  font-size: 0.9rem;
}

.mover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.mover-row:last-child {
  border-bottom: none;
}

.mover-name {
  font-weight: 500;
}

.mover-price {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.mover-pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: right;
}

.news-row {
  display: block;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-0);
  text-decoration: none;
}

.news-row:last-child {
  border-bottom: none;
}

.news-row:hover {
  background: var(--bg-2);
}

.news-meta {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

.tab-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 0.35rem 0.9rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab-button.active {
  background: var(--bg-2);
  color: var(--text-0);
  border-color: var(--text-2);
}

.tab-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
