:root {
  color-scheme: dark;
  --bg: #090b09;
  --bg-soft: #0d110e;
  --panel: #111612;
  --panel-2: #151d17;
  --panel-3: #1a231d;
  --line: #2a382f;
  --line-bright: #3d5346;
  --text: #eef5ec;
  --muted: #9aa89e;
  --subtle: #647168;
  --accent: #8fe3aa;
  --accent-2: #e2bd68;
  --danger: #d46a5f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(143, 227, 170, 0.05), transparent 42%),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 9, 0.92);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(143, 227, 170, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(143, 227, 170, 0.6) 49%, rgba(143, 227, 170, 0.6) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(143, 227, 170, 0.35) 49%, rgba(143, 227, 170, 0.35) 51%, transparent 52%),
    radial-gradient(circle, rgba(226, 189, 104, 0.9) 0 2px, transparent 3px);
  box-shadow: 0 0 22px rgba(143, 227, 170, 0.12);
}

.brand strong,
.brand span {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  font-weight: 760;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.view-tabs,
.forecast-mode-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(76px, 1fr);
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d120f;
}

.view-tabs button,
.forecast-mode-tabs button {
  height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.view-tabs button + button,
.forecast-mode-tabs button + button {
  border-left: 1px solid var(--line);
}

.view-tabs button:hover,
.forecast-mode-tabs button:hover {
  color: var(--text);
}

.view-tabs button.is-active,
.forecast-mode-tabs button.is-active {
  background: var(--panel-3);
  color: var(--accent);
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.toolbar label {
  min-width: 112px;
}

.toolbar .search-field {
  min-width: 190px;
  flex: 1 1 220px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d120f;
  color: var(--text);
  outline: 0;
}

input,
select {
  height: 36px;
  padding: 0 10px;
}

textarea {
  resize: vertical;
  min-height: 88px;
  padding: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(143, 227, 170, 0.8);
  box-shadow: 0 0 0 3px rgba(143, 227, 170, 0.12);
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.zoom-stack button {
  height: 36px;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.primary-button {
  background: #7ccf97;
  color: #071008;
  font-weight: 760;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(21, 29, 23, 0.88);
}

.danger-button {
  border: 1px solid rgba(212, 106, 95, 0.42);
  background: rgba(212, 106, 95, 0.12);
  color: #ffc4bf;
}

.icon-button {
  width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(21, 29, 23, 0.88);
  font-size: 22px;
  line-height: 1;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.zoom-stack button:hover {
  transform: translateY(-1px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  min-height: 0;
}

.forecast-workspace {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: var(--bg-soft);
}

.forecast-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.forecast-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.forecast-controls h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.forecast-control-group {
  display: flex;
  align-items: end;
  gap: 8px;
}

.forecast-location-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.forecast-control-group label {
  width: min(220px, 52vw);
}

.forecast-control-group .icon-button {
  flex: 0 0 36px;
  font-size: 17px;
}

.forecast-control-group .icon-button.is-loading {
  animation: forecast-spin 900ms linear infinite;
}

.coordinate-editor {
  display: grid;
  flex: 1 0 100%;
  grid-template-columns: repeat(2, minmax(138px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(143, 227, 170, 0.24);
  border-radius: 7px;
  background: rgba(13, 18, 15, 0.92);
}

.coordinate-editor label {
  min-width: 0;
}

.coordinate-editor input,
.coordinate-editor button {
  height: 32px;
}

.coordinate-editor-forecast {
  width: min(560px, calc(100vw - 32px));
}

.coordinate-error {
  grid-column: 1 / -1;
  color: #ffc4bf;
  font-size: 11px;
}

.coordinate-error:empty {
  display: none;
}

@keyframes forecast-spin {
  to {
    transform: rotate(360deg);
  }
}

.night-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 1px;
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.night-tab {
  min-width: 130px;
  height: 52px;
  padding: 0 12px;
  background: #0d120f;
  color: var(--muted);
  text-align: left;
}

.night-tab strong,
.night-tab span {
  display: block;
}

.night-tab strong {
  color: var(--text);
  font-size: 13px;
}

.night-tab span {
  margin-top: 3px;
  font-size: 11px;
}

.night-tab:hover,
.night-tab.is-active {
  background: var(--panel-2);
}

.night-tab.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.night-tab.is-active span {
  color: var(--accent);
}

.forecast-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(130px, 0.72fr));
  min-width: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.forecast-summary-main,
.forecast-summary-stat {
  min-width: 0;
  min-height: 98px;
  padding: 14px;
}

.forecast-summary-stat {
  display: grid;
  align-content: center;
  gap: 7px;
  border-left: 1px solid var(--line);
}

.forecast-summary-main {
  display: grid;
  align-content: center;
  gap: 5px;
}

.forecast-summary-main > span,
.forecast-summary-stat span {
  color: var(--subtle);
  font-size: 11px;
  text-transform: uppercase;
}

.forecast-summary-main > strong {
  color: var(--accent);
  font-size: 19px;
}

.forecast-summary-main > small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.forecast-summary-stat strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.forecast-table-section {
  min-width: 0;
}

.forecast-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.forecast-section-head > span {
  color: var(--muted);
  font-size: 11px;
}

.forecast-mode-tabs {
  grid-auto-columns: minmax(88px, 1fr);
}

.forecast-mode-tabs button {
  height: 32px;
}

.forecast-matrix-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.forecast-matrix {
  --forecast-hours: 10;
  display: grid;
  grid-template-columns: 138px repeat(var(--forecast-hours), minmax(78px, 1fr));
  min-width: max(100%, calc(138px + var(--forecast-hours) * 78px));
}

.forecast-cell {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.forecast-cell.is-last-row {
  border-bottom: 0;
}

.forecast-cell.is-last-column {
  border-right: 0;
}

.forecast-cell.is-past {
  opacity: 0.48;
}

.forecast-cell strong,
.forecast-cell small {
  display: block;
  max-width: 100%;
}

.forecast-cell strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
}

.forecast-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-corner,
.forecast-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  justify-items: start;
  padding-left: 12px;
  background: var(--panel-2);
  text-align: left;
}

.forecast-corner {
  z-index: 3;
}

.forecast-row-label span {
  color: var(--subtle);
  font-size: 10px;
}

.forecast-time-cell {
  min-height: 48px;
  background: #0d120f;
}

.forecast-time-cell strong {
  font-size: 12px;
}

.forecast-time-cell small {
  color: var(--subtle);
}

.forecast-value-cell {
  background: color-mix(in srgb, var(--cell-color, var(--panel)), var(--panel) 86%);
}

.forecast-value-cell::before {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--cell-color, var(--line));
  content: "";
}

.forecast-value-cell.is-missing {
  background: var(--panel);
  opacity: 0.55;
}

.forecast-value-cell.is-missing::before {
  background: var(--line);
}

.forecast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  color: var(--subtle);
  font-size: 10px;
}

.forecast-footer a {
  color: var(--muted);
}

.forecast-error {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.sky-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #050706;
}

#skyCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.map-hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.visibility-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  padding: 10px;
  border: 1px solid rgba(42, 56, 47, 0.88);
  border-radius: 8px;
  background: rgba(9, 13, 10, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  z-index: 2;
}

.visibility-panel label {
  min-width: 112px;
}

.visibility-panel input,
.visibility-panel select {
  height: 32px;
}

.visibility-panel button {
  height: 32px;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  min-width: auto;
  height: 32px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(21, 29, 23, 0.88);
  color: var(--text);
  font-size: 12px;
}

.toggle-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.visibility-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(226, 189, 104, 0.32);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(226, 189, 104, 0.08);
  color: #e7d2a0;
  font-size: 12px;
}

.orientation-hud {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: grid;
  width: min(620px, calc(100% - 360px));
  gap: 7px;
  padding: 9px 11px;
  transform: translateX(-50%);
  border: 1px solid rgba(42, 56, 47, 0.9);
  border-radius: 6px;
  background: rgba(9, 13, 10, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.orientation-readout {
  color: #edf5eb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.orientation-readout.is-below {
  color: var(--muted);
}

.orientation-legend,
.orientation-directions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 13px;
  color: var(--muted);
  font-size: 9px;
}

.orientation-legend span,
.orientation-directions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.orientation-directions {
  padding-top: 6px;
  border-top: 1px solid rgba(42, 56, 47, 0.7);
}

.orientation-directions b {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(226, 189, 104, 0.58);
  border-radius: 50%;
  color: #f1d58d;
  font-size: 9px;
}

.legend-swatch,
.legend-line,
.legend-zenith {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-swatch {
  width: 13px;
  height: 9px;
  border: 1px solid rgba(143, 227, 170, 0.28);
}

.legend-swatch.is-visible {
  background: rgba(98, 177, 119, 0.34);
}

.legend-swatch.is-hidden-sky {
  border-color: rgba(120, 132, 123, 0.32);
  background: rgba(0, 0, 0, 0.62);
}

.legend-line {
  width: 15px;
  height: 0;
  border-top: 2px solid;
}

.legend-line.is-horizon {
  border-color: #e2bd68;
}

.legend-line.is-altitude {
  border-color: rgba(143, 227, 170, 0.72);
  border-top-style: dashed;
}

.legend-line.is-meridian {
  border-color: rgba(226, 189, 104, 0.56);
  border-top-style: dotted;
}

.legend-zenith {
  width: 11px;
  height: 11px;
  border: 1px solid #8fe3aa;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(143, 227, 170, 0.18);
}

.map-hud span,
.section-heading span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(13, 18, 15, 0.84);
  color: var(--muted);
  font-size: 12px;
}

.zoom-stack {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
}

.zoom-stack button {
  width: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(13, 18, 15, 0.84);
  font-size: 22px;
  line-height: 1;
}

.atlas-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--bg-soft);
}

.detail-panel {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: var(--panel);
}

.empty-detail {
  display: grid;
  gap: 3px;
  min-height: 148px;
  align-content: center;
  justify-items: center;
  border: 1px dashed var(--line-bright);
  border-radius: 8px;
  color: var(--muted);
}

.empty-detail strong {
  color: var(--text);
  font-size: 16px;
}

.selected-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #050706;
}

.selected-meta {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.selected-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.selected-title-row h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.selected-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meta-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel-2);
}

