:root {
  --bg: #070d18;
  --card: rgba(17, 26, 43, 0.9);
  --muted: #93a4c7;
  --text: #e9efff;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #5b8cff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(91,140,255,0.22), transparent 60%),
    radial-gradient(800px 500px at 100% 15%, rgba(255,91,110,0.14), transparent 60%),
    var(--bg);
  color: var(--text);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(10px);
  width: 100%;
}
.brand { font-weight: 800; letter-spacing: 0.2px; }
.headerActions { display: flex; gap: 10px; align-items: center; }
.nav { display: flex; gap: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.container { max-width: 1400px; margin: 24px auto; padding: 0 22px; }
.hero { margin-bottom: 14px; }
.hero h1 { margin: 0 0 8px; line-height: 1.15; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: 360px 1fr; gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row > * { min-width: 0; }
.h2 { margin: 0; font-size: 18px; }
.h3 { margin: 18px 0 10px; font-size: 14px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 140, 255, 0.5);
  background: rgba(91, 140, 255, 0.15);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.btn.secondary {
  border-color: var(--border);
  background: rgba(255,255,255,0.06);
}

.latestWrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.latestMeta { font-size: 12px; color: var(--muted); }

.list { display: grid; gap: 8px; margin-top: 12px; }
.item {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.item:hover { background: rgba(255,255,255,0.06); }
.item.active { border-color: rgba(91,140,255,0.55); background: rgba(91,140,255,0.10); }
.item .title { font-weight: 700; }
.item .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.tableWrap { overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
th { position: sticky; top: 0; background: rgba(17,26,43,0.98); }
td { overflow-wrap: anywhere; word-break: break-word; }

.markdown {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(7,13,24,0.35);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

/* Mobile improvements */
.mobileOnly { display: none; }
.drawer.hidden { display: none; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.drawerBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.drawerPanel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 420px;
  max-width: 85vw;
  background: rgba(7, 13, 24, 0.96);
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow: auto;
  backdrop-filter: blur(10px);
}

.cards { display: none; margin-top: 10px; gap: 10px; }
.releaseCard {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.releaseMeta { display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 13px; }
.kv .k { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.pill.on { border-color: rgba(91,140,255,0.55); color: var(--text); background: rgba(91,140,255,0.10); }

@media (max-width: 900px) {
  .container { margin: 16px auto; padding: 0 16px; }
  .hero h1 { font-size: 22px; }
  .row { flex-wrap: wrap; }
  .appsPane { display: none; }
  .mobileOnly { display: inline-flex; }
}

@media (max-width: 720px) {
  .tableWrap { display: none; }
  .cards { display: grid; }
  table { min-width: 0; }
}
