.sun-status-readout {
  grid-column: 1;
  justify-self: start;
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sun-status-pointer,
.sun-status-ephemeris {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.sun-status-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sun-status-name,
.sun-status-cursor-label {
  color: var(--text-muted);
}

.sun-status-pointer .sun-status-value {
  display: inline-block;
  width: 7.5ch;
  text-align: right;
}

.sun-status-rule {
  width: 2px;
  align-self: stretch;
  background: var(--chrome-line);
}

.sun-shell.is-hide-cursor .sun-status-cursor-label {
  display: none;
}

.sun-shell.is-hide-pointer .sun-status-pointer,
.sun-shell.is-hide-pointer .sun-status-rule,
.sun-shell.is-hide-ephemeris .sun-status-ephemeris,
.sun-shell.is-hide-ephemeris .sun-status-rule {
  display: none;
}

.sun-contacts {
  grid-column: 3;
  justify-self: end;
  width: max-content;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
  opacity: 0.9;
}

.sun-shell.is-zoom-dock .sun-status-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sun-shell.is-zoom-dock .sun-contacts {
  grid-column: 2;
}

.sun-date-step {
  display: none;
}

@media (max-width: 960px) {
  .sun-shell:not(.is-zoom-ready) .sun-status-inner,
  .sun-shell:not(.is-zoom-ready) .sun-date-step {
    visibility: hidden;
  }

  .sun-status {
    position: relative;
  }

  .sun-date-step {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 16px);
    padding: 2px;
    transform: translateX(-50%);
    background: var(--panel-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
  }

  .sun-shell:has(.sun-dates.is-open) .sun-date-step {
    display: none;
  }

  .sun-date-step button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    flex: 0 0 auto;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
  }

  .sun-date-step-arrow {
    flex-direction: column;
    gap: 2px;
  }

  .sun-date-step-caption {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .sun-date-step [data-step="day"][data-delta="-1"],
  .sun-date-step [data-step="month"][data-delta="1"] {
    margin-left: 10px;
  }

  .sun-date-step-label {
    min-width: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
}

@media (max-width: 960px) and (hover: hover) and (pointer: fine) {
  .sun-date-step button:hover {
    background: var(--page-bg);
  }
}
