.planetary-planner {
  --soft: var(--ink-soft);
  --line: var(--border-strong);
  --strong: var(--border-strong);
  --raised: var(--surface-raised);
  --olive: #536047;
  --button-ink: #fffdf8;
  --action-fill: #687653;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
}
:root[data-theme="dark"] .planetary-planner {
  --olive: #a0af8b;
  --button-ink: #181b1f;
  --action-fill: var(--sage);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .planetary-planner {
    --olive: #a0af8b;
    --button-ink: #181b1f;
    --action-fill: var(--sage);
  }
}
.planetary-planner [hidden] {
  display: none !important;
}
.planetary-planner .section-head {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.planetary-planner h1,
.planetary-planner h2,
.planetary-planner h3 {
  line-height: 1.15;
  margin-top: 0;
}
.planetary-planner .intro a {
  color: var(--olive);
}
.eyebrow {
  font-size: 12px!important;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--olive)!important;
  margin-bottom: 8px!important;
}
.intro {
  max-width: 890px;
  margin-bottom: 30px;
}
.intro h1 {
  font-size: clamp(40px,5vw,60px);
  margin-bottom: 10px;
}
.intro p {
  font-size: 17px;
}
.intro .preview-note {
  font-size: 12px;
  margin-top: 10px;
}
.band {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}
.section-head {
  align-items: center;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 25px;
}
.muted {
  color: var(--soft);
}
.small {
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.tabs,
.zoom,
.system-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 8px 12px;
  font-size: 14px;
}
.tabs button[aria-pressed=true] {
  border-color: var(--sage);
  font-weight: 700;
}
.zoom {
  margin-left: auto;
}
.zoom button,
select,
dialog button {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 14px;
  border-radius: 0;
  min-height: 34px;
}
.zoom button:disabled {
  opacity: .4;
  cursor: default;
}
.range {
  width: 130px;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.panrow,
.date-line,
.timebar,
.field-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-top: 12px;
}
.panrow label {
  flex: none;
}
.panrow input,
.date-line input,
.timebar input {
  flex: 1;
  min-width: 0;
  accent-color: var(--sage);
  height: 22px;
}
.hint {
  margin: 8px 0 10px;
}
.annual-wrap {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 9px;
  align-items: stretch;
}
.row-names {
  display: grid;
  grid-template-rows: 24px repeat(7,1fr);
  height: 320px;
}
.row-names button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  min-width: 0;
}
.row-names button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.row-names button[aria-pressed=true] {
  font-weight: 700;
  color: var(--olive);
}
.annual-plot {
  min-width: 0;
  height: 320px;
  position: relative;
}
#annual {
  display: block;
  width: 100%;
  height: 320px;
  touch-action: pan-y;
  cursor: crosshair;
}
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--soft);
}
.legend .ramp {
  width: 180px;
  height: 9px;
  background: linear-gradient(90deg,#503243,#a15b72,#d99db0,#fbe4eb);
}
.legend .ramp-labels {
  display: flex;
  justify-content: space-between;
  width: 180px;
  font-variant-numeric: tabular-nums;
}
.legend .swatch {
  display: inline-block;
  width: 13px;
  height: 9px;
  margin-right: 5px;
  border: 1px solid #82909a;
}
.date-line output,
.timebar output {
  min-width: 118px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.selected-planet {
  border-block: 1px solid var(--line);
  margin: 18px 0 12px;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 20px;
  align-items: center;
}
.object-intro {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.object-intro img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}
.object-intro h3 {
  font-size: 23px;
}
.object-intro p {
  font-size: 13px;
  margin: 4px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin: 0;
}
.metrics dt {
  font-size: 12px;
  color: var(--soft);
}
.metrics dd {
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.selected-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 13px;
}
.action {
  background: var(--action-fill);
  color: var(--button-ink);
  text-decoration: none;
  font-size: 13px;
  padding: 9px 12px;
  font-weight: 700;
  display: inline-block;
}
.action:hover {
  color: var(--button-ink);
  filter: brightness(1.08);
}
.sat-toolbar {
  display: flex;
  align-items: end;
  gap: 26px;
  flex-wrap: wrap;
}
.system-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  font-weight: 700;
}
.system-tabs button[aria-pressed=true] {
  border-color: var(--sage);
  color: var(--olive);
}
.system-tabs img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.field {
  display: grid;
  gap: 3px;
}
.field label {
  font-size: 12px;
  color: var(--soft);
}
.sat-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 26px;
  margin: 20px 0;
}
.chart-title {
  font-size: 18px;
  margin: 0 0 10px;
}
.sat-layout svg,
.grs svg {
  display: block;
  width: 100%;
  height: auto;
}
.timebar {
  margin-top: 10px;
  flex-wrap: wrap;
}
.timebar output {
  min-width: 132px;
  text-align: right;
}
.timebar input {
  flex: 1 0 100%;
}
.moon-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 12px;
}
.moon-chip,
.moon-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.moon-chip img,
.moon-name img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.32));
}
.moon-key i,
.moon-table i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--moon-colour);
}
.field-controls {
  margin-top: 10px;
  flex-wrap: wrap;
}
.field-controls select {
  font-size: 13px;
}
.field-controls #fieldScale {
  margin-left: auto;
}
.sat-detail {
  display: grid;
  grid-template-columns: minmax(175px,1fr) 2fr;
  align-items: start;
  gap: 30px;
  padding: 17px 0;
  border-block: 1px solid var(--line);
}
.moon-table-scroll {
  min-width: 0;
  overflow-x: auto;
}
.moon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.moon-table th,
.moon-table td {
  padding: 7px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.moon-table th {
  color: var(--soft);
  font-weight: 400;
  font-size: 12px;
}
.moon-table td:not(:first-child),
.moon-table th:not(:first-child) {
  text-align: right;
}
.moon-table tr:last-child td {
  border-bottom: 0;
}
.grs {
  padding: 23px 0 15px;
  border-bottom: 1px solid var(--line);
}
.grs-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: start;
}
.grs-info {
  display: grid;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.grs-info strong {
  font-size: 19px;
}
.grs-info p {
  margin: 0;
}
.check {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.check input {
  accent-color: var(--sage);
}
.saturn-geometry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.end-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 22px;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  width: min(720px,calc(100% - 30px));
  max-height: 85vh;
  padding: 24px;
}
dialog::backdrop {
  background: rgba(0,0,0,.55);
}
dialog li {
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.axis-label {
  font-size: 11px;
  fill: #aeb8bf;
  font-family: Atkinson,Arial,sans-serif;
}
.chart-grid {
  stroke: #53606b;
  stroke-opacity: .36;
  stroke-width: 1;
}
.chart-fg {
  fill: #e0dfd5;
}
.grs-fill {
  fill: #ad5e48;
}
.date-line label,
.timebar label {
  white-space: nowrap;
}
.no-view {
  color: var(--accent);
}
@media (max-width:850px) {
  .selected-planet {
    grid-template-columns: 1fr 1.6fr;
  }
  .selected-actions {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .sat-layout {
    gap: 15px;
  }
  .sat-toolbar {
    gap: 16px;
  }
  .sat-detail {
    gap: 20px;
  }
  .range {
    width: 120px;
  }
  .annual-wrap {
    grid-template-columns: 105px 1fr;
  }
  .row-names button img {
    width: 23px;
    height: 23px;
  }
}
@media (max-width:650px) {
  .intro h1 {
    font-size: 42px;
  }
  .intro {
    margin-bottom: 24px;
  }
  .band {
    padding: 20px 0;
  }
  .section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head .muted {
    font-size: 12px;
  }
  .toolbar {
    gap: 7px;
  }
  .tabs {
    flex-basis: 100%;
  }
  .tabs button {
    padding: 7px 8px;
  }
  .zoom {
    margin-left: 0;
  }
  .range {
    width: 130px;
  }
  .annual-wrap {
    grid-template-columns: 78px 1fr;
    gap: 4px;
  }
  .row-names {
    height: 288px;
    grid-template-rows: 22px repeat(7,1fr);
  }
  .row-names button {
    font-size: 12px;
    gap: 3px;
    padding: 2px 0;
  }
  .row-names button img {
    width: 19px;
    height: 19px;
  }
  .annual-plot,
  #annual {
    height: 288px;
  }
  .date-line {
    flex-wrap: wrap;
    gap: 6px;
  }
  .date-line input {
    flex-basis: 100%;
  }
  .selected-planet {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .metrics {
    gap: 8px;
  }
  .metrics dd {
    font-size: 18px;
  }
  .selected-actions {
    grid-column: auto;
  }
  .sat-toolbar {
    gap: 12px;
  }
  .system-tabs {
    flex-basis: 100%;
  }
  .field {
    flex: 1;
    min-width: 140px;
  }
  .field select {
    max-width: 100%;
    width: 100%;
  }
  .sat-layout,
  .sat-detail,
  .grs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sat-layout svg {
    max-height: 330px;
  }
  .grs-info {
    border-left: 0;
    padding-left: 0;
  }
  .moon-table {
    font-size: 12px;
  }
  .moon-table th {
    font-size: 11px;
  }
  .object-intro img {
    width: 62px;
    height: 62px;
  }
  .footer-links {
    gap: 10px;
    flex-wrap: wrap;
  }
  .timebar output {
    margin-left: auto;
  }
  .end-actions {
    gap: 8px;
  }
}
#fieldPlot {
  max-height: 385px;
  width: 100%;
}
#fieldOutside {
  min-height: 1.3em;
  margin: .25rem 0;
}
.optics {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 10px;
}
.optics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.optics-heading h4 {
  margin: 0;
  font-size: 16px;
}
.optics-heading button {
  background: none;
  color: var(--olive);
  border: 0;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.optics-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px 14px;
}
.optics-grid .field {
  min-width: 0;
}
.optics-grid select,
.optics-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 0;
}
.optics-readout {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px 14px;
  margin: 14px 0 8px;
}
.optics-readout dt {
  font-size: 12px;
  color: var(--soft);
}
.optics-readout dd {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}
.optics p {
  margin: 5px 0;
}
.moon-chip i,
.moon-name i {
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0;
}
.moon-chip img,
.moon-name img {
  width: 23px;
  height: 23px;
}
@media (max-width:360px) {
  .optics-grid {
    grid-template-columns: 1fr;
  }
}

