/* WorldX Maps: the "Lumen" look (owner decision 2026-11-16; reference deploy/map-design/ui.css).
   Day = D-light (data-theme="light"), dark = D "Lumen" (data-theme="dark"). Frosted-glass chrome, Inter throughout.
   WorldX blue #3B7FD9 never changes: Sign In, Directions, the route, the selected pin, My location and active states. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------ tokens */
:root {
  --brand: #3B7FD9; --brand-hover: #2F6FC6;
  --radius-s: 10px; --radius: 14px; --radius-l: 22px;
  --rail: 72px; --gap: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* D-light (day) */
  --bg: #EEF1F4; --surface: rgba(255, 255, 255, .66); --surface-solid: #FFFFFF; --surface-2: rgba(16, 28, 44, .045); --surface-3: rgba(16, 28, 44, .08);
  --ink: #17202A; --ink-2: #46515E; --ink-3: #737F8C; --line: rgba(16, 28, 44, .08); --hover: rgba(16, 28, 44, .05);
  --stroke: rgba(16, 28, 44, .09); --stroke-top: rgba(255, 255, 255, .9);
  --shadow-s: 0 1px 2px rgba(16, 28, 44, .06), 0 4px 12px rgba(16, 28, 44, .06);
  --shadow: 0 1px 3px rgba(16, 28, 44, .06), 0 10px 28px rgba(16, 28, 44, .10);
  --shadow-l: 0 2px 6px rgba(16, 28, 44, .08), 0 24px 56px rgba(16, 28, 44, .16);
  --glass: rgba(255, 255, 255, .6); --scrim: rgba(16, 24, 34, .22);
  --cat: #4A73A8;   /* one accent family for places (no category rainbow) */
  --link: #2F6FC6;  /* links: WorldX blue, a shade deeper for small text */
  --brand-glow: 0 1px 2px rgba(20, 40, 80, .18), 0 4px 12px rgba(59, 127, 217, .28);
  --lt-land: #EEF1F4; --lt-water: #D2DDE8; --lt-park: #E1EAE5; --lt-road: #4D77A9; --lt-road-case: #FFFFFF; --lt-minor: #AAB4BF; --lt-minor-case: #EEF1F4;
  /* names the rest of the page (embed, launcher, account) already uses */
  --fg: var(--ink); --muted: var(--ink-3); --soft: var(--hover); --panel: var(--surface-solid);
  --accent: var(--brand); --accent-soft: color-mix(in srgb, var(--brand) 12%, transparent);
}
:root[data-theme="dark"] {   /* D "Lumen" */
  color-scheme: dark;
  --bg: #11161C; --surface: rgba(20, 27, 35, .62); --surface-solid: #161D25; --surface-2: rgba(255, 255, 255, .06); --surface-3: rgba(255, 255, 255, .10);
  --ink: #EEF3F9; --ink-2: #B4C1D0; --ink-3: #8090A3; --line: rgba(255, 255, 255, .09); --hover: rgba(255, 255, 255, .07);
  --stroke: rgba(255, 255, 255, .11); --stroke-top: rgba(255, 255, 255, .16);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-l: 0 4px 10px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
  --glass: rgba(20, 27, 35, .55); --scrim: rgba(4, 7, 10, .45);
  --cat: #8DB8F2;
  --link: #8DB8F2;
  --brand-glow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 22px rgba(59, 127, 217, .45);
  --lt-land: #11161C; --lt-water: #0A1622; --lt-park: #14201F; --lt-road: #EAF2FF; --lt-road-case: #3B7FD9; --lt-minor: #4B5969; --lt-minor-case: #11161C;
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
#map { position: absolute; inset: 0; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill-on { fill: currentColor; stroke: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* after a mouse or touch, no ring on buttons and links that got focus back from a closing menu or dialog (chrome.js) */
html[data-input="pointer"] :focus-visible:not(input):not(textarea):not(select) { outline: none; }
html[data-input="pointer"] .wxl-m:focus-visible, html[data-input="pointer"] .wxl-all:focus-visible, html[data-input="pointer"] .wxl-x:focus-visible { box-shadow: none; }
.mono, .scale__text, .ac__dist, .dir__sum span { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.linklike:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.field { width: 100%; min-height: 40px; background: var(--surface-2); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--stroke);
  border-radius: 12px; padding: 8px 12px; font-size: 14px; outline: none; }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
select.field { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: var(--surface-solid); color: var(--ink); }
.field.small { width: auto; min-height: 36px; padding: 6px 10px; }
.field.code { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.form textarea.field { resize: vertical; }

/* frosted glass: every floating surface */
.rail, .searchbox, .chip, .launcher, .ctrl__btn, .ctrl__zoom, .layers-btn, .layers, .bottombar, .wordmark, .panel, .dir, .menu,
.sheet, .ac, .acct, .fab--locate, .movepad button, .wxl-pop {
  background: var(--surface); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--stroke), inset 0 1px 0 var(--stroke-top), var(--shadow);
}
/* soft depth: 1 px lift on hover, 97 % press */
.chip, .launcher, .ctrl__btn, .signin, .avatar, .btn, .layers-btn, .fab, .sheet__modes .mode, .round span:first-child, .tile {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.chip:hover, .launcher:hover, .signin:hover, .btn:hover, .layers-btn:hover, .fab:hover { transform: translateY(-1px); }
.chip:active, .launcher:active, .ctrl__btn:active, .signin:active, .btn:active, .layers-btn:active, .fab:active, .sheet__modes .mode:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ desktop rail */
.rail { position: absolute; z-index: 1001; top: 0; bottom: 0; left: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center;
  padding: 10px 0 14px; gap: 4px; border-radius: 0; box-shadow: inset -1px 0 0 var(--stroke); }
.rail__btn { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 8px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.rail__ico { width: 48px; height: 32px; display: grid; place-items: center; border-radius: 999px; transition: background .15s; }
.rail__btn:hover .rail__ico { background: var(--surface-3); }
.rail__btn:first-child .rail__ico svg { width: 22px; height: 22px; }
.rail__lbl { font-size: 11.5px; font-weight: 550; letter-spacing: .01em; white-space: nowrap; }
.rail__btn[aria-disabled="true"] { opacity: .45; }
.rail__fill { flex: 1; }

/* ------------------------------------------------------------ top: search, chips, launcher and Sign In */
.top { position: absolute; z-index: 1002; top: var(--gap); left: calc(var(--rail) + var(--gap)); right: var(--gap);
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) auto; grid-template-areas: "search chips account";
  align-items: center; column-gap: 10px; row-gap: 10px; pointer-events: none; }
.top > * { pointer-events: auto; }
.searchbox { grid-area: search; position: relative; height: 48px; min-width: 0; display: flex; align-items: center; gap: 2px;
  padding: 0 6px 0 18px; border-radius: 999px; }
.searchbox__icon { color: var(--ink-3); margin-right: 8px; }
.searchbox .search { flex: 1; min-width: 0; height: 100%; position: static; }
.searchbox__input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15.5px; padding: 0; }
.searchbox__input::placeholder { color: var(--ink-3); opacity: 1; }
.searchbox__input::-webkit-search-cancel-button { display: none; }
.searchbox__menu, .searchbox__back, .searchbox__clear { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent;
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.searchbox__menu:hover, .searchbox__back:hover, .searchbox__clear:hover { background: var(--hover); color: var(--ink); }
.searchbox__clear { width: 36px; height: 36px; }
.searchbox__sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; flex: none; }
.searchbox__dir { flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; display: grid; place-items: center; background: var(--brand);
  color: #fff; box-shadow: var(--brand-glow); cursor: pointer; }
.searchbox__dir:hover { background: var(--brand-hover); }
.searchbox__dir svg { width: 20px; height: 20px; stroke-width: 2; }
.searchbox__menu, .searchbox__back, .phone-only { display: none; }

.chips { grid-area: chips; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 56px 8px 2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 88px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 88px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px 0 11px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .005em; color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-s); }
.chip svg { width: 18px; height: 18px; stroke-width: 1.9; color: var(--cat); }
.chip:hover { background: color-mix(in srgb, var(--surface-solid) 80%, transparent); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: var(--brand-glow); }
.chip[aria-pressed="true"] svg { color: #fff; }

.topright { grid-area: account; display: flex; align-items: center; gap: 10px; }
.launcher { width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.launcher svg { width: 20px; height: 20px; }
.launcher[aria-expanded="true"] { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow); }
.account { display: flex; }
.signin { height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border: 0; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 650; font-size: 15px; white-space: nowrap; text-decoration: none; box-shadow: var(--brand-glow); cursor: pointer; }
.signin:hover { background: var(--brand-hover); }
.avatar { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 650; font-size: 16px;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--brand-glow); }
.openapp { display: none; }

/* search suggestions (desktop: a drop-down under the box; phone: full screen) */
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px 0; list-style: none; border-radius: 18px; z-index: 1010;
  max-height: 62vh; overflow: auto; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-l); }
