body.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #001830;
  background-image: none;
  color: #f3eee4;
}
.app-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #1a3a5c;
  background: #002448;
  flex-shrink: 0;
  min-height: 56px;
  box-sizing: border-box;
}
.app-bar input,
.sheet input {
  min-width: 0;
  width: 100%;
  height: 40px;
  background: #001830;
  color: #f3eee4;
  border: 1px solid #1a3a5c;
  border-radius: 4px;
  padding: 0 10px;
  font: 400 14px/1.3 "IBM Plex Sans", "Segoe UI", sans-serif;
}
.pick {
  position: relative;
  flex: 1;
  min-width: 0;
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #001830;
  border: 1px solid #1a3a5c;
  max-height: 240px;
  overflow: auto;
  z-index: 20;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #f3eee4;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  min-height: 40px;
  font: 400 14px/1.3 "IBM Plex Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}
.suggest button:hover,
.suggest button:focus {
  background: #002448;
}
.app-bar a.home {
  color: #e8e0d2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 40px;
  height: 40px;
}
.app-bar > button {
  background: #f0900c;
  color: #001830;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  height: 40px;
  min-height: 40px;
  font: 600 14px/1 "IBM Plex Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}
#map {
  flex: 1 1 auto;
  min-height: 200px;
  height: 0;
}
.maplibregl-popup-content {
  background: #002448;
  color: #f3eee4;
  border-radius: 4px;
  font: 400 14px/1.4 "IBM Plex Sans", "Segoe UI", sans-serif;
}
.maplibregl-popup-content button {
  margin-top: 8px;
  background: #f0900c;
  color: #001830;
  border: 0;
  border-radius: 4px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
}
.sheet {
  background: #002448;
  border-top: 1px solid #1a3a5c;
  padding: 12px 14px 18px;
  height: min(38vh, 320px);
  max-height: min(38vh, 320px);
  overflow: auto;
  flex-shrink: 0;
}
.sheet h2 { font-size: 16px; margin: 0 0 8px; font-family: "IBM Plex Serif", Georgia, serif; }
.sheet input { margin-bottom: 8px; }
.near {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  margin: 8px 0;
}
.near button {
  background: #f0900c;
  color: #001830;
  border: 0;
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 40px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.hint { font-size: 12px; color: #cfc4b0; margin: 6px 0 0; }
.ios-tip {
  display: none;
  padding: 8px 12px;
  background: #7a4a00;
  color: #fff8ee;
  font-size: 13px;
}
body.show-ios .ios-tip { display: block; }