.compact-optics {
  padding-top: 12px;
}
.compact-optics .optics-heading {
  margin-bottom: 7px;
}
.compact-optics .optics-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.compact-optics .optics-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.compact-optics .optics-trigger {
  white-space: nowrap;
}
.compact-optics .optics-trigger:hover {
  border-color: var(--sage);
  color: var(--olive);
}
.compact-optics .optics-readout {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin: 10px 0 5px;
}
.compact-optics .optics-readout dt {
  font-size: 11px;
  line-height: 1.25;
}
.compact-optics .optics-readout dd {
  font-size: 16px;
}
.compact-optics .check {
  font-size: 12px;
  white-space: nowrap;
}
#opticsDialog {
  width: min(495px,calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 45px rgba(0,0,0,.16);
  padding: 24px;
}
#opticsDialog::backdrop {
  background: rgba(16,20,24,.28);
}
#opticsDialog[open] {
  animation: opticsAppear .14s ease-out;
}
@keyframes opticsAppear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.optics-dialog-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 19px;
}
.optics-dialog-head h2 {
  font-size: 23px;
  line-height: 1.15;
  margin: 0 0 7px;
}
.optics-dialog-head p {
  margin: 0;
}
.optics-dialog-head #closeOptics {
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  min-height: 30px;
  padding: 2px 6px;
  color: var(--soft);
}
#opticsDialog .optics-grid {
  gap: 15px 16px;
}
#opticsNote {
  margin: 18px 0 0;
  line-height: 1.4;
}
.optics-dialog-foot {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.optics-dialog-foot #resetOptics {
  border: 0;
  background: none;
  color: var(--olive);
  font-size: 13px;
  text-decoration: underline;
  padding: 4px 0;
}
.optics-dialog-foot #doneOptics {
  border: 0;
  background: var(--action-fill);
  color: var(--button-ink);
  border-radius: 4px;
  min-width: 75px;
  padding: 8px 16px;
}
.optics-dialog-foot #doneOptics:hover {
  filter: brightness(1.08);
}
@media (max-width:430px) {
  .compact-optics .optics-readout {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #opticsDialog {
    padding: 18px;
  }
  .compact-optics .optics-heading {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  #opticsDialog[open] {
    animation: none;
  }
}

