:root {
  --bg: #f7f4ec;
  --panel: #fffdf8;
  --text: #15263f;
  --muted: #647084;
  --line: rgba(21, 38, 63, 0.14);
  --blue: #4d78a8;
  --green: #15263f;
  --amber: #efe3ae;
  --red: #9f3f3f;
  --night: #12264a;
  --shadow: 0 18px 52px rgba(18, 38, 74, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 120, 168, 0.14), transparent 32rem),
    radial-gradient(circle at 88% 14%, rgba(239, 227, 174, 0.24), transparent 30rem),
    linear-gradient(to bottom, rgba(247, 244, 236, 0.94), var(--bg) 78%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  margin: 0 auto;
  max-width: 1440px;
  padding: 20px;
}

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

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.language-switch {
  align-items: center;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  min-height: 36px;
  padding: 3px;
}

.language-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  min-height: 28px;
  padding: 5px 8px;
  width: auto;
}

.language-button.is-active {
  background: var(--text);
  color: var(--panel);
}

.project-credit {
  align-items: center;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 5px 8px 5px 5px;
  text-decoration: none;
}

.project-credit:hover {
  border-color: rgba(21, 38, 63, 0.28);
}

.project-credit img {
  display: block;
  height: 26px;
  object-fit: cover;
  width: 26px;
}

.project-credit__avatar {
  border-radius: 50%;
}

.project-credit__logo {
  border-radius: 6px;
}

.project-credit span {
  font-weight: 700;
  white-space: nowrap;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.1;
}

h2 {
  font-size: 16px;
}

p,
span,
td,
th,
select,
button,
output {
  font-size: 13px;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

.controls {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 88px;
  margin-bottom: 14px;
  padding: 10px;
  width: 100%;
}

.view-tabs {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -2px 0 14px;
  padding: 6px;
}

.view-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 10px;
  text-align: center;
}

.view-tab:hover,
.view-tab:focus-visible {
  background: #eef4fb;
  color: var(--text);
}

.view-tab:focus-visible {
  outline: 2px solid rgba(31, 92, 154, 0.45);
  outline-offset: 2px;
}

.view-tab.is-active {
  background: #1f5c9a;
  border-color: #1f5c9a;
  color: #fffdf8;
}

.compact-control {
  min-width: 220px;
}

.control-fields {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.filter-controls {
  grid-column: 1 / -1;
}

.filter-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 110px;
}

label {
  display: grid;
  gap: 5px;
}

label span {
  color: var(--muted);
}

select,
button,
input[type="range"] {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--blue);
}

.toggle-control {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 34px;
}

.toggle-control input {
  accent-color: var(--blue);
  height: 16px;
  margin: 0;
  width: 16px;
}

.toggle-control span {
  color: var(--text);
  font-weight: 700;
}

select,
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 9px;
}

select,
.multi-select-button {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: var(--text);
  cursor: pointer;
  padding-right: 32px;
}

select:hover,
.multi-select-button:hover {
  border-color: rgba(21, 38, 63, 0.28);
}

select:focus,
.multi-select-button:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 120, 168, 0.18);
  outline: none;
}

.multi-select-field {
  display: grid;
  gap: 5px;
  position: relative;
}

.native-select-hidden {
  display: none;
}

.custom-select {
  position: relative;
  width: 100%;
}

.panel-header .custom-select {
  max-width: 280px;
}

.custom-select-button {
  min-height: 34px;
  width: 100%;
}

.custom-select-button:disabled {
  background: rgba(247, 244, 236, 0.72);
  color: rgba(100, 112, 132, 0.72);
  cursor: not-allowed;
}

.custom-select-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 38, 74, 0.16);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 320px;
  min-width: 100%;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 900;
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-option {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  min-height: 30px;
  padding: 5px 7px;
  text-align: left;
}

.custom-select-option:hover {
  background: rgba(239, 227, 174, 0.34);
}

