:root {
  --background: #080b11;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --panel: rgba(15, 23, 42, 0.65);
  --panel-strong: rgba(30, 41, 59, 0.85);
  --panel-soft: rgba(15, 23, 42, 0.4);
  --deep: #0ea5e9;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --danger: #ef4444;
  --ok: #10b981;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-family: "Plus Jakarta Sans", "Segoe UI", Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-y: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  color: var(--foreground);
  background:
    radial-gradient(1000px 420px at 50% 0%, rgba(14, 165, 233, 0.15), transparent 70%),
    radial-gradient(800px 400px at 10% 20%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(800px 400px at 90% 80%, rgba(236, 72, 153, 0.06), transparent 60%),
    var(--background);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    url("11.png") center center / cover no-repeat;
  opacity: .55;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.05) brightness(0.38) blur(1px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(14, 165, 233, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, .02) 1px, transparent 1px),
    radial-gradient(circle at 16% 22%, rgba(14, 165, 233, .08) 0 18px, transparent 19px),
    radial-gradient(circle at 72% 14%, rgba(99, 102, 241, .06) 0 22px, transparent 23px),
    radial-gradient(circle at 86% 38%, rgba(236, 72, 153, .06) 0 14px, transparent 15px),
    linear-gradient(180deg, rgba(8, 11, 17, 0.1), rgba(8, 11, 17, 0.5));
  background-size: 72px 72px, 72px 72px, auto, auto, auto, auto;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .88), transparent 72%);
  pointer-events: none;
}

button, input, textarea, select {
  font: inherit;
}

button, a.button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
  transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, a.button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.45);
}

button.secondary, a.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

button.secondary:hover, a.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button.ghost, a.ghost {
  background: var(--panel-soft);
  color: var(--foreground);
  border: 1px solid var(--line);
  box-shadow: none;
}

button.danger {
  background: linear-gradient(135deg, #dc2626, var(--danger));
}

button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

a {
  color: var(--accent);
}

.topbar {
  min-height: 80px;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  animation: fade-down .55s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(37, 99, 235, .18));
}

.brand strong {
  color: #0f172a;
  font-size: 18px;
}

.brand span, .muted {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.nav a {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(135deg, var(--deep), var(--accent));
  border-color: transparent;
  color: #fff;
}

.shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 52px 0 32px;
  animation: fade-up .8s ease both;
}

.hero img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.25);
  display: block;
  animation: float 6s ease-in-out infinite;
}

.hero-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--foreground);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  margin: 8px 0 18px;
  background: linear-gradient(to bottom, #ffffff 30%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero p {
  color: #94a3b8;
  font-size: 17px;
  margin: 0 auto 34px;
  max-width: 680px;
}

.hero-note {
  font-size: 13px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto 0;
  max-width: 760px;
}

.hero-stat {
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  align-content: center;
  gap: 6px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-stat span,
.hero-stat strong {
  display: block;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stat strong {
  color: var(--foreground);
  font-size: 28px;
  line-height: 1.1;
}

.ip-box {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .22s ease, border-color .22s ease;
}

.ip-box:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
}

.ip-box code {
  color: var(--foreground);
  font-weight: 900;
}

.finder {
  display: grid;
  gap: 14px;
  margin: 16px auto 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--foreground);
  box-shadow: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.chip.active {
  background: linear-gradient(135deg, var(--deep), var(--accent));
  border-color: rgba(14, 165, 233, .22);
  color: #fff;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .16);
}

.grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 72px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 248px;
  gap: 22px;
  align-items: start;
  padding-bottom: 72px;
}

.sidebar, .panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.sidebar:hover, .panel:hover, .card:hover, .toc-panel:hover, .auth-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar {
  position: sticky;
  top: 100px;
  padding: 18px;
  animation: fade-up .65s ease both;
}

.sidebar h2, .panel h2 {
  margin: 0 0 16px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--deep);
  letter-spacing: .02em;
}

.side-link {
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-link.child {
  margin-left: 14px;
  padding-left: 18px;
  position: relative;
}

.side-link.child::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(14, 165, 233, .35);
}

.side-link.active, .side-link:hover {
  background: rgba(14, 165, 233, .12);
  color: #fff;
}

.side-emoji {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.panel {
  padding: 26px;
}

.spotlight {
  margin-top: 18px;
}

.spotlight-body {
  padding-top: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-page-cards {
  margin-top: 18px;
}

.card {
  padding: 24px;
  animation: fade-up .55s ease both;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
}

.card-kicker {
  color: var(--accent);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card p {
  color: #94a3b8;
  margin: 0 0 20px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
}

.feature-card {
  min-height: 176px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  text-decoration: none;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.category-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.grid-layout .panel .category-summary {
  grid-template-columns: 1fr;
}

.category-summary div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 14px;
}

.category-summary span,
.category-summary strong {
  display: block;
}

.category-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-summary strong {
  color: var(--foreground);
  font-size: 24px;
  line-height: 1.1;
  margin-top: 4px;
}

.wiki-prose {
  font-size: 16px;
  line-height: 1.75;
}

.wiki-prose.compact {
  font-size: 15px;
  line-height: 1.68;
}

.wiki-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 20px;
  padding-bottom: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin-bottom: 0;
  color: var(--foreground);
  text-transform: none;
  font-size: 20px;
}

.panel-head .button {
  white-space: nowrap;
}

.wiki-summary {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 70ch;
}

.wiki-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.wiki-meta-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px;
}

.wiki-meta-grid span,
.wiki-meta-grid strong {
  display: block;
}

.wiki-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.wiki-meta-grid strong {
  color: var(--foreground);
}

.wiki-body h2,
.wiki-body h3 {
  scroll-margin-top: 96px;
}

.wiki-prose h1, .wiki-prose h2, .wiki-prose h3 {
  color: var(--foreground);
  line-height: 1.2;
}

.wiki-prose code {
  background: rgba(14, 165, 233, 0.15);
  border-radius: 6px;
  color: var(--accent);
  padding: 2px 6px;
}

.wiki-prose blockquote {
  border-left: 4px solid var(--accent);
  color: var(--muted);
  margin: 16px 0;
  padding-left: 14px;
}

.toc-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.05);
  animation: fade-up .7s ease both;
}

.toc-panel h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.toc-link {
  color: var(--muted);
  display: block;
  padding: 7px 0;
  text-decoration: none;
}

.toc-link.level-3 {
  padding-left: 12px;
  color: var(--muted);
}

.toc-link:hover {
  color: var(--foreground);
}

.wiki-pager {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
}

.pager-link,
.related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--foreground);
  padding: 14px;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.pager-link:hover,
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .16);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .08);
}

.pager-link span,
.related-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.pager-link.next {
  text-align: right;
}

.related-section {
  margin-top: 24px;
}

.related-list {
  display: grid;
  gap: 10px;
}

.wiki-footer-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

.admin {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 28px 0 64px;
  animation: fade-up .6s ease both;
}

.auth-panel {
  margin: 72px auto;
  max-width: 420px;
  animation: pop-in .7s ease both;
}

.auth-panel h1 {
  color: var(--foreground);
  margin: 0 0 8px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-stats div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 16px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.admin-stats div:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.25);
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  color: var(--foreground);
  font-size: 28px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
}

.page-list {
  display: grid;
  gap: 8px;
}

.category-manager {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  align-items: center;
}

@media (min-width: 992px) {
  .category-row {
    grid-template-columns: 100px 1.2fr 1fr 2fr auto;
    gap: 12px;
  }
}

.category-row.is-child {
  margin-left: 16px;
  border-left: 3px solid rgba(14, 165, 233, .34);
}

.category-type {
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-row button {
  justify-self: end;
  min-height: 38px;
  padding: 0 12px;
}

.page-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--foreground);
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
  box-shadow: none;
  transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-item.active {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.page-item:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.page-item strong, .page-item span {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  width: max-content;
  margin-top: 4px;
}

.badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.off {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  animation: fade-up .45s ease both;
}

.field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

label {
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

input, textarea, select {
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--foreground);
}

input::placeholder,
textarea::placeholder {
  color: #8a97ae;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.admin .toolbar h2 {
  font-size: 18px;
  text-transform: none;
  color: var(--foreground);
}

.admin .panel {
  padding: 28px;
}

textarea {
  min-height: 360px;
  resize: vertical;
}

.status {
  color: var(--muted);
  min-height: 22px;
}

@keyframes bg-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-12px, -10px, 0);
  }
}

@keyframes overlay-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(.98) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok {
  background: rgba(34, 197, 94, .14);
  color: var(--ok);
}

.badge.off {
  background: rgba(239, 68, 68, .14);
  color: var(--danger);
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .grid-layout, .wiki-layout, .admin, .form-grid, .admin-stats, .wiki-meta-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .toc-panel {
    position: static;
  }

  .wiki-header,
  .wiki-pager {
    grid-template-columns: 1fr;
  }

  .wiki-header {
    display: grid;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .category-summary,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }
}
