:root {
  --bg-0: #0b1220;
  --bg-1: #101a2c;
  --bg-2: #16233a;
  --ink: #e7ecf5;
  --ink-dim: #c3ccdc;
  --ink-mute: #90a0b8;
  --ink-faint: #5b6b85;

  --hue-1: #2dd4bf;
  --hue-1-soft: #2dd4bf66;
  --hue-1-faint: #2dd4bf22;
  --hue-2: #8ea9d1;
  --hue-2-soft: #8ea9d155;
  --hue-2-faint: #8ea9d118;
  --acid: #34d399;
  --acid-soft: #34d39955;
  --acid-faint: #34d39918;

  --warn: #f59e0b;
  --warn-soft: #f59e0b66;
  --warn-faint: #f59e0b22;

  --border: rgba(231, 236, 245, 0.12);
  --border-strong: rgba(231, 236, 245, 0.22);

  --glass-1: rgba(16, 26, 44, 0.6);
  --glass-2: rgba(22, 35, 58, 0.52);
  --glass-blur: blur(14px) saturate(1.15);

  --f-pixel:
    ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Fira Code", Consolas, monospace;
  --f-tiny: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-display: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-wiki:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --code-num: #7fd7ff;
  --code-fn: #ffb86b;

  --r-sm: 0;
  --r-md: 0;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-dim);
  font-family: var(--f-pixel);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: normal;
  min-height: 100vh;
  overflow-x: hidden;
  text-align: left;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(231, 236, 245, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 236, 245, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%,
      var(--hue-1-faint),
      transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%,
      var(--hue-2-faint),
      transparent 70%),
    radial-gradient(ellipse 70% 70% at 50% 115%,
      var(--acid-faint),
      transparent 60%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0% {
    opacity: 0.7;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, -1.5%, 0) scale(1.04);
  }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 28px 60px;
  background: rgba(0, 0, 0, 0);
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-chip img {
  height: 90px;
  width: auto;
  object-fit: stretch;
  display: block;
}

.brand-ascii {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 8px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: pre;
  color: var(--hue-1);
  text-shadow: 0 0 6px var(--hue-1-soft);
  user-select: none;
}

.brand-link {
  display: block;
  text-decoration: none;
}

.brand-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: var(--hue-1);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 6px var(--hue-1-soft);
}

.brand-dot::before {
  content: "\26E7";
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--hue-1);
  text-shadow: 0 0 6px var(--hue-1-soft);
  animation: rgb-jitter 3.2s steps(2, end) infinite;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: end;
}

.date-block {
  font-family: var(--f-pixel);
  text-align: right;
  color: var(--hue-1);
  line-height: 1.1;
}

.date-main {
  font-size: 18px;
  letter-spacing: 1px;
}

.date-year {
  font-size: 14px;
  color: var(--ink-mute);
}

.clock-frame {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-sm);
}

.clock {
  font-family: var(--f-mono);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--ink);
}

.stage {
  position: relative;
  z-index: 4;
  flex: 1;
  padding: 26px 28px 28px;
  overflow-y: auto;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}

.pane {
  display: none;
}

.pane.active {
  display: block;
  animation: fade-in 0.35s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  }
}

.frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 22px 24px 20px;
  margin-bottom: 22px;
  border-radius: var(--r-md);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  grid-column: 1/3;
  animation: panel-in 0.5s var(--ease) both;
}

.frame-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-tiny);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0px;
  letter-spacing: 2px;
}

.frame-glyph {
  color: var(--hue-1);
}

.frame-fill {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0;
  color: var(--hue-1);
}

.frame-aux {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 1px;
}

.sub-pane {
  display: none;
}

.sub-pane.active {
  display: block;
}

.back-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink-dim);
  font-family: var(--f-tiny);
  font-size: 13px;
  padding: 4px 11px;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s var(--ease);
}

.back-btn:hover {
  background: var(--bg-2);
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.sub-panes .sub-pane {
  display: none;
  padding: 8px 0;
}

.sub-panes .sub-pane.active {
  display: block;
}

.sub-panes h2,
.sub-panes h3 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--hue-1);
  letter-spacing: 0.2px;
  margin: 16px 0 8px;
}

.sub-panes h4 {
  font-size: 20px;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--hue-1);
  letter-spacing: 0.2px;
}

.sub-panes h2 {
  font-size: 26px;
}

