






:is(#zoom-in, #zoom-out, #my-position, #fit-route, #sat-button, #weather-button, #credits-open, #open-list, #area-draw, #layer-panel,
    #weather-model, #appbar-rerun, .faces, .ta-open,
    #move-points, #edit-route, #watch-route, #appbar-pdf):not(#glass-none) {
  background: var(--chrome-glass-ground);
  -webkit-backdrop-filter: var(--chrome-glass-blur);
  backdrop-filter: var(--chrome-glass-blur);
  border: 1px solid var(--chrome-box-edge);
  box-shadow: none;
  color: var(--chrome-text);
  text-shadow: none;
}


:is(#move-points, #edit-route, #watch-route, #appbar-pdf):not(#glass-none) {
  background: var(--chrome-glass-primary);
  border: var(--chrome-glass-primary-edge-width) solid var(--chrome-glass-primary-edge);
}



#map-controls #area-draw:not(#glass-none) { padding: 0 17px 0 13px; }


:is(#layer-pick, #streaks-toggle, #layer-name):not(#glass-none) { color: var(--chrome-text); background: transparent; }
#layer-pick.with-satellite:not(#glass-none) svg { color: var(--chrome-glass-mark); }



.faces:not(#glass-none)::before { background: transparent; }
.faces:not(#glass-none) button { color: var(--chrome-text); background-color: transparent; text-shadow: none; }
.faces:not(#glass-none) button[aria-pressed="true"] {
  background-color: var(--chrome-glass-primary);
  box-shadow: inset 0 0 0 var(--chrome-glass-primary-edge-width) var(--chrome-glass-primary-edge);
  color: var(--chrome-text);
}


:is(#zoom-in, #zoom-out, #my-position, #fit-route, #sat-button, #weather-button, #credits-open, #open-list, #area-draw,
    #weather-model, #appbar-rerun, .ta-open):not(#glass-none):hover:not(:disabled) {
  background: var(--chrome-glass-ground);
  border-color: var(--chrome-glass-hover-edge);
  color: var(--chrome-text);
}
:is(#move-points, #edit-route, #watch-route, #appbar-pdf):not(#glass-none):hover:not(:disabled) {
  background: var(--chrome-glass-primary);
  border-color: var(--chrome-text);
  color: var(--chrome-text);
}


:is(#zoom-in, #zoom-out, #my-position, #fit-route, #sat-button, #weather-button, #credits-open, #open-list, #area-draw,
    #weather-model, #appbar-rerun, .ta-open,
    #move-points, #edit-route, #watch-route, #appbar-pdf):not(#glass-none):active:not(:disabled),
:is(#layer-pick, #streaks-toggle):not(#glass-none):active,
.faces:not(#glass-none) button:active {
  background: var(--chrome-glass-pressed);
}


:is(#zoom-in, #zoom-out, #my-position, #fit-route, #sat-button, #weather-button, #credits-open, #open-list, #area-draw,
    #weather-model, #appbar-rerun, .ta-open, #layer-pick, #streaks-toggle,
    #move-points, #edit-route, #watch-route, #appbar-pdf):not(#glass-none):focus-visible,
.faces:not(#glass-none) button:focus-visible {
  outline: 2px solid var(--chrome-text);
  outline-offset: 1px;
  box-shadow: var(--chrome-glass-focus);
}


:is(#weather-model, #appbar-rerun, #appbar-pdf, #move-points, #edit-route, #watch-route):not(#glass-none):disabled {
  color: var(--chrome-glass-disabled);
  opacity: 1;
  cursor: default;
}


body:has(:is(#data-face, #trip-data):not([hidden])) :is(#weather-model, #appbar-rerun, .faces, .ta-open):not(#glass-none) {
  background: var(--chrome-box-solid);
}
body:has(:is(#data-face, #trip-data):not([hidden])) #appbar-pdf:not(#glass-none) {
  background: var(--chrome-box-solid);
}



@media (pointer: coarse) {
  #map-pane .faces:not(#glass-none) { border: none; outline: 1px solid var(--chrome-box-edge); outline-offset: -1px; }
}
