:root[data-theme="dark"]{
  --bg:#0d0f14;
  --fg:#eef0f6;
  --muted:#a7acba;
  --card:#141824;
  --border:rgba(255,255,255,.12);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --accent:#7aa7ff;
  --warn:#f2c56b;
}

:root[data-theme="dark"] .page-header{
  background:linear-gradient(180deg, rgba(20,24,36,.9), rgba(20,24,36,0));
}

:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .theme-toggle{
  background:rgba(255,255,255,.04);
}

:root[data-theme="dark"] .prompt-box{
  border-color:rgba(255,255,255,.18);
}

:root[data-theme="dark"] .toc a{
  background:rgba(255,255,255,.06);
}
:root[data-theme="dark"] .toc a:hover{
  background:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .math-block,
:root[data-theme="dark"] .fold,
:root[data-theme="dark"] .table{
  background:rgba(255,255,255,.04);
}
