/* Four light settings live inside the compact map-tools popover. */
#mapTools #timeControls {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  flex-wrap: nowrap;
  transform: none;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 0 7px;
  padding: 3px;
  gap: 2px;
  border: 1px solid #d5e3d1;
  border-radius: 12px;
  background: #ebf2e8;
  box-shadow: none;
  backdrop-filter: none;
}
#mapTools #timeControls .time-status {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-actions #mapTools #timeControls button {
  display: flex;
  flex: initial;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 48px;
  padding: 3px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #295646;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
}
#mapTools #timeControls button small {
  color: #657d6d;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.header-actions #mapTools #timeControls button.on { background: #ffdc76; color: #634914; box-shadow: inset 0 0 0 1px #eac051; }
#mapTools #timeControls button.on small { color: #695021; }
.header-actions #mapTools #timeControls button:hover:not(.on) { background: #dcebdc; }
#mapTools #timeControls button:focus-visible { outline: 3px solid #087c68; outline-offset: -3px; }
.island-app[data-phase="night"] #mapTools #timeControls { background: #29495a; border-color: #607c83; }
.island-app[data-phase="night"] .header-actions #mapTools #timeControls button { color: #e1f4ed; }
.island-app[data-phase="night"] #mapTools #timeControls button small { color: #bacdc8; }
.island-app[data-phase="night"] .header-actions #mapTools #timeControls button.on { color: #634914; }
.island-app[data-phase="night"] #mapTools #timeControls button.on small { color: #695021; }
.island-app[data-phase="night"] .header-actions #mapTools #timeControls button:hover:not(.on) { background: #365968; }