.ac li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  min-height: 60px; padding: 10px 16px; cursor: pointer; }
.ac li::after { content: ""; position: absolute; left: 66px; right: 16px; bottom: 0; height: 1px; background: var(--line); }
.ac li:last-child::after { display: none; }
.ac li .ac__pin { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.ac li .ac__pin svg { width: 18px; height: 18px; }
.ac li strong { grid-column: 2; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac li strong .typed { font-weight: 400; color: var(--ink-3); }
.ac li .ac__sub { grid-column: 2; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ac li .ac__dist { grid-column: 3; grid-row: 1 / span 2; font-size: 12.5px; color: var(--ink-3); }
.ac li.is-active, .ac li:hover { background: var(--hover); }

/* ------------------------------------------------------------ panels (lists, the place card, settings, share …) and directions */
.panel, .dir { position: absolute; z-index: 1003; top: calc(var(--gap) + 48px + 10px); left: calc(var(--rail) + var(--gap)); width: 400px;
  max-height: calc(100vh - 48px - 3 * var(--gap) - 10px); display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 12px;
  border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--stroke), inset 0 1px 0 var(--stroke-top), var(--shadow-l); }
.panel__head, .dir__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.panel__head h2, .dir__head h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.panel__head .icon-btn, .dir__head .icon-btn { margin-right: -8px; }
.panel__body { overflow: auto; min-height: 0; margin: 0 -18px; padding: 0 18px; }
.panel__body .row { display: flex; gap: 8px; align-items: center; }
.panel .row { margin-top: 8px; }
.panel .row .field { flex: 1; }
.panel hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.list li:last-child { border-bottom: 0; }
.list li strong { font-weight: 600; }
.list li small { color: var(--ink-3); font-size: 13px; }
.list li:hover { background: var(--hover); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form label.check { display: flex; gap: 10px; font-weight: 400; align-items: center; }
fieldset.plain { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.plain legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; }
.btn { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--stroke); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--hover); }
.btn svg { width: 18px; height: 18px; }
.btn.primary, .btn.brand { background: var(--brand); color: #fff; padding: 0 20px 0 16px; box-shadow: var(--brand-glow); }
.btn.primary:hover, .btn.brand:hover { background: var(--brand-hover); }
.btn.primary:not(:has(svg)), .btn.brand:not(:has(svg)) { padding: 0 20px; }
.btn.danger { color: #D2453B; box-shadow: inset 0 0 0 1px color-mix(in srgb, #E5483B 45%, transparent); }
.dir__row { display: flex; gap: 6px; align-items: center; }
.dir__row .search { flex: 1; position: relative; }
.dir__modes { display: flex; gap: 6px; flex-wrap: wrap; }
.mode { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--stroke);
  color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.mode[aria-checked="true"] { background: var(--brand); color: #fff; box-shadow: var(--brand-glow); }
.dir__sum { display: flex; gap: 10px; align-items: baseline; padding: 10px 2px 4px; border-top: 1px solid var(--line); }
.dir__sum strong { font-size: 20px; font-weight: 650; color: var(--brand); }
.dir__sum span { color: var(--ink-3); }
.dir__steps { margin: 0; padding: 0 0 0 20px; overflow: auto; }
.dir__steps li { padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dir__steps li:last-child { border-bottom: 0; }
.dir__steps small { display: block; color: var(--ink-3); }
#dir-out { overflow: auto; min-height: 0; display: flex; flex-direction: column; }

/* the place card */
.panel--place { padding-top: 16px; }
.panel--place .panel__head { position: absolute; top: 12px; right: 16px; min-height: 0; z-index: 1; }
.panel--place .panel__head h2 { display: none; }
.place { display: block; }
.place__badge { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--cat); background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--cat); margin-bottom: 10px; }
.place__badge svg { width: 22px; height: 22px; stroke-width: 1.9; }
.place__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; padding-right: 36px; overflow-wrap: anywhere; }
.place__kind { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.place__area { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.place__actions { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
/* phones (owner's rule, 2026-12-01): the card's buttons side by side in one row, 44 px tall; four or more go two to a row */
@media (max-width: 719px) {
  .place__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place__actions:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place__actions:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place__actions > .btn { height: 44px; min-width: 0; padding: 0 8px; gap: 6px; }
}
@media (max-width: 400px) { .place__actions > .btn { font-size: 13px; padding: 0 6px; gap: 5px; } }
.place__rows { list-style: none; margin: 12px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line); }
.place__rows li { display: flex; align-items: center; gap: 14px; min-height: 40px; color: var(--ink); font-size: 14px; }
.place__rows svg { color: var(--ink-3); }
.place__edit { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 40px; border: 0; border-top: 1px solid var(--line); background: none;
  color: var(--ink); font-size: 14px; font-weight: 550; text-align: left; padding: 0; cursor: pointer; }
.place__edit > span:first-of-type { flex: 1; }
.place__edit svg { color: var(--ink-3); }
.place__edit .chev { width: 18px; height: 18px; }


/* Share: the preview card, round buttons, Send feedback; Embed a map: sizes, the HTML, a live preview */
.panel__back { margin-left: -8px; }
.panel__head h2 { flex: 1; min-width: 0; }
.share { display: grid; gap: 14px; padding-bottom: 4px; }
.share__card { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px; border-radius: 16px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--stroke); }
.share__pic { position: relative; flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--lt-land); color: var(--brand); box-shadow: inset 0 0 0 1px var(--stroke); }
.share__mark { width: 44px; height: 44px; display: block; }
.share__pic .share__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.share__pic--ready .share__photo { opacity: 1; }
.share__text { display: grid; gap: 3px; min-width: 0; }
.share__name { font-size: 14px; font-weight: 650; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.share__addr { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share__domain { font-size: 13px; font-weight: 550; color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share__acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px 4px; }
.share__act { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: none;
  color: var(--ink-2); font-size: 12.5px; font-weight: 550; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.share__ico { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--link);
  box-shadow: inset 0 0 0 1px var(--stroke); transition: background .15s; }
.share__act:hover .share__ico { background: var(--surface-3); }
.share__act:active .share__ico { transform: scale(.96); }
.share__ico svg { width: 20px; height: 20px; }
.share__fb { justify-self: start; color: var(--link); font-size: 13px; font-weight: 550; }
.share__fb:hover { color: var(--link); }
.embed { gap: 14px; padding-bottom: 4px; }
.embed__custom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.embed__dims { display: inline-flex; align-items: center; gap: 8px; }
.embed__num { width: 92px; min-height: 36px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.embed__custom .btn { height: 36px; }
.embed__row { display: flex; gap: 8px; align-items: center; }
.embed__code { flex: 1; min-width: 0; min-height: 36px; padding: 8px 12px; text-overflow: ellipsis; white-space: nowrap; }
.embed__copy { height: 36px; flex: none; }
.embed__prev { width: 100%; min-width: 0; display: grid; justify-items: center; }
.embed__box { overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--stroke), var(--shadow-s); background: var(--lt-land); }
.embed__box iframe { display: block; border: 0; transform-origin: 0 0; }
.embed__terms { margin: 0; }
.embed__terms a { color: var(--link); text-decoration: none; font-weight: 550; }
.embed__terms a:hover { text-decoration: underline; }
.embed-full { position: fixed; inset: 0; z-index: 1200; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; grid-template-rows: auto 1fr; padding: 16px; overflow: auto; }
.embed-full__bar { justify-self: center; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 16px; margin-bottom: 12px;
  border-radius: 999px; background: var(--surface-solid); box-shadow: var(--shadow); font-weight: 600; font-variant-numeric: tabular-nums; }
.embed-full__stage { display: grid; place-items: center; min-width: 0; }
.embed-full__stage iframe { display: block; border: 0; border-radius: 4px; box-shadow: var(--shadow-l); background: var(--bg); }

/* Share and Embed a map on wider screens (768 px and up): a centred dialog over the dimmed map; it scrolls inside, never the page */
.sdlg { position: fixed; inset: 0; z-index: 1150; display: grid; place-items: center; padding: 24px; background: rgba(16, 24, 34, .38);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
:root[data-theme="dark"] .sdlg { background: rgba(4, 7, 10, .62); }
.sdlg__box { width: min(400px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: grid; grid-template-rows: auto minmax(0, 1fr);
  gap: 10px; padding: 14px 20px 18px; border-radius: var(--radius-l); background: var(--surface-solid);
  box-shadow: inset 0 0 0 1px var(--stroke), inset 0 1px 0 var(--stroke-top), var(--shadow-l); }
.sdlg--wide .sdlg__box { width: min(1000px, 92vw); }
.sdlg__body { overflow: auto; min-height: 0; margin: 0 -20px; padding: 2px 20px 2px; overscroll-behavior: contain; }
.sdlg .embed__sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sdlg .embed__sizes > select { width: 220px; flex: none; }
.sdlg .embed__custom { flex-wrap: nowrap; }
.sdlg .embed__scale { margin: -6px 0 0; text-align: center; }
.embed__sizes { display: grid; gap: 14px; }

/* a dropped pin in a Saved list: the small pin before its name */
.row-item__spot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand); }
.row-item__spot svg { width: 15px; height: 15px; }

/* Map clicks: the dropped pin's small card (bottom centre, above the bottom strip) and the right-click map menu */
.dropcard { position: absolute; z-index: 1004; left: calc(var(--rail) + (100vw - var(--rail)) / 2); bottom: 52px; transform: translateX(-50%);
  width: min(440px, calc(100vw - var(--rail) - 2 * var(--gap) - 120px)); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 10px 40px 10px 10px; border-radius: 18px; background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--stroke), inset 0 1px 0 var(--stroke-top), var(--shadow); }
.dropcard[hidden] { display: none; }
.dropcard__pic { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--lt-land);
  box-shadow: inset 0 0 0 1px var(--stroke); }
.dropcard__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dropcard__text { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.dropcard__title { max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; text-align: left;
  cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dropcard__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.dropcard__area { max-width: 100%; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropcard__area:empty { display: none; }
.dropcard__ll { padding: 0; border: 0; background: none; color: var(--link); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums;
  cursor: pointer; white-space: nowrap; }
.dropcard__ll:hover { text-decoration: underline; text-underline-offset: 2px; }
.dropcard__acts { display: flex; gap: 8px; }
.dropcard__act { width: 36px; height: 36px; border: 0; padding: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--link); box-shadow: inset 0 0 0 1px var(--stroke); }
.dropcard__act:hover { background: var(--surface-3); }
.dropcard__act--brand { background: var(--brand); color: #fff; box-shadow: var(--brand-glow); }
.dropcard__act--brand:hover { background: var(--brand-hover); }
.dropcard__act svg { width: 18px; height: 18px; }
.dropcard__x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; }
.dropcard__x svg { width: 17px; height: 17px; }
.ctxmenu { position: fixed; z-index: 1160; min-width: 236px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 14px; display: grid;
  background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-l); }
.ctxmenu__item { display: block; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink);
  font-size: 14px; text-align: left; white-space: nowrap; cursor: pointer; }
.ctxmenu__item:hover, .ctxmenu__item:focus-visible { background: var(--hover); outline: none; }
.ctxmenu__ll { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctxmenu__sep { height: 1px; margin: 4px 8px; background: var(--line); }

/* ------------------------------------------------------------ Layers */
.layers-btn { position: absolute; z-index: 1001; left: calc(var(--rail) + var(--gap)); bottom: 40px; width: 72px; height: 72px; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.layers-btn__thumb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lt-land { fill: var(--lt-land); } .lt-water { fill: var(--lt-water); } .lt-park { fill: none; stroke: var(--lt-park); stroke-width: 18; }
.lt-road { stroke: var(--lt-road); stroke-width: 5; } .lt-road-case { stroke: var(--lt-road-case); stroke-width: 7; }
.lt-minor { stroke: var(--lt-minor); stroke-width: 3; } .lt-minor-case { stroke: var(--lt-minor-case); stroke-width: 5; }
.layers-btn__lbl { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; font-weight: 650; color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.layers-btn__lbl svg { width: 13px; height: 13px; stroke-width: 2; }
.layers { position: absolute; z-index: 1004; left: calc(var(--rail) + var(--gap) + 84px); bottom: 40px; border-radius: var(--radius-l);
  padding: 14px; display: grid; grid-template-columns: repeat(3, 84px); gap: 12px 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; background: none; border: 0; cursor: pointer;
  padding: 0; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.tile__pic { display: block; width: 100%; aspect-ratio: 1 / .78; border-radius: 12px; position: relative; overflow: hidden; background-color: var(--lt-land);
  box-shadow: inset 0 0 0 1px var(--line); }
.tile[aria-pressed="true"] { color: var(--brand); }
.tile[aria-pressed="true"] .tile__pic { box-shadow: inset 0 0 0 2px var(--brand); }
.tile:disabled { opacity: .4; cursor: default; }
.pic-map { background:
  linear-gradient(160deg, transparent 52%, var(--lt-road-case) 52% 55%, var(--lt-road) 55% 60%, var(--lt-road-case) 60% 63%, transparent 63%),
  linear-gradient(20deg, var(--lt-water) 0 26%, transparent 26%), var(--lt-land); }
.pic-traffic { background:
  linear-gradient(160deg, transparent 38%, var(--lt-minor-case) 38% 40%, #36B37E 40% 47%, var(--lt-minor-case) 47% 49%, transparent 49%),
  linear-gradient(20deg, transparent 58%, var(--lt-minor-case) 58% 60%, #F2A33A 60% 66%, #E5534B 66% 72%, var(--lt-minor-case) 72% 74%, transparent 74%), var(--lt-land); }
.pic-terrain { background: radial-gradient(circle at 34% 40%, transparent 0 14%, rgba(110,120,140,.18) 15% 17%, transparent 18% 26%, rgba(110,120,140,.16) 27% 29%, transparent 30% 38%, rgba(110,120,140,.14) 39% 41%, transparent 42%),
  radial-gradient(circle at 34% 40%, var(--lt-park), transparent 60%), var(--lt-land); }
.pic-3d::before, .pic-3d::after { content: ""; position: absolute; bottom: 18%; width: 26%; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface-3) 70%, var(--ink-3)) 0 40%, var(--surface-3) 40%); }
.pic-3d::before { left: 22%; height: 58%; } .pic-3d::after { left: 54%; height: 38%; }
.pic-reports { background: linear-gradient(115deg, transparent 44%, var(--lt-minor-case) 44% 46%, var(--lt-minor) 46% 56%, var(--lt-minor-case) 56% 58%, transparent 58%), var(--lt-land); }
.pic-reports::after { content: "!"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 7px;
  background: #E5534B; color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pic-aerial { background: linear-gradient(135deg, #556b2f, #8b7d5a); }

/* ------------------------------------------------------------ bottom-right controls */
.ctrl { position: absolute; z-index: 1001; right: var(--gap); bottom: 40px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ctrl__btn { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer;
  font-size: 13px; font-weight: 650; }
.ctrl__btn:hover { color: var(--ink); }
.ctrl__locate { color: var(--brand); }
.ctrl__locate:hover { color: var(--brand-hover); }
.ctrl__zoom { display: flex; flex-direction: column; align-items: center; border-radius: 999px; overflow: hidden; }
.ctrl__zoom .ctrl__btn { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.ctrl__zoom .ctrl__btn:hover { background: var(--hover); }
.ctrl__sep { width: 24px; height: 1px; background: var(--line); }
.ctrl__more { display: flex; flex-direction: column; gap: 10px; }
.ctrl__toggle { width: 44px; height: 30px; border-radius: 999px; }
.ctrl__toggle svg { width: 18px; height: 18px; }
.ctrl__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ctrl__btn[aria-pressed="true"] { color: var(--brand); }
.fabs { display: none; }

/* ------------------------------------------------------------ movement pad (accessibility, off by default) */
.movepad { position: absolute; z-index: 1001; right: 70px; bottom: 120px; display: grid; grid-template-columns: repeat(3, 40px);
  grid-template-areas: ". u ." "l . r" ". d ."; gap: 4px; }
.movepad button { width: 40px; height: 40px; border: 0; border-radius: 999px; color: var(--ink-2); cursor: pointer; font-size: 12px; }
.movepad [data-pan="0,-1"] { grid-area: u; } .movepad [data-pan="-1,0"] { grid-area: l; }
.movepad [data-pan="1,0"] { grid-area: r; } .movepad [data-pan="0,1"] { grid-area: d; }

/* ------------------------------------------------------------ wordmark and bottom bar */
.wordmark { position: absolute; z-index: 1000; bottom: 9px; left: calc(var(--rail) + (100vw - var(--rail)) / 2); transform: translateX(-50%);
  height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 8px; border-radius: 999px; pointer-events: none;
  font-size: 18px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-s); }
.wordmark__mark { height: 26px; width: 26px; display: block; }
/* "WorldX Maps": WorldX in the look's ink, Maps in WorldX blue (owner decision 2026-11-17, option A) */
.brandname { font-weight: 650; letter-spacing: -.015em; white-space: nowrap; color: var(--ink); }
.brandname__maps { color: var(--brand); }
.bottombar { position: absolute; z-index: 1000; right: var(--gap); bottom: 8px; height: 24px; display: flex; align-items: center; gap: 14px; padding: 0 12px;
  border-radius: 8px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow-s); }
.bottombar a, .bottombar .linklike { color: var(--ink-2); text-decoration: none; }
.bottombar .linklike:hover { color: var(--ink); text-decoration: underline; }
.credit { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-3); }
.credit__text a { color: inherit; text-decoration: none; }
.credit__text a:hover { text-decoration: underline; }
/* the credit folds to ⓘ (credit.js foldCredit): open at load; hover or focus also opens it on a computer */
.credit__button { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 9px; border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--stroke); background: var(--surface-2); color: var(--ink-2); font: italic 700 11px/1 Georgia, "Times New Roman", serif; }
.credit__button:hover { color: var(--ink); }
.credit__text { display: none; white-space: nowrap; }
.credit--open .credit__text, .credit:focus-within .credit__text { display: inline; }
@media (hover: hover) { .credit:hover .credit__text { display: inline; } }
.scale { display: inline-flex; align-items: center; gap: 6px; }
.scale__bar { display: block; height: 6px; border: 1.5px solid var(--ink-2); border-top: 0; width: 60px; }

/* ------------------------------------------------------------ menu */
.scrim { position: fixed; inset: 0; z-index: 1019; background: var(--scrim); }
.menu { position: fixed; z-index: 1020; top: 0; bottom: 0; left: 0; width: min(320px, 82vw); display: flex; flex-direction: column; border-radius: 0;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent); box-shadow: inset -1px 0 0 var(--stroke), var(--shadow-l); animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: none; } }
.menu__head { height: 60px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 12px 0 22px; border-bottom: 1px solid var(--line); }
.menu__brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.menu__mark { height: 22px; width: 22px; display: block; }
.menu__body { overflow: auto; padding: 0 0 8px; flex: 1; }
.menu__group { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.menu__group:last-child { border-bottom: 0; }
.menu__item { width: 100%; display: flex; align-items: center; gap: 28px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu__item:hover { background: var(--hover); }
.menu__item > svg:first-child { color: var(--ink-2); }
/* labels are never cut: a label too long for the row wraps onto a second line */
.menu__item .menu__label, .menu__item > span:first-of-type { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; padding: 8px 0; }
.menu__label--two { display: grid; }
.menu__sub { font-size: 13px; line-height: 16px; color: var(--ink-3); }
.menu__item .menu__note { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.menu__item[aria-pressed="true"] .menu__note { color: var(--brand); font-weight: 600; }
.menu__change { font-size: 13px; color: var(--brand); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.menu__ext { display: grid; color: var(--ink-3); }
/* the "Show side bar" switch: our own look, brand blue when on; it changes at once (no slide) */
.menu__switch { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--ink-3); }
.menu__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.menu__item[aria-checked="true"] .menu__switch { background: var(--brand); }
.menu__item[aria-checked="true"] .menu__switch::after { left: 16px; }
.menu__ext svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ toast, map pop-ups, the 2D map */
.toast { position: fixed; z-index: 1100; bottom: 64px; left: 50%; transform: translateX(-50%); max-width: 90vw; padding: 10px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); }
.maplibregl-popup-content { background: var(--surface-solid); color: var(--ink); border-radius: 14px; padding: 12px 14px; font: 14px/1.4 var(--font);
  box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow); }
.maplibregl-popup-close-button { color: var(--ink-3); font-size: 18px; width: 28px; height: 28px; border-radius: 999px; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--surface-solid); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--surface-solid); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface-solid); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface-solid); }
.leaflet-container { font: inherit; background: var(--bg); }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-top-right { display: none; }

