:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #1d252c;
  background: #f7f7f4;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body { display: grid; grid-template-rows: auto 1fr; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: white;
  box-shadow: 0 1px 6px #0002;
  z-index: 1000;
}

h1 { margin: 0; font-size: 1.35rem; }
header p { margin: .15rem 0 0; color: #59636b; font-size: .85rem; }

button {
  min-height: 44px;
  border: 0;
  border-radius: .65rem;
  padding: .65rem 1rem;
  color: white;
  background: #c62828;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: wait; }
button:focus-visible { outline: 3px solid #1565c0; outline-offset: 2px; }

main, #map { min-height: 0; height: 100%; }

#status {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 1000;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .55rem .8rem;
  border-radius: 2rem;
  background: #fffffff2;
  box-shadow: 0 2px 10px #0003;
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 540px) {
  header { align-items: stretch; flex-direction: column; gap: .55rem; }
  header div { text-align: center; }
  button { width: 100%; }
}
