.horizon-page {
  --mint: #a1ebde;
  --acid: #fcc390;
  --panel: #101117;
  --edge: #33333b;
  --muted: #b4acb7;
  background: #090a10;
}
.horizon-page .mast nav .nav-active {
  color: var(--ink);
}
.nav-active:before {
  content: '';
  display: inline-block;
  background: var(--accent);
  width: 5px;
  height: 5px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
}
.horizon-title,
.desk-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.horizon-title {
  padding: 38px 0 26px;
}
.horizon-title .kicker,
.desk-heading .kicker {
  font-size: 10px;
}
.horizon-title h1 {
  font-size: clamp(68px, 7.45vw, 124px);
  letter-spacing: -0.045em;
  line-height: 0.99;
  white-space: normal;
  margin: 11px 0 0;
}
.horizon-title h1 em,
.desk-heading em {
  color: #e4d1ca;
  font-weight: 400;
}
.slash {
  color: #615860;
}
.invitation,
.desk-heading > p {
  max-width: 310px;
  font-size: 14px;
  line-height: 1.52;
  color: #b9b2bc;
}
.invitation a {
  color: var(--acid);
  font-size: 12px;
  display: inline-flex;
  gap: 13px;
  margin-top: 8px;
}
.optics-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(225px, 20vw, 305px);
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
  background: #08090d;
}
.lens-window {
  position: relative;
  min-width: 0;
  min-height: 390px;
  height: clamp(390px, 35vw, 590px);
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;
  outline-offset: -3px !important;
  background: #09090c;
}
.lens-window:active {
  cursor: grabbing;
}
#horizon-view {
  width: 100%;
  height: 100%;
  display: block;
}
.view-legend,
.view-caption,
.view-buttons {
  position: absolute;
}
.view-legend,
.view-caption,
.mini,
.daily-meta time,
.pad-head output,
.plot-header,
.plot-key,
.dial-ends,
.nudge span,
#plate-number {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.view-legend,
.view-caption {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #08090b99;
  color: #e5dede;
  line-height: 1.6;
  padding: 4px 7px;
  border-radius: 2px;
}
.view-legend {
  top: 13px;
  left: 13px;
}
.view-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a3e5d9;
}
.view-legend span {
  color: #a3cfbd;
}
.view-caption {
  bottom: 13px;
  left: 13px;
  font-size: 8px;
}
.view-caption span + span {
  border-left: 1px solid #72686a;
  padding-left: 10px;
}
.view-buttons {
  right: 12px;
  bottom: 11px;
  display: flex;
  gap: 5px;
}
.view-buttons button,
.board-head button {
  height: 32px;
  min-width: 34px;
  background: #0b0b10af;
  border: 1px solid #4a434b;
  border-radius: 3px;
  color: #e3d7d8;
}
.view-buttons button:hover,
.board-head button:hover {
  background: #363038;
}
.sky-editor {
  background: #101116;
  border-left: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 15px;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--edge);
  gap: 20px;
}
.editor-tabs button {
  padding: 0 0 10px;
  color: #a8a2ad;
  font-size: 13px;
}
.editor-tabs button[aria-selected='true'] {
  color: #fff;
  border-bottom: 2px solid var(--accent);
}
.pad-head,
.knob > span,
.daily-meta,
.plot-header,
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mini,
.daily-meta time {
  color: #b6aeb9;
  font-size: 9px;
}
.pad-head output {
  color: #bdeada;
  font-size: 8px;
}
.pad-head {
  margin: 0 0 8px;
}
#drawing-pad {
  width: 100%;
  height: clamp(110px, 10vw, 155px);
  border: 1px solid #34373b;
  background: #0b1013;
  display: block;
  cursor: crosshair;
  touch-action: none;
  border-radius: 3px;
}
.help,
.horizon-page .daily #flight-message {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 8px 0;
}
.pad-actions,
.band-buttons,
.flight-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.pad-actions button,
.band-buttons button,
.sonify,
.nudge,
.border-button {
  border: 1px solid #3d3943;
  border-radius: 3px;
  font-size: 11px;
  color: #d9d2d9;
  padding: 6px 8px;
  background: #141319;
}
.pad-actions button:hover,
.band-buttons button:hover,
.sonify:hover,
.border-button:hover {
  background: #28242b;
}
.knob {
  display: block;
  margin-top: 17px;
}
.knob > span,
.dial label {
  font-size: 12px;
  color: #cdc5cf;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.knob output,
.dial strong {
  font: 11px var(--mono);
  color: #e1d4ce;
}
.horizon-page input[type='range'] {
  accent-color: #f59e78;
  width: 100%;
  margin: 7px 0 0;
  cursor: pointer;
  height: 18px;
}
.instrument-foot {
  margin-top: auto;
}
.instrument-foot .primary {
  width: 100%;
  justify-content: space-between;
}
.view-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.band-buttons button {
  font: 9px var(--mono);
  padding: 5px 9px;
}
.band-buttons button[aria-pressed='true'] {
  color: #ffd0a9;
  border-color: #6c5040;
}
.lens-window.expanded {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 12;
  min-height: 0;
}
.desk-heading {
  padding: 42px 0 19px;
}
.desk-heading h2 {
  font: clamp(48px, 4.8vw, 78px)/1 var(--serif);
  letter-spacing: -0.04em;
  margin-top: 10px;
}
.flight-desk {
  padding-bottom: 45px;
}
.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.8fr);
  gap: clamp(25px, 4vw, 65px);
}
.flight-instrument {
  border: 1px solid #322f38;
  border-radius: 4px;
  background: #0d0f15;
  overflow: hidden;
}
.plot-header {
  padding: 12px 16px;
  color: var(--mint);
  font-size: 9px;
}
#orbit-view {
  display: block;
  width: 100%;
  height: clamp(220px, 20vw, 300px);
}
.plot-key {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #aaa2ae;
  font-size: 8px;
}
.plot-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.plot-key i {
  height: 2px;
  width: 11px;
  background: var(--mint);
}
.plot-key span:nth-child(2) i {
  background: #b17b61;
}
.plot-key span:nth-child(3) i {
  background: #706670;
}
.dial {
  margin: 16px 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dial strong {
  font-size: 14px;
}
.dial-ends {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #b4acb4;
}
.dial-ends button {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: var(--acid);
  padding: 3px;
}
.flight-controls {
  padding: 13px 16px 16px;
  gap: 11px;
}
.nudge {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nudge button {
  min-width: 28px;
  height: 31px;
}
.nudge span {
  font-size: 8px;
}
.sonify {
  margin-left: auto;
}
.sonify[aria-pressed='true'] {
  color: var(--mint);
}
.target-number {
  display: block;
  font: clamp(55px, 5.2vw, 85px)/1 var(--serif);
  color: #ffc49d;
  letter-spacing: -0.035em;
  margin: 5px 0 13px;
}
.daily {
  padding: 12px 0;
}
.receipt {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 0;
  gap: 12px;
}
.receipt div {
  display: grid;
  gap: 6px;
}
.receipt span {
  font-size: 11px;
  color: #b8aeb7;
}
.receipt output {
  font: 16px var(--mono);
}
.daily #flight-message {
  min-height: 17px;
}
.border-button {
  padding: 9px 13px;
}
.board-head {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding: 14px 0 7px;
}
.board-head h3 {
  font: 25px var(--serif);
  letter-spacing: -0.025em;
}
.board-head button {
  height: 25px;
  min-width: 29px;
}
#ranks {
  list-style: none;
  margin: 0;
  padding: 0;
}
#ranks li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #26232a;
  font-size: 12px;
}
#ranks li span:first-child,
#ranks li b {
  font: 11px var(--mono);
  color: #c5b9bc;
}
#ranks li.mine {
  color: var(--mint);
}
#own-plate {
  width: 100%;
  height: auto;
  background: #0b0c11;
  border: 1px solid #33303a;
  display: block;
}
#plate-number {
  margin-top: 9px;
}
.horizon-page .note-list a {
  color: var(--acid);
  text-decoration: underline;
}
.horizon-page dialog .icon-button {
  font-size: 22px;
}
#press-status {
  max-width: 280px;
}
.horizon-page .sky-open {
  overflow: hidden;
}
.horizon-page footer {
  clear: both;
}
@media (max-width: 900px) {
  .horizon-title {
    gap: 18px;
  }
  .invitation {
    max-width: 235px;
  }
  .horizon-title h1 {
    font-size: 70px;
  }
  .sky-editor {
    padding: 12px;
  }
  .optics-frame {
    grid-template-columns: minmax(0, 1fr) 206px;
  }
  .lens-window {
    min-height: 350px;
    height: 350px;
  }
  .desk-grid {
    gap: 20px;
  }
  .desk-heading > p {
    max-width: 235px;
    font-size: 12px;
  }
  .flight-controls {
    gap: 7px;
  }
  .sonify {
    margin-left: 0;
  }
}
@media (max-width: 670px) {
  .horizon-page .mast nav {
    gap: 13px;
  }
  .horizon-page .mast nav a,
  .horizon-page .mast nav button {
    font-size: 10px;
  }
  .horizon-title {
    display: block;
    padding: 27px 0 15px;
  }
  .horizon-title h1 {
    font-size: clamp(52px, 12vw, 76px);
    margin: 10px 0 6px;
    white-space: nowrap;
  }
  .horizon-title h1 em {
    margin-left: 0;
  }
  .horizon-title .kicker,
  .desk-heading .kicker {
    font-size: 8px;
  }
  .invitation {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }
  .invitation p {
    max-width: 235px;
  }
  .invitation a {
    font-size: 10px;
    min-width: 70px;
    line-height: 1.3;
    margin-top: 0;
    gap: 2px;
  }
  .optics-frame {
    display: flex;
    flex-direction: column;
  }
  .lens-window {
    height: clamp(218px, 64vw, 330px);
    min-height: 0;
  }
  .sky-editor {
    border-left: 0;
    border-top: 1px solid var(--edge);
    padding: 12px;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .editor-tabs {
    grid-column: 1/-1;
  }
  .editor-tabs button {
    padding-bottom: 7px;
    font-size: 12px;
  }
  #source-options,
  #camera-options {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    column-gap: 12px;
    align-items: start;
  }
  .pad-head {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 5px;
  }
  .pad-head .mini {
    font-size: 7px;
  }
  .pad-head output {
    font-size: 7px;
  }
  #drawing-pad {
    grid-column: 1;
    grid-row: 2/5;
    height: 100px;
  }
  .sky-editor .help {
    grid-column: 2;
    margin: 0;
    font-size: 10px;
    grid-row: 1/3;
    align-self: center;
  }
  .pad-actions {
    grid-column: 2;
    gap: 4px;
    margin: 5px 0;
  }
  .pad-actions button {
    font-size: 9px;
    padding: 5px;
  }
  .knob {
    margin: 4px 0;
    grid-column: 2;
  }
  .knob > span,
  .knob output {
    font-size: 9px;
  }
  .knob input {
    margin-top: 2px !important;
  }
  .instrument-foot {
    grid-column: 1/-1;
  }
  .instrument-foot .primary {
    width: 100%;
    padding: 7px 11px;
    min-height: 32px;
    font-size: 12px;
  }
  #camera-options .knob {
    grid-column: auto;
  }
  .view-legend,
  .view-caption {
    font-size: 7px;
    left: 5px;
  }
  .view-legend {
    top: 5px;
  }
  .view-caption {
    bottom: 7px;
  }
  .view-buttons {
    right: 7px;
    bottom: 6px;
  }
  .view-buttons button {
    height: 27px;
    min-width: 29px;
  }
  .view-strip {
    padding: 7px 0;
  }
  .view-strip .mini {
    font-size: 7px;
  }
  .band-buttons {
    gap: 4px;
  }
  .band-buttons button {
    font-size: 8px;
    padding: 4px 6px;
  }
  .desk-heading {
    display: block;
    padding: 28px 0 15px;
  }
  .desk-heading h2 {
    font-size: 45px;
    margin: 8px 0 7px;
  }
  .desk-heading > p {
    max-width: 100%;
  }
  .desk-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .daily {
    padding: 0;
  }
  .plot-header,
  .flight-controls {
    padding: 10px;
  }
  .plot-key {
    font-size: 7px;
    gap: 8px;
  }
  .dial {
    margin-inline: 10px;
  }
  .flight-controls .primary {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 33px;
  }
  .nudge span,
  .sonify {
    font-size: 8px;
  }
  .nudge button {
    min-width: 24px;
  }
  .daily-meta {
    margin-top: 5px;
  }
  .target-number {
    font-size: 55px;
  }
  .horizon-page .mast .brand {
    font-size: 24px;
  }
  .horizon-page .mast .brand img {
    width: 23px;
  }
  .horizon-page .film-row output {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 365px) {
  .horizon-page .mast nav {
    gap: 9px;
  }
  .horizon-title h1 {
    font-size: 48px;
  }
  .invitation a {
    min-width: 58px;
  }
  .sky-editor .help {
    font-size: 9px;
  }
  .horizon-page .mast nav .nav-active:before {
    margin-right: 4px;
  }
}
#ranks li {
  grid-template-columns: 24px 1fr auto 25px;
  align-items: center;
}
#ranks li button {
  padding: 0;
  border: 1px solid #3a343d;
  border-radius: 3px;
  color: var(--acid);
  height: 23px;
}
#open-today {
  font-size: 12px;
  color: var(--acid);
}
#mobile-target {
  display: none;
}
@media (max-width: 670px) {
  #mobile-target {
    display: inline;
    color: var(--acid);
    font-size: 8px;
  }
  .view-strip .band-buttons button {
    font-size: 7px;
  }
  .view-strip {
    gap: 4px;
  }
}
@media (max-width: 365px) {
  .view-strip > .mini {
    font-size: 6px;
  }
  .view-strip .band-buttons {
    gap: 2px;
  }
  .view-strip .band-buttons button {
    padding: 4px;
  }
}
#step-size {
  font: 10px var(--mono);
  min-width: 43px;
  border-inline: 1px solid #413b43;
  color: var(--acid);
}
.nudge {
  gap: 0;
}
#origin-flight {
  font-size: 11px;
  color: var(--mint);
  padding: 4px 0;
}
#relay-star {
  color: var(--accent);
}
@media (max-width: 670px) {
  #origin-flight {
    grid-column: 1/-1;
  }
}