.sub-panes h3 {
  font-size: 20px;
  color: var(--hue-2);
}

.sub-panes p,
.sub-panes li {
  font-family: var(--f-pixel);
  font-size: 20px;
  color: var(--ink-dim);
  line-height: 1.45;
}

.sub-panes a {
  color: var(--hue-2);
  text-decoration: underline dotted;
}

.sub-panes a:hover {
  color: var(--hue-1);
}

.sub-panes .back-btn {
  text-decoration: none;
}

.sub-panes code,
.sub-panes pre {
  font-family: var(--f-mono);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  padding: 1px 5px;
  color: var(--hue-2);
}

.sub-panes pre {
  display: block;
  padding: 10px 12px;
  margin: 10px 0;
  overflow-x: auto;
  line-height: 1.4;
}

.sub-panes ul,
.sub-panes ol {
  padding-left: 22px;
}

.sub-panes strong {
  color: var(--ink);
}

.sub-panes .tldr,
.sub-panes .tryit,
.sub-panes .checkpoint,
.sub-panes .challenge,
.sub-panes .project,
.sub-panes .note,
.sub-panes .danger {
  position: relative;
  margin: 16px 0;
  padding: 12px 16px 14px;
  border-left: 3px solid var(--hue-1);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--f-pixel);
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.45;
  border-radius: var(--r-sm);
  animation: panel-in 0.45s var(--ease) both;
}

.sub-panes .tldr::before,
.sub-panes .tryit::before,
.sub-panes .checkpoint::before,
.sub-panes .challenge::before,
.sub-panes .project::before {
  content: attr(data-label);
  display: inline-block;
  font-family: var(--f-tiny);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.sub-panes .tldr {
  animation-delay: 0ms;
}

.sub-panes .tryit {
  animation-delay: 60ms;
}

.sub-panes .checkpoint {
  animation-delay: 120ms;
}

.sub-panes .challenge {
  animation-delay: 180ms;
}

.sub-panes .project {
  animation-delay: 240ms;
}

.sub-panes .note {
  animation-delay: 90ms;
}

.sub-panes .danger {
  animation-delay: 150ms;
}

.sub-panes .tldr {
  border-left-color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.025);
}

.sub-panes .tldr::before {
  content: "TL;DR";
  background: var(--ink-mute);
  color: var(--bg-0);
}

.sub-panes .tryit {
  border-left-color: var(--hue-2);
  background: rgba(142, 169, 209, 0.04);
  box-shadow: 0 0 0 1px var(--hue-2-faint);
}

.sub-panes .tryit::before {
  content: "▶ TRY IT";
  background: var(--hue-2);
  color: var(--bg-0);
  text-shadow: none;
}

.sub-panes .checkpoint {
  border-left-color: var(--acid);
  background: rgba(52, 211, 153, 0.05);
  box-shadow: 0 0 0 1px var(--acid-faint);
}

.sub-panes .checkpoint::before {
  content: "✓ CHECKPOINT";
  background: var(--acid);
  color: var(--bg-0);
  text-shadow: none;
}

.sub-panes .challenge {
  border-left-color: var(--hue-1);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 0 1px var(--hue-1-faint);
}

.sub-panes .challenge::before {
  content: "⚡ CHALLENGE";
  background: var(--hue-1);
  color: var(--bg-0);
  text-shadow: none;
}

.sub-panes .project {
  border: 1px solid var(--hue-1);
  border-left-width: 3px;
  background: var(--bg-2);
  padding: 16px 18px 18px;
  border-radius: var(--r-sm);
  margin: 22px 0;
}

.sub-panes .project::before {
  content: "▣ MINI PROJECT";
  background: var(--hue-1);
  color: var(--bg-0);
  text-shadow: none;
  font-size: 11px;
  padding: 3px 10px;
}

.sub-panes .project h3 {
  margin-top: 0;
  font-size: 22px;
}

.sub-panes .note {
  border-left-color: var(--hue-2);
  background: rgba(142, 169, 209, 0.03);
}

.sub-panes .danger {
  border-left-color: var(--warn);
  border-top: 2px solid var(--warn);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 0 1px var(--warn-faint);
}

.sub-panes .beats {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  counter-reset: beat;
}

.sub-panes .pitch {
  font-family: var(--f-pixel);
  font-size: 18px;
  color: var(--hue-2);
  margin: 4px 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--hue-2-soft);
  background: rgba(142, 169, 209, 0.03);
  letter-spacing: 0.5px;
}

