/* "Your location" sheet, first-visit prompt and "you moved" confirm bar. Neutral surfaces, one brand accent, flat only. */
.lsx { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lsx:not([open]) { display: none; }
.lsx::backdrop { background: var(--scrim, rgba(10, 10, 14, .42)); }
.lsx-body { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(92dvh, 760px); background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(0, 0, 0, .18); animation: lsx-up .24s var(--ease, ease-out); padding-bottom: var(--safe-b, 0px); }
.lsx.is-closing .lsx-body { animation: lsx-down .2s var(--ease, ease-in) forwards; }
.lsx-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.lsx-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px 20px; flex: none; }
.lsx-head h2 { font-size: 20px; }
.lsx-x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; }
.lsx-x:hover { background: var(--surface-2, var(--line-2)); }
.lsx-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 16px; display: grid; gap: 14px; align-content: start; flex: 1; min-height: 0; }
.lsx-search { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 6px 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.lsx-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.lsx-search .i { color: var(--muted); }
.lsx-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; outline: 0; min-height: 46px !important; padding: 0 !important; font-size: 16px; }
.lsx-qx { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.lsx-list, .lsx-recent ul { list-style: none; margin: -6px 0 0; padding: 0; display: grid; }
.lsx-recent h3, .lsx-saved h3 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: 4px; }
.lsx-row { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; background: transparent; text-align: left; border-radius: 10px; color: var(--ink); }
.lsx-row:hover { background: var(--surface-2, var(--line-2)); }
.lsx-row .i { color: var(--muted); }
.lsx-row span { display: grid; min-width: 0; }
.lsx-row b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsx-row small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsx-note { padding: 12px 4px; color: var(--muted); font-size: 14px; }
.lsx-gps { display: grid; gap: 8px; }
.lsx-gpsbtn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); text-align: left; width: 100%; transition: box-shadow .15s; }
.lsx-gpsbtn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lsx-gpsbtn .i { color: var(--brand); width: 22px; height: 22px; }
.lsx-gpsbtn span { display: grid; }
.lsx-gpsbtn b { font-size: 15px; } .lsx-gpsbtn small { font-size: 12.5px; color: var(--muted); }
.lsx-gpsbtn.is-busy { opacity: .6; pointer-events: none; }
.lsx-follow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); min-height: 48px; }
.lsx-follow input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.lsx-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, var(--line-2)); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.lsx-status > span { min-width: 0; }
.lsx-status.is-ok { color: var(--ok, var(--pine)); }
.lsx-status.is-warn, .lsx-status.is-err { color: var(--ink); box-shadow: inset 3px 0 0 var(--warn, var(--gold)); }
.lsx-status.is-err { box-shadow: inset 3px 0 0 var(--bad, var(--danger)); }
.lsx-status b { font-weight: 700; }
.lsx-link { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.lsx-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: lsx-spin .8s linear infinite; flex: none; margin-top: 2px; }
.lsx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.lsx-chips::-webkit-scrollbar { display: none; }
.lsx-chip { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); text-align: left; max-width: 240px; }
.lsx-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lsx-chip span { display: grid; min-width: 0; } .lsx-chip b { font-size: 14px; } .lsx-chip small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsx-map { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: var(--surface-2, var(--line-2)); isolation: isolate; }
.lsx-map > .gm-style { height: 100%; width: 100%; }
.lsx-maphint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; z-index: 1; }
.lsx-addr { display: flex; gap: 10px; align-items: flex-start; }
.lsx-addr .i { margin-top: 2px; color: var(--brand); }
.lsx-addr div { display: grid; min-width: 0; }
.lsx-addr b { font-size: 16px; } .lsx-addr span { font-size: 13.5px; color: var(--muted); }
.lsx-addr span.is-busy { opacity: .6; }
.lsx-zone:empty { display: none; }
.lsx-zone .mp-zone { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, var(--line-2)); box-shadow: none; }
.lsx-zone .mp-ico { background: transparent; width: 24px; height: 24px; border-radius: 0; }
.lsx-zone .mp-ico--ok { color: var(--ok, var(--pine)); }
.lsx-zone .mp-zone-art { display: none; }
.lsx-zone .mp-zone-head b { font-size: 15px; } .lsx-zone .mp-zone-head p { font-size: 13.5px; color: var(--ink-2); }
.lsx-save { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.lsx-save button { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; }
.lsx-save button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lsx-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); flex: none; background: var(--surface); }
html.lsx-lock { overflow: hidden; }
@media (min-width: 900px) {
  .lsx-body { left: auto; top: 0; width: min(480px, 100%); max-height: none; height: 100dvh; border-radius: 20px 0 0 20px; box-shadow: -8px 0 32px rgba(0, 0, 0, .18); animation: lsx-in .24s var(--ease, ease-out); }
  .lsx.is-closing .lsx-body { animation: lsx-out .2s var(--ease, ease-in) forwards; }
  .lsx-grab { display: none; }
  .lsx-map { height: 280px; }
  .lsx-head { padding-top: 14px; }
}
@keyframes lsx-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes lsx-down { to { transform: translateY(100%); } }
@keyframes lsx-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes lsx-out { to { transform: translateX(100%); } }
@keyframes lsx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lsx-body, .lsx.is-closing .lsx-body { animation: none; } .lsx-spin { animation-duration: 2s; } }

