.visual-page .page {
  max-width: 1100px;
}

.visual-shell {
  min-height: calc(100vh - 2rem);
}

.visual-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.visual-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.range-label {
  color: #d7e3ec;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

#range-select {
  min-width: 11rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(15, 24, 34, 0.72);
  color: #f4f8fb;
  font: inherit;
}

.visual-period {
  margin: 0.35rem 0 0;
  color: #d7e3ec;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(15, 24, 34, 0.72);
  color: #f4f8fb;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.exit-btn:hover,
.exit-btn:focus-visible {
  background: rgba(15, 24, 34, 0.9);
  outline: none;
}

.visual-board {
  background: rgba(247, 250, 252, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(8, 14, 20, 0.28);
  padding: 1rem 1rem 1.1rem;
}

.visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.visual-chip {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e8eef2;
  color: var(--ink);
  font-size: 0.82rem;
}

#visual-svg {
  display: block;
  width: 100%;
  height: auto;
  background:
    linear-gradient(180deg, #dce7ef 0%, #cfdce6 100%);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.visual-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.visual-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  display: inline-block;
}

.swatch.wind {
  background: #1f6feb;
}

.swatch.weather {
  background: #5a6b7a;
}

.swatch.arr {
  background: #16c784;
}

.swatch.dep {
  background: #ffb020;
}

.swatch.rwy {
  background: #4a5560;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .visual-top {
    align-items: stretch;
  }

  .visual-top-actions {
    width: 100%;
  }

  #range-select,
  .exit-btn {
    width: 100%;
  }
}
