


.wm-wrap { position: relative; flex: none; }

#appbar > #back { flex: none; }

.wm-wrap[hidden],
main:has(:is(#data-face, #trip-data):not([hidden])) .wm-wrap { display: none; }


@media (max-width: 600px) {
  #appbar.route .wm-wrap { order: 2; margin-left: 48px; }
  #appbar.route .wm-wrap + #appbar-rerun { margin-left: 0; }
  #appbar.route #weather-model-menu { left: 0; right: auto; }
}

#weather-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  white-space: nowrap;
}

#weather-model::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

#weather-model-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 35;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

#weather-model-menu[hidden] { display: none; }

#weather-model-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: none;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}


#weather-model-menu button::before {
  content: "";
  width: 12px;
  height: 7px;
  margin-top: -4px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
}

#weather-model-menu button[aria-checked="true"] { font-weight: 600; color: var(--accent-dark); }
#weather-model-menu button[aria-checked="true"]::before { border-color: var(--accent); }

#weather-model-menu button:hover,
#weather-model-menu button:focus-visible { background: var(--bg-soft); color: var(--accent-dark); }