.meta-item span {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-bottom: 5px;
}

.meta-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.notes-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.object-list-wrap {
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.object-list {
  display: grid;
  gap: 10px;
  height: calc(100% - 38px);
  overflow: auto;
  padding-right: 4px;
}

.object-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 11px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
  color: inherit;
  text-align: left;
}

.object-card:hover,
.object-card.is-active {
  border-color: rgba(143, 227, 170, 0.58);
  background: var(--panel-2);
}

.object-card img {
  width: 74px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #050706;
}

.card-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.card-title {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-subtitle,
.card-facts {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-facts {
  color: var(--subtle);
}

dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

#objectForm {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}

.dialog-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.file-field {
  border: 1px dashed var(--line-bright);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-2);
}

.file-field input {
  padding: 7px 8px;
  height: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-actions > div {
  display: flex;
  justify-content: end;
  gap: 8px;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar label {
    flex: 1 1 150px;
  }

  .forecast-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .forecast-summary-main {
    grid-column: 1 / -1;
    min-height: 86px;
    border-bottom: 1px solid var(--line);
  }

  .forecast-summary-stat:first-of-type {
    border-left: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sky-stage {
    height: 58vh;
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .atlas-panel {
    min-height: 640px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand span {
    white-space: normal;
  }

  .toolbar label,
  .toolbar .search-field {
    flex-basis: 100%;
  }

  .toolbar > button {
    flex: 1 1 120px;
  }

  .view-tabs {
    width: 100%;
  }

  .forecast-workspace {
    padding: 12px;
  }

  .forecast-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .forecast-location-controls {
    justify-items: stretch;
  }

  .forecast-control-group label {
    width: auto;
    flex: 1 1 auto;
  }

  .coordinate-editor,
  .coordinate-editor-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .coordinate-editor .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .night-tabs {
    grid-template-columns: repeat(5, 130px);
  }

  .forecast-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-summary-main {
    grid-column: 1 / -1;
  }

  .forecast-summary-stat {
    min-height: 82px;
  }

  .forecast-summary-stat:nth-of-type(odd) {
    border-left: 0;
  }

  .forecast-summary-stat:nth-of-type(n + 3) {
    border-top: 1px solid var(--line);
  }

  .forecast-matrix {
    grid-template-columns: 116px repeat(var(--forecast-hours), 76px);
    min-width: calc(116px + var(--forecast-hours) * 76px);
  }

  .forecast-cell {
    min-height: 64px;
  }

  .sky-stage {
    height: 60vh;
    min-height: 480px;
  }

  .visibility-panel {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 8px;
  }

  .visibility-panel label {
    flex: 1 1 128px;
  }

  .orientation-hud {
    left: 10px;
    right: 58px;
    bottom: 50px;
    width: auto;
    padding: 8px;
    transform: none;
  }

  .orientation-legend {
    gap: 4px 10px;
  }

  .orientation-legend span:nth-child(4),
  .orientation-legend span:nth-child(5) {
    display: none;
  }

  .detail-panel,
  .object-list-wrap {
    padding: 12px;
  }

  .meta-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .danger-button {
    width: 100%;
  }
}
