:root {
  --bg: #0f1115;
  --panel: #181b22;
  --border: #272b34;
  --text: #e6e8ec;
  --muted: #8b929e;
  --accent: #5b8cff;
  --error: #ff6b6b;
  --ok: #4cd09a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 18px; color: var(--text); }
.nav-links a { margin-left: 18px; }
.container { width: 100%; max-width: 640px; margin: 40px auto; padding: 0 20px; flex: 1; }
h1 { font-size: 24px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
input[type=email], input[type=password], input[type=text], textarea {
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.error { color: var(--error); font-size: 13px; margin: 0; min-height: 1em; }
.ok { color: var(--ok); font-size: 13px; margin: 0; }
.hidden { display: none; }
.row { display: flex; gap: 10px; align-items: center; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); }
.badge.warn { color: var(--error); border-color: var(--error); }
.badge.good { color: var(--ok); border-color: var(--ok); }
kbd { background: #0d0f14; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }

/* forum */
.list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.item { text-decoration: none; color: var(--text); }
.item:hover { border-color: var(--accent); text-decoration: none; }
.btn-link { display: inline-block; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.btn-link:hover { filter: brightness(1.08); text-decoration: none; }
.post .post-meta { font-size: 13px; margin-bottom: 4px; }
.post-body { line-height: 1.6; }
.post-body p:first-child { margin-top: 0; }
.post-body p:last-child { margin-bottom: 0; }
.post-body pre { background: #0d0f14; border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; }
.post-body code { background: #0d0f14; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.post-body pre code { background: none; padding: 0; }
.post-body blockquote { border-left: 3px solid var(--border); margin: 8px 0; padding-left: 12px; color: var(--muted); }
.post-body img { max-width: 100%; }
.row form { margin: 0; }
