:root {
  --f-bg: #0d1117;
  --f-panel: #161b22;
  --f-panel2: #1c2129;
  --f-border: #30363d;
  --f-text: #e6edf3;
  --f-muted: #8b949e;
  --f-accent: #58a6ff;
  --f-green: #3fb950;
  --f-orange: #d29922;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--f-bg);
  color: var(--f-text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--f-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--f-border);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem 1.25rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.05rem; color: var(--f-text);
  text-decoration: none;
}
.logo-img {
  display: block; flex-shrink: 0;
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.avatar-img {
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--f-border);
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #238636, #1f6feb);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .65rem; font-weight: 700;
}
.nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.nav a {
  padding: .35rem .65rem; border-radius: 6px; color: var(--f-muted);
  font-size: .88rem;
}
.nav a:hover, .nav a.active { background: var(--f-panel2); color: var(--f-text); text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.pill {
  font-size: .72rem; font-family: var(--f-mono);
  padding: .2rem .5rem; border-radius: 999px;
  border: 1px solid var(--f-border); color: var(--f-muted);
}
.btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border-radius: 6px;
  border: 1px solid var(--f-border);
  background: var(--f-panel); color: var(--f-text);
  font-size: .85rem; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--f-panel2); text-decoration: none; }
.btn-primary { background: #238636; border-color: #2ea043; }
.btn-primary:hover { background: #2ea043; }
.btn-ghost { background: transparent; }
.layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 1.25rem; padding: 1.25rem;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 1rem; }
  .sidebar { order: 2; }
  .topbar-inner { flex-wrap: wrap; padding: .5rem .75rem; }
  .nav { order: 3; width: 100%; }
  .topbar-right { margin-left: 0; width: 100%; justify-content: flex-end; }
  .topbar-right--stack { flex-wrap: wrap; gap: .4rem; }
}
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-side {
    display: flex; align-items: center; gap: .75rem; text-align: left;
    border-right: none; border-bottom: 1px solid var(--f-border);
    padding: .75rem 1rem;
  }
  .avatar, .avatar-img { margin: 0; width: 40px; height: 40px; }
  .thread-title { font-size: 1.15rem; }
  .thread-meta { gap: .4rem .65rem; }
  .home-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 1.5rem 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
