.gps-walk {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #17352a;
  color: #fff;
  overflow: hidden;
  font-family: inherit;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
}
.gps-walk[open] {
  display: grid;
}
.gps-walk::backdrop {
  background: #17352a;
}
.gps-walk * {
  box-sizing: border-box;
}
.gps-walk [hidden] {
  display: none !important;
}
.gps-walk button {
  font: inherit;
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
  border: 0;
  background: #fff;
  color: #17352a;
  padding: 10px 12px;
  margin: 0;
}
.gps-walk button.primary {
  background: #def69f;
  color: #17352a;
  font-weight: 750;
}
.gps-walk button:disabled {
  opacity: 0.5;
  cursor: default;
}
.gps-walk button.text {
  color: #e6ecd9;
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
}
.gps-walk button.danger {
  background: #ffe0cf;
  color: #7b241b;
}
.gps-walk button:focus-visible,
.gps-walk input:focus-visible {
  outline: 3px solid #81dcff;
  outline-offset: 2px;
}
.gw-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
}
.gw-head > button {
  max-width: 96px;
  font-size: 12px;
  flex: none;
}
.gw-head > div {
  flex: 1;
  min-width: 0;
}
.gw-head small,
.gw-head strong {
  display: block;
}
.gw-head small {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #cfdfd4;
}
.gw-title {
  font-size: 16px;
  line-height: 1.3;
  margin-top: 4px;
}
.gw-quality {
  font-size: 11px;
  white-space: pre;
  text-align: center;
  border: 1px solid #799c79;
  border-radius: 10px;
  padding: 6px;
  min-width: 70px;
  color: #def69f;
}
.gw-quality[data-quality='weak'] {
  color: #ffd3a3;
  border-color: #d39b60;
}
.gw-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  padding: 4px 14px 12px;
}
.gw-stats small {
  display: block;
  color: #c6d5c8;
  font-size: 10px;
}
.gw-stats strong {
  display: block;
  font-size: 21px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gw-map {
  min-height: 120px;
  position: relative;
  isolation: isolate;
  background: #c2cec3;
}
.gps-walk .gw-locate {
  position: absolute;
  z-index: 700;
  top: 12px;
  right: 12px;
  width: 48px;
  font-size: 27px;
  padding: 0;
  box-shadow: 0 2px 8px #0003;
}
.gw-bottom {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  max-height: 48dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
.gw-bottom p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}
.gw-warning {
  color: #ffe29e;
}
.gw-error,
.gw-save-status {
  color: #ffd3bd;
}
.gw-bottom p:empty {
  display: none;
}
.gw-actions {
  display: grid;
  gap: 8px;
}
.gw-actions button {
  width: 100%;
  font-size: 15px;
}
.gw-note {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  color: #c6d5c8;
  margin-top: 10px;
}
.gw-result {
  color: #e0efc8;
}
.gw-name {
  display: grid;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}
.gw-name input {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #a8baa5;
  background: #fff;
  color: #17352a;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
}
.gps-walk .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
}
.gw-map .leaflet-control-attribution {
  font-size: 9px;
}
.field-create-choices #gps-walk-open {
  background: #e2ecd7;
  color: #183b2a;
  border: 1px solid #b9cba8;
}
@media (min-width: 800px) {
  .gw-head,
  .gw-stats,
  .gw-bottom {
    padding-left: max(18px, calc((100vw - 650px) / 2));
    padding-right: max(18px, calc((100vw - 650px) / 2));
  }
  .gw-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gw-actions .primary {
    grid-column: 1/-1;
  }
}
