/* OpenSI Burn Dashboard — minimal dark UI */
:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #1a222d;
  --border: #243041;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #5b8cff;
  --accent-dim: #3d5f9e;
  --bar: #4f7df5;
  --bar-track: #1e2836;
  --link: #7eb0ff;
  --ok: #3ecf8e;
  --radius: 10px;
  --font: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header {
  margin-bottom: 1.75rem;
}

header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.note {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--muted);
}

.note strong {
  color: var(--text);
  font-weight: 550;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 550;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(91, 140, 255, 0.06);
}

.token {
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.pct {
  color: var(--ok);
  font-family: var(--mono);
}

.chain {
  color: var(--muted);
  font-size: 0.85rem;
}

.track a {
  font-size: 0.85rem;
}

/* Bar chart */
.chart {
  padding: 1rem 1.1rem 1.15rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 4.2rem;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.88rem;
}

.bar-track {
  height: 1.15rem;
  background: var(--bar-track);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--bar));
  border-radius: 4px;
  min-width: 0;
}

.bar-val {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ok);
  text-align: right;
}

.chart-foot {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Mech list */
.mech {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mech li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.mech li:last-child {
  border-bottom: none;
}

.mech .tk {
  font-family: var(--mono);
  font-weight: 600;
}

.mech .desc {
  color: var(--muted);
}

footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin: 0.35rem 0;
}

@media (max-width: 640px) {
  .wrap {
    padding: 1.15rem 0.85rem 2.5rem;
  }

  header h1 {
    font-size: 1.3rem;
  }

  th,
  td {
    padding: 0.6rem 0.65rem;
    font-size: 0.82rem;
  }

  .bar-row {
    grid-template-columns: 3.2rem 1fr 3.6rem;
    gap: 0.45rem;
  }

  .mech li {
    grid-template-columns: 3.5rem 1fr;
  }
}
