.wiki-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1.5rem;
}

.wiki-admin-list,
.wiki-admin-sidecard,
.wiki-article-shell,
.wiki-home-shell {
  background: rgba(10, 15, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.wiki-admin-sidecard {
  padding: 1rem;
}

.wiki-admin-empty {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 1.25rem;
  color: rgba(224, 231, 255, 0.7);
  text-align: center;
}

.wiki-category-chip,
.wiki-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #dbeafe;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wiki-status-badge[data-status="published"] {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.3);
  color: #dcfce7;
}

.wiki-status-badge[data-status="draft"] {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.wiki-status-badge[data-status="archived"] {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.wiki-editor-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

.wiki-editor-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-editor-area {
  min-height: 24rem;
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  font-size: 1rem;
}

.wiki-editor-area .ql-editor {
  min-height: 24rem;
  font-family: "Rajdhani", sans-serif;
  line-height: 1.7;
}

.wiki-rule-list,
.wiki-category-list {
  display: grid;
  gap: 0.75rem;
}

.wiki-rule-card,
.wiki-category-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.wiki-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
}

.wiki-home a {
  color: #0f766e;
}

.wiki-home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.wiki-home-shell {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.08);
}

.wiki-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.5rem;
}

.wiki-home-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.wiki-home-nav {
  display: grid;
  gap: 0.65rem;
}

.wiki-home-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #334155;
  transition: 0.18s ease;
}

.wiki-home-nav a:hover,
.wiki-home-nav a.is-active {
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.wiki-article-shell {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.08);
}

.wiki-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wiki-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
}

.wiki-article-content {
  min-width: 0;
}

.wiki-article-content h1,
.wiki-article-content h2,
.wiki-article-content h3,
.wiki-article-content h4 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.01em;
  color: #0f172a;
  margin-top: 1.6rem;
  margin-bottom: 0.9rem;
}

.wiki-article-content p,
.wiki-article-content li,
.wiki-article-content td,
.wiki-article-content th,
.wiki-article-content figcaption,
.wiki-article-content blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: #1e293b;
}

.wiki-article-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #0f766e;
  background: rgba(15, 118, 110, 0.06);
  border-radius: 0.7rem;
}

.wiki-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
  display: block;
  margin: 1rem auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.wiki-article-content figure {
  margin: 1.25rem 0;
}

.wiki-article-content figcaption {
  font-size: 0.92rem;
  color: #64748b;
  text-align: center;
}

.wiki-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  overflow: hidden;
  border-radius: 0.9rem;
}

.wiki-article-content th,
.wiki-article-content td {
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.8rem 0.9rem;
  vertical-align: top;
}

.wiki-article-content thead th {
  background: rgba(15, 118, 110, 0.1);
}

.wiki-toc-card {
  position: sticky;
  top: 6rem;
  align-self: start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.86);
  padding: 1rem;
}

.wiki-toc-list {
  display: grid;
  gap: 0.35rem;
}

.wiki-toc-list a {
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
}

.wiki-toc-list a[data-level="3"] {
  padding-left: 0.8rem;
}

.wiki-toc-list a[data-level="4"] {
  padding-left: 1.4rem;
}

.wiki-empty-state {
  padding: 3rem 1.25rem;
  text-align: center;
  color: #475569;
}

@media (max-width: 1199px) {
  .wiki-admin-layout,
  .wiki-home-layout,
  .wiki-article-grid {
    grid-template-columns: 1fr;
  }

  .wiki-home-sidebar,
  .wiki-toc-card {
    position: static;
  }
}