.breadcrumb {
  font-size: .8rem; color: var(--f-muted); margin-bottom: .75rem;
}
.breadcrumb a { color: var(--f-muted); }
.thread-card {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: var(--f-panel);
  overflow: hidden;
}
.thread-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--f-border);
}
.thread-title { margin: 0 0 .5rem; font-size: 1.35rem; letter-spacing: -.02em; }
.thread-meta {
  display: flex; flex-wrap: wrap; gap: .65rem 1rem;
  font-size: .82rem; color: var(--f-muted);
}
.tag {
  display: inline-block; padding: .12rem .45rem;
  border-radius: 4px; background: #21262d;
  border: 1px solid var(--f-border);
  font-size: .75rem; color: var(--f-accent);
}
.post {
  display: grid; grid-template-columns: 72px 1fr;
  border-bottom: 1px solid var(--f-border);
}
.post:last-child { border-bottom: none; }
.post-side {
  padding: 1rem .75rem; text-align: center;
  background: var(--f-panel2);
  border-right: 1px solid var(--f-border);
}
.avatar {
  width: 44px; height: 44px; border-radius: 8px;
  margin: 0 auto .5rem;
  background: linear-gradient(145deg, #6e40c9, #1f6feb);
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}
.post-side .name { font-size: .78rem; font-weight: 600; }
.post-side .role { font-size: .68rem; color: var(--f-green); margin-top: .15rem; }
.post-body { padding: 1rem 1.15rem 1.25rem; min-width: 0; }
.post-body .guide-embed {
  --bg: #141414; --surface: #1c1c1c; --text: #e8e8e8;
  --muted: #9a9a9a; --accent: #c4b5a0; --accent-dim: #8a7f72;
  --border: #333; --code-bg: #0f0f0f; --code-text: #d4d4d4;
  --success: #7d9b76; --radius: 6px;
  --mono: var(--f-mono);
}
.post-body .guide-embed .wrap {
  max-width: none; margin: 0; padding: 0;
}
.post-body .guide-embed .page-head { margin-top: 0; }
.comments-teaser {
  padding: 1rem 1.15rem;
  background: var(--f-panel2);
  font-size: .88rem; color: var(--f-muted);
}
.comments-teaser strong { color: var(--f-text); }
.sidebar .card {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: var(--f-panel);
  margin-bottom: 1rem; overflow: hidden;
}
.card h3 {
  margin: 0; padding: .65rem .85rem;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--f-muted);
  border-bottom: 1px solid var(--f-border);
  background: var(--f-panel2);
}
.stat-grid { padding: .75rem .85rem; display: grid; gap: .5rem; }
.stat { display: flex; justify-content: space-between; font-size: .85rem; }
.stat span:last-child { font-family: var(--f-mono); color: var(--f-orange); }
.online-list {
  list-style: none; margin: 0; padding: .5rem .85rem .85rem;
  font-size: .82rem;
}
.online-list li {
  display: flex; align-items: center; gap: .5rem;
  margin: .35rem 0; color: var(--f-muted);
}
.online-list .dot { color: var(--f-green); flex-shrink: 0; line-height: 1; }
.form-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 7rem; justify-content: center; }
.home { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 2rem; }
.hero { padding: 2.5rem 0 1.5rem; }
.hero-kicker {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--f-muted); margin: 0 0 .5rem;
}
.hero h1 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; }
.hero-lead { color: var(--f-muted); margin: 0 0 1.25rem; max-width: 36em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.btn-lg { padding: .55rem 1.1rem; font-size: .95rem; }
.home-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
  margin-bottom: 2rem;
}
.stat-card {
  border: 1px solid var(--f-border); border-radius: var(--f-radius);
  background: var(--f-panel); padding: .85rem; text-align: center;
}
.stat-val { display: block; font-size: 1.35rem; font-weight: 700; font-family: var(--f-mono); color: var(--f-text); }
.stat-label { font-size: .72rem; color: var(--f-muted); text-transform: uppercase; letter-spacing: .04em; }
.featured h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--f-muted); margin: 0 0 .65rem; }
.featured-card {
  display: block; padding: 1rem 1.1rem; border-radius: var(--f-radius);
  border: 1px solid var(--f-border); background: var(--f-panel);
  color: inherit; text-decoration: none;
}
.featured-card:hover { border-color: var(--f-accent); text-decoration: none; }
.featured-card h3 { margin: .5rem 0 .35rem; font-size: 1.05rem; color: var(--f-text); }
.featured-card p { margin: 0 0 .5rem; font-size: .88rem; color: var(--f-muted); }
.featured-meta { font-size: .78rem; color: var(--f-muted); }
.featured-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; flex-wrap: wrap; }
.featured-head h2 { margin: 0; }
.featured-head a { font-size: .85rem; }
.mini-list { border: 1px solid var(--f-border); border-radius: var(--f-radius); background: var(--f-panel); overflow: hidden; }
.mini-row {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--f-border);
  color: inherit; text-decoration: none;
}
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--f-panel2); text-decoration: none; }
.mini-title { font-size: .92rem; color: var(--f-text); }
.mini-meta { font-size: .78rem; color: var(--f-muted); }
.mini-row.is-locked .mini-title { color: var(--f-muted); }
.layout--wide { max-width: 1100px; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: .75rem; }
.list-title { margin: 0; font-size: 1.35rem; flex: 1; min-width: 12rem; }
.list-search { display: flex; gap: .35rem; flex: 1; max-width: 22rem; min-width: 14rem; }
.list-search input {
  flex: 1; padding: .45rem .65rem; border-radius: 6px;
  border: 1px solid var(--f-border); background: #0d1117; color: var(--f-text);
}
.cat-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.cat {
  padding: .3rem .65rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--f-border); color: var(--f-muted); text-decoration: none;
}
.cat:hover, .cat.on { background: var(--f-panel2); color: var(--f-text); text-decoration: none; border-color: var(--f-accent); }
.list-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--f-muted); margin: 0 0 .35rem; }
.thread-list { margin-bottom: 1.25rem; }
.thread-row {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem;
  align-items: center; padding: .65rem .85rem;
  border: 1px solid var(--f-border); border-top: none;
  background: var(--f-panel); color: inherit; text-decoration: none;
}
.thread-list .thread-row:first-of-type { border-top: 1px solid var(--f-border); border-radius: var(--f-radius) var(--f-radius) 0 0; }
.thread-list .thread-row:last-of-type { border-radius: 0 0 var(--f-radius) var(--f-radius); }
.thread-row:hover { background: var(--f-panel2); text-decoration: none; }
.thread-row-title { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .25rem; }
.thread-row-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.thread-row-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: .5rem .75rem;
  font-size: .72rem; color: var(--f-muted); text-align: right;
}
.thread-row.is-locked .thread-row-title { color: var(--f-muted); }
.thread-row.is-locked::after {
  content: "Members"; font-size: .65rem; padding: .1rem .35rem;
  border: 1px solid var(--f-border); border-radius: 4px; color: var(--f-muted);
  grid-column: 2; justify-self: end; align-self: start; margin-top: -.1rem;
}
.list-pager { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; }
.pager-info { font-size: .82rem; color: var(--f-muted); }
.list-foot { font-size: .82rem; color: var(--f-muted); }
.side-links { list-style: none; margin: 0; padding: .5rem 0; }
.side-links a {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .4rem .85rem; font-size: .82rem; color: var(--f-muted); text-decoration: none;
}
.side-links a:hover { background: var(--f-panel2); color: var(--f-text); text-decoration: none; }
.side-links span { font-size: .72rem; opacity: .85; }
.side-blurb { margin: 0; padding: .65rem .85rem; font-size: .82rem; color: var(--f-muted); line-height: 1.45; }
.tag-pad { padding: .75rem .85rem; display: flex; flex-wrap: wrap; gap: .35rem; }
@media (max-width: 720px) {
  .thread-row { grid-template-columns: 1fr; }
  .thread-row-meta { text-align: left; justify-content: start; }
  .thread-row.is-locked::after { grid-column: 1; justify-self: start; }
}
@media (max-width: 520px) {
  .home-stats { grid-template-columns: 1fr 1fr; }
  .nav--home { width: 100%; }
}
.footer-note {
  max-width: 1200px; margin: 0 auto 2rem;
  padding: 0 1.25rem; font-size: .78rem; color: var(--f-muted);
}
