/* The old Editor's layout on New master (shell.js), 29 Nov 2026. Same places and sizes as map.seekingdubai.ae/editor (live style.css),
   in New master's own colours (base.css tokens; Settings › Light switches them). */
.sh-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); color: var(--ink); box-sizing: border-box; }
#shTop, #shTools, #shRail, #shDock, #shTabs, #shSet { zoom: var(--nm-ui, 1); font-family: Inter, system-ui, sans-serif; }
#shDock #panel, #shDock #place { zoom: 1; }
.sh-on button { font-family: inherit; }

/* ---- top centre: search + crumbs ---- */
#shTop { position: absolute; top: 12px; left: 72px; right: 88px; height: 46px; display: flex; justify-content: center; z-index: 7; pointer-events: none; }
#shNav { pointer-events: auto; display: flex; align-items: stretch; min-width: 0; max-width: 100%; }
.sh-search { position: relative; flex: 0 0 320px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 13px; border-right: 1px solid var(--line); color: var(--soft); }
.sh-search > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#shQ { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 14.5px; }
#shQ::placeholder { color: var(--soft); }
#shQ::-webkit-search-cancel-button { display: none; }
#shReset { flex: none; border: 0; border-radius: 7px; background: rgba(246, 234, 210, 0.1); color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 9px; cursor: pointer; }
#shReset:hover { background: rgba(246, 234, 210, 0.2); }
#shReset[hidden] { display: none; }
.sh-drop { position: absolute; top: 52px; left: 0; width: 380px; max-height: 62vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); }
.sh-drop[hidden] { display: none; }
.sh-drop h6 { margin: 8px 10px 4px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.sh-drop [data-i] { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.sh-drop [data-i] i { width: 9px; height: 9px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(246, 234, 210, 0.3); }
.sh-drop [data-i] span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-drop [data-i] span b { font-weight: 700; }
.sh-drop [data-i] em { font-style: normal; color: var(--soft); font-size: 11px; margin-left: 6px; }
.sh-drop [data-i] small { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-size: 11.5px; }
.sh-drop [data-i].sel, .sh-drop [data-i]:hover { background: rgba(230, 182, 115, 0.16); }
.sh-none { padding: 10px; color: var(--soft); font-size: 13px; }
#shCrumbs { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; font-size: 13.5px; white-space: nowrap; overflow: hidden; min-width: 0; }
.sh-crumb { display: inline-flex; align-items: center; min-width: 0; }
.sh-crumb .nm { color: var(--soft); cursor: pointer; overflow: hidden; text-overflow: ellipsis; max-width: 170px; white-space: nowrap; }
.sh-crumb .nm:hover { color: var(--ink); }
.sh-crumb .nm.wait { opacity: 0.6; }
.sh-crumb.now .nm { color: var(--ink); font-weight: 700; cursor: default; }
.sh-crumb:first-child { flex: none; }
#shCrumbs .sepr { color: var(--soft); opacity: 0.6; flex: none; }
#shCrumbs .ca { flex: none; border: 0; background: rgba(246, 234, 210, 0.1); border-radius: 6px; width: 22px; height: 22px; margin-left: 4px; font-size: 11px; color: var(--soft); cursor: pointer; }
#shCrumbs .ca:hover { background: rgba(246, 234, 210, 0.2); color: var(--ink); }
#shCrumbs .nextstep { flex: none; border: 0; border-radius: 7px; background: rgba(246, 234, 210, 0.1); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 9px; margin-left: 2px; cursor: pointer; }
#shCrumbs .nextstep:hover { background: rgba(246, 234, 210, 0.2); }
#shMenu { position: fixed; z-index: 25; width: 280px; max-height: 60vh; overflow: auto; padding: 6px; }
#shMenu[hidden] { display: none; }
#shMenu .mt { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding: 6px 10px 8px; }
#shMenu .mi { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink); text-decoration: none; }
#shMenu .mi:hover { background: rgba(246, 234, 210, 0.08); }
#shMenu .mi.here { background: rgba(230, 182, 115, 0.18); font-weight: 700; }
#shMenu .mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#shMenu .mi small { color: var(--soft); font-variant-numeric: tabular-nums; }
#shMenu .mi i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
#shMenu .mi[style*="--vh"] i { background: var(--vh); }
#shMenu .mt-foot { padding: 8px 10px 4px; text-transform: none; letter-spacing: 0; font-size: 11px; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---- left: one tool column ---- */
#shTools { position: absolute; top: 12px; left: 12px; width: 48px; padding: 4px; display: flex; flex-direction: column; gap: 4px; z-index: 6; max-height: calc(100% - 70px); overflow-y: auto; scrollbar-width: none; }
#shTools button { height: 32px; border: 0; border-radius: 8px; background: rgba(246, 234, 210, 0.07); color: var(--ink); font-size: 16px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; }
#shTools button:hover { background: rgba(246, 234, 210, 0.16); }
#shTools button.active { background: var(--accent); color: #1b1712; font-weight: 700; }
#shTools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sh-extra { display: flex; flex-direction: column; gap: 4px; }
.sh-extra[hidden] { display: none; }
#shNeedle { display: inline-block; font-weight: 800; font-size: 13px; color: var(--accent); }
.sh-sep { display: block; height: 1px; background: var(--line); margin: 2px 4px; }
.sh-mode { display: flex; flex-direction: column; gap: 2px; background: rgba(246, 234, 210, 0.05); border-radius: 9px; padding: 2px; }
#shTools .sh-mode button { height: 26px; font-size: 12px; font-weight: 700; background: none; color: var(--soft); }
#shTools .sh-mode button.active { background: var(--accent); color: #1b1712; }
.sh-tilt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; }
.sh-tilt span { display: block; width: 26px; height: 104px; position: relative; }
#shTilt { position: absolute; left: 50%; top: 50%; width: 104px; height: 20px; margin: 0; transform: translate(-50%, -50%) rotate(-90deg); accent-color: var(--accent); cursor: pointer; }
.sh-tilt small { font-size: 10.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
#shTools .sh-q { height: 34px; font-size: 10.5px; font-weight: 600; color: var(--soft); }
#shTools .sh-q.active { color: #1b1712; }
#shTools .sh-q svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh-sw { display: block; width: 18px; height: 8px; border-radius: 3px; background: #4bc1c0; box-shadow: 0 0 0 1px rgba(246, 234, 210, 0.3); }

/* ---- right: the rail ---- */
#shRail { position: absolute; top: 12px; right: 12px; width: 64px; padding: 4px; display: flex; flex-direction: column; gap: 3px; z-index: 6; }
#shRail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 0; border-radius: 8px; background: none; color: var(--soft); font-size: 10px; line-height: 1.15; cursor: pointer; text-align: center; }
#shRail button[hidden] { display: none; }
#shRail button:hover { background: rgba(246, 234, 210, 0.08); color: var(--ink); }
#shRail button.active { background: var(--accent); color: #1b1712; font-weight: 700; }
#shRail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#shRail svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#shRail button[data-rail="maps"] { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; padding-bottom: 8px; margin-bottom: 2px; color: var(--ink); }

/* ---- right: the Explore panel (place card or Dubai's zones, then "On the map") ---- */
#shDock { position: absolute; top: 70px; right: 88px; width: 360px; max-height: calc((100% - 140px) / var(--nm-ui, 1)); overflow: auto; padding: 12px 16px 16px; z-index: 5; font-size: 13px; }
body.sh-folded #shDock { display: none; }
#shFold { position: sticky; top: -4px; float: right; margin: -4px -6px 0 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(246, 234, 210, 0.08); color: var(--soft); font-size: 17px; cursor: pointer; z-index: 2; }
#shFold:hover { background: rgba(246, 234, 210, 0.16); color: var(--ink); }
#shHome[hidden] { display: none; }
#shHome h2 { margin: 2px 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.sh-k { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.sh-sub { color: var(--soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sh-wait { color: var(--soft); font-size: 12.5px; }
.sh-caps { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); margin: 12px 0 4px; }
.sh-zones { list-style: none; margin: 0; padding: 0; }
.sh-zones button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 6px; border-radius: 8px; cursor: pointer; }
.sh-zones button:hover, .sh-zones button:focus-visible { background: rgba(246, 234, 210, 0.07); }
.sh-zones i { width: 10px; height: 10px; border-radius: 3px; grid-row: 1 / 3; }
.sh-zones span { font-weight: 600; }
.sh-zones small { grid-column: 2; color: var(--soft); font-size: 11px; }
.sh-zones b { grid-column: 3; grid-row: 1 / 3; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; }
/* the place card (find.js #place) sits in the panel, no box of its own */
#shDock #place { position: static; width: auto; max-height: none; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
#shDock #place .pp-x { display: none; } /* the panel's own › folds it; Reset in the search bar goes back to Dubai */
#shOnMap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
#shOnH { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 2px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink); border-radius: 6px; }
#shOnH:hover, #shOnH:focus-visible { background: rgba(246, 234, 210, 0.06); }
#shOnH i { font-style: normal; display: inline-block; width: 10px; transform: rotate(90deg); transition: transform 0.15s; color: var(--soft); }
#shOnMap.shut #shOnH i { transform: rotate(0); }
#shOnH small { margin-left: auto; color: var(--soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
#shOnMap.shut #shOnBody { display: none; }
/* the layers panel (#panel) inside "On the map": no box, no title, no search (top bar), no Plans/Sat, Look or Live lines (tool column), no Colour by (bottom left), no Settings (rail) */
#shDock #panel { position: static; width: auto; max-height: none; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; font-size: 13px; }
#shDock #panel > header, #shDock #panel .fd, #shDock #panel .pc-mode, #shDock #lkBox, #shDock #lyLine, #shDock #body > .note,
#shDock .pg-h[data-pg="look"], #shDock .pg-h[data-pg="live"], #shDock .pg-h[data-pg="colours"], #shDock .pg-h[data-pg="settings"] { display: none !important; }
#shDock #body { padding: 0; display: block !important; }
#shDock #layers li#lyLine, #shDock #body > .caps:not([hidden]) { display: none; }