/* ------------------------------------------------------------ the WorldX apps launcher (the shared WorldX Apps design, GUIDE.md §3) */
/* A soft outer panel holding one raised card; 3 columns of 88 px tiles (108 px column pitch, 100 px row pitch), 40 px icons. */
.wxl { --wx-ink: var(--ink); --wx-ink-2: var(--ink-2); --wx-line: var(--line); --wx-accent: var(--brand);
  --wx-outer: #E9EEF6; --wx-card: #F8FAFD; --wx-tint: rgba(16, 28, 44, .06); --wx-tint-2: rgba(16, 28, 44, .10); --wx-date: #FFFFFF;
  color: var(--wx-ink); font-size: 14px; line-height: normal; }
:root[data-theme="dark"] .wxl { --wx-outer: #1E232B; --wx-card: #2A303A; --wx-tint: rgba(255, 255, 255, .07); --wx-tint-2: rgba(255, 255, 255, .11); --wx-date: #3A414D; }
.wxl a { text-decoration: none; }
.wxl-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wxl-pop { position: fixed; top: 64px; z-index: 1040; width: 340px; max-width: calc(100vw - 24px); max-height: min(540px, 80vh); display: flex; flex-direction: column;
  border-radius: 28px; background: var(--wx-outer); box-shadow: inset 0 0 0 1px var(--stroke), inset 0 1px 0 var(--stroke-top), var(--shadow-l); overflow: hidden; }
.wxl-body { min-height: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wxl-card { display: grid; justify-items: center; padding: 12px 0 14px; border-radius: 24px; background: var(--wx-card); }
.wxl-mg { display: grid; grid-template-columns: repeat(3, 88px); column-gap: 20px; row-gap: 12px; justify-content: center; }
.wxl-m { position: relative; display: block; width: 88px; height: 88px; padding-top: 12px; border-radius: 16px; color: var(--wx-ink); text-align: center;
  outline: none; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.wxl-m:hover { background: var(--wx-tint); }
.wxl-m:active { background: var(--wx-tint-2); }
.wxl-m[aria-current="page"] { background: color-mix(in srgb, var(--wx-accent) 12%, transparent); }
.wxl-m:focus-visible, .wxl-all:focus-visible, .wxl-x:focus-visible { box-shadow: 0 0 0 2px var(--wx-card), 0 0 0 4px var(--wx-accent); }
.wxl-mi { display: grid; width: 40px; height: 40px; margin: 0 auto; place-items: center; overflow: hidden; border-radius: 10px; color: #fff;
  font-size: 18px; font-weight: 600; line-height: 1; }
/* an uploaded logo (a clear square from WorldXID) is drawn by itself: no tile, edge or shadow */
.wxl-mi.img { background: none; border-radius: 0; overflow: visible; }
.wxl-mi img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* a missing logo: a flat WorldX-blue tile with the initial (the faintest lighter top, no shadow or gloss) */
.wxl-mark { background: linear-gradient(180deg, #4687DC, #3B7FD9); }
/* show_date: today's date, the month on a thin blue band and the day under it, flat */
.wxl-date { grid-template-rows: 12px 1fr; place-items: stretch; background: var(--wx-date); color: var(--wx-ink); box-shadow: inset 0 0 0 1px var(--wx-line); }
.wxl-date__m { display: grid; place-items: center; background: #3B7FD9; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wxl-date__d { display: grid; place-items: center; font-size: 17px; font-weight: 600; line-height: 1; }
.wxl-mn { display: block; margin: 10px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; font-weight: 400; color: var(--wx-ink); }
.wxl-all { display: inline-flex; align-items: center; height: 36px; margin-top: 14px; padding: 0 18px; border-radius: 999px;
  color: var(--wx-accent); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--wx-line); outline: none; transition: background .15s; }
.wxl-all:hover { background: color-mix(in srgb, var(--wx-accent) 9%, transparent); }
/* phones (760 px or less): the same tiles in a bottom sheet with a title and ✕ */
.wxl-scrim { position: fixed; inset: 0; z-index: 1040; background: var(--scrim); border: 0; }
.wxl-sheet { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1041; max-height: 80vh; display: flex; flex-direction: column;
  padding: 8px 0 env(safe-area-inset-bottom, 0px); border-radius: 22px 22px 0 0; background: var(--wx-outer);
  box-shadow: inset 0 1px 0 var(--stroke), 0 -20px 50px -20px rgba(0,0,0,.4); }
.wxl-grab { width: 36px; height: 4px; margin: 0 auto 6px; border-radius: 3px; background: var(--surface-3); flex: none; }
.wxl-h { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; flex: none; }
.wxl-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.wxl-x { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 999px; color: var(--wx-ink-2); outline: none; border: 0; background: none; cursor: pointer; }
.wxl-x:hover { background: var(--wx-tint); }

/* ------------------------------------------------------------ the signed-in person: avatar menu, Saved, Recents */
.avatar--big { width: 44px; height: 44px; font-size: 18px; flex: none; cursor: default; box-shadow: none; }
.acct { position: fixed; z-index: 1040; width: 280px; border-radius: 18px; padding: 8px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); }
.acct__who { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct__who > div { display: grid; min-width: 0; }
.acct__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .menu__item:last-child { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
.list.rows li { display: flex; align-items: center; gap: 4px; padding: 0; cursor: default; }
.row-item__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 0;
  padding: 10px 4px; cursor: pointer; color: var(--ink); font: inherit; }
.row-item__main > span:last-child { display: grid; min-width: 0; }
.row-item__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row-item__main small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item__icon { color: var(--cat); display: grid; }
.row-item__tools { display: flex; flex: none; }
.row-item__tools .icon-btn { width: 34px; height: 34px; }
.row-item__tools svg { width: 18px; height: 18px; }
.day { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.day h3 { margin: 0; font-size: 13px; font-weight: 600; }

/* suggestions, contributions, your data */
.centerpin { position: absolute; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; }
.centerpin svg { width: 40px; height: 40px; fill: var(--brand); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.centerpin svg circle { fill: #fff; stroke: none; }
.pinhint { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); }
.pill { flex: none; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); white-space: nowrap; }
.pill--live, .pill--approved { background: color-mix(in srgb, #2E946C 16%, transparent); color: #2E946C; }
:root[data-theme="dark"] .pill--live, :root[data-theme="dark"] .pill--approved { color: #5BC59A; }
.pill--not_accepted, .pill--rejected { background: rgba(229,72,59,.14); color: #D2453B; }
.pill--waiting, .pill--pending { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
h3.sub { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-3); margin: 14px 0 4px; }

/* while the map is loading, or if it can't */
.boot { position: absolute; z-index: 999; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; gap: 12px; justify-items: center;
  max-width: 80vw; text-align: center; color: var(--ink-3); font-size: 14px; }
.boot p { margin: 0; }
.boot__spin { width: 28px; height: 28px; border-radius: 999px; border: 2.5px solid var(--surface-3); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the menu stands alone: whatever was open waits behind it, unseen, until it closes */
body.menu-open .panel, body.menu-open .dir, body.menu-open .layers, body.menu-open .ac, body.menu-open .acct { visibility: hidden; }

/* ------------------------------------------------------------ phone sheet (hidden on wider screens) */
.sheet { display: none; }
@media (min-width: 720px) { .menu__group--phone { display: none; } }
@media (max-width: 719px) { .menu__group--wide { display: none; } }   /* phones have no rail, so no "Show side bar" */
/* "Show side bar" off (computers): no rail, everything placed from it moves left by its width, and ☰ sits at the
   search box's left end in place of the magnifier, as in the phone search box */
@media (min-width: 720px) {
  :root[data-sidebar="off"] { --rail: 0px; }
  :root[data-sidebar="off"] .rail { display: none; }
  :root[data-sidebar="off"] .searchbox { padding-left: 5px; }
  :root[data-sidebar="off"] .searchbox__icon { display: none; }
  :root[data-sidebar="off"] .searchbox__menu { display: grid; }
  :root[data-sidebar="off"] .searchbox__menu svg { width: 22px; height: 22px; }
}

/* ============================================================ tablets and small laptops: the chips get their own row */
@media (min-width: 720px) and (max-width: 1099px) {
  .top { grid-template-columns: minmax(0, 400px) minmax(0, 1fr) auto; grid-template-areas: "search . account" "chips chips chips"; row-gap: 4px; }
  .chips { margin-left: -2px; }
  .panel, .dir { top: calc(var(--gap) + 48px + 60px); width: min(380px, calc(100vw - var(--rail) - 2 * var(--gap) - 70px));
    max-height: calc(100vh - 48px - 60px - 3 * var(--gap) - 60px); }
  .wordmark { bottom: 40px; }
  .dropcard { bottom: 84px; }
  .bottombar { left: calc(var(--rail) + var(--gap)); right: var(--gap); justify-content: flex-end; }
}

/* ============================================================ phone (under 720 px): no rail; the map keeps its width */
@media (max-width: 719px) {
  /* the dropped pin's card sits above the quick-actions sheet's peek */
  .dropcard { left: var(--gap); right: var(--gap); width: auto; transform: none; bottom: 86px; grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px; padding: 8px 38px 8px 8px; }
  .dropcard__pic { width: 56px; height: 56px; }
  .dropcard__act { width: 40px; height: 40px; }
  .btn, .icon-btn { height: 40px; }
  .icon-btn { width: 40px; }
  .field { min-height: 44px; }
  /* while it shows, the round buttons and the bottom chips (credit, scale) move up above it: nothing is covered */
  body.dropcard-open .fabs, body.dropcard-open .bottombar { transform: translateY(calc(-1 * var(--dropcard-h, 78px) - 10px)); transition: transform .18s; }
  :root { --rail: 0px; --gap: 12px; --edge: 16px; }
  .rail, .chips, .topright, .wordmark, .searchbox__icon, .searchbox__sep, .searchbox__dir { display: none !important; }
  .ctrl { display: none; }
  .top { left: var(--gap); right: var(--gap); top: calc(env(safe-area-inset-top) + 10px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "search"; }
  .searchbox { height: 54px; padding: 0 7px 0 5px; gap: 4px; }
  .searchbox__menu, .phone-only { display: grid; }
  .searchbox__menu svg { width: 22px; height: 22px; }
  .searchbox__input { font-size: 16px; padding-left: 2px; }
  .searchbox__account { display: flex; align-items: center; flex: none; }
  .signin--icon { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: none; box-shadow: none; }
  .signin--icon svg { width: 38px; height: 38px; padding: 8px; border-radius: 999px; background: var(--brand); color: #fff; stroke-width: 2;
    box-shadow: var(--brand-glow); }
  .signin--icon:hover { background: none; }
  .searchbox__account .avatar { width: 38px; height: 38px; margin: 0 3px; }
  .openapp:not([hidden]) { display: block; position: absolute; z-index: 1001; top: 76px; left: 50%; transform: translateX(-50%); padding: 7px 14px;
    border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 14px;
    background: var(--surface); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--stroke), var(--shadow); }

  /* Layers, Directions and My location keep clear room above the sheet and the bar (measured: --sheet-h, --bar-h) */
  .layers-btn { left: var(--edge); bottom: calc(var(--sheet-h, 76px) + var(--bar-h, 20px) + 14px); width: 60px; height: 60px; border-radius: 14px; }
  .layers-btn__lbl { height: 21px; font-size: 11px; }
  .layers-btn__lbl svg { display: none; }
  .layers { left: var(--edge); right: var(--edge); bottom: calc(var(--sheet-h, 76px) + 8px); grid-template-columns: repeat(3, 1fr); z-index: 1016; }
  .fabs { display: flex; flex-direction: column; align-items: center; gap: 14px; position: absolute; z-index: 1001; right: var(--edge);
    bottom: calc(var(--sheet-h, 76px) + var(--bar-h, 20px) + 14px); }
  .fab { width: 52px; height: 52px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--brand); padding: 0; }
  .fab svg { width: 22px; height: 22px; }
  .fab--brand { width: 56px; height: 56px; background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(59,127,217,.38), 0 1px 3px rgba(0,0,0,.15); }
  :root[data-theme="dark"] .fab--brand { box-shadow: var(--brand-glow); }
  .fab--brand:hover, .fab--brand:active { background: var(--brand-hover); }
  .fab--brand svg { width: 24px; height: 24px; stroke-width: 2; }
  .movepad { right: 84px; bottom: calc(var(--sheet-h, 76px) + 130px); }

  /* the bar: a slim strip just above the sheet; only the credit and the scale, each on its own glass */
  .bottombar { left: var(--edge); right: var(--edge); bottom: calc(var(--sheet-h, 76px) + 8px); height: auto; min-height: 20px; padding: 0 8px; gap: 8px;
    justify-content: space-between; flex-wrap: wrap; row-gap: 4px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 11px; }
  .bottombar #terms-link, .bottombar #privacy-link, .bottombar #feedback-btn, .bottombar #country-name { display: none; }
  .bottombar .credit, .bottombar .scale { padding: 1px 8px; border-radius: 6px; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px var(--stroke); min-height: 20px; }
  .bottombar .scale { margin-left: auto; }
  body.sheet-open .bottombar { visibility: hidden; }

  /* the sheet: "Tap for quick actions"; open, it holds tiles and round icons that fit at 360 px with no wrapping */
  .sheet { display: block; position: absolute; z-index: 1005; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto; border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    box-shadow: inset 0 1px 0 var(--stroke-top), inset 0 0 0 1px var(--stroke), 0 -2px 4px rgba(0,0,0,.04), 0 -10px 30px rgba(20, 30, 45, .14); }
  .sheet__handle { width: 100%; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 13px;
    padding: 10px 0 0; border: 0; background: none; cursor: pointer; }
  .sheet__grip { width: 40px; height: 5px; border-radius: 9px; background: var(--surface-3); }
  .sheet__hint { font-size: 14px; font-weight: 600; color: var(--ink); }
  .sheet__handle[aria-expanded="true"] { height: 30px; }
  .sheet__handle[aria-expanded="true"] .sheet__hint { display: none; }
  .sheet__body { padding: 0 16px 14px; }
  .sheet__body h3 { margin: 14px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
  .sheet__body h3:first-child { margin-top: 4px; }
  .sheet__modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sheet__modes .mode { height: 64px; padding: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    font-size: 13px; font-weight: 600; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--ink); min-width: 0; }
  .sheet__modes .mode svg { width: 24px; height: 24px; color: var(--brand); }
  .sheet__nearby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .round { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer;
    font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; min-width: 0; }
  .round span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .round span:first-child { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 45%, transparent); color: var(--cat); }
  .round svg { width: 24px; height: 24px; }
  .sheet__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  .lang { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--stroke); color: var(--ink); font-size: 14px; font-weight: 550; }
  .lang select { appearance: none; border: 0; background: transparent; outline: 0; padding-right: 22px; font-weight: 550; color: var(--ink); }
  .lang select option { background: var(--surface-solid); color: var(--ink); }
  .lang > svg:first-child { color: var(--ink-2); }
  .lang__chev { position: absolute; right: 10px; width: 16px !important; height: 16px !important; pointer-events: none; color: var(--ink-3); }
  .sheet__feedback { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--ink); }
  .sheet__feedback svg { color: var(--ink-2); }

  /* the menu, the place card and other panels: large and nearly solid, so the map's glow never washes through */
  .menu { width: min(320px, 82vw); border-radius: 0 20px 20px 0; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); }
  .panel, .dir { left: 0; right: 0; width: auto; top: auto; bottom: 0; max-height: 70vh; border-radius: 22px 22px 0 0; z-index: 1015;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.picking .panel { max-height: 42vh; }

  /* full-screen search */
  body.searching .top { z-index: 1031; }   /* the search bar and its list sit above the full-screen backdrop */
  body.searching .searchbox { position: fixed; inset: 0 0 auto 0; height: 60px; padding: 0 6px; border-radius: 0; z-index: 1030;
    background: var(--surface-solid); box-shadow: inset 0 -1px 0 var(--stroke); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.searching .searchbox__menu, body.searching .searchbox__account { display: none; }
  body.searching .searchbox__back { display: grid; }
  body.searching .ac { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; max-height: none; border-radius: 0; box-shadow: none; z-index: 1030;
    background: var(--surface-solid); padding-top: 0; }
  body.searching::after { content: ""; position: fixed; inset: 0; background: var(--surface-solid); z-index: 1025; }
  .ac li { min-height: 64px; }
}
@media (max-width: 399px) { .menu__item { min-height: 44px; } }   /* touch-size rows on small phones */
@media (max-width: 380px) {
  .round, .sheet__modes .mode { font-size: 12px; }
  .sheet__tiles .tile { font-size: 11.5px; }
  .sheet__tiles { gap: 8px; }
}

/* ------------------------------------------------------------ print: the map picture, the directions, our name and any data credit */
.printview { display: none; }
@media print {
  body > *:not(.printview) { display: none !important; }
  .printview { display: block; color: #000; font: 12px/1.4 var(--font); }
  .printview img { width: 100%; border: 1px solid #ccc; }
  .printview h1 { font-size: 16px; }
}