.eyepiece-wrap {
  position: relative;
  isolation: isolate;
}
.field-object {
  cursor: pointer;
  outline: none;
}
.field-object:focus-visible .object-hit {
  stroke: #fff;
  stroke-width: 1.1;
  stroke-dasharray: 2 2;
}
.field-object[aria-pressed=true] .object-hit {
  stroke: #b6c99b;
  stroke-width: .8;
}
.field-object .object-point {
  pointer-events: none;
}
.moon-key button,
.moon-table button,
.object-link {
  background: none;
  border: 0;
  color: var(--ink);
  padding: 3px 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.moon-key button:hover,
.moon-table button:hover,
.object-link:hover {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.object-link {
  font-size: 13px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.moon-table button:focus-visible,
.moon-key button:focus-visible,
.object-link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.object-pop {
  position: absolute;
  z-index: 4;
  width: min(242px,100%);
  padding: 13px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 5px 22px rgba(0,0,0,.16);
  font-size: 13px;
  line-height: 1.38;
}
.object-pop-head {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 9px;
  align-items: start;
}
.object-pop img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.object-pop h4 {
  font-size: 17px;
  margin: 0 0 2px;
  line-height: 1.12;
}
.object-pop p {
  margin: 0;
}
.object-pop .object-meta {
  font-size: 12px;
  color: var(--soft);
  margin-top: 9px;
}
.object-pop .object-close,
#referenceClose {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: 26px;
  font-size: 22px;
  color: var(--soft);
  cursor: pointer;
  line-height: 1;
}
.object-pop .object-more {
  display: inline-block;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sage);
  color: var(--olive);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 0;
  margin-top: 10px;
  cursor: pointer;
}
.object-pop .object-more:hover {
  color: var(--ink);
}
#referenceDialog {
  width: min(535px,calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 10px 45px rgba(0,0,0,.16);
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
#referenceDialog::backdrop {
  background: rgba(16,20,24,.28);
}
#referenceDialog[open] {
  animation: opticsAppear .14s ease-out;
}
.reference-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.reference-head h2 {
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 4px;
}
.reference-head p {
  margin: 0;
}
.reference-intro {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: center;
  margin: 0 0 20px;
}
.reference-intro img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}
.reference-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.reference-facts {
  margin: 0;
  border-block: 1px solid var(--line);
  padding: 5px 0;
}
.reference-facts div {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
}
.reference-facts dt {
  color: var(--soft);
}
.reference-facts dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.reference-source {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
  margin-top: 15px;
}
.reference-source p {
  margin: 6px 0;
}
.reference-source a {
  color: var(--olive);
}
@media (max-width:650px) {
  .object-pop {
    position: relative;
    left: auto!important;
    top: auto!important;
    width: 100%;
    margin: 0 0 8px;
    box-shadow: none;
  }
  .reference-intro {
    grid-template-columns: 85px 1fr;
    gap: 14px;
  }
  .reference-intro img {
    width: 85px;
    height: 85px;
  }
  #referenceDialog {
    padding: 18px;
  }
  .reference-facts div {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion:reduce) {
  #referenceDialog[open] {
    animation: none;
  }
}

