*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 14px;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.brand { font-weight: 700; font-size: 1.1rem; color: #f0f6fc; }
.nav-links { display: flex; gap: 1rem; align-items: center; }

.container { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #238636;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn:hover { background: #2ea043; text-decoration: none; }
.btn-danger { background: #b62324; }
.btn-danger:hover { background: #da3633; }
.btn-secondary { background: #21262d; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; }
.btn-link { background: none; border: none; color: #58a6ff; cursor: pointer; font-size: 0.875rem; padding: 0; }
.btn-link:hover { text-decoration: underline; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; color: #8b949e; font-size: 0.8rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 0.875rem;
}
.form-group textarea { font-family: monospace; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #58a6ff;
}

.error { color: #f85149; background: #1a0002; border: 1px solid #f85149; border-radius: 6px; padding: 0.5rem 0.75rem; margin-bottom: 1rem; }

.repo-list { list-style: none; }
.repo-list li { border-bottom: 1px solid #21262d; padding: 0.75rem 0; }
.repo-list li:last-child { border-bottom: none; }

.file-tree { list-style: none; }
.file-tree li { padding: 0.35rem 0; border-bottom: 1px solid #21262d; display: flex; align-items: center; gap: 0.5rem; }
.file-tree li:last-child { border-bottom: none; }
.icon { font-size: 0.9rem; }

pre { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 1rem; overflow-x: auto; }
code { font-family: monospace; font-size: 0.875rem; }

.commit-list { list-style: none; }
.commit-list li { padding: 0.5rem 0; border-bottom: 1px solid #21262d; }
.commit-list li:last-child { border-bottom: none; }
.commit-sha { font-family: monospace; font-size: 0.8rem; color: #8b949e; }
.commit-msg { color: #f0f6fc; }

.breadcrumb { color: #8b949e; font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb a { color: #58a6ff; }
.breadcrumb span { margin: 0 0.25rem; }

.wiki-content { line-height: 1.8; }
.wiki-content h1, .wiki-content h2, .wiki-content h3 { margin: 1.5rem 0 0.5rem; color: #f0f6fc; }
.wiki-content p { margin-bottom: 0.75rem; }
.wiki-content a.missing-page { color: #f85149; text-decoration: underline dashed; }

.badge { display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 12px; background: #21262d; color: #8b949e; }
.badge-private { background: #161b22; border: 1px solid #f0883e; color: #f0883e; }

h1 { font-size: 1.5rem; color: #f0f6fc; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; color: #f0f6fc; margin-bottom: 0.75rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #21262d; text-align: left; }
th { color: #8b949e; font-weight: 500; }
