:root {
  --bg: #0b1222;
  --panel: #111a2e;
  --line: #26324e;
  --text: #dce6ff;
  --muted: #92a4cd;
  --accent: #63b3ff;
  --ok: #4ade80;
  --fail: #fb7185;
  --warn: #fbbf24;
  --blue: #63b3ff;
  --purple: #c084fc;
  --red: #fb7185;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #1b315d 0%, var(--bg) 42%);
  color: var(--text);
}

.layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-actions { display: flex; gap: 8px; }

h1 { margin: 0; font-size: 24px; color: #9ad2ff; }
.muted { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #355186;
  background: #1b2d52;
  color: #d9ebff;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}
.btn:hover { background: #26427a; }
.btn.ghost { background: transparent; }

/* ── Tab bar ── */

.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Version cards ── */

.version-card {
  background: linear-gradient(180deg, rgba(25,39,67,0.88), rgba(14,23,42,0.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.version-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.version-tag {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.version-date {
  font-size: 13px;
  color: var(--muted);
}

.version-card.unreleased .version-tag {
  color: var(--muted);
  font-style: italic;
}

/* ── Change sections ── */

.change-section { margin-bottom: 14px; }
.change-section:last-child { margin-bottom: 0; }

.change-type {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.change-type.added      { color: #0b1222; background: var(--ok); }
.change-type.changed    { color: #0b1222; background: var(--blue); }
.change-type.deprecated { color: #0b1222; background: var(--warn); }
.change-type.removed    { color: #0b1222; background: var(--red); }
.change-type.fixed      { color: #0b1222; background: var(--warn); }
.change-type.security   { color: #0b1222; background: var(--purple); }

.change-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.change-list li {
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.change-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── Empty / error ── */

.error-msg {
  color: var(--fail);
  padding: 20px;
  text-align: center;
}
