:root {
  color-scheme: light;
  --ink:#173c34;
  --muted:#64766d;
  --paper:#f5f5ee;
  --line:#dce2d7;
  --green:#23664e;
  --lime:#d9f080;
  --gold:#bc6b3c;
  --panel:#fffef8;
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .55;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #d78036;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  width: 31px;
  height: 34px;
  border-radius: 12px 2px 12px 2px;
  font-family: Georgia, serif;
  font-style: italic;
}
.brand-divider {
  height: 19px;
  width: 1px;
  background: #b7c4b6;
  margin: 0 5px;
}
.brand-lab {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
.topbar nav a {
  text-decoration: none;
  color: var(--muted);
}
.topbar nav [aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.school-tag {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.flag {
  width: 19px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(
      90deg,
      #228454 33%,
      #ead459 33%,
      #ead459 66%,
      #c9694f 66%);
}
main {
  max-width: 1700px;
  padding: 0 4%;
  margin: auto;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 29px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 12px;
}
.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 19px;
  height: 1px;
  background: #9aaf92;
}
h1 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(32px, 3vw, 53px);
  font-weight: 400;
  letter-spacing: -1.9px;
  line-height: 1.12;
  margin: 0;
}
h1 > span {
  color: #b4754d;
}
.intro-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 0;
}
.version-link {
  margin-left: 6px;
  color: var(--sunu-primary);
  font-weight: 600;
  white-space: nowrap;
}
.source-pill {
  border: 1px solid #cbd5c7;
  border-radius: 9px;
  position: relative;
  min-width: 154px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.source-pill > span {
  float: right;
  font-size: 18px;
}
.source-pill small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
  font-weight: 400;
}
.mobile-break {
  display: none;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.stage-column {
  min-width: 0;
}
.stage {
  position: relative;
  height: clamp(454px, calc(52vw + 44px), 684px);
  overflow: hidden;
  border-radius: 12px;
  background: #e8eae0;
  border: 1px solid #d3dccd;
}
/* La barre de vues et l'aide vivent dans une bande sous le dessin : posées dessus, elles masquaient g et les vecteurs à l'impact. */
.stage canvas {
  display: block;
  width: 100%;
  height: calc(100% - 78px);
  object-fit: contain;
  touch-action: none;
}
.stage-top {
  position: absolute;
  top: 21px;
  left: 23px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #42584b;
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: #518747;
}
.camera-tools {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #ffffffa6;
  background: #fffdf0e8;
  box-shadow: 0 3px 20px #203f2310;
  border-radius: 7px;
  white-space: nowrap;
}
.camera-tools button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: #51685b;
  padding: 8px 11px;
  font-size: 10px;
}
.camera-tools .selected {
  background: var(--ink);
  color: #fff;
}
.stage-help {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  text-align: center;
  pointer-events: none;
  font-size: 9px;
  color: #526459;
}
.expand-button {
  position: absolute;
  right: 18px;
  bottom: 35px;
  background: #fffaf0;
  border: 1px solid #ccd6c7;
  color: var(--ink);
  border-radius: 5px;
  font-size: 22px;
  width: 34px;
  height: 34px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffef6;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 16px;
  margin-top: 12px;
}
.reset-button {
  background: none;
  border: 0;
  font-size: 25px;
  color: #47614c;
  padding: 0 5px;
}
.play-button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 11px;
  min-width: 95px;
  justify-content: center;
}
.time-track {
  flex: 1;
  min-width: 70px;
}
.time-track > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.time-track label {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.time-track output {
  font: 10px ui-monospace, monospace;
  white-space: nowrap;
}
input[type=range] {
  accent-color: var(--green);
  width: 100%;
  height: 4px;
  cursor: pointer;
  margin: 14px 0 5px;
}
.time-track input {
  margin: 10px 0 3px;
}
.speed-group {
  display: flex;
  gap: 2px;
}
.speed-group button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 6px 7px;
  font: 10px ui-monospace, monospace;
  color: var(--muted);
  cursor: pointer;
}
.speed-group [aria-pressed=true] {
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
}
.step-label {
  margin: 20px 0 0;
}
.event-button {
  font-size: 9px;
  color: #4d6657;
  border: 0;
  background: transparent;
  white-space: nowrap;
  padding: 9px 4px;
}
.event-button span {
  margin-left: 6px;
  color: #8a9d82;
}
.narration {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 24px 3px 22px;
  min-height: 107px;
}
.narration-number {
  font: italic 31px Georgia, serif;
  color: #9bab8a;
  line-height: 1;
}
.narration > div:nth-child(2) {
  flex: 1;
}
.narration .eyebrow {
  margin-bottom: 7px;
  font-size: 8px;
}
.narration p:last-child {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  max-width: 690px;
  color: #526251;
}
.language-button {
  background: none;
  border: 1px solid #cad3c2;
  border-radius: 5px;
  font-size: 9px;
  padding: 7px 8px;
  color: var(--ink);
}
.language-button span {
  color: var(--muted);
  font-size: 8px;
}
.readings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
  gap: 14px;
}
.readings article {
  border-right: 1px solid var(--line);
  padding-left: 5px;
}
.readings article:last-child {
  border: 0;
}
.readings article > span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: block;
}
.readings strong {
  font: 30px Georgia, serif;
  display: block;
  margin: 9px 0 6px;
  letter-spacing: -1px;
}
.readings small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}
.control-panel {
  background: var(--panel);
  border: 1px solid #d7dfcf;
  border-radius: 11px;
  padding: 7px 21px 0;
  overflow: hidden;
}
.mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 -21px;
  padding: 0 10px;
  gap: 5px;
}
.mode-tabs button {
  flex: 1;
  padding: 15px 3px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #7b8876;
  font-size: 10px;
}
.mode-tabs [aria-selected=true] {
  border-bottom-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}
.panel-heading {
  padding-top: 25px;
  margin-bottom: 26px;
}
.panel-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #829075;
}
.panel-heading h2 {
  font: 25px Georgia, serif;
  letter-spacing: -.5px;
  margin: 0;
}
.control {
  margin-bottom: 24px;
}
.control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #51614e;
}
.control output {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--ink);
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #93a089;
  margin-top: 4px;
}
.control small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  line-height: 1.5;
}
.planets {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
  display: flex;
  gap: 6px;
}
.planets legend {
  font-size: 10px;
  padding: 0;
  margin-bottom: 11px;
}
.planets button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 4px;
  font-size: 10px;
  border: 1px solid #e0e3d6;
  border-radius: 6px;
  background: #f8f8f0;
  color: #707d65;
}
.planets [aria-pressed=true] {
  border-color: #617a50;
  background: #e9eedf;
  color: #2c4934;
}
.planets button span {
  font-size: 15px;
}
.advanced {
  border-top: 1px solid var(--line);
  margin: 17px 0;
}
.advanced summary {
  font-size: 11px;
  cursor: pointer;
  padding: 15px 0;
  list-style: none;
  color: #52614b;
}
.advanced summary span {
  float: right;
  color: #829378;
}
.advanced[open] summary {
  margin-bottom: 8px;
}
.advanced p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.6;
  margin: 15px 0;
  color: #52614b;
}
.check input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
}
.panel-tip {
  font-size: 10px;
  line-height: 1.8;
  padding: 13px 14px;
  border-radius: 6px;
  background: #f0f2e7;
  color: #6a785e;
  margin: 22px 0;
}
.panel-tip span {
  font-size: 16px;
  color: var(--green);
  margin-right: 5px;
}
.panel-footer {
  border-top: 1px solid var(--line);
  margin: 0 -21px;
  padding: 15px 21px;
}
.panel-footer button {
  background: none;
  border: 0;
  color: #557048;
  font-size: 10px;
  padding: 0;
}
.panel-footer output {
  display: block;
  font-size: 9px;
  color: #708366;
  margin-top: 7px;
}
.field-label {
  font-size: 10px;
  display: block;
  margin: 18px 0 8px;
}
select {
  width: 100%;
  padding: 11px 9px;
  border: 1px solid #d3dcc9;
  border-radius: 5px;
  background: #f9faf2;
  color: #38523a;
  font-size: 10px;
}
.mission-statement,
.panel-copy {
  font-size: 11px;
  line-height: 1.85;
  color: #617056;
}
.theory-options {
  border: 0;
  padding: 0;
  margin-top: 22px;
}
.theory-options legend {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 10px;
}
.theory-options button {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  padding: 10px;
  margin: 7px 0;
  background: #f6f7ec;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
  color: #435b3d;
}
.theory-options button[aria-pressed=true] {
  border-color: #42734b;
  background: #e2ecd6;
}
.feedback {
  font-size: 10px;
  line-height: 1.8;
  color: #4a6641;
  min-height: 18px;
}
.feedback.error {
  color: #a95231;
}
.primary-action {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: #214d3c;
  color: #f9fbf1;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  padding: 13px 14px;
  margin: 20px 0 12px;
}
.score-label {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 10px;
  color: #6b7e5c;
}
.other-studio {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin: 18px 0;
  text-decoration: none;
}
input[type=file] {
  font-size: 9px;
  width: 100%;
  margin-bottom: 10px;
}
#audioStatus {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
  display: block;
}
progress {
  width: 100%;
  accent-color: var(--green);
}
.lesson-details {
  padding: 20px 0 35px;
  max-width: 1080px;
}
.lesson-details > details {
  border-top: 1px solid var(--line);
}
.lesson-details summary {
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}
.lesson-details summary > span {
  font: italic 17px Georgia, serif;
  color: #96a386;
  margin-right: 18px;
}
.lesson-details summary b {
  float: right;
  font-weight: 400;
  color: #819574;
}
.equation-content {
  padding: 0 30px 24px;
  font-size: 12px;
  line-height: 1.9;
  color: #58704d;
}
.equation {
  font-family: ui-monospace, monospace;
  background: #e9eee0;
  padding: 12px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
/* Question du Bac 2026 : fractions en HTML, sans bibliothèque, pour rester lisibles hors connexion. */
.frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  font-size: 0.85em;
  line-height: 1.3;
  margin: 0 2px;
}
.frac > span:first-child {
  border-bottom: 1px solid currentColor;
  padding: 0 3px;
}
.bac-question {
  max-width: 820px;
}
.bac-question .feedback {
  font-size: 12px;
}
/* Flèche de vecteur dessinée : la flèche combinante U+20D7 manque dans beaucoup de polices et s'affiche en carré. */
.vec {
  position: relative;
  display: inline-block;
  font-style: italic;
  line-height: 1;
}
.vec::after {
  content: "→";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.42em;
  font-size: 0.7em;
  font-style: normal;
  line-height: 1;
  text-align: center;
}
.bac-source,
.bac-note {
  font-size: 10px;
  color: var(--muted);
}
.bac-q button {
  font-size: 12px;
  padding: 11px 12px;
}
.bac-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sunu-primary);
  border-radius: 5px;
  padding: 8px 12px;
  margin: 0 6px 6px 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.bac-action[aria-pressed=true] {
  border-color: var(--sunu-danger);
  color: var(--sunu-danger);
}
.bac-action:disabled {
  opacity: 0.45;
  cursor: default;
}
.bac-tries {
  display: flex;
  flex-wrap: wrap;
}
.situations {
  margin: 0 0 22px;
}
.other-labs {
  max-width: 1080px;
  padding: 10px 0 40px;
}
.other-labs h2 {
  font: 26px Georgia, serif;
  margin: 8px 0 18px;
}
.lab-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.lab-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--sunu-surface);
  color: var(--ink);
  text-decoration: none;
}
.lab-links a:hover {
  border-color: var(--sunu-primary);
}
.lab-links strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.lab-links span {
  font-size: 11px;
  color: var(--muted);
}
.situations button strong {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin: 0 4%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 35px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #91a086;
}
.site-footer span:last-child {
  letter-spacing: 0;
  font-size: 10px;
}
body.scene-full .stage {
  height: 85vh;
}
#simCanvas:active {
  cursor: grabbing;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .stage {
    height: 744px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 15px;
  }
  .school-tag {
    display: none;
  }
  .control-panel {
    padding-left: 17px;
    padding-right: 17px;
  }
  .mode-tabs,
  .panel-footer {
    margin-left: -17px;
    margin-right: -17px;
  }
  .event-button {
    display: none;
  }
  .stage {
    height: 534px;
  }
  .stage canvas {
    --plan-bottom: 100;
  }
  .intro {
    padding-top: 27px;
  }
}
@media (max-width: 750px) {
  .topbar {
    height: 66px;
    padding: 0 5%;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-lab,
  .brand-divider {
    display: none;
  }
  .topbar nav {
    gap: 16px;
    font-size: 10px;
  }
  .topbar nav > a:first-child,
  .topbar nav .nav-labs {
    display: none;
  }
  .lab-links {
    grid-template-columns: 1fr 1fr;
  }
  main {
    padding: 0 5%;
  }
  .intro {
    padding: 27px 0 23px;
    align-items: flex-start;
  }
  .intro h1 {
    font-size: 34px;
  }
  .intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1.6px;
    margin-bottom: 13px;
  }
  .intro-copy {
    font-size: 10px;
    max-width: 215px;
    line-height: 1.7;
  }
  .source-pill {
    padding: 8px 10px;
    min-width: 95px;
    font-size: 10px;
    margin-top: 2px;
  }
  .source-pill small {
    font-size: 7px;
    max-width: 65px;
    line-height: 1.6;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .stage-column,
  .control-panel {
    width: 100%;
  }
  .stage {
    height: 470px;
  }
  /* Sur téléphone, l'aide tient sur deux lignes : la bande sous le dessin est plus haute. */
  .stage canvas {
    height: calc(100% - 88px);
    --plan-bottom: 84;
  }
  .stage-top {
    top: 15px;
    left: 15px;
    right: 15px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .stage-help {
    font-size: 8px;
    line-height: 1.5;
    left: 20px;
    right: 20px;
    bottom: 12px;
  }
  .camera-tools {
    bottom: 44px;
  }
  .camera-tools button {
    font-size: 9px;
    padding: 8px 9px;
  }
  .expand-button {
    display: none;
  }
  .transport {
    gap: 8px;
    padding: 12px 10px;
  }
  .play-button {
    font-size: 10px;
    padding: 11px 13px;
    min-width: 82px;
  }
  .time-track label {
    font-size: 6px;
  }
  .time-track output {
    font-size: 9px;
  }
  .narration {
    gap: 10px;
    padding: 21px 1px;
  }
  .narration p:last-child {
    font-size: 11px;
  }
  .narration-number {
    font-size: 27px;
  }
  .language-button {
    font-size: 8px;
    padding: 7px 5px;
  }
  .readings {
    gap: 9px;
    padding: 18px 0 8px;
  }
  .readings strong {
    font-size: 25px;
  }
  .readings article > span {
    font-size: 6px;
    letter-spacing: .7px;
  }
  .readings small {
    font-size: 8px;
  }
  .control-panel {
    padding: 5px 22px 0;
  }
  .mode-tabs {
    margin: 0 -22px;
  }
  .mode-tabs button {
    font-size: 12px;
    padding: 17px 4px;
  }
  .panel-heading {
    margin-bottom: 24px;
  }
  .control {
    margin-bottom: 26px;
  }
  .control label,
  .planets legend {
    font-size: 12px;
  }
  .control output {
    font-size: 12px;
  }
  input[type=range] {
    height: 5px;
    margin-top: 19px;
  }
  .planets button {
    padding: 13px;
    font-size: 12px;
  }
  .panel-footer {
    margin: 0 -22px;
    padding: 19px 22px;
  }
  .panel-footer button {
    font-size: 12px;
  }
  .lesson-details {
    padding-top: 18px;
  }
  .lesson-details summary {
    font-size: 11px;
    line-height: 1.6;
  }
  .equation-content {
    padding-left: 5px;
    padding-right: 5px;
  }
  .site-footer {
    margin: 0 5%;
    display: block;
    font-size: 7px;
  }
  .site-footer span {
    display: block;
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 750px) {
  .transport {
    flex-wrap: wrap;
  }
  .transport .event-button {
    display: inline-flex;
    justify-content: center;
    flex: 1 1 40%;
    font-size: 10px;
    padding: 10px 8px;
  }
  .transport .speed-group {
    order: 1;
    flex: 1 1 100%;
    justify-content: center;
  }
  .speed-group button {
    padding: 8px 12px;
  }
  .control input[type=range] {
    min-height: 18px;
  }
}
.mode-toggle {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
html[data-sunumind-mode=dark] .brand-mark {
  background: #1f5c46;
  color: #d9f080;
}
html[data-sunumind-mode=dark] .brand-divider {
  background: #3a4a43;
}
html[data-sunumind-mode=dark] .eyebrow span {
  background: #4e5f56;
}
html[data-sunumind-mode=dark] h1 > span {
  color: #e0a066;
}
html[data-sunumind-mode=dark] :is(.source-pill, .expand-button, .language-button, .control-panel, .planets button, .theory-options button, select) {
  border-color: var(--line);
}
html[data-sunumind-mode=dark] .stage {
  background: #111a17;
  border-color: #26342e;
}
html[data-sunumind-mode=dark] :is(.stage-top, .camera-tools button) {
  color: #a9bbb0;
}
html[data-sunumind-mode=dark] .live-tag i {
  background: #6cc39a;
}
html[data-sunumind-mode=dark] .camera-tools {
  border-color: #ffffff14;
  background: #16211dee;
  box-shadow: 0 3px 20px #0006;
}
html[data-sunumind-mode=dark] .camera-tools .selected {
  background: var(--sunu-primary);
  color: var(--sunu-paper);
}
html[data-sunumind-mode=dark] :is(.stage-help, .mode-tabs button, .panel-heading .eyebrow) {
  color: #8fa196;
}
html[data-sunumind-mode=dark] :is(.expand-button, .transport) {
  background: var(--sunu-surface);
}
html[data-sunumind-mode=dark] :is(.reset-button, .event-button) {
  color: #b9cbbf;
}
html[data-sunumind-mode=dark] :is(.event-button span, .advanced summary span, .lesson-details summary b, .range-ends) {
  color: #7f9386;
}
html[data-sunumind-mode=dark] :is(.narration-number, .lesson-details summary > span) {
  color: #6f8c79;
}
html[data-sunumind-mode=dark] :is(.narration p:last-child, .control label, .advanced summary, .check, .panel-copy, .mission-statement, .equation-content, .theory-options button) {
  color: #c6d3ca;
}
html[data-sunumind-mode=dark] :is(.planets button, .theory-options button, .equation) {
  background: var(--sunu-soft);
}
html[data-sunumind-mode=dark] .planets button {
  color: #b0c0b5;
}
html[data-sunumind-mode=dark] :is(.planets [aria-pressed=true], .theory-options button[aria-pressed=true]) {
  border-color: #6cc39a;
  background: #22362d;
  color: var(--ink);
}
html[data-sunumind-mode=dark] :is(.panel-footer button, .feedback) {
  color: #8fd0ad;
}
html[data-sunumind-mode=dark] .feedback.error {
  color: #ec8a7a;
}
html[data-sunumind-mode=dark] :is(.panel-footer output, .score-label) {
  color: var(--muted);
}
html[data-sunumind-mode=dark] .site-footer {
  color: #8a9c91;
}