/* ---- Settings pop-up beside the rail ---- */
#shSet { position: absolute; right: 88px; top: 70px; width: 270px; padding: 10px 14px 12px; z-index: 8; }
#shSet[hidden] { display: none; }
#shSet .sh-h { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
#shSet #stBox.pg-hide { display: grid !important; }

/* ---- bottom left: Colour the map ---- */
#shTabs { position: absolute; left: 76px; bottom: 30px; z-index: 5; max-width: min(520px, calc(100% - 520px)); padding: 6px; }
#shTabsBtn { border: 0; background: none; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
#shTabsBtn:hover { background: rgba(246, 234, 210, 0.08); }
#shTabs.open #shTabsBtn span { display: inline-block; transform: rotate(180deg); }
#shTabRow[hidden] { display: none; }
#shTabRow { padding: 0 6px 6px; height: min(430px, calc(100vh - 160px)); width: 300px; overflow: auto; overscroll-behavior: contain; } /* round 2: one fixed size, so a pick never moves the next button */
#shTabRow #cvBox.pg-hide { display: block !important; }
#shTabRow #cvBox > .caps { display: none; }

/* ---- the other files' floating parts move round the frame ---- */
.sh-on #looksFly, .sh-on #layersFly { left: 72px; top: 12px; max-height: calc(100% - 80px); }
.sh-on #carNote { left: 72px; bottom: 80px; }
.sh-on #lyLegend { left: 72px; right: auto; }
.sh-on #dataChip { top: auto; bottom: 30px; left: auto; right: 12px; transform: none; }
.sh-on #edBtn, .sh-on .et-markbtn { display: none !important; }
.sh-on .et-mark { left: auto; right: 88px; top: 70px; bottom: auto; }
.sh-on .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; } /* zoom, home and turn live in the tool column */
.sh-on .nv-crumbs { display: none; } /* the crumbs are in the top bar now */
/* H: clean view (panel.js) hides the frame too, as the Editor's H */
body.pg-clean #shTop, body.pg-clean #shTools, body.pg-clean #shRail, body.pg-clean #shDock, body.pg-clean #shTabs, body.pg-clean #shSet, body.pg-clean #dataChip { display: none !important; }
/* edit view (edit.js): the frame steps back, the edit bar leads */
body.nm-editing #shTabs, body.nm-editing #shDock { display: none; }

