:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --pot: #f0883e;
  --good: #3fb950;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  background: radial-gradient(ellipse at top, #1a2332 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.badge {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.pot {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pot);
  letter-spacing: 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: #484f58;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.stack {
  font-size: 1.5rem;
  font-weight: 600;
}

.committed {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.status {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status .dot.ok {
  background: var(--good);
  box-shadow: 0 0 8px rgba(63, 185, 80, 0.6);
}

.status .dot.err {
  background: #f85149;
}

button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0d1117;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

button:hover,
.btn:hover {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.panel label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.panel input,
.panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.admin-preview {
  width: 100%;
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
  object-fit: contain;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mono {
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--muted);
}
