:root,
[data-theme="dark"] {

  --bg-deep: #05010d;
  --bg-surface: #0a0515;
  --bg-elevated: #120525;
  --bg-hover: #1a0a30;


  --neon-cyan: #00fff9;
  --neon-magenta: #ff2a6d;
  --neon-pink: #ff2a6d;
  --neon-purple: #9d4edd;
  --neon-yellow: #f9f002;
  --neon-orange: #ff4500;


  --text-primary: #e0e0e8;
  --text-secondary: rgba(224, 224, 232, 0.7);
  --text-dim: rgba(224, 224, 232, 0.45);
  --text-link: var(--neon-cyan);
  --text-link-hover: var(--neon-pink);


  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4466;
  --synth-red: #ff4466;
  --synth-red-glow: rgba(255, 68, 102, 0.4);
  --info: var(--neon-cyan);


  --border-color: #2a1f3d;
  --border-accent: var(--neon-pink);


  --code-bg: #0d0a16;
  --code-border: #2a1f3d;
  --code-text: #e0e0e8;


  --glow-cyan: 0 0 12px rgba(0, 255, 249, 0.35);
  --glow-magenta: 0 0 12px rgba(255, 42, 109, 0.35);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.55);


  --sidebar-width: 280px;
  --sidebar-bg: #090514;


  --layout-max-width: calc(var(--sidebar-width) + var(--toc-width) + 900px);


  --header-height: 60px;
  --header-bg: rgba(5, 1, 13, 0.92);


  --toc-width: 240px;
}



[data-theme="light"] {

  --bg-deep: #fafafa;
  --bg-surface: #ffffff;
  --bg-elevated: #f0f0f5;
  --bg-hover: #e8e8f0;


  --neon-cyan: #0891b2;
  --neon-magenta: #c026d3;
  --neon-pink: #db2777;
  --neon-purple: #7c3aed;
  --neon-yellow: #ca8a04;
  --neon-orange: #ea580c;


  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-dim: #8a8a9a;
  --text-link: var(--neon-cyan);
  --text-link-hover: var(--neon-magenta);


  --border-color: #e0e0e8;
  --border-accent: var(--neon-purple);


  --code-bg: #f5f5fa;
  --code-border: #e0e0e8;
  --code-text: #1a1a2e;


  --glow-cyan: 0 0 10px rgba(8, 145, 178, 0.2);
  --glow-magenta: 0 0 10px rgba(192, 38, 211, 0.2);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);


  --header-bg: rgba(255, 255, 255, 0.95);


  --synth-red: #e04a5f;
  --synth-red-glow: rgba(224, 74, 95, 0.35);
}



@keyframes scanline {
  0% { background-position: 0 0, 0 -120%; }
  100% { background-position: 0 0, 0 120%; }
}

