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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  height: 100vh;
  background: #0d1117;
  color: #c9d1d9;
}

.sidebar {
  width: 320px;
  background: #161b22;
  color: #c9d1d9;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid #30363d;
}

.sidebar h1 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #58a6ff;
}

.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #30363d;
}

.staff-nav a, .staff-nav button {
  font-size: 12px;
  color: #8b949e;
  text-decoration: none;
  background: none;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
}

.staff-nav a:hover, .staff-nav button:hover {
  color: #58a6ff;
  border-color: #58a6ff;
}

.folder-section {
  margin-bottom: 24px;
}

.folder-title {
  font-size: 14px;
  font-weight: 600;
  color: #58a6ff;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #21262d;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-title:hover {
  background: #30363d;
}

.folder-toggle {
  font-size: 12px;
  transition: transform 0.2s;
  display: inline-block;
  width: 16px;
  margin-right: 4px;
}

.folder-toggle.collapsed {
  transform: rotate(-90deg);
}

.file-list,
.subfolder-list {
  list-style: none;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
  max-height: 100000px;
}

.file-list.collapsed,
.subfolder-list.collapsed {
  max-height: 0 !important;
  opacity: 0;
}

.folder-item {
  list-style: none;
}

.subfolder-title {
  padding: 6px 12px;
  margin: 2px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 13px;
  color: #8b949e;
  display: flex;
  align-items: center;
}

.subfolder-title:hover {
  background: #21262d;
}

.file-item {
  padding: 8px 12px;
  margin: 2px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 14px;
  list-style: none;
}

.file-item:hover {
  background: #21262d;
}

.file-item.active {
  background: #58a6ff;
  color: #000;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: #0d1117;
}

.markdown-body {
  max-width: 800px;
  margin: 0 auto;
  color: #c9d1d9;
}

.markdown-body h1 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 2em;
  border-bottom: 1px solid #30363d;
  padding-bottom: 8px;
  color: #c9d1d9;
}

.markdown-body h2 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 1.5em;
  border-bottom: 1px solid #30363d;
  padding-bottom: 8px;
  color: #c9d1d9;
}

.markdown-body h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 1.25em;
  color: #c9d1d9;
}

.markdown-body p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #c9d1d9;
}

.markdown-body code {
  background: #161b22;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
  color: #f0883e;
}

.markdown-body pre {
  background: #161b22;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid #30363d;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: #c9d1d9;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 16px;
  padding-left: 32px;
}

.markdown-body li {
  margin-bottom: 4px;
  line-height: 1.6;
  color: #c9d1d9;
}

.markdown-body blockquote {
  border-left: 4px solid #30363d;
  padding-left: 16px;
  color: #8b949e;
  margin-bottom: 16px;
}

.markdown-body a {
  color: #58a6ff;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.wiki-link {
  color: #58a6ff;
  cursor: pointer;
  font-weight: 500;
}

.wiki-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  color: #8b949e;
  margin-top: 100px;
}

.markdown-body table {
  border-collapse: collapse;
  margin-bottom: 16px;
  width: 100%;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #30363d;
  padding: 8px 12px;
}

.markdown-body th {
  background: #161b22;
}