.sub-panes .pitch strong {
  color: var(--hue-1);
}

.statusbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 10fr 10fr 10fr;
  align-items: center;
  gap: 18px;
  padding: 0px 12px;
  border-top: 2px solid var(--hue-1);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  font-family: var(--f-pixel);
  font-size: 15px;
  color: var(--ink-mute);
  letter-spacing: 1px;
}

.sb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sb-v {
  color: var(--ink-dim);
  align-self: start;
}

.sb-spacer {
  flex: 1;
}

.sb-dot {
  width: 8px;
  height: 8px;
  background: var(--acid);
  box-shadow: 0 0 6px var(--acid-soft);
}

.sb-dot.ok {
  background: var(--hue-1);
  box-shadow: 0 0 6px var(--hue-1);
}

.sb-vol {
  color: var(--hue-1);
  letter-spacing: 0;
  text-shadow: 0 0 4px var(--hue-1-soft);
}

.sb-tz {
  color: var(--hue-2);
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 16px;
  }

  .topbar-left,
  .topbar-right {
    grid-column: 1;
  }

  .topbar-right {
    justify-content: flex-end;
  }

  .brand {
    position: static;
    transform: none;
    text-align: center;
    grid-column: 1;
  }

  .stage {
    padding: 18px 16px 20px;
  }
}

@keyframes rgb-jitter {

  0%,
  100% {
    text-shadow:
      -1px 0 var(--hue-1),
      1px 0 var(--hue-2);
  }

  50% {
    text-shadow:
      -2px 0 var(--hue-1),
      2px 0 var(--acid);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.sub-panes p,
.sub-panes li,
.sub-panes a,
.sub-panes blockquote,
.sub-panes td,
.sub-panes th,
.sub-panes .pitch,
.sub-panes .tldr,
.sub-panes .tryit,
.sub-panes .checkpoint,
.sub-panes .challenge,
.sub-panes .project,
.sub-panes .note,
.sub-panes .danger {
  text-transform: none;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.sub-panes p,
.sub-panes li {
  line-height: 1.65;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 10px;
}

.wiki-body {
  grid-column: 2;
  width: 75%;
  margin: -15px 80px;
}

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }
}

.wiki-nav {
  position: sticky;
  top: 12px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 10px 12px;
  font-family: var(--f-tiny);
  text-align: left;
  animation: panel-in 0.5s var(--ease) both;
}

.wiki-nav .wiki-home-link {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--hue-1);
  text-decoration: none;
  padding: 10px 20px 10px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.wiki-nav .wiki-home-link.active,
.wiki-nav .wiki-home-link:hover {
  color: var(--ink);
}

.wiki-nav details {
  border-bottom: 1px dashed var(--border);
  padding: 2px 0;
}

.wiki-nav summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  color: var(--hue-2);
  padding: 7px 2px;
}

.wiki-nav summary::-webkit-details-marker {
  display: none;
}

.wiki-nav summary::before {
  content: "▸ ";
  color: var(--hue-1);
}

.wiki-nav details[open]>summary::before {
  content: "▾ ";
}

.wiki-nav .wiki-grp {
  margin-left: 10px;
  border-bottom: none;
}

.wiki-nav .wiki-grp>summary {
  font-family: var(--f-tiny);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
}

.wiki-nav a {
  position: relative;
  display: block;
  padding: 3px 4px 3px 16px;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s var(--ease);
}

.wiki-nav a::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0;
  height: 1px;
  background: var(--hue-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.wiki-nav a:hover {
  color: var(--hue-1);
  transform: translateX(3px);
}

.wiki-nav a:hover::after {
  transform: scaleX(1);
}

.wiki-nav a.active {
  color: var(--hue-1);
  background: var(--hue-1-faint);
}

.wiki-article {
  min-width: 0;
  font-size: 16px;
}

.wiki-article .wiki-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  margin: 4px 0 4px;
}