@keyframes horizon-glow {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(255, 42, 109, 0.3),
      0 0 120px rgba(157, 78, 221, 0.2);
  }
  50% {
    box-shadow:
      0 0 80px rgba(255, 42, 109, 0.5),
      0 0 160px rgba(157, 78, 221, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 12px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 42, 109, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 20%, rgba(157, 78, 221, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 30%, rgba(0, 255, 249, 0.05) 0%, transparent 30%),
    linear-gradient(180deg, #05010d 0%, #120525 40%, #1a0a30 70%, #2d1045 100%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.12) 2px,
      rgba(0, 0, 0, 0.12) 4px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  background-size: auto, 100% 4px;
  background-position: 0 0, 0 -120%;
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 999;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(8, 145, 178, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 75% 25%, rgba(192, 38, 211, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 40% 85%, rgba(8, 145, 178, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #f7f7fb 0%, #eef0f7 50%, #e7e9f2 100%);
}

[data-theme="light"] body::after {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0));
}

body[data-effects="low"]::after {
  content: none;
  display: none;
  animation: none;
  opacity: 0;
  background: none;
  background-image: none;
}

body[data-effects="low"] .synthwave-container::after {
  content: none;
  display: none;
  opacity: 0;
  background: none;
  background-image: none;
}

body[data-effects="low"] .synthwave-container::before {
  content: none;
  display: none;
  animation: none;
  background: none;
}

.synthwave-container {
  position: relative;
  z-index: 1;
}

.synthwave-container::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: -50%;
  right: -50%;
  height: 40vh;
  background:
    linear-gradient(90deg, rgba(255, 42, 109, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 42, 109, 0.1) 1px, transparent 1px);
  background-size: 60px 30px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center top;
  animation: horizon-glow 4s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

.synthwave-container::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
}



h1, h2, h3, h4, h5, h6 {
  margin: 1.5em 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}

h1 {
  font-size: 2.25rem;
  margin-top: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 16px rgba(0, 255, 249, 0.4);
}

h2 {
  font-size: 1.75rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; color: var(--text-secondary); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}



.synthwave-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #7cff4d;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.sidebar-toggle:hover {
  background-color: var(--bg-hover);
}

.toggle-icon {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #7cff4d;
  text-shadow: 0 0 10px rgba(124, 255, 77, 0.6);
}

.sidebar-toggle .toggle-close {
  display: none;
}

.sidebar-toggle[aria-expanded="true"] .toggle-open {
  display: none;
}

.sidebar-toggle[aria-expanded="true"] .toggle-close {
  display: inline;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-logo:hover {
  color: var(--neon-magenta);
  text-decoration: none;
}

.header-logo.has-logo .logo-text {
  display: none;
}

.header-logo .logo-img {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 140px;
}

.header-logo .logo-img.logo-light,
.header-logo .logo-img.logo-dark {
  display: none;
}

.header-logo .logo-img.logo-single {
  display: block;
}

:root[data-theme="dark"] .header-logo .logo-img.logo-dark,
:root:not([data-theme]) .header-logo .logo-img.logo-dark {
  display: block;
}

:root[data-theme="light"] .header-logo .logo-img.logo-dark {
  display: none;
}

:root[data-theme="light"] .header-logo .logo-img.logo-light {
  display: block;
}

.header-spacer {
  flex: 1;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



.synthwave-container {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}



.synthwave-sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: flex-start;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: rgba(5, 1, 13, 0.95);
  border-right: 1px solid rgba(255, 42, 109, 0.2);
  font-size: 1rem;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-inner {
  padding: 1.5rem;
}

.sidebar-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 42, 109, 0.2);
}

.project-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-version {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(18, 5, 37, 0.9);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(157, 78, 221, 0.4);
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(157, 78, 221, 0.12);
  text-decoration: none;
}

.sidebar-nav a.current {
  color: var(--neon-cyan);
  background: rgba(0, 255, 249, 0.12);
  border-left: 3px solid var(--neon-cyan);
  margin-left: -3px;
}

.sidebar-nav ul ul {
  padding-left: 1rem;
}

.sidebar-nav ul ul a {
  font-size: 0.9rem;
  padding: 0.375rem 0.75rem;
}



.synthwave-main {
  display: flex;
  flex: 1;
  margin-left: 0;
  min-width: 0;
  justify-content: center;
  font-size: 1.2rem;
}

.synthwave-article {
  flex: 0 1 900px;
  min-width: 0;
  max-width: 900px;
  width: 100%;
  padding: 2rem 3rem;
  background: rgba(10, 5, 21, 0.55);
  border-left: 1px solid rgba(255, 42, 109, 0.12);
  border-right: 1px solid rgba(255, 42, 109, 0.12);
  backdrop-filter: blur(4px);
}


.breadcrumbs {
  margin-bottom: 1.5rem;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  color: var(--text-dim);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--neon-cyan);
}


.page-content {
  min-height: 50vh;
}


.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.page-nav a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: rgba(10, 5, 21, 0.85);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  transition: all 0.2s;
}

.page-nav a:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
  text-decoration: none;
}

.nav-prev { align-items: flex-start; }
.nav-next { align-items: flex-end; margin-left: auto; }

.nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.nav-title {
  font-weight: 600;
  color: var(--text-link);
}



.synthwave-toc {
  width: var(--toc-width);
  flex: 0 0 var(--toc-width);
  flex-shrink: 0;
  padding: 2rem 1rem;
  background: rgba(5, 1, 13, 0.65);
  border-left: 1px solid rgba(255, 42, 109, 0.2);
  font-size: 0.9rem;
}

.toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.toc-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.synthwave-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.synthwave-toc li {
  margin: 0;
}

.synthwave-toc a {
  display: block;
  padding: 0.25rem 0;
  font-size: 1em;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  margin-left: -2px;
  letter-spacing: 0.04em;
}

.synthwave-toc a:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

.synthwave-toc a.active {
  color: var(--neon-cyan);
  border-left-color: var(--neon-cyan);
}

.synthwave-toc ul ul {
  padding-left: 0.75rem;
}

.synthwave-toc ul ul a {
  font-size: 0.9em;
}