.custom-select-option.is-selected {
  background: rgba(77, 120, 168, 0.22);
  color: var(--text);
}

.multi-select-field > span {
  color: var(--muted);
}

.multi-select-button {
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: var(--text);
  font-weight: 400;
  padding-right: 32px;
  text-align: left;
}

.multi-select-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 38, 74, 0.16);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 320px;
  min-width: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 900;
}

.multi-select-menu[hidden] {
  display: none;
}

.multi-select-option {
  align-items: center;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 30px;
  padding: 5px 7px;
}

.multi-select-option:hover {
  background: rgba(239, 227, 174, 0.34);
}

.multi-select-option input {
  accent-color: var(--blue);
  height: 15px;
  margin: 0;
  width: 15px;
}

.multi-select-option span {
  color: var(--text);
  line-height: 1.2;
}

.multi-select-separator {
  border-top: 1px solid var(--line);
  margin: 5px 0 3px;
}

.multi-select-group-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 7px 4px;
}

.select-all-option {
  border-bottom: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  font-weight: 400;
  margin-bottom: 3px;
}

select:disabled {
  background: rgba(247, 244, 236, 0.72);
  color: rgba(100, 112, 132, 0.72);
}

button {
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.multi-select-button {
  background-color: var(--panel);
  color: var(--text);
  font-weight: 400;
  text-align: left;
}

#playButton.is-playing {
  background: var(--red);
}

output {
  color: var(--text);
  font-weight: 700;
  padding-bottom: 8px;
  white-space: nowrap;
}

.coverage-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.panel,
.side-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  min-width: 0;
  padding: 12px;
}

.stat span {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.map-section {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-bottom: 14px;
}

.chart-panel {
  margin-bottom: 14px;
}

.night-panel {
  margin-bottom: 14px;
}

.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.night-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.night-summary .stat strong {
  font-size: 19px;
}

.night-table-wrap {
  overflow: auto;
}

.night-table-wrap th,
.night-table-wrap td {
  border-left: 1px solid rgba(21, 38, 63, 0.12);
}

.night-table-wrap th:first-child,
.night-table-wrap td:first-child {
  border-left: 0;
  border-right: 1px solid rgba(21, 38, 63, 0.12);
}

.night-table-wrap th {
  overflow: visible;
  position: relative;
}

.night-table-wrap th:hover,
.night-table-wrap th:focus-within {
  z-index: 40;
}

.night-table-wrap th:first-child {
  z-index: 2;
}

.night-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 5px;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
}

.night-sort-button:hover .column-help,
.night-sort-button:focus-visible .column-help,
.night-sort-button.is-active .column-help {
  border-bottom-color: rgba(31, 92, 154, 0.85);
  color: #123f6b;
}

.night-sort-button:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(31, 92, 154, 0.45);
  outline-offset: 3px;
}

.sort-indicator {
  color: #1f5c9a;
  display: inline-block;
  flex: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.column-help {
  border-bottom: 1px dotted rgba(63, 77, 98, 0.58);
  cursor: help;
  display: inline-flex;
  line-height: 1.25;
  outline: none;
  position: relative;
}

.column-help::after {
  background: #15263f;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(18, 38, 74, 0.28);
  color: #fffdf8;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 500;
  left: 50%;
  line-height: 1.42;
  max-width: min(360px, calc(100vw - 40px));
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: calc(100% + 9px);
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
  white-space: normal;
  width: max-content;
  z-index: 20;
}

.column-help::before {
  border: 6px solid transparent;
  border-bottom-color: #15263f;
  content: "";
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 3px);
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
  z-index: 21;
}