/* soft prompt + confirm bar (floating layers) */
.loc-prompt, .loc-confirm { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(var(--nav-h, 64px) + var(--safe-b, 0px) + 12px); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px rgba(0, 0, 0, .2), 0 0 0 1px var(--line); animation: lsx-up .24s var(--ease, ease-out); }
.loc-prompt .i { color: var(--brand); flex: none; }
.loc-prompt p { flex: 1; min-width: 0; display: grid; font-size: 13.5px; line-height: 1.35; }
.loc-prompt p span { color: var(--muted); font-size: 12.5px; }
.loc-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.loc-confirm { flex-direction: column; align-items: stretch; z-index: 95; }
.loc-confirm p { font-weight: 600; font-size: 14.5px; }
.loc-confirm div { display: flex; gap: 8px; }
.loc-confirm .btn { flex: 1; }
@media (min-width: 900px) { .loc-prompt, .loc-confirm { left: auto; right: 24px; bottom: 24px; width: 420px; } }

/* ---- "Adjust pin on map": the sheet turns into a big one-finger map with the address and Confirm in the thumb zone */
.lsx-adjust { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.lsx-adjust:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lsx-alt { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.lsx-toolrow { display: flex; gap: 8px; flex-wrap: wrap; }
.lsx-toolrow { flex-wrap: nowrap; }
.lsx-toolrow .lsx-adjust { flex: 1 1 auto; width: auto; }
.lsx-toolrow .lsx-hc { flex: 0 0 auto; padding: 0 14px; font-size: 14px; }
.lsx-toolrow .lsx-hc[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.lsx-body.is-mapmode { max-height: 100dvh; height: 100dvh; border-radius: 0; }
.lsx-body.is-mapmode .lsx-scroll { display: flex; flex-direction: column; gap: 10px; }
.lsx-body.is-mapmode .lsx-gps, .lsx-body.is-mapmode .lsx-recent, .lsx-body.is-mapmode .lsx-saved, .lsx-body.is-mapmode .lsx-save, .lsx-body.is-mapmode .lsx-alt, .lsx-body.is-mapmode .lsx-status:not(.is-err):not(.is-warn) { display: none; }
.lsx-body.is-mapmode .lsx-map { flex: 1 1 auto; height: auto; min-height: 44dvh; }
.lsx-body.is-mapmode .lsx-addr b { font-size: 17px; }
.lsx-body.is-mapmode #locAdjust { background: var(--ink); color: var(--bg); box-shadow: none; }
.lsx-body.is-mapmode .lsx-addr span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lsx-body.is-mapmode .lsx-zone .mp-zone-head p { display: none; }
#locTitle:focus { outline: 0; }
.lsx-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .lsx-body.is-mapmode { width: min(720px, 100%); } .lsx-body.is-mapmode .lsx-map { min-height: 50dvh; } }