/* light panels */
:root[data-theme="light"] #shQ { color: var(--ink); }
:root[data-theme="light"] #shTools button, :root[data-theme="light"] #shReset, :root[data-theme="light"] #shCrumbs .ca, :root[data-theme="light"] #shCrumbs .nextstep { background: rgba(0, 0, 0, 0.05); }

/* ---- smaller screens: as the Editor, crumbs go first, the panel becomes a sheet ---- */
@media (max-width: 1100px) { .sh-search { flex-basis: 250px; } #shDock { width: 330px; } }
@media (max-width: 900px) { #shCrumbs { display: none; } .sh-search { flex: 1 1 auto; border-right: 0; } #shNav { flex: 1 1 auto; } #shTabs { max-width: calc(100% - 100px); } }
@media (max-width: 600px) {
  #shTop { left: 8px; right: 8px; top: 8px; height: 44px; } /* as the Editor on a phone: search across the top, the columns under it */
  .sh-drop { position: fixed; left: 8px; right: 8px; top: 56px; width: auto; }
  #shTools { left: 8px; top: 60px; width: 46px; max-height: calc(100% - 140px); }
  #shTools .sh-q { height: 32px; }
  #shRail { right: 8px; top: 60px; width: 58px; }
  #shRail button { padding: 6px 1px 5px; font-size: 9.5px; }
  #shRail svg { width: 19px; height: 19px; }
  #shDock { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 50%; z-index: 9; border-radius: 14px; }
  #shSet { right: 74px; top: 60px; width: auto; left: 62px; }
  #shTabs { left: 8px; bottom: 26px; }
  .sh-on .et-mark { left: 8px; right: 8px; top: auto; bottom: 8px; }
  .sh-on #dataChip { bottom: 26px; right: 8px; left: auto; max-width: calc(100% - 150px); }
  .sh-on .maplibregl-ctrl-bottom-right { margin-bottom: 64px; }
}

/* 30 Nov UI sweep (#15, #28, #29): switches say on / off under their name; the 3D status button names what it filters */
#shTools .sh-sw2 { height: 36px; line-height: 1.05; }
#shTools .sh-sw2 small { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
#shTools .sh-sw2.active small { opacity: 1; }
#shTools .sh-sw2:not(.active) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
#shTools .sh-st { height: 36px; line-height: 1.05; }
#shTools .sh-st small { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.75; }
#shTools .sh-st b { font-size: 10.5px; font-weight: 700; }
#shSay { position: absolute; left: 50%; bottom: 64px; transform: translate(-50%, 8px); z-index: 12; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 10px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); font: 600 13px Inter, system-ui, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
#shSay.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #shSay { transition: none; } }
/* Places built · Refresh: top of the open map, under the search bar, clear of the right panel (was bottom right, under the panel's foot) */
.sh-on #dataChip { top: 66px; bottom: auto; right: auto; left: calc(72px + (100% - 72px - 472px) / 2); transform: translateX(-50%); max-width: calc(100% - 72px - 492px); }
body.sh-folded.sh-on #dataChip { left: calc(72px + (100% - 72px - 96px) / 2); max-width: calc(100% - 72px - 116px); }
.sh-on #dataChip .dc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1100px) { .sh-on #dataChip { left: calc(72px + (100% - 72px - 442px) / 2); max-width: calc(100% - 72px - 462px); } }
@media (max-width: 600px) {
  .sh-on #dataChip, body.sh-folded.sh-on #dataChip { top: 58px; bottom: auto; left: 62px; right: 74px; transform: none; max-width: none; justify-content: space-between; }
  #shSay { bottom: calc(50% + 16px); }
  #shTools .sh-sw2, #shTools .sh-st b { font-size: 9.5px; letter-spacing: -0.01em; }
}

/* Round 2 review (30 Nov) */
#shTabsBtn i[data-cvx] { font-style: normal; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: rgba(246, 234, 210, 0.14); cursor: pointer; }
#shTabsBtn i[data-cvx]:hover { background: rgba(246, 234, 210, 0.28); }
#shDock, #layersFly, #looksFly, #nmBox, #shSet { overscroll-behavior: contain; } /* the panel scrolls alone, never the page behind */
#shTools button[data-t="status"] small { font-size: 8.5px; letter-spacing: 0; white-space: nowrap; }
/* round 3 (30 Nov re-check annoyance 6): Plans and Labels while Clean hides them: a dashed edge (title says why) */
#shTools button.by-clean { outline: 1px dashed rgba(246, 234, 210, 0.45); outline-offset: -2px; }

/* ---------------- Round 2 layout (30 Nov): data on the left, map movement + layers on the right (computer only; body.sh-swap) ---------------- */
body.sh-swap #shDock { left: 12px; right: auto; top: 70px; }
body.sh-swap #shFold { float: right; transform: rotate(180deg); }
body.sh-swap #shTools { left: auto; right: 88px; }
body.sh-swap #looksFly, body.sh-swap #layersFly, body.sh-swap #nmBox, body.sh-swap #nmLayers { left: auto !important; right: 152px !important; top: 70px !important; max-height: calc(100% - 140px) !important; }
body.sh-swap #shTabs { left: auto; right: 152px; }
body.sh-swap #shSet { right: 152px; }
body.sh-swap #place h2 { position: sticky; top: -12px; z-index: 2; background: var(--panel, #1d2a27); padding: 6px 0 4px; margin-top: 0; } /* the place's name stays in view while its card scrolls */
#nmLayers { position: absolute; z-index: 7; width: 290px; max-height: calc(100% - 90px); overflow: auto; overscroll-behavior: contain; padding: 10px 12px 12px; font-size: 13px; }
#nmLayers[hidden] { display: none; }
#nmLayers .ly2-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; position: sticky; top: -10px; background: inherit; z-index: 1; padding-top: 2px; }
#nmLayers .ly2-h b { font-size: 14px; }
#nmLayers .ly2-h small { color: var(--soft); font-variant-numeric: tabular-nums; }
#nmLayers .ly2-x { margin-left: auto; border: 0; background: rgba(246, 234, 210, 0.08); color: var(--ink); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; }
#nmLayers .ly2-g { border-top: 1px solid var(--line); padding: 6px 0 4px; }
#nmLayers .ly2-g summary { cursor: pointer; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; padding: 3px 0; }
#nmLayers .ly2-g summary::-webkit-details-marker { display: none; }
#nmLayers .ly2-g summary::before { content: "›"; display: inline-block; transition: transform .15s; }
#nmLayers .ly2-g[open] summary::before { transform: rotate(90deg); }
#nmLayers .ly2-g summary small { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
#nmLayers ul { list-style: none; margin: 2px 0 0; padding: 0; }
#nmLayers li.pg-hide { display: flex !important; }
#nmLayers li { display: flex; align-items: center; gap: 8px; padding: 3px 0; flex-wrap: wrap; }
#nmLayers li .when { margin-left: auto; color: var(--soft); font-size: 11px; }
#nmLayers .ly2-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
#nmLayers .ly2-reset { border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; cursor: pointer; width: 100%; }
#nmLayers .ly2-reset:hover { background: rgba(246, 234, 210, 0.08); }
#shTools .sh-lyr { position: relative; }
#shTools .sh-lyr .sh-n { position: absolute; top: 1px; right: 2px; font-size: 9px; min-width: 14px; height: 14px; line-height: 14px; border-radius: 7px; background: var(--accent); color: #1b1712; font-weight: 800; }
#shTools .sh-lyr .sh-n:empty { display: none; }
#shTools .sh-lyr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#nmLayers #lsBox .ls-cap { display: none; } /* the group already says Show */
body:not(.sh-swap) #shTools .sh-lyr, body:not(.sh-swap) #nmLayers { display: none !important; } /* phones keep their own layout: their layers stay in the bottom sheet */

/* ---------------- Round 2 navigation (30 Nov): quick jumps under the search bar, keyboard card ---------------- */
#shJumps { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; flex-wrap: nowrap; font-family: Inter, system-ui, sans-serif; zoom: var(--nm-ui, 1); }
#shJumps button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 4px 10px; font: 600 11.5px/1.2 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; backdrop-filter: blur(6px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); }
#shJumps button:hover, #shJumps button:focus-visible { border-color: var(--accent); }
body.sh-swap #shJumps { left: calc(384px + (100% - 384px - 156px) / 2); } /* centred on the open map between the data panel and the tools */
body.sh-swap.sh-folded #shJumps { left: calc(12px + (100% - 12px - 156px) / 2); }
body.sh-swap.sh-on #dataChip { top: auto; bottom: 30px; left: 50%; right: auto; transform: translateX(-50%); } /* the jumps take its place under the search bar */
@media (max-width: 1140px) { body.sh-swap:not(.sh-folded) #shJumps, body:not(.sh-swap) #shJumps { display: none; } } /* no room: 1-9 keys still jump */
@media (max-width: 800px) { #shJumps { display: none !important; } }
body.pg-clean #shJumps, body.nm-editing #shJumps { display: none; }
#shKeys { position: absolute; z-index: 9; top: 70px; left: 50%; transform: translateX(-50%); width: 340px; padding: 12px 14px; font: 13px/1.35 Inter, system-ui, sans-serif; }
#shKeys[hidden] { display: none; }
#shKeys .kb-h { display: flex; align-items: center; margin-bottom: 6px; }
#shKeys .kb-x { margin-left: auto; border: 0; background: rgba(246, 234, 210, 0.08); color: var(--ink); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; }
#shKeys .kb-g { border-top: 1px solid var(--line); padding: 6px 0 4px; }
#shKeys .kb-g small { display: block; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); font-weight: 700; margin-bottom: 3px; }
#shKeys .kb-g div { display: flex; gap: 10px; padding: 2px 0; }
#shKeys kbd { min-width: 92px; font: 600 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }

/* ---------------- Round 2 item 10 (30 Nov): camera back / frame / forward in the tool column, saved views pop-out (views.js) ---------------- */
#shTools .sh-hist { display: flex; flex-direction: column; gap: 2px; }
#shTools .sh-hist button { height: 26px; font-size: 19px; line-height: 1; font-weight: 600; }
#shTools .sh-hist button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#shTools .sh-hist button:disabled { opacity: 0.32; cursor: default; background: transparent; }
#nmViews { position: absolute; z-index: 8; right: 88px; top: 70px; width: 300px; max-height: calc(100% - 90px); overflow: auto; overscroll-behavior: contain; padding: 10px 12px 12px; font: 13px/1.35 Inter, system-ui, sans-serif; zoom: var(--nm-ui, 1); }
#nmViews[hidden] { display: none; }
body.sh-swap #nmViews { right: 152px; }
#nmViews .vw-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
#nmViews .vw-h b { font-size: 14px; }
#nmViews .vw-h small { color: var(--soft); font-variant-numeric: tabular-nums; }
#nmViews .vw-x { margin-left: auto; border: 0; background: rgba(246, 234, 210, 0.08); color: var(--ink); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; }
#nmViews button { font: inherit; }
#nmViews .vw-save { width: 100%; border: 1px solid var(--accent); background: none; color: var(--accent); border-radius: 8px; padding: 7px 10px; font-weight: 700; cursor: pointer; }
#nmViews .vw-save:hover { background: rgba(226, 189, 114, 0.1); }
#nmViews .vw-new { display: grid; gap: 6px; }
#nmViews .vw-new label { font-size: 11px; color: var(--soft); font-weight: 600; }
#nmViews .vw-new input { font: inherit; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); color: var(--ink); }
#nmViews .vw-new input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
#nmViews .vw-new div { display: flex; gap: 6px; }
#nmViews .vw-go { flex: 1; border: 0; background: var(--accent); color: #1b1712; border-radius: 8px; padding: 7px; font-weight: 700; cursor: pointer; }
#nmViews .vw-cancel { border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
#nmViews .vw-list { list-style: none; margin: 10px 0 0; padding: 0; }
#nmViews .vw-list li { border-top: 1px solid var(--line); padding: 8px 0; }
#nmViews .vw-n b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmViews .vw-n small { color: var(--soft); font-size: 11px; }
#nmViews .vw-b { display: flex; gap: 6px; margin-top: 6px; }
#nmViews .vw-b button { border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
#nmViews .vw-b button[data-a="open"] { background: rgba(246, 234, 210, 0.08); font-weight: 700; }
#nmViews .vw-b button:hover { border-color: var(--accent); }
#nmViews .vw-b button[data-a="del"] { margin-left: auto; color: var(--soft); }
#nmViews .vw-b button.sure { color: #f08a7a; border-color: #f08a7a; }
#nmViews .vw-none { color: var(--soft); margin: 10px 0 0; }
#nmViews .vw-note { color: var(--soft); font-size: 11px; margin: 10px 0 0; }
:root[data-theme="light"] #nmViews .vw-new input { background: #fff; }
body.pg-clean #nmViews { display: none !important; }
@media (max-width: 600px) { #nmViews { right: 74px; left: 62px; top: 60px; width: auto; } }

/* 30 Nov: privacy link at the foot of Settings; the rail hidden on maps without it (mapview.js has.rail) */
#shSet .sh-priv { display: block; margin: 8px 4px 2px; font-size: 11.5px; color: var(--soft); text-decoration: none; }
#shSet .sh-priv:hover { color: var(--ink); text-decoration: underline; }
body.sh-norail #shRail { display: none; }
#shRail button .sh-badge { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #1b1712; font: 700 10px/16px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
/* the Data button (map-fresh.js): when this screen read its data */
#shTools .nm-fresh { display: flex; align-items: center; gap: 6px; }
#shTools .nm-fresh i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: none; }
#shTools .nm-fresh small { color: var(--soft); font-weight: 400; }
/* ---------------- Round 2 item 12 (30 Nov): the overview map, bottom left under the data panel (minimap.js; computers only) ---------------- */
#nmMini { --mm-h: 168px; position: absolute; left: 12px; bottom: 30px; width: 360px; height: var(--mm-h); z-index: 5; padding: 0; overflow: hidden; }
#nmMini[hidden], #nmMiniTab[hidden] { display: none; }
#nmMiniMap { position: absolute; inset: 0; border-radius: 11px; overflow: hidden; cursor: pointer; }
#nmMini .mm-fold { position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(27, 23, 18, 0.72); color: var(--ink); font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer; }
#nmMini .mm-fold:hover, #nmMini .mm-fold:focus-visible { background: var(--accent); color: #1b1712; outline: none; }
#nmMiniTab { position: absolute; left: 12px; bottom: 30px; z-index: 5; width: 40px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); cursor: pointer; }
#nmMiniTab:hover { color: var(--accent); }
#nmMiniTab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
body.sh-swap.nm-mini-on #shDock { max-height: calc((100% - 70px - 30px - 168px - 12px) / var(--nm-ui, 1)); }
@media (max-width: 1300px) { /* the Live clock bar sits bottom centre: a smaller overview map keeps clear of it */
  #nmMini { width: 250px; --mm-h: 118px; }
  body.sh-swap.nm-mini-on #shDock { max-height: calc((100% - 70px - 30px - 118px - 12px) / var(--nm-ui, 1)); } }
body.pg-clean #nmMini, body.pg-clean #nmMiniTab, body.nm-editing #nmMini, body.nm-editing #nmMiniTab { display: none !important; }