.eyepiece-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.eyepiece-heading .chart-title {
  margin: 0;
}
.eyepiece-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  background: transparent;
  border: 0;
  color: var(--soft);
  padding: 5px 2px;
  font-size: 12px;
  line-height: 1.3;
}
.eyepiece-expand:hover {
  color: var(--ink);
}
.eyepiece-expand svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  max-width: 19px;
  max-height: 19px;
}
.eyepiece-expand span {
  white-space: nowrap;
}
.full-eyepiece-controls {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.full-night {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.full-night span {
  font-weight: 700;
}
.full-night output {
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.full-time {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.full-time input {
  min-width: 0;
  flex: 1;
  accent-color: var(--sage);
}
.full-orientation {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--soft);
}
.full-orientation select {
  font-size: 13px;
  color: var(--ink);
}
.field-label {
  cursor: pointer;
}
.field-label text {
  pointer-events: none;
}
.field-label-leader {
  pointer-events: none;
}
.eyepiece-expanded {
  position: fixed!important;
  inset: 0!important;
  z-index: 10000;
  width: 100%!important;
  height: 100vh!important;
  height: 100dvh!important;
  max-width: none!important;
  max-height: none!important;
  margin: 0!important;
  padding: clamp(12px,2vw,28px)
    max(clamp(12px,3vw,44px),env(safe-area-inset-right))
    max(12px,env(safe-area-inset-bottom))
    max(clamp(12px,3vw,44px),env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #181b1f;
  color: #ebe5d6;
  color-scheme: dark;
  --paper: #181b1f;
  --surface: #1d2126;
  --raised: #242930;
  --ink: #ebe5d6;
  --soft: #b6ae9d;
  --accent: #d7ccb2;
  --sage: #93a67c;
  --olive: #a0af8b;
  --line: #45494b;
  --strong: #6f736f;
  --button-ink: #151a16;
}
.eyepiece-expanded .eyepiece-heading {
  margin: 0;
}
.eyepiece-expanded .eyepiece-wrap {
  flex: 1 0 180px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.eyepiece-expanded #fieldPlot {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: none;
  flex: 1 1 0;
  display: block;
}
.eyepiece-expanded .compact-optics {
  padding-top: 6px;
  width: 100%;
  max-width: 960px;
  align-self: center;
}
.eyepiece-expanded .optics-readout {
  margin-top: 5px;
}
.eyepiece-expanded #fieldOutside,
.eyepiece-expanded #labelStatus {
  margin: 0;
  width: 100%;
  max-width: 960px;
  align-self: center;
}
.eyepiece-expanded > p.small:not(#fieldOutside):not(#labelStatus) {
  margin: 0;
  width: 100%;
  max-width: 960px;
  align-self: center;
  font-size: 11px;
  line-height: 1.35;
}
.eyepiece-expanded .object-pop {
  position: absolute;
  width: min(242px,100%);
  margin: 0;
  z-index: 5;
}
.eyepiece-expanded .eyepiece-expand {
  color: var(--ink);
}
.eyepiece-expanded #opticsDialog,
.eyepiece-expanded #referenceDialog {
  color-scheme: dark;
}
.eyepiece-expanded #opticsDialog::backdrop,
.eyepiece-expanded #referenceDialog::backdrop {
  background: rgba(0,0,0,.33);
}
@media (max-width:650px) {
  .eyepiece-expanded {
    gap: 6px;
  }
  .eyepiece-expanded .full-eyepiece-controls {
    gap: 7px 12px;
  }
  .eyepiece-expanded .full-night {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .eyepiece-expanded .full-time {
    min-width: 0;
    flex-basis: 100%;
  }
  .eyepiece-expanded .full-orientation {
    font-size: 12px;
  }
  .eyepiece-expanded .compact-optics .optics-readout {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 10px;
  }
  .eyepiece-expanded .object-pop {
    position: relative;
    left: auto!important;
    top: auto!important;
    width: 100%;
    max-width: 350px;
    flex: none;
  }
  .eyepiece-expanded .eyepiece-wrap:has(.object-pop:not([hidden])) #fieldPlot {
    min-height: 180px;
  }
  .eyepiece-expanded .compact-optics .optics-heading {
    gap: 5px;
  }
  .eyepiece-expand span {
    font-size: 11px;
  }
}
@media (max-height:520px) {
  .eyepiece-expanded .eyepiece-wrap {
    flex: 1 0 260px;
  }
  .eyepiece-expanded {
    min-height: 0;
  }
  .eyepiece-expanded .full-eyepiece-controls {
    gap: 6px 12px;
  }
}
.data-loader {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.data-loader p {
  font-size: 13px!important;
  margin: 0!important;
}
.load-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.load-actions button {
  color: var(--olive);
  text-decoration: underline;
}
.nightly-planet {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#planetNightPlot {
  display: block;
  width: 100%;
  max-height: 270px;
}
.sat-detail #parentPhoto {
  width: clamp(105px,12vw,165px);
  height: clamp(105px,12vw,165px);
  flex: none;
}
.sat-detail .object-intro {
  align-items: center;
  flex-wrap: wrap;
}
.sat-detail #parentPhoto + div {
  min-width: 110px;
}
.sat-event-list {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sat-event-list table {
  font-size: 13px;
}
.sat-event-list th,
.sat-event-list td {
  text-align: left!important;
  padding-right: 8px;
}
.sat-event-list h3 {
  font-size: 18px;
}
#night {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 34px;
  font: inherit;
  padding: 4px 8px;
  max-width: 100%;
}
@media (max-width:650px) {
  .sat-detail #parentPhoto {
    width: 112px;
    height: 112px;
  }
  .sat-detail .object-intro {
    flex-wrap: nowrap;
  }
  .sat-event-list {
    overflow-x: auto;
  }
}