.synthwave-footer {
  margin-left: 0;
  padding: 2rem 3rem;
  border-top: 1px solid rgba(255, 42, 109, 0.2);
  background: rgba(5, 1, 13, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-meta a {
  color: var(--text-secondary);
}

.footer-meta a:hover {
  color: var(--neon-cyan);
}



[data-theme="light"] .synthwave-sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-right-color: var(--border-color);
}

[data-theme="light"] .sidebar-header {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .project-version {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

[data-theme="light"] .sidebar-nav a:hover {
  background: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .synthwave-article {
  background: rgba(255, 255, 255, 0.8);
  border-left-color: var(--border-color);
  border-right-color: var(--border-color);
}

[data-theme="light"] .page-nav a {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

[data-theme="light"] .page-nav a:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .synthwave-toc {
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--border-color);
}

[data-theme="light"] .synthwave-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: var(--border-color);
}

[data-theme="light"] .synthwave-container::before {
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(8, 145, 178, 0.12) 1px, transparent 1px);
}



.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(10, 5, 21, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 255, 249, 0.35);
}

.theme-icon {
  display: none;
}

[data-theme-setting="dark"] .icon-moon,
[data-theme-setting="light"] .icon-sun,
[data-theme-setting="system"] .icon-system {
  display: block;
}


.icon-system {
  display: block;
}

.effects-toggle-wrapper {
  display: flex;
  align-items: center;
}

.effects-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  background: rgba(10, 5, 21, 0.6);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.effects-toggle:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 255, 249, 0.35);
}

.effects-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.effects-toggle[data-state="low"] {
  opacity: 0.65;
}

.effects-toggle[data-state="low"] .effects-label {
  text-decoration: line-through;
}

.effects-toggle.is-warning {
  color: var(--synth-red);
  border-color: var(--synth-red);
  box-shadow: 0 0 16px var(--synth-red-glow);
}

.effects-toggle.is-warning:hover {
  border-color: var(--synth-red);
  box-shadow: 0 0 18px var(--synth-red-glow);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .effects-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .effects-toggle:hover {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.2);
}



.performance-hint {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  max-width: min(360px, 90vw);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.performance-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.performance-hint__content {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 5, 21, 0.9);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.performance-hint__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.performance-hint__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.performance-hint__action,
.performance-hint__dismiss {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.performance-hint__action {
  color: var(--bg-deep);
  background: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 249, 0.35);
}

.performance-hint__dismiss {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.performance-hint__action:hover {
  transform: translateY(-1px);
}

.performance-hint__dismiss:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(10, 5, 21, 0.85);
  color: var(--neon-cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 255, 249, 0.25);
}

.performance-console {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  z-index: 1090;
  min-width: 180px;
  max-width: 240px;
  padding: 0.6rem 0.75rem;
  background: rgba(10, 5, 21, 0.85);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.performance-console__title {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.performance-console__status {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 0.35rem;
}

.performance-console__details {
  font-size: 0.55rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0.02em;
}

.performance-console[data-state="warn"] {
  border-color: var(--synth-red);
  box-shadow: 0 0 18px var(--synth-red-glow);
}

.performance-console[data-state="warn"] .performance-console__status {
  color: var(--synth-red);
}

[data-theme="light"] .performance-console {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .performance-console__status {
  color: var(--neon-magenta);
}

[data-theme="light"] .performance-console[data-state="warn"] {
  border-color: var(--synth-red);
  box-shadow: 0 0 14px var(--synth-red-glow);
}

[data-theme="light"] .performance-hint__content {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color);
}

[data-theme="light"] .performance-hint__action {
  color: #0b121f;
}

[data-theme="light"] .performance-hint__dismiss {
  border-color: var(--border-color);
}

[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color);
  color: var(--neon-magenta);
}

[data-theme="light"] .back-to-top:hover {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.2);
}



ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.25em;
}


ul.contains-task-list {
  list-style: none;
  padding-left: 0;
}

.task-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.task-list-item input[type="checkbox"] {
  margin-top: 0.3em;
  accent-color: var(--neon-cyan);
}



table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(157, 78, 221, 0.25);
}

th {
  background: rgba(18, 5, 37, 0.9);
  font-weight: 600;
  color: var(--neon-cyan);
}

tr:nth-child(even) {
  background: rgba(10, 5, 21, 0.7);
}

tr:hover {
  background: rgba(157, 78, 221, 0.12);
}



blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid var(--neon-purple);
  background: rgba(10, 5, 21, 0.85);
  color: var(--text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}



hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}



::selection {
  background: rgba(0, 255, 249, 0.3);
  color: var(--text-primary);
}



::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}



:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
