/* v459 Send To Phone: desktop / fine-pointer only. Hidden in the app and on phones. */
html.ol-native .stp-btn,
html.ol-native .stp-head,
html.ol-native .stp-sheet,
html.ol-touch .stp-btn,
html.ol-touch .stp-head,
html.ol-touch .stp-sheet { display: none !important; }

.stp-btn,
.stp-head { display: none; }

/* Wide screens. Phones (narrow, or coarse pointer and no hover) stay hidden.
   A desktop with a fine pointer, including a laptop that also has a touch screen, stays visible. */
@media (min-width: 760px) {
  html:not(.ol-native):not(.ol-touch) .stp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35em;
    align-self: flex-start;
    width: auto;
    margin: 2px 2.6rem 8px 0;
    padding: 6px 12px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
  }
  html:not(.ol-native):not(.ol-touch) .stp-btn:hover { background: color-mix(in srgb, var(--amber) 16%, transparent); }
  html:not(.ol-native):not(.ol-touch) .stp-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
  html:not(.ol-native):not(.ol-touch) .dtop .stp-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  html:not(.ol-native):not(.ol-touch) .footacts .stp-btn {
    margin: 0;
    min-height: 44px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 600;
    padding: 10px 18px;
  }
  html:not(.ol-native):not(.ol-touch) .mapsheet-acts .stp-btn {
    margin: 0;
    flex: 1 1 auto;
    min-height: 40px;
  }
}
@media (max-width: 759px), (pointer: coarse) and (hover: none) {
  .stp-btn,
  .stp-head { display: none !important; }
}

.stp-sheet { position: fixed; inset: 0; z-index: 82; display: flex; align-items: center; justify-content: center; padding: 24px; }
.stp-sheet[hidden] { display: none !important; }
.stp-back { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, .55); cursor: pointer; }
.stp-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--card, #1c1917);
  color: var(--ink, #f2eeea);
  border: 1px solid var(--line, #3a3532);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}
.stp-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.stp-place { margin: 0 0 14px; font-size: .9rem; color: var(--ink3, #cfc4cf); }
.stp-qr-wrap { text-align: center; margin: 0 0 18px; }
.stp-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.stp-qr svg { display: block; width: 180px; height: 180px; }
.stp-qr-hint { margin: 10px 0 0; font-size: .82rem; color: var(--ink3, #cfc4cf); }
.stp-form label { display: block; font-weight: 650; margin: 0 0 6px; }
.stp-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #3a3532);
  background: var(--bg, #161413);
  color: var(--ink, #f2eeea);
  margin-bottom: 10px;
}
.stp-form input[type="email"]:focus { outline: 2px solid var(--link, #e2b56a); outline-offset: 1px; }
.stp-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.stp-form .btn { width: 100%; }
.stp-status { margin: 10px 0 0; font-size: .82rem; color: var(--ink3, #cfc4cf); min-height: 1.2em; }
.stp-status.is-err { color: var(--r, #ff6b5a); }
.stp-status.is-ok { color: var(--g, #4fe08f); }
.stp-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--ink, #f2eeea);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.stp-x:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.stp-x:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
