:root {
  --bg-primary: #e7f1fb !important;
  --bg-secondary: #ffffff !important;
  --bg-tertiary: #e8f0ff !important;
  --border-color: #d5e4f5 !important;
  --text-main: #334155 !important;
  --text-bright: #16325c !important;
  --text-muted: #64748b !important;
  --accent-blue: #3b5bdb !important;
  --accent-green: #3b5bdb !important;
  --accent-purple: #5b6fd6 !important;
  --accent-yellow: #d97706 !important;
  --accent-red: #e11d48 !important;
  --code-bg: #1b2740 !important;
}

body {
  position: relative;
  z-index: 0;
  background-color: #e7f1fb !important;
  background-image:
    radial-gradient(circle at 0 0, rgba(186, 210, 255, 0.85) 0 9rem, transparent 9.2rem),
    radial-gradient(circle at 100% 100%, rgba(196, 214, 255, 0.7) 0 11rem, transparent 11.2rem) !important;
  background-repeat: no-repeat !important;
  color: #243044 !important;
  font-family: Nunito, Inter, "Segoe UI", sans-serif;
}

::selection {
  background: #c9d8ff;
  color: #16325c;
}

.container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

header,
.card,
article.card,
main > section,
.content > section,
.maturity,
.panel,
.block {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #d7e5f6 !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 34px rgba(80, 120, 180, 0.1);
}

header {
  margin-bottom: 1rem;
}

header h1,
h1,
h2,
.card h2 {
  color: #16325c !important;
}

header p,
.card p,
p,
li {
  color: #4b5d78;
}

.back,
.back-link,
a.back,
a.back-link {
  color: #3156c9 !important;
  background: #e7efff !important;
  border-radius: 999px !important;
}

.toc a,
.card a,
a {
  color: #3156c9;
}

.toc a {
  background: #eef3ff !important;
  border-color: #d5e3f8 !important;
  color: #3156c9 !important;
}

body.bg-slate-950,
body.bg-dark-bg,
body[class*="bg-slate"],
body[class*="bg-dark"] {
  background-color: #e7f1fb !important;
}

[class*="bg-dark-bg"]:not(pre),
[class*="bg-dark-border"],
[class*="bg-dark-surface"] {
  background-color: #f3f7ff !important;
  color: #243044 !important;
  border-color: #d7e5f6 !important;
}

.bg-slate-900,
.bg-slate-800,
.bg-dark-card,
.bg-dark-accent,
.bg-dark-bg:not(pre):not(body),
[class*="bg-slate-900"],
[class*="bg-slate-800"],
[class*="bg-dark-card"],
[class*="bg-dark-accent"] {
  background-color: #ffffff !important;
  border-color: #d7e5f6 !important;
  color: #243044 !important;
}

.border-slate-800,
.border-slate-700,
.border-dark-border,
[class*="border-slate-8"],
[class*="border-dark-border"] {
  border-color: #d7e5f6 !important;
}

.text-white,
.text-slate-50,
.text-slate-100,
.text-slate-200,
.text-slate-300 {
  color: #1c2b45 !important;
}

.text-slate-400,
.text-slate-500,
.text-slate-600 {
  color: #64748b !important;
}

.text-brand-200,
.text-brand-300,
.text-brand-400,
.text-brand-500,
.text-skybrand-400,
.text-skybrand-500 {
  color: #3b5bdb !important;
}

.bg-brand-500,
.bg-brand-600,
.bg-brand-700,
.from-brand-500,
.from-brand-600,
.to-skybrand-600,
[class*="from-brand-6"],
[class*="to-skybrand-6"] {
  --tw-gradient-from: #5b7cfa var(--tw-gradient-from-position) !important;
  --tw-gradient-to: #7aa2ff var(--tw-gradient-to-position) !important;
  background-color: #5b7cfa !important;
}

.bg-brand-500.text-white,
.bg-brand-600.text-white,
.bg-brand-700.text-white,
[class*="from-brand-"].text-white,
[class*="bg-brand-6"].text-white,
[class*="bg-indigo-"].text-white,
[class*="bg-blue-6"].text-white {
  color: #ffffff !important;
}

[class*="bg-brand-950"],
[class*="bg-brand-900"] {
  background-color: #eef3ff !important;
  color: #24406e !important;
  border-color: #d5e3f8 !important;
}

[class*="bg-amber-950"],
[class*="bg-amber-900"] {
  background-color: #fff7ed !important;
  color: #9a3412 !important;
}

[class*="bg-rose-950"],
[class*="bg-rose-900"] {
  background-color: #fff1f2 !important;
  color: #9f1239 !important;
}

[class*="border-brand-5"],
[class*="border-l-4"] {
  border-color: #8eabf8;
}

:not(pre) > code,
p code,
li code {
  background: #e8f0ff !important;
  color: #3156c9 !important;
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.ascii-tree {
  background: #1b2740 !important;
  color: #e8eefc !important;
  border-color: #3d5a8a !important;
}

pre,
pre.bg-dark-bg,
pre[class*="bg-"] {
  background: #1b2740 !important;
  background-image: none !important;
  color: #e8eefc !important;
  border-color: #2a3d66 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

pre,
pre code,
pre .text-slate-100,
pre .text-slate-200,
pre .text-slate-300,
pre .text-emerald-400,
pre .text-white,
pre * {
  color: #e8eefc !important;
  background: transparent !important;
}

pre {
  background: #1b2740 !important;
}

.container pre,
.container pre * {
  color: #e8eefc !important;
}

.container h1,
.container h2,
.container header p,
.container .card p,
.container li,
.container strong {
  color: #334155 !important;
}

.container h1,
.container h2 {
  color: #16325c !important;
}

.container a {
  color: #3156c9 !important;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e7f1fb; }
::-webkit-scrollbar-thumb { background: #b7c9ea; border-radius: 999px; }

h3,
h4,
h5,
.day h4,
.node h3 {
  color: #16325c !important;
}

.day-num {
  color: #3b5bdb !important;
}

.day p,
.day li,
.day ul,
.meta,
.node ul,
.node-days {
  color: #4b5d78 !important;
}

.week,
.phase,
.node {
  background: #ffffff !important;
  border: 1px solid #d7e5f6 !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 34px rgba(80, 120, 180, 0.1);
}

.day {
  border-top-color: #e3edf8 !important;
}

.week-head,
.phase-head {
  background: #e7f0ff !important;
}

.week-head h2,
.week-head p,
.week-head a,
.phase-head h2,
.phase-head p,
.phase-head a {
  color: #2c4d86 !important;
}