.wiki-article .wiki-desc {
  color: var(--ink-mute);
  font-size: 15px;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.wiki-article .wiki-archive-list {
  columns: 2;
  column-gap: 28px;
  margin: 6px 0 18px;
  padding-left: 18px;
}

.wiki-article .wiki-archive-list li {
  break-inside: avoid;
  margin: 0 0 3px;
}

.wiki-article .wiki-archive-list ul {
  columns: 1;
  margin: 3px 0 6px;
  padding-left: 14px;
}

@media (max-width: 720px) {
  .wiki-article .wiki-archive-list {
    columns: 1;
  }
}

.wiki-article img {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  margin: 10px 0;
}

.wiki-article blockquote {
  margin: 14px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--hue-2-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-mute);
  font-style: italic;
}

.wiki-article kbd {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--hue-2-soft);
  border-bottom-width: 2px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--hue-2);
}

.wiki-tablewrap {
  overflow-x: auto;
  margin: 12px 0;
}

.wiki-article table {
  border-collapse: collapse;
  font-size: 16px;
  min-width: 60%;
}

.wiki-article th,
.wiki-article td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}

.wiki-article th {
  font-family: var(--f-tiny);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg-2);
}

.wiki-article,
.wiki-article p,
.wiki-article li,
.wiki-article td,
.wiki-article blockquote,
.wiki-article figcaption,
.wiki-article .wiki-desc,
.wiki-article .wiki-aside-title {
  font-family: var(--f-wiki);
}

.wiki-article code,
.wiki-article pre {
  font-family: var(--f-mono);
  font-size: 16px;
}

.wiki-article pre code.hljs,
.wiki-article code.hljs {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.wiki-article .hljs-keyword,
.wiki-article .hljs-literal,
.wiki-article .hljs-doctag,
.wiki-article .hljs-section {
  color: var(--hue-1);
  font-weight: 600;
}

.wiki-article .hljs-string,
.wiki-article .hljs-regexp,
.wiki-article .hljs-addition {
  color: var(--acid);
}

.wiki-article .hljs-number,
.wiki-article .hljs-symbol,
.wiki-article .hljs-bullet,
.wiki-article .hljs-attr,
.wiki-article .hljs-attribute,
.wiki-article .hljs-selector-attr,
.wiki-article .hljs-selector-class,
.wiki-article .hljs-selector-id {
  color: var(--code-num);
}

.wiki-article .hljs-built_in,
.wiki-article .hljs-title,
.wiki-article .hljs-name {
  color: var(--code-fn);
}

.wiki-article .hljs-comment,
.wiki-article .hljs-quote {
  color: var(--ink-mute);
  font-style: italic;
}

.wiki-article .hljs-meta,
.wiki-article .hljs-variable,
.wiki-article .hljs-template-variable,
.wiki-article .hljs-params,
.wiki-article .hljs-subst {
  color: var(--ink-dim);
}

.wiki-article .hljs-deletion {
  color: var(--hue-1);
}

.wiki-article .hljs-emphasis {
  font-style: italic;
}

.wiki-article .hljs-strong {
  font-weight: 700;
}

.sub-panes .tip {
  position: relative;
  margin: 16px 0;
  padding: 12px 16px 14px;
  border-left: 3px solid var(--acid);
  background: rgba(52, 211, 153, 0.04);
  font-family: var(--f-pixel);
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.45;
  border-radius: var(--r-sm);
  animation: panel-in 0.45s var(--ease) both;
  animation-delay: 30ms;
}

.sub-panes .tip::before {
  content: "✦ TIP";
  display: inline-block;
  font-family: var(--f-tiny);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  background: var(--acid);
  color: var(--bg-0);
  text-shadow: none;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.sub-panes .caution {
  position: relative;
  margin: 16px 0;
  padding: 12px 16px 14px;
  border-left: 3px solid var(--warn);
  background: rgba(245, 158, 11, 0.05);
  font-family: var(--f-pixel);
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.45;
  border-radius: var(--r-sm);
  animation: panel-in 0.45s var(--ease) both;
  animation-delay: 210ms;
}

.sub-panes .caution::before {
  content: "⚠ CAUTION";
  display: inline-block;
  font-family: var(--f-tiny);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  background: var(--warn);
  color: var(--bg-0);
  text-shadow: none;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.wiki-aside>p:last-child {
  margin-bottom: 2px;
}

.wiki-aside-title {
  font-family: var(--f-tiny);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 6px;
}

.wiki-steps>ol {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
  counter-reset: wstep;
}

.wiki-steps>ol>li {
  position: relative;
  padding: 4px 0 14px 40px;
  counter-increment: wstep;
}

.wiki-steps>ol>li::before {
  content: counter(wstep);
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-tiny);
  font-size: 11px;
  background: var(--hue-1);
  color: var(--bg-0);
  border-radius: 50%;
}

.wiki-steps>ol>li::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 34px;
  bottom: 2px;
  width: 1px;
  background: var(--hue-1-faint);
}

.wiki-steps>ol>li:last-child::after {
  display: none;
}

.wiki-checklist ul {
  list-style: none;
  padding-left: 4px;
  margin: 6px 0 2px;
}

.wiki-checklist li {
  padding: 3px 0;
}

.wiki-checklist input[type="checkbox"] {
  accent-color: var(--acid);
  margin-right: 9px;
  transform: translateY(1px);
}

.wiki-filetree {
  border: 1px solid var(--border);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  margin: 12px 0;
  font-family: var(--f-mono);
  font-size: 13px;
}

.wiki-filetree ul {
  list-style: none;
  padding-left: 18px;
  margin: 0;
}

.wiki-filetree li::before {
  content: "› ";
  color: var(--hue-1);
}

.wiki-tabs {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin: 14px 0;
}

.wiki-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
}