.column-help:hover::after,
.column-help:hover::before,
.column-help:focus-visible::after,
.column-help:focus-visible::before,
.night-sort-button:focus-visible .column-help::after,
.night-sort-button:focus-visible .column-help::before {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.night-table-wrap th:nth-last-child(-n + 2) .column-help::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.night-table-wrap th:first-child .column-help::after {
  left: 0;
  right: auto;
  transform: translate(0, 4px);
}

.night-table-wrap th:nth-last-child(-n + 2) .column-help:hover::after,
.night-table-wrap th:nth-last-child(-n + 2) .column-help:focus-visible::after,
.night-table-wrap th:nth-last-child(-n + 2) .night-sort-button:focus-visible .column-help::after,
.night-table-wrap th:first-child .column-help:hover::after,
.night-table-wrap th:first-child .column-help:focus-visible::after,
.night-table-wrap th:first-child .night-sort-button:focus-visible .column-help::after {
  transform: translate(0, 0);
}

.chart-wrap {
  min-width: 0;
  overflow: auto;
}

.line-chart {
  display: block;
  height: 280px;
  min-width: 720px;
  width: 100%;
}

.concentration-grid {
  display: grid;
  gap: 14px;
}

.concentration-chart,
.entropy-chart {
  display: block;
  min-width: 820px;
  width: 100%;
}

.concentration-chart {
  height: 340px;
}

.entropy-chart {
  height: 220px;
}

.concentration-areas path {
  opacity: 0.9;
  stroke: rgb(255 253 248 / 42%);
  stroke-width: 0.5;
}

.entropy-line {
  fill: none;
  stroke: #9f3f3f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-title {
  fill: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.chart-legend-item text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chart-grid line {
  stroke: rgba(21, 38, 63, 0.11);
  stroke-width: 1;
}

.chart-grid .chart-day-divider {
  stroke: rgba(21, 38, 63, 0.2);
  stroke-dasharray: 2 5;
}

.chart-grid text,
.chart-axis text,
.chart-active text {
  fill: var(--muted);
  font-size: 12px;
}

.chart-day-lines path {
  fill: none;
  opacity: 0.24;
  stroke: rgba(77, 120, 168, 0.72);
  stroke-width: 1.4;
}

.chart-average-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-axis line {
  stroke: rgba(21, 38, 63, 0.36);
  stroke-width: 1;
}

.chart-active line {
  stroke: var(--red);
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
}

.chart-active circle {
  fill: var(--red);
  stroke: var(--panel);
  stroke-width: 2;
}

.chart-active text {
  fill: var(--text);
  font-weight: 700;
}

.map-wrap {
  min-width: 0;
  position: relative;
}

#map {
  background: #f7f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 620px;
  overflow: hidden;
}

.leaflet-container {
  background: #f7f4ec;
}

.leaflet-container:focus,
.leaflet-container:focus-visible {
  outline: none;
}

.leaflet-zoom-animated {
  will-change: transform;
}

.map-overlay-controls {
  align-items: start;
  background: rgb(255 253 248 / 92%);
  border: 1px solid rgba(21, 38, 63, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 38, 74, 0.16);
  color: var(--text);
  column-gap: 10px;
  display: grid;
  grid-template-columns: repeat(2, 112px);
  row-gap: 8px;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 500;
}

.map-control-field {
  align-content: start;
  gap: 5px;
  grid-template-rows: 12px 16px;
  width: 112px;
}

.map-control-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.map-control-field input {
  accent-color: var(--blue);
  width: 100%;
}

.map-checkbox-field {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: auto;
  min-width: 0;
}

.map-checkbox-field input {
  accent-color: var(--blue);
  height: 16px;
  margin: 0;
  width: 16px;
}

.map-checkbox-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.leaflet-tooltip.place-tooltip {
  background: rgb(18 38 74 / 94%);
  border: 1px solid rgb(255 253 248 / 18%);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(18, 38, 74, 0.24);
  color: var(--panel);
  max-width: min(260px, calc(100vw - 32px));
  padding: 8px 10px;
  white-space: normal;
  width: max-content;
}

.place-tooltip::before {
  border-top-color: rgb(18 38 74 / 94%);
}

.place-tooltip strong,
.place-tooltip span {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.place-tooltip strong {
  font-size: 13px;
  line-height: 1.25;
}

.place-tooltip span {
  color: rgb(255 253 248 / 78%);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 3px;
}

.place-tooltip-hours {
  border-top: 1px solid rgb(255 253 248 / 16%);
  margin-top: 8px;
  padding-top: 7px;
}

.place-tooltip-hours > span {
  color: rgb(255 253 248 / 88%);
  font-weight: 700;
  margin: 0 0 5px;
}

.place-tooltip-hours dl {
  display: grid;
  gap: 3px;
  margin: 0;
}

.place-tooltip-hours-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
}

.place-tooltip-hours dt,
.place-tooltip-hours dd {
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
}

.place-tooltip-hours dt {
  color: rgb(255 253 248 / 64%);
  font-weight: 700;
}

.place-tooltip-hours dd {
  color: rgb(255 253 248 / 84%);
  min-width: 0;
  overflow-wrap: break-word;
}

.is-map-panning .place-tooltip {
  display: none;
}

.place-marker {
  transition:
    fill 180ms linear,
    fill-opacity 180ms linear,
    stroke 180ms linear,
    opacity 180ms linear;
}

.place-marker-hit {
  cursor: pointer;
  pointer-events: all;
}

.place-marker:focus,
.place-marker-hit:focus,
.leaflet-interactive:focus {
  outline: none;
}

.map-time-overlay {
  background: rgb(18 38 74 / 90%);
  border: 1px solid rgb(255 253 248 / 24%);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 12px 32px rgba(18, 38, 74, 0.22);
  color: var(--panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  padding: 14px 16px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  z-index: 500;
}

.side-panel,
.panel {
  padding: 14px;
}

.is-hidden {
  display: none;
}

[data-view-panel].is-hidden {
  display: none;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 620px;
  overflow: auto;
}

.current-stat {
  margin-bottom: 0;
}

.current-stat .stat {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 14px;
}

.side-panel h2,
.panel h2 {
  margin-bottom: 10px;
}

.side-about {
  padding-top: 0;
}

.side-about article {
  padding-top: 0;
}

.side-about article + article {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.side-about h3 {
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 7px;
}

.side-about p {
  color: #3f4d62;
  line-height: 1.5;
}

.side-about a {
  color: #1f5c9a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#ranking {
  display: grid;
  gap: 8px;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

#ranking li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
}

#ranking strong {
  font-size: 13px;
}

#ranking span {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

.panel-header h2 {
  margin-bottom: 0;
}

.panel-header select {
  max-width: 280px;
}

.heatmap-wrap,
.coverage-table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  left: 0;
  position: sticky;
  text-align: left;
  z-index: 1;
}

th:first-child {
  background: #efe8d8;
}

td:first-child {
  background: var(--panel);
}

th {
  background: #efe8d8;
  color: #3f4d62;
  font-weight: 700;
}

.heat-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}

.day-start {
  border-left: 2px solid rgba(21, 38, 63, 0.36);
}

.leaflet-popup-content {
  font-size: 13px;
  margin: 10px 12px;
}

.popup-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .map-section {
    align-items: stretch;
    display: grid;
  }

  .topbar-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .topbar-actions {
    display: contents;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .project-credit {
    grid-row: 2;
    justify-self: start;
  }

  .project-credit:first-of-type {
    grid-column: 1;
  }

  .project-credit:nth-of-type(2) {
    grid-column: 2;
    justify-self: end;
  }

  .map-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .controls,
  .view-tabs,
  .control-fields,
  .filter-controls,
  .coverage-summary,
  .night-summary {
    grid-template-columns: 1fr;
  }

  .side-panel {
    height: auto;
    max-height: none;
  }

  #map {
    height: 520px;
  }

  .map-overlay-controls {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 112px));
    max-width: calc(100vw - 52px);
  }

  .map-time-overlay {
    bottom: 14px;
    font-size: 24px;
    right: 14px;
  }
}
