.wiki-sidebar {
    background: var(--drk-card);
    border: 1px solid var(--drk-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.wiki-sidebar h6 { font-size: .85rem; color: var(--drk-muted); text-transform: uppercase; letter-spacing: .03em; }
.wiki-page-list { list-style: none; padding: 0; margin: 0; }
.wiki-page-list li { margin-bottom: .25rem; }
.wiki-page-list a {
    display: block; padding: .35rem .5rem; border-radius: 6px;
    color: var(--drk-text); text-decoration: none; font-size: .9rem;
    transition: background .15s;
}
.wiki-page-list a:hover { background: rgba(0,0,0,.04); }
.wiki-page-list a.active { background: var(--drk-red-light); color: var(--drk-red); font-weight: 500; }

.wiki-content {
    background: var(--drk-card);
    border: 1px solid var(--drk-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    line-height: 1.8;
}
.wiki-content h1, .wiki-content h2, .wiki-content h3 { margin-top: 1.5rem; margin-bottom: .75rem; }
.wiki-content h1 { font-size: 1.6rem; border-bottom: 2px solid var(--drk-border); padding-bottom: .5rem; }
.wiki-content h2 { font-size: 1.3rem; }
.wiki-content h3 { font-size: 1.1rem; }
.wiki-content code {
    background: #f1f3f5; padding: .15em .4em; border-radius: 4px; font-size: .9em;
}
.wiki-content pre { background: #f1f3f5; padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.wiki-content pre code { background: transparent; padding: 0; }
.wiki-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.wiki-content table th, .wiki-content table td { border: 1px solid var(--drk-border); padding: .5rem .75rem; }
.wiki-content table th { background: #f8f9fa; }
.wiki-content blockquote {
    border-left: 4px solid var(--drk-red); padding: .5rem 1rem; margin: 1rem 0;
    background: #fef9f9; color: var(--drk-text);
}

.wiki-toc {
    background: #f8f9fa; border: 1px solid var(--drk-border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 1.5rem;
}
.wiki-toc h6 { margin: 0 0 .5rem; font-size: .85rem; }
.wiki-toc ul { list-style: none; padding-left: 1rem; margin: 0; }
.wiki-toc > ul { padding-left: 0; }
.wiki-toc li { margin: .2rem 0; }
.wiki-toc a { color: var(--drk-text); text-decoration: none; font-size: .9rem; }
.wiki-toc a:hover { color: var(--drk-red); }

.wiki-history-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 0; border-bottom: 1px solid var(--drk-border);
}
.wiki-history-item:last-child { border-bottom: none; }