.wiki-tabbar button {
  font-family: var(--f-tiny);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-mute);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s var(--ease),
    box-shadow 0.15s ease;
}

.wiki-tabbar button:hover {
  color: var(--hue-1);
  border-color: var(--hue-1-soft);
  transform: translateY(-2px);
}

.wiki-tabbar button.active {
  color: var(--bg-0);
  background: var(--hue-1);
  border-color: var(--hue-1);
  box-shadow: 0 0 10px var(--hue-1-soft);
}

.wiki-tabitem {
  display: none;
  padding: 10px 14px;
}

.wiki-tabitem.active {
  display: block;
  animation: panel-in 0.3s var(--ease) both;
}

.wiki-pagenav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.wiki-pagenav a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 46%;
  text-decoration: none !important;
  transition: transform 0.15s var(--ease);
}

.wiki-pagenav a:hover {
  transform: translateY(-2px);
}

.wiki-pagenav .wiki-pn-next {
  margin-left: auto;
  text-align: right;
}

.wiki-pagenav .wiki-pn-label {
  font-family: var(--f-tiny);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-mute);
}

.wiki-pagenav .wiki-pn-title {
  font-family: var(--f-display);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--hue-2);
}

.wiki-pagenav a:hover .wiki-pn-title {
  color: var(--hue-1);
}

.gx-crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.gx-crumb {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.gx-crumb:hover {
  color: var(--hue-1);
}

.gx-sep {
  color: var(--ink-faint);
}

.gx-empty {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.gx-empty code {
  font-family: var(--f-mono);
  color: var(--hue-2);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  padding: 1px 5px;
}

.dl-btn {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--hue-1);
  border: 1px solid var(--hue-1);
  border-radius: var(--r-sm);
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s var(--ease),
    box-shadow 0.15s ease;
}

.dl-btn:hover {
  background: var(--hue-1);
  color: var(--bg-0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--hue-1-faint);
}

.wiki-add-btn,
.wiki-md-btn {
  margin-left: 10px;
}

.wiki-addform {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  padding: 0 0 32px;
}

.wiki-af-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-tiny);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-mute);

  text-align: left;
}

.wiki-af-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.wiki-af-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  background: var(--glass-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.wiki-af-input::placeholder {
  color: var(--ink-faint);
}

.wiki-af-input:focus {
  border-color: var(--hue-1);
}

select.wiki-af-input {
  cursor: pointer;
}

.wiki-af-area {
  resize: vertical;
  min-height: 320px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.wiki-af-acts {
  display: flex;
  align-items: center;
  gap: 14px;
}

button.dl-btn {
  background: none;
  cursor: pointer;
  line-height: normal;
}

@media (max-width: 900px) {
  .wiki-addform {
    grid-column: 1;
  }
}

.brand-word {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--hue-1);
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.topbar-left .auth-link {
  display: inline-block;
  margin-right: 14px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}

.topbar-left .auth-link:hover {
  color: var(--hue-1);
  border-color: var(--hue-1);
  background: var(--hue-1-faint);
}

.stage-centred {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6vh;
}

.login-frame {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 720px) {
  .brand-word {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .topbar-left .auth-link {
    margin-right: 8px;
    padding: 3px 8px;
  }

  .stage-centred {
    padding-top: 2vh;
  }
}