@font-face {
  font-family: system-local;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #03070d;
  color: #dce5f0;
  font-family: system-local, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
  background: none;
}
button:hover {
  color: #fff;
  background: #ffffff0c;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #83dfd0;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
input,
select {
  color: #cbd7e5;
  background: #0b1420;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  padding: 8px;
}
select {
  max-width: 100%;
}
a {
  color: #86c9df;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(#07101aee, #07101a33);
  z-index: 5;
}
.brand {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #eef5fa;
}
.brand:hover {
  text-decoration: none;
}
.brand > span:last-child {
  font-weight: 300;
  color: #9daec0;
}
.brand-icon {
  font-size: 33px;
  margin-right: 9px;
  color: #8ee7d1;
  font-weight: 300;
}
.header-divider {
  height: 23px;
  width: 1px;
  background: #ffffff20;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7f93a8;
  font-weight: 600;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8a9cae;
  font-size: 11px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #7ee0c4;
  border-radius: 50%;
  box-shadow: 0 0 9px #7ee0c4;
}
.icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  font-size: 17px;
}
.glass {
  background: linear-gradient(130deg, #101c2beb, #08111de8);
  border: 1px solid #8cacc21b;
  box-shadow: 0 16px 45px #0004;
  backdrop-filter: blur(18px);
  border-radius: 12px;
}
.navigator {
  position: fixed;
  left: 24px;
  top: 92px;
  bottom: 154px;
  width: 222px;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 0;
}
.section-title {
  font-weight: 600;
  margin: 0 6px 16px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.5px;
}
.section-title span {
  color: #6f8398;
  font-size: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff12;
  background: #060f1b88;
  border-radius: 7px;
  padding: 0 9px;
  margin: 0 4px;
}
.search span {
  font-size: 20px;
  color: #73899f;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 11px;
}
.filter-row {
  display: flex;
  gap: 3px;
  padding: 12px 3px;
}
.filter-row button {
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #70889e;
}
.filter-row button.active {
  background: #7ad8c418;
  color: #a0eddd;
}
.body-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #314257 transparent;
}
.body-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  text-align: left;
  border-radius: 6px;
  margin-bottom: 2px;
}
.body-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--body-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--body-color) 24%, transparent);
  flex-shrink: 0;
}
.body-row span:last-child {
  margin-left: auto;
  color: #526c83;
  font-size: 9px;
}
.body-row.active {
  background: #71d9c30e;
  border: 1px solid #71d9c32b;
  color: #c2f6eb;
}
.body-row.moon {
  padding-left: 23px;
  font-size: 11px;
}
.body-row.moon .dot {
  width: 5px;
  height: 5px;
}
.nav-footer {
  border-top: 1px solid #ffffff10;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #5f768d;
  padding: 13px 5px;
}
.scene-heading {
  position: fixed;
  top: 111px;
  left: 275px;
  pointer-events: none;
}
.scene-heading h1 {
  font-size: 31px;
  font-weight: 300;
  margin: 10px 0 8px;
  letter-spacing: 5px;
}
.scene-heading p {
  color: #738da4;
  font-size: 11px;
  margin: 0;
}
.view-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 89px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
}
.view-actions button {
  padding: 7px 12px;
  font-size: 11px;
  color: #93a9bb;
  border-radius: 4px;
}
.view-actions button.active {
  color: #a9efdf;
  background: #86e8d016;
}
.inspector {
  position: fixed;
  right: 24px;
  top: 92px;
  bottom: 154px;
  width: 284px;
  padding: 22px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #314257 transparent;
}
.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.small-button {
  font-size: 10px;
  border: 1px solid #ffffff18;
  border-radius: 5px;
  padding: 6px 8px;
  color: #9ddbcf;
}
.inspector h2 {
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 3px;
  margin: 21px 0 4px;
}
.english {
  letter-spacing: 3px;
  font-size: 10px;
  color: #6d829a;
}
.inspector > p {
  font-size: 12px;
  line-height: 1.9;
  color: #95a8ba;
  margin: 21px 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #ffffff12;
  gap: 25px;
  margin-bottom: 16px;
}
.tabs button {
  font-size: 11px;
  padding: 9px 0 11px;
  color: #728a9e;
  position: relative;
}
.tabs button.active {
  color: #a6e9dc;
}
.tabs button.active:after {
  content: "";
  height: 2px;
  background: #85e2cb;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff08;
  gap: 8px;
}
.stat span {
  color: #71899f;
  font-size: 10px;
}
.stat strong {
  font-size: 11px;
  font-weight: 500;
  color: #c3d4e3;
  text-align: right;
}
.facts-notes {
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
}
.facts-notes li {
  position: relative;
  padding: 6px 0 6px 12px;
  color: #90a4b7;
  line-height: 1.7;
  font-size: 11px;
}
.facts-notes li:before {
  content: "·";
  position: absolute;
  left: 0;
  color: #81d8c5;
}
.resource-link {
  display: block;
  border: 1px solid #ffffff0d;
  padding: 10px;
  margin: 7px 0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
}
.resource-link:after {
  content: " ↗";
}
.model-note {
  color: #738ca2;
  line-height: 1.8;
  font-size: 10px;
  margin-top: 14px;
}
.scene-tools {
  position: fixed;
  right: 332px;
  bottom: 155px;
  padding: 9px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  font-size: 10px;
  color: #a4b8c9;
}
.scene-tools label {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.scene-tools input {
  accent-color: #73d1bc;
  margin: 0;
}
.scene-tools select {
  font-size: 10px;
  padding: 5px 7px;
}
.scale-note {
  position: fixed;
  left: 276px;
  bottom: 161px;
  font-size: 9px;
  color: #637c92;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-line {
  width: 18px;
  height: 1px;
  background: #5b8295;
}
.timeline {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 104px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 24px;
  border-radius: 12px;
  background: linear-gradient(100deg, #101e2af5, #09111ef3);
}
.time-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}
.play-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #93e2cf7a;
  color: #9ce9d7;
  background: #89dbc50a;
  font-size: 17px;
  padding-left: 5px;
}
.time-primary .icon-button {
  font-size: 23px;
  border: 0;
  color: #7794a7;
}
.date-readout {
  font-size: 20px;
  letter-spacing: 2px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.time-speed {
  flex: 1;
  min-width: 130px;
  max-width: 410px;
  border-left: 1px solid #ffffff12;
  padding-left: 28px;
}
.time-speed label {
  font-size: 10px;
  color: #718ba0;
  display: flex;
  justify-content: space-between;
}
.time-speed strong {
  color: #abd9d4;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.time-speed input {
  width: 100%;
  padding: 0;
  height: 3px;
  margin-top: 17px;
  accent-color: #89dfc9;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #4e697e;
  margin-top: 8px;
}
.time-model {
  border-left: 1px solid #ffffff12;
  padding-left: 28px;
  min-width: 240px;
}
.time-model label {
  display: block;
  margin-bottom: 5px;
}
.time-model select {
  font-size: 11px;
  padding: 5px;
  border: 0;
  background: transparent;
  width: 205px;
}
.time-model option {
  background: #101b28;
}
.time-model > div {
  font-size: 9px;
  color: #648095;
  margin-top: 6px;
  white-space: nowrap;
}
.lab-button {
  margin-left: auto;
  color: #9db6c6;
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid #ffffff1c;
  border-radius: 6px;
  padding: 11px 14px;
}
#viewport {
  position: fixed;
  inset: 0;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.planet-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #8498ad;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
  cursor: pointer;
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 5px;
}
.planet-label.selected {
  color: #b2f5e4;
}
.planet-label.selected:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #8de8d1;
  border-radius: 50%;
  margin-right: 6px;
}
#notice {
  position: fixed;
  bottom: 143px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  border-radius: 8px;
  background: #172632ed;
  color: #d9e9ee;
  padding: 12px 20px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
#notice.visible {
  opacity: 1;
}
dialog {
  border: 1px solid #7b9ab43b;
  border-radius: 16px;
  background: linear-gradient(135deg, #152537, #08131f);
  color: #bdcedf;
  max-width: 630px;
  width: calc(100% - 32px);
  padding: 35px;
  box-shadow: 0 25px 120px #000a;
}
dialog::backdrop {
  background: #010710ba;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 2px;
}
dialog p {
  font-size: 12px;
  line-height: 1.95;
  color: #8fa7bb;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 23px;
  color: #7d99b0;
}
.primary {
  background: #8bdcc6;
  color: #102e2c;
  border-radius: 6px;
  padding: 11px 20px;
  font-weight: 600;
  margin-top: 15px;
}
.primary:hover {
  background: #b0f2de;
  color: #102e2c;
}
.lab-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #ffffff14;
  margin-bottom: 20px;
}
.lab-tabs button {
  padding: 10px 12px;
  font-size: 12px;
  color: #7795aa;
}
.lab-tabs button.active {
  color: #a0e2d2;
  border-bottom: 2px solid #7cdbc0;
}
.form-row {
  display: flex;
  gap: 15px;
  margin: 14px 0;
}
.form-row label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #7895aa;
}
.form-row input,
.form-row select {
  width: 100%;
}
.result-box {
  padding: 15px 0;
  color: #92cdbf;
  font-size: 12px;
  line-height: 1.9;
  min-height: 30px;
}
.result-box.error {
  color: #efb092;
}
#epoch-lab label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #96aebe;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #050c15;
  z-index: 20;
  transition: opacity 0.5s;
}
#loading h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 6px;
}
#loading p {
  color: #688399;
  font-size: 12px;
}
.loading-orbit {
  height: 64px;
  width: 64px;
  border: 1px solid #355863;
  border-radius: 50%;
  position: relative;
  animation: spin 3s linear infinite;
}
.loading-orbit:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8cdec8;
  top: -4px;
  left: 28px;
  box-shadow: 0 0 15px #8cdec8;
}
.loading-orbit:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ba9670;
  top: 24px;
  left: 24px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 1250px) {
  .navigator {
    width: 195px;
  }
  .inspector {
    width: 252px;
    padding: 18px;
  }
  .scene-heading {
    left: 245px;
  }
  .scene-tools {
    right: 300px;
    gap: 8px;
  }
  .scale-note {
    left: 245px;
    bottom: 194px;
    max-width: 300px;
  }
  .timeline {
    gap: 18px;
    padding: 16px 20px;
  }
  .time-primary {
    min-width: 230px;
    gap: 12px;
  }
  .time-model {
    min-width: 205px;
    padding-left: 18px;
  }
  .time-speed {
    padding-left: 18px;
  }
  .view-actions {
    left: 48%;
    top: 85px;
  }
  .scene-heading {
    top: 133px;
  }
  .lab-button {
    padding: 10px;
    font-size: 10px;
  }
}
@media (max-width: 960px) {
  header {
    padding: 0 16px;
    height: 66px;
  }
  .header-divider,
  header > .eyebrow {
    display: none;
  }
  .navigator {
    left: 12px;
    top: 78px;
    width: 155px;
    bottom: 180px;
    padding: 12px 7px 0;
  }
  .section-title {
    font-size: 12px;
  }
  .filter-row button {
    padding: 5px;
    font-size: 9px;
  }
  .body-row {
    padding: 8px 6px;
    gap: 8px;
    font-size: 11px;
  }
  .body-row span:last-child {
    display: none;
  }
  .inspector {
    right: 12px;
    top: 78px;
    width: 225px;
    bottom: 180px;
    padding: 15px;
  }
  .inspector-header .small-button {
    font-size: 9px;
  }
  .scene-heading {
    left: 186px;
    top: 128px;
  }
  .scene-heading h1 {
    font-size: 24px;
  }
  .scene-heading p {
    max-width: 180px;
    line-height: 1.8;
  }
  .view-actions {
    top: 78px;
    left: 46%;
    gap: 0;
  }
  .view-actions button {
    padding: 7px;
    font-size: 9px;
  }
  .timeline {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 145px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 14px;
  }
  .time-primary {
    min-width: 210px;
  }
  .time-speed {
    flex: 1;
    max-width: none;
  }
  .time-model {
    min-width: 0;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .time-model label {
    display: none;
  }
  .time-model > div {
    margin: 0;
    font-size: 8px;
  }
  .lab-button {
    margin-left: auto;
  }
  .scene-tools {
    bottom: 173px;
    right: 251px;
    left: 180px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px;
    gap: 7px;
    font-size: 9px;
  }
  .scene-tools select {
    font-size: 9px;
  }
  .scale-note {
    bottom: 223px;
    left: 180px;
    font-size: 8px;
  }
  .inspector h2 {
    font-size: 26px;
  }
  .header-right {
    font-size: 9px;
  }
  #notice {
    bottom: 169px;
  }
}
@media (max-width: 650px) {
  .navigator {
    width: 126px;
    bottom: 195px;
  }
  .inspector {
    top: auto;
    bottom: 194px;
    right: 10px;
    height: 195px;
    width: 208px;
  }
  .inspector > p {
    display: none;
  }
  .inspector h2 {
    font-size: 21px;
    margin: 8px 0 3px;
  }
  .english {
    font-size: 8px;
  }
  .tabs {
    margin-top: 8px;
    margin-bottom: 7px;
  }
  .stat {
    padding: 5px 0;
  }
  .facts-notes {
    display: none;
  }
  .scene-heading {
    left: 155px;
  }
  .scene-heading h1 {
    font-size: 24px;
  }
  .view-actions {
    left: 66%;
    top: 77px;
    width: max-content;
  }
  .view-actions button {
    padding: 6px;
  }
  .header-right #engine-state {
    display: none;
  }
  .scene-tools {
    left: 145px;
    right: 10px;
    bottom: 164px;
  }
  .scale-note {
    display: none;
  }
  .timeline {
    height: 140px;
  }
  .time-primary {
    min-width: 185px;
  }
  .time-primary .eyebrow {
    font-size: 7px;
  }
  .time-primary .date-readout {
    font-size: 16px;
  }
  .time-speed {
    min-width: 100px;
    padding-left: 10px;
  }
  .play-button {
    width: 32px;
    height: 32px;
  }
  .time-model {
    max-width: calc(100% - 95px);
  }
  .time-model > div {
    display: none;
  }
  .time-model select {
    width: 190px;
  }
  .lab-button {
    padding: 8px 5px;
  }
  .scene-tools select {
    padding: 3px;
  }
  .navigator .search {
    margin: 0;
    padding: 0 5px;
  }
  .search input {
    font-size: 9px;
  }
  .filter-row {
    gap: 0;
  }
  .filter-row button {
    font-size: 8px;
    padding: 4px;
  }
  .section-title {
    font-size: 10px;
  }
  .nav-footer {
    font-size: 7px;
  }
  .body-row {
    font-size: 10px;
  }
  .form-row {
    gap: 8px;
  }
  dialog {
    padding: 25px;
  }
  .lab-tabs {
    gap: 0;
  }
  .lab-tabs button {
    font-size: 10px;
    padding: 10px;
  }
}
#library-dialog {
  max-width: 740px;
  max-height: 85vh;
  scrollbar-width: thin;
  scrollbar-color: #314257 transparent;
}
.guide {
  border: 1px solid #ffffff12;
  border-radius: 8px;
  margin: 10px 0;
  padding: 14px;
}
.guide summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}
.guide summary strong {
  font-size: 14px;
  font-weight: 400;
  color: #b7d9d4;
}
.equation {
  border-left: 2px solid #79cfb9;
  background: #9be2d00a;
  padding: 14px;
  margin-top: 18px;
  color: #b7e4d7;
  font-size: 13px;
  line-height: 1.9;
}
.guide .experiment {
  color: #a5cabb;
}
.guide a {
  font-size: 11px;
}
.glossary-entry {
  border-bottom: 1px solid #ffffff12;
}
.glossary-entry h3 {
  font-size: 13px;
  font-weight: 500;
  color: #b5d9ce;
}
.glossary-entry p {
  margin-top: 6px;
}
.mobile-only {
  display: none;
}
@media (max-width: 650px) {
  .mobile-only {
    display: inline-block;
  }
  header {
    gap: 8px;
    padding: 0 12px;
  }
  .brand {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .brand-icon {
    font-size: 25px;
    margin-right: 3px;
  }
  .header-right {
    gap: 6px;
  }
  .header-right .live-dot {
    display: none;
  }
  .navigator {
    display: none;
    width: 215px;
    z-index: 8;
    bottom: 175px;
    padding: 16px 10px 0;
  }
  .navigator.mobile-open {
    display: flex;
  }
  .navigator .section-title {
    font-size: 12px;
  }
  .navigator .body-row {
    font-size: 12px;
  }
  .navigator .filter-row button {
    font-size: 10px;
    padding: 6px;
  }
  .inspector {
    display: none;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 168px;
    width: auto;
    height: auto;
    max-height: 47vh;
    z-index: 8;
  }
  .inspector.mobile-open {
    display: block;
  }
  .inspector > p {
    display: block;
    margin: 12px 0;
    font-size: 11px;
  }
  .inspector .facts-notes {
    display: block;
  }
  .inspector-header {
    gap: 12px;
  }
  .inspector-header #focus {
    margin-left: auto;
  }
  #inspector-close {
    font-size: 20px;
  }
  .scene-heading {
    left: 20px;
    top: 135px;
  }
  .scene-heading p {
    max-width: 300px;
  }
  .view-actions {
    left: 50%;
    top: 81px;
  }
  .scene-tools {
    left: 12px;
    right: 12px;
    bottom: 164px;
  }
  .timeline {
    height: 135px;
    gap: 10px;
    padding: 12px;
    justify-content: space-between;
  }
  .time-primary {
    min-width: 0;
    width: 190px;
    gap: 6px;
  }
  .time-speed {
    width: calc(100% - 200px);
    flex: none;
    min-width: 90px;
    padding-left: 0;
    border: 0;
  }
  .time-speed label {
    display: block;
    font-size: 8px;
  }
  .time-speed strong {
    display: block;
    font-size: 9px;
    margin-top: 4px;
  }
  .time-speed input {
    margin-top: 10px;
  }
  .range-labels {
    font-size: 6px;
  }
  .time-model {
    max-width: none;
    width: auto;
  }
  .time-model select {
    width: 180px;
    font-size: 10px;
  }
  .lab-button {
    margin: 0;
    font-size: 9px;
  }
  .header-right .small-button {
    padding: 5px;
    font-size: 9px;
  }
  #nav-toggle {
    font-size: 10px;
    padding: 5px;
  }
}

/* Plain desktop controls; scene materials and lighting remain independent. */
body {
  background: #fff;
  color: #222;
  font-size: 13px;
}
header {
  height: 48px;
  padding: 0 12px;
  gap: 12px;
  background: #f4f4f4;
  border-bottom: 1px solid #bbb;
}
.brand,
.brand > span:last-child {
  color: #222;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
}
.brand-icon,
.header-divider,
header > .eyebrow,
.live-dot,
.tiny-line,
.loading-orbit {
  display: none;
}
.header-right {
  color: #555;
  font-size: 12px;
}
.glass {
  background: #fff;
  border: 1px solid #bbb;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}
button,
select,
input {
  color: #222;
  border-radius: 2px;
}
button {
  background: #f3f3f3;
  border: 1px solid #bbb;
  padding: 5px 9px;
}
button:hover {
  color: #111;
  background: #e7e7e7;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #366da8;
  outline-offset: 1px;
}
input,
select {
  background: #fff;
  border: 1px solid #aaa;
  padding: 6px;
}
a {
  color: #245c96;
}
.navigator {
  left: 0;
  top: 48px;
  bottom: 148px;
  width: 216px;
  padding: 14px 10px 0;
  border-top: 0;
}
.inspector {
  right: 0;
  top: 48px;
  bottom: 148px;
  width: 288px;
  padding: 16px;
  border-top: 0;
}
#viewport {
  top: 88px;
  left: 216px;
  right: 288px;
  bottom: 186px;
  background: #03070d;
}
.view-actions {
  top: 48px;
  left: 216px;
  right: 288px;
  height: 40px;
  transform: none;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid #bbb;
  gap: 6px;
  border-radius: 0;
}
.view-actions button {
  padding: 4px 10px;
  color: #222;
  font-size: 12px;
}
.scene-heading {
  top: 57px;
  left: auto;
  right: 300px;
  z-index: 1;
}
.scene-heading .eyebrow,
.scene-heading p {
  display: none;
}
.scene-heading h1 {
  font-size: 13px;
  color: #333;
  margin: 0;
  letter-spacing: 0;
  font-weight: 400;
}
.scene-tools {
  left: 216px;
  right: 288px;
  bottom: 148px;
  height: 38px;
  border: 0;
  border-top: 1px solid #bbb;
  padding: 6px 10px;
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #222;
  border-radius: 0;
}
.scene-tools select {
  font-size: 12px;
  padding: 3px;
}
.scene-tools input,
.time-speed input {
  accent-color: #4275ac;
}
.scale-note {
  bottom: 126px;
  left: 12px;
  right: 12px;
  color: #555;
  font-size: 11px;
  max-width: none;
  display: block;
}
.timeline {
  left: 0;
  right: 0;
  bottom: 0;
  height: 148px;
  padding: 36px 14px 12px;
  background: #f6f6f6;
  border-radius: 0;
  gap: 20px;
}
.time-primary {
  min-width: 255px;
  gap: 8px;
}
.play-button,
.icon-button,
.time-primary .icon-button {
  width: auto;
  height: 30px;
  border: 1px solid #aaa;
  border-radius: 2px;
  padding: 4px 9px;
  color: #222;
  background: #eee;
  font-size: 12px;
}
.date-readout {
  font-size: 17px;
  letter-spacing: 0;
  margin-top: 4px;
}
.eyebrow,
.english {
  color: #555;
  font-size: 11px;
  letter-spacing: 0;
}
.time-speed,
.time-model {
  border-left: 1px solid #ccc;
  padding-left: 16px;
}
.time-speed label,
.time-speed strong,
.range-labels,
.time-model > div {
  color: #444;
  font-size: 11px;
}
.time-speed input {
  height: 16px;
  margin-top: 10px;
}
.time-model {
  min-width: 215px;
}
.time-model select,
.time-model option {
  color: #222;
  background: #fff;
  border: 1px solid #aaa;
  font-size: 12px;
}
.lab-button,
.small-button {
  color: #222;
  border: 1px solid #aaa;
  border-radius: 2px;
  font-size: 12px;
  padding: 5px 8px;
}
.search {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 2px;
}
.search span {
  display: none;
}
.search input {
  font-size: 12px;
}
.filter-row {
  gap: 4px;
}
.filter-row button {
  color: #333;
  font-size: 11px;
  padding: 5px;
  border-radius: 2px;
}
.filter-row button.active,
.body-row.active,
.tabs button.active,
.lab-tabs button.active,
.view-actions button.active {
  background: #e2eaf3;
  color: #183e65;
  border-color: #8aa4bf;
}
.body-row {
  background: #fff;
  color: #222;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 8px;
}
.body-row .dot {
  box-shadow: none;
}
.body-row span:last-child,
.section-title span,
.nav-footer {
  color: #666;
}
.nav-footer {
  border-color: #ccc;
  font-size: 10px;
}
.inspector h2 {
  font-size: 25px;
  letter-spacing: 0;
  margin: 16px 0 4px;
}
.inspector > p {
  color: #444;
  line-height: 1.7;
  margin: 14px 0;
}
.tabs {
  gap: 8px;
  border-color: #bbb;
}
.tabs button {
  color: #333;
  padding: 6px 10px;
  font-size: 12px;
}
.tabs button.active:after {
  display: none;
}
.stat {
  border-color: #ddd;
}
.stat span,
.stat strong,
.facts-notes li,
.model-note {
  color: #444;
  font-size: 12px;
}
.facts-notes li:before {
  color: #555;
}
.resource-link {
  border-color: #ccc;
  border-radius: 2px;
  font-size: 12px;
}
dialog {
  background: #fff;
  color: #222;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 24px;
  box-shadow: none;
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: none;
}
dialog h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
}
dialog p,
.form-row label,
#epoch-lab label,
.dialog-close {
  color: #444;
}
.lab-tabs {
  border-color: #ccc;
  gap: 8px;
}
.lab-tabs button {
  color: #333;
  padding: 7px 10px;
}
.primary,
.primary:hover {
  background: #e2eaf3;
  color: #183e65;
  border: 1px solid #8aa4bf;
  border-radius: 2px;
}
.result-box {
  color: #245b3e;
}
.result-box.error {
  color: #a22;
}
.guide {
  border-color: #ccc;
  border-radius: 2px;
}
.guide summary strong,
.guide .experiment,
.glossary-entry h3 {
  color: #333;
}
.equation {
  background: #f4f4f4;
  color: #222;
  border-color: #999;
}
.glossary-entry {
  border-color: #ccc;
}
#loading {
  background: #fff;
  color: #222;
  transition: none;
}
#loading h2 {
  font-size: 24px;
  letter-spacing: 0;
}
#loading p {
  color: #555;
}
#notice {
  background: #fff;
  color: #222;
  border: 1px solid #aaa;
  border-radius: 2px;
}
.planet-label {
  background: transparent;
  border: 0;
}
@media (min-width: 651px) and (max-width: 1050px) {
  .navigator {
    width: 175px;
  }
  .inspector {
    width: 240px;
  }
  #viewport,
  .view-actions,
  .scene-tools {
    left: 175px;
    right: 240px;
  }
  .scene-heading {
    display: none;
  }
  .scene-tools {
    gap: 6px;
    font-size: 10px;
  }
  .scene-tools select {
    font-size: 10px;
  }
  .timeline {
    gap: 10px;
    flex-wrap: wrap;
  }
  .time-primary {
    min-width: 220px;
  }
  .time-model {
    min-width: 190px;
  }
}
@media (max-width: 650px) {
  header {
    height: 48px;
  }
  .brand {
    font-size: 14px;
  }
  .header-right #engine-state {
    display: none;
  }
  #viewport {
    left: 0;
    right: 0;
    top: 88px;
    bottom: 198px;
  }
  .view-actions {
    left: 0;
    right: 0;
    top: 48px;
    width: auto;
  }
  .scene-heading {
    display: none;
  }
  .navigator {
    top: 48px;
    bottom: 160px;
    width: 215px;
  }
  .inspector {
    top: auto;
    bottom: 160px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 50vh;
  }
  .scene-tools {
    left: 0;
    right: 0;
    bottom: 160px;
    height: 38px;
    padding: 4px;
    flex-wrap: nowrap;
    gap: 5px;
    font-size: 10px;
  }
  .scene-tools select {
    font-size: 10px;
  }
  .timeline {
    height: 160px;
    padding: 26px 10px 10px;
    gap: 8px;
  }
  .scale-note {
    display: block;
    bottom: 140px;
    font-size: 9px;
  }
  .time-primary {
    width: 190px;
    min-width: 0;
  }
  .time-speed {
    padding: 0;
  }
  .time-model {
    min-width: 0;
    padding: 0;
  }
}

.scale-note {
  z-index: 1;
  pointer-events: none;
}
