:root {
  --bg: #0f1419;
  --panel: #161f2a;
  --text: #e8eef4;
  --muted: #8b98a5;
  --accent: #3d9eff;
  --accent2: #c9a227;
  --border: #2a3542;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.tag { color: var(--muted); font-size: 0.85rem; }

.main { flex: 1; padding: 1.5rem; max-width: 960px; margin: 0 auto; width: 100%; }
.foot { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); }

.hero h1 { font-size: 1.65rem; margin-top: 0; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 42rem; }

.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.card h3 { margin-top: 0; font-size: 1rem; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #041018 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}
.cta:hover { filter: brightness(1.08); }

.muted { color: var(--muted); font-size: 0.9rem; }
.err { color: #ffb4b4; margin: 0 0 0.75rem; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }
input[type="file"] { color: var(--text); }

.kv { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); margin: 0; font-size: 0.85rem; }
.kv dd { margin: 0; }

.list { padding-left: 1.2rem; }
.list.tight li { margin: 0.25rem 0; }

pre.raw {
  background: #0a0e12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow: auto;
  max-height: 22rem;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

details summary { cursor: pointer; color: var(--muted); }
