:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-2: #0f151d;
  --band: #111923;
  --panel: #151e29;
  --panel-2: #101720;
  --panel-3: #1b2633;
  --text: #edf3fb;
  --soft: #c5d1df;
  --muted: #93a2b5;
  --line: #2b3848;
  --gold: #f2c14e;
  --green: #4cc9a7;
  --blue: #7aa7ff;
  --rose: #ff8fa3;
  --danger: #ff7a7a;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 16px 42px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: .75rem;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { left: .75rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 193, 78, .55);
  border-radius: var(--radius);
  background: #201b0f;
  color: var(--gold);
  font-weight: 900;
}
.brand strong,
.brand small { display: block; line-height: 1.2; }
.brand small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
  margin-top: .12rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.top-actions a,
.mobile-menu a {
  border-radius: var(--radius);
  color: var(--soft);
  font-weight: 750;
  padding: .55rem .72rem;
  text-decoration: none;
}
.top-actions a:hover,
.mobile-menu a:hover {
  background: var(--panel-3);
  color: var(--text);
}
.menu-button {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  padding: .55rem .75rem;
}
.mobile-menu {
  display: none;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.hero {
  max-width: var(--max);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: 1.4rem;
  align-items: center;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}
.hero h1 {
  max-width: 760px;
  margin: .35rem 0 .9rem;
  font-size: 4.8rem;
  line-height: .98;
}
.hero-text {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 1.15rem;
}
.eyebrow {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.6rem 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold);
  color: #15120a;
  font-weight: 850;
  padding: .68rem .95rem;
  text-decoration: none;
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}
.button.secondary {
  background: #20324a;
  color: var(--text);
  border-color: #334761;
}
.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.button.small {
  min-height: 36px;
  padding: .5rem .7rem;
  font-size: .92rem;
}
.button[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  max-width: 680px;
}
.hero-stats div,
.course-console,
.week-card,
.tool-panel,
.quiz-box,
.resource-card,
.progress-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-stats div { padding: .9rem; }
.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}
.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-top: .22rem;
}

.course-console {
  overflow: hidden;
  background: #0c121a;
}
.console-bar {
  display: flex;
  gap: .4rem;
  padding: .85rem;
  border-bottom: 1px solid var(--line);
  background: #121a25;
}
.console-bar span {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
  background: var(--rose);
}
.console-bar span:nth-child(2) { background: var(--gold); }
.console-bar span:nth-child(3) { background: var(--green); }
.course-console pre {
  margin: 0;
  padding: 1.2rem;
  overflow: auto;
  color: #dce8f8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1rem;
}
.section.band {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
  padding-left: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
}
.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}
.section-heading h2 {
  margin: .3rem 0 .55rem;
  font-size: 2.6rem;
  line-height: 1.05;
}
.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}


.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  padding: .12rem .48rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .74rem;
  font-weight: 800;
}
.status.live {
  border-color: rgba(76, 201, 167, .65);
  color: var(--green);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: .7rem;
  margin: 1rem 0;
}
textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d131b;
  color: var(--text);
  outline: none;
  padding: .78rem .85rem;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(122, 167, 255, .16);
}
.progress-panel {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: .85rem;
  color: var(--muted);
  background: var(--panel-2);
}
.progress-panel strong { color: var(--text); }
.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #263241;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width .2s ease;
}

.week-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.week-card {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  background: var(--panel);
}
.week-card.complete {
  border-color: rgba(76, 201, 167, .65);
}
.week-topline {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  align-items: start;
}
.week-card h3 {
  margin: 0;
  font-size: 1.45rem;
}
.week-question {
  margin: 0;
  color: var(--muted) !important;
  font-size: 1.02rem;
  font-weight: 400 !important;
  line-height: 1.55;
}
.material-links a {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  padding: .35rem .55rem;
  text-decoration: none;
  font-weight: 800;
  font-size: .85rem;
}
.material-links a:hover {
  border-color: var(--blue);
  color: var(--text);
}
.week-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}
.week-details summary {
  cursor: pointer;
  padding: .7rem .8rem;
  color: var(--gold);
  font-weight: 850;
}
.day-table {
  display: grid;
  border-top: 1px solid var(--line);
}
.day-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--line);
}
.day-row:last-child { border-bottom: 0; }
.day-row strong { color: var(--green); }
.day-row span { color: var(--soft); }
.day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}
.day-actions a {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .28rem .52rem;
  text-decoration: none;
  font-weight: 800;
  font-size: .82rem;
}
.day-actions a:first-child {
  background: #23200f;
  border-color: rgba(242, 193, 78, .42);
  color: var(--gold);
}
.day-actions a:hover {
  background: var(--panel-3);
  color: var(--text);
}
.progress-check {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}
.progress-check input {
  width: auto;
  accent-color: var(--green);
}
.empty-state { color: var(--muted); }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 1rem;
}
.tool-panel {
  padding: 1rem;
  background: var(--panel);
}
.editor-toolbar,
.quiz-actions,
.note-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .8rem;
}
#py-status,
#quiz-result,
#notes-status {
  color: var(--muted);
  font-weight: 750;
}
#code-editor {
  min-height: 330px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}
.output-panel h3 {
  margin: 0 0 .75rem;
}
#output {
  min-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d131b;
  color: #dbe8f7;
}

.quiz-box {
  display: grid;
  padding: .25rem 1rem;
  background: var(--panel);
}
.question {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.question:last-child { border-bottom: 0; }
.question h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
}
.answers {
  display: grid;
  gap: .45rem;
}
.answers label {
  display: flex;
  gap: .55rem;
  align-items: start;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.answers input {
  width: auto;
  accent-color: var(--green);
}
.feedback {
  margin-top: .55rem;
  font-weight: 800;
}
.correct { color: var(--green); }
.wrong { color: var(--danger); }
.notes {
  min-height: 180px;
  resize: vertical;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.resource-card {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-2);
}
.resource-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.resource-card strong { font-size: 1.08rem; }
.resource-card span { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  border-top: 1px solid var(--line);
  background: #070a0f;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hero,
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
}

@media (max-width: 860px) {
  .top-actions { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-menu.open { display: grid; }
  .hero h1 { font-size: 3.35rem; }
  .hero-stats,
  .toolbar,
  .progress-panel,
  .week-cards,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .day-row {
    grid-template-columns: 1fr;
  }
  .day-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .section.band {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero h1 { font-size: 2.55rem; }
  .site-footer { display: grid; }
}

/* Textbook reader */
.reader-body {
  background: #0b0f14;
  color: var(--text);
}
.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, .95);
  backdrop-filter: blur(14px);
}
.reader-brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.reader-brand strong,
.reader-brand small {
  display: block;
  line-height: 1.2;
}
.reader-brand small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
}
.reader-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}
.reader-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #0f151d;
}
.reader-sidebar-inner {
  padding: 1rem;
}
.reader-sidebar h2 {
  margin: .25rem 0 1rem;
  font-size: 1.3rem;
}
.reader-sidebar details {
  border-top: 1px solid var(--line);
  padding: .55rem 0;
}
.reader-sidebar summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 850;
}
.reader-sidebar ol {
  list-style: none;
  display: grid;
  gap: .22rem;
  margin: .55rem 0 0;
  padding: 0;
}
.reader-sidebar a {
  display: block;
  border-radius: var(--radius);
  color: var(--soft);
  padding: .42rem .5rem;
  text-decoration: none;
  font-size: .9rem;
}
.reader-sidebar a:hover,
.reader-sidebar a.active {
  background: var(--panel);
  color: var(--text);
}
.reader-article {
  min-width: 0;
  padding: 1.25rem 1.25rem 3rem;
}
.reader-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .92rem;
}
.reader-breadcrumb a {
  color: var(--soft);
  text-decoration: none;
}
.reader-breadcrumb a:hover {
  color: var(--gold);
}
.reader-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121a25;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.reader-hero h1 {
  max-width: 980px;
  margin: .3rem 0 .65rem;
  font-size: 2.6rem;
  line-height: 1.05;
}
.reader-hero p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: var(--soft);
}
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.page-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 1rem;
  margin-bottom: 1rem;
}
.page-toc h2 {
  margin: 0 0 .6rem;
  font-size: 1rem;
}
.page-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
}
.page-toc li {
  break-inside: avoid;
  margin: .22rem 0;
}
.page-toc .toc-subitem {
  margin-left: .8rem;
  font-size: .92rem;
}
.page-toc a {
  color: var(--soft);
  text-decoration: none;
}
.page-toc a:hover {
  color: var(--gold);
}
.toc-empty {
  color: var(--muted);
  margin: 0;
}
.textbook-content {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8fb;
  color: #172033;
  padding: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}
.textbook-content h1,
.textbook-content h2,
.textbook-content h3,
.textbook-content h4 {
  position: relative;
  color: #101827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.18;
}
.textbook-content h1 {
  margin-top: 0;
  padding-bottom: .75rem;
  border-bottom: 1px solid #d7dde8;
  font-size: 2.15rem;
}
.textbook-content h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}
.textbook-content h3 {
  margin-top: 1.55rem;
  font-size: 1.22rem;
}
.heading-anchor {
  opacity: 0;
  margin-left: .4rem;
  color: #5b6b84;
  text-decoration: none;
  font-size: .8em;
}
.textbook-content h1:hover .heading-anchor,
.textbook-content h2:hover .heading-anchor,
.textbook-content h3:hover .heading-anchor,
.textbook-content h4:hover .heading-anchor {
  opacity: 1;
}
.textbook-content p {
  margin: .85rem 0;
}
.textbook-content a {
  color: #245fa8;
}
.textbook-content code {
  border: 1px solid #d8dfeb;
  border-radius: 6px;
  background: #eef3fa;
  color: #a4373a;
  padding: .08rem .28rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}
.textbook-content pre {
  overflow: auto;
  border: 1px solid #d8dfeb;
  border-radius: var(--radius);
  background: #101827;
  color: #e7edf7;
  padding: 1rem;
  line-height: 1.55;
}
.textbook-content pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.textbook-content blockquote {
  margin: 1.2rem 0;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8df;
  color: #32280d;
  padding: .85rem 1rem;
}
.textbook-content blockquote p {
  margin: 0;
}
.textbook-content hr {
  border: 0;
  border-top: 1px solid #d7dde8;
  margin: 1.5rem 0;
}
.textbook-content li {
  margin: .35rem 0;
}
.table-wrap {
  overflow: auto;
}
.textbook-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .95rem;
}
.textbook-content th,
.textbook-content td {
  border: 1px solid #d7dde8;
  padding: .55rem;
  text-align: left;
}
.textbook-content th {
  background: #eaf0f8;
}
.reader-page-nav {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1rem;
}
.reader-nav-card,
.chapter-card,
.textbook-week-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  display: grid;
  gap: .25rem;
  padding: .9rem;
  text-decoration: none;
}
.reader-nav-card.next {
  text-align: right;
}
.reader-nav-card span,
.chapter-card span,
.textbook-week-card span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.reader-nav-card strong,
.chapter-card strong,
.textbook-week-card strong {
  line-height: 1.25;
}
.reader-nav-card:hover,
.chapter-card:hover,
.textbook-week-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.chapter-grid,
.textbook-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.chapter-card small,
.textbook-week-card li {
  color: var(--muted);
}
.textbook-index {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.textbook-week-card ul {
  margin: .4rem 0 0;
  padding-left: 1.05rem;
}
.reader-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #070a0f;
  color: var(--muted);
}
.reader-footer p {
  margin: 0;
}
.reader-footer a {
  color: var(--gold);
  text-decoration: none;
}
@media (max-width: 1040px) {
  .reader-shell {
    grid-template-columns: 1fr;
  }
  .reader-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .reader-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
}
@media (max-width: 760px) {
  .reader-hero h1 {
    font-size: 2rem;
  }
  .textbook-content {
    padding: 1.1rem;
    font-size: 1rem;
  }
  .page-toc ol,
  .chapter-grid,
  .textbook-week-grid,
  .reader-page-nav,
  .reader-sidebar nav {
    columns: 1;
    grid-template-columns: 1fr;
  }
  .reader-nav-card.next {
    text-align: left;
  }
  .reader-footer {
    display: grid;
  }
}

/* Interactive quizzes */
.interactive-quiz {
  display: grid;
  gap: 1rem;
}
.interactive-quiz-actions {
  position: sticky;
  top: 74px;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 32, .96);
  padding: .85rem;
  backdrop-filter: blur(12px);
}
.interactive-quiz-form {
  display: grid;
  gap: 1rem;
}
.interactive-question {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}
.interactive-question.correct {
  border-color: rgba(76, 201, 167, .7);
}
.interactive-question.wrong {
  border-color: rgba(255, 122, 122, .75);
}
.interactive-question.unanswered {
  border-color: rgba(242, 193, 78, .7);
}
.interactive-question-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: .75rem;
}
.question-state {
  color: var(--soft);
}
.interactive-question-prompt {
  color: var(--text);
}
.interactive-question-prompt pre,
.option-text pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d131b;
  color: #dbe8f7;
  padding: .85rem;
}
.interactive-options {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}
.interactive-options label {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: .7rem;
}
.interactive-options input {
  width: auto;
  margin-top: .3rem;
  accent-color: var(--green);
}
.option-letter {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #20324a;
  color: var(--text);
  font-weight: 900;
}
.option-text p {
  margin: 0;
}
.interactive-feedback {
  margin-top: .85rem;
  border-radius: var(--radius);
  background: #0d131b;
  color: var(--soft);
}
.interactive-feedback:not(:empty) {
  border: 1px solid var(--line);
  padding: .75rem;
}
.interactive-feedback p {
  margin: .25rem 0;
}
@media (max-width: 620px) {
  .interactive-quiz-actions {
    position: static;
  }
  .interactive-options label {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .option-letter {
    grid-column: 1;
  }
  .option-text {
    grid-column: 2;
  }
}
.week-card .week-question,
.week-card .week-question * {
  color: var(--muted) !important;
  font-weight: 400 !important;
}