/* ============================================================
   The base picker — what is picker-only on every /<game>-best-base-locations/ page (Satisfactory, StarRupture).
   The app shell, rail blocks, HUD, phone sheet and the .oly-card are map-app.css; the game's icons, purity rings
   and region names are sf-map.css. What is here: the resource toggles, the purity switch, the ranked spot list,
   the numbered spot markers, the ring's centre, the card panel on the stage and the table under the map.
   Rail content uses the theme tokens; everything on the map is fixed dark (it sits on map art). Square corners.
   Behaviour: assets/js/base-picker.js, one engine for every game (each page carries its own #bp-config).
   ============================================================ */

/* The rail waits for its data (D65's measure, 2026-10-20: the blocks grew when the data landed and shoved the rest down, lab
   CLS 0.14 on HumanitZ and the Island, 0.10 on SCUM). Below the heading it stays hidden until base-picker.js marks it .is-built,
   so it appears once, whole; a hidden element shifts nothing. If the data never loads it shows after 6 s anyway. The maps
   do the same in map-app.css (oly-rail-late) */
.oly-rail:has(#sbp-res):not(.is-built) > :not(.oly-rail-head) { visibility: hidden; animation: bp-rail-late 0s 6s forwards; }
@keyframes bp-rail-late { to { visibility: visible; } }

/* ── the resource toggles ── */
.sbp-sub { display: block; margin: 0.15rem 0 0.35rem; font: 700 0.64rem 'Manrope', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sbp-sub ~ .sbp-sub { margin-top: 0.6rem; }
.sbp-res-grid { display: grid; grid-template-columns: repeat(var(--sbp-cols, 2), minmax(0, 1fr)); gap: 0.25rem; }   /* --sbp-cols: C.resCols (Subnautica 2: 1, its names run long) */
.sbp-res { display: flex; align-items: center; gap: 0.3rem; min-width: 0; padding: 0.3rem 0.35rem; cursor: pointer; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; color: var(--text-muted);
  font: 600 0.76rem 'Urbanist', sans-serif; }
.sbp-res img { flex: 0 0 16px; width: 16px; height: 16px; object-fit: contain; opacity: 0.55; }
.sbp-res-n { flex: 1 1 auto; min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }   /* a long name wraps to a second line rather than lose its end ("Sea me…" on Ragnarok) */
.sbp-res-c { flex: 0 0 auto; font: 700 0.6rem 'Manrope', sans-serif; font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sbp-res:hover { border-color: var(--map-accent); color: var(--text); }
.sbp-res.is-on { border-color: var(--map-accent); background: color-mix(in srgb, var(--map-accent) 14%, var(--bg-card)); color: var(--text); }
.sbp-res.is-on img { opacity: 1; }
.sbp-res.is-none .sbp-res-c { color: #ef4444; }
/* a resource that comes from creatures (res[].from): a full row, the creatures that give it small in parentheses (his spec) */
.sbp-res-wild { grid-column: 1 / -1; }
.sbp-res-from { font: 500 0.66rem 'Urbanist', sans-serif; color: var(--text-muted); }
.sbp-res:focus-visible, .sbp-seg button:focus-visible, .sbp-spot:focus-visible, .sbp-btn:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 1px; }

/* ── minimum purity: three segments ── */
.sbp-seg { display: flex; border: 1px solid var(--border); background: var(--bg-card); }
/* a label wraps where its third of a phone's rail is too narrow (VEIN's "Fenced or not", "Multiplayer / PvP" ran out of their
   buttons at 360 and 320, 2026-11-28); one that fits stays on one line */
.sbp-seg button { flex: 1 1 0; min-width: 0; padding: 0.4rem 0.3rem; cursor: pointer; white-space: normal; line-height: 1.2; text-wrap: balance;
  background: none; border: 0; border-right: 1px solid var(--border); border-radius: 0; color: var(--text-muted);
  font: 700 0.74rem 'Manrope', sans-serif; }
.sbp-seg button:last-child { border-right: 0; }
.sbp-seg button:hover { color: var(--text); }
.sbp-seg button.is-on { background: var(--map-accent); color: #1a1206; }
.sbp-seg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.3rem; vertical-align: 0.05em; }
.sbp-seg button.is-on i { box-shadow: 0 0 0 1.5px #1a1206; }

/* ── the terrain criteria (where a game has terrain data): a toggle and a "water within" select ── */
#sbp-terrain[hidden] { display: none; }
#sbp-terrain { display: flex; flex-direction: column; gap: 0.5rem; }
.sbp-select { flex: 1 1 auto; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; color: var(--text);
  font: 600 0.8rem 'Urbanist', sans-serif; padding: 0.32rem 0.4rem; cursor: pointer; }
.sbp-select:focus { outline: none; border-color: var(--map-accent); }
/* C.stages (The Planet Crafter): the Stage select fills its block; sized to its longest stage name it ran past a 320 px drawer */
.sbp-stage-sel { display: block; width: 100%; max-width: 100%; margin: 0.15rem 0 0.35rem; }
#sbp-water { flex: 0 0 auto; min-width: 7rem; }   /* "any distance" whole: a two-line label beside it ("Extractor water within") squeezed it to "any distar" (D80) */

/* ── the radius slider's readout ── */
.sbp-radius-v { flex: 0 0 auto; min-width: 4.2em; text-align: right; font: 800 0.8rem 'Manrope', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── the small rail buttons: back to the steel base, copy the link ── */
.sbp-btns { display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.sbp-btn { flex: 1 1 0; min-width: 0; padding: 0.36rem 0.5rem; cursor: pointer; white-space: nowrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; color: var(--text);
  font: 700 0.72rem 'Manrope', sans-serif; }
.sbp-btn:hover { border-color: var(--map-accent); color: var(--map-accent); }
.sbp-btn.ok { border-color: #16a34a; color: #16a34a; }

/* ── the card's label / value rows. map-app.css sizes the label column max-content, so one long label took the
   card's width and crushed every value into a ~25px column broken mid-word ("We / ste / rn"); Jason's screenshot,
   2026-10-12. Here a label gets at most 45% and wraps; the value gets the rest and breaks only between words. ── */
.oly-card-rows.sbp-rows { grid-template-columns: fit-content(45%) minmax(0, 1fr); }
.oly-card-rows.sbp-rows dd { overflow-wrap: normal; word-break: normal; }

/* ── product presets: a wrap of small buttons ── */
#sbp-presets[hidden] { display: none; }
.sbp-presets { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sbp-presets .sbp-btn { flex: 0 1 auto; padding: 0.3rem 0.5rem; font-size: 0.7rem; }
.sbp-btn.is-on { border-color: var(--map-accent); background: color-mix(in srgb, var(--map-accent) 14%, var(--bg-card)); color: var(--text); }

/* ── the results column: on a wide screen base-picker.js moves Your spots (with the account box) and the ranked list
   out of the rail into a column of its own on the map's right (.sbp-cols on the app; placeList() decides). ── */
@media (min-width: 1000px) {
  .oly-app.sbp-cols { grid-template-columns: 292px minmax(0, 1fr) 280px; }
  .oly-app.sbp-cols.oly-folded { grid-template-columns: minmax(0, 1fr) 280px; }
}
/* ⛔ no overscroll-behavior: contain here either (Jason 10-23 16:43, after "why do we have a double scroll bar on the
   grounded 2 best locations page, right side"): at its end the list hands the wheel on to the page like the map rails
   (map-app.css § the rail). Its own bar is thin with no track, so it reads as the column's, not a second window bar. */
.sbp-results { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: auto;
  scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
  background: var(--bg-card); border-left: 1px solid var(--border); }
.sbp-results::-webkit-scrollbar { width: 6px; }
.sbp-results::-webkit-scrollbar-track { background: transparent; }
.sbp-results::-webkit-scrollbar-thumb { border: 0; border-radius: 3px; }

/* ── the ranked spots ── */
.sbp-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.sbp-key { display: inline-flex; gap: 0.25rem; }
.sbp-key .sbp-c { min-width: 0; padding: 0 0.3rem; font-size: 0.6rem; }
.sbp-note { margin: 0.1rem 0 0.45rem; font-size: 0.74rem; line-height: 1.45; color: var(--text-muted); }
.sbp-note[hidden] { display: none; }
.sbp-spots { list-style: none; margin: 0; padding: 0; }
.sbp-spot { display: flex; gap: 0.55rem; width: 100%; padding: 0.45rem 0.35rem 0.5rem 0; cursor: pointer; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 0; color: var(--text); }
.sbp-spots li:first-child .sbp-spot { border-top: 0; }
.sbp-spot:hover { background: var(--bg-surface); }
.sbp-spot.is-on { border-left-color: var(--map-accent); background: color-mix(in srgb, var(--map-accent) 10%, transparent); }
.sbp-rank { flex: 0 0 1.6rem; height: 1.6rem; display: grid; place-items: center; margin-left: 0.25rem;
  background: #0a0e12; color: #fff; border: 1px solid #f08000; font: 800 0.74rem 'Manrope', sans-serif; }
.sbp-spot.is-on .sbp-rank { background: #f08000; color: #1a1206; }
.sbp-spot-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.sbp-spot-top { display: flex; align-items: baseline; gap: 0.4rem; }
.sbp-spot-top b { flex: 1 1 auto; min-width: 0; font: 800 0.84rem 'Manrope', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbp-cov { flex: 0 0 auto; font: 700 0.66rem 'Manrope', sans-serif; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sbp-xy { font: 600 0.72rem 'Urbanist', sans-serif; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sbp-hasrow { display: flex; flex-wrap: wrap; gap: 0.2rem 0.55rem; margin-top: 0.1rem; }
.sbp-has { display: inline-flex; align-items: center; gap: 0.15rem; }
.sbp-has img { width: 16px; height: 16px; object-fit: contain; margin-right: 0.1rem; }
/* Top 10 | By region */
.sbp-mode { margin: 0.1rem 0 0.5rem; }
.sbp-mode[hidden] { display: none; }
/* by region: the region's best, then a control for its next two, then those two indented under it */
.sbp-more { display: block; width: calc(100% - 2.1rem); margin: 0 0 0.35rem 2.1rem; padding: 0.22rem 0.45rem; cursor: pointer; text-align: left;
  background: none; border: 1px dashed var(--border); border-radius: 0; color: var(--map-accent); font: 700 0.7rem 'Manrope', sans-serif; }
.sbp-more:hover { border-style: solid; border-color: var(--map-accent); }
.sbp-more:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 1px; }
.sbp-more[aria-expanded="true"] { color: var(--text-muted); }
.sbp-extras { list-style: none; margin: 0 0 0.4rem 1.6rem; padding: 0; border-left: 1px solid var(--border); }
.sbp-extras .sbp-spot { border-top: 1px dashed var(--border); padding-top: 0.35rem; padding-bottom: 0.4rem; }
.sbp-extras li:first-child .sbp-spot { border-top: 0; }
.sbp-spot-sub .sbp-rank { flex-basis: 1.35rem; height: 1.35rem; font-size: 0.66rem; background: transparent; color: var(--text); border-style: dashed; }
.sbp-spot-sub .sbp-spot-top b { font-size: 0.78rem; font-weight: 700; }
.sbp-spot-sub.is-on .sbp-rank { background: #f08000; color: #1a1206; border-style: solid; }

/* a purity count: the number of pure (green), normal (amber) or impure (red) nodes */
.sbp-c { display: inline-block; min-width: 1.1rem; padding: 0 0.22rem; text-align: center; font: 800 0.66rem/1.35 'Manrope', sans-serif; font-style: normal;
  color: #0a0e12; font-variant-numeric: tabular-nums; }
.sbp-c2 { background: #22c55e; }
.sbp-c1 { background: #f59e0b; }
.sbp-c0 { background: #ef4444; color: #fff; }
/* a spot with no purity (StarRupture's goethite, sulphur, helium-3, powerium): just how many */
.sbp-cn { background: #cbd5e1; }
/* a resource whose layer has no icon: its colour as a dot */
.sbp-dot { display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, 0.5); margin: 0 0.15rem; }
.sbp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── on the map: the numbered top spots and the ring's centre ── */
.sbp-num { display: grid; place-items: center; background: #0a0e12; border: 2px solid #f08000; color: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); box-sizing: border-box; }
.sbp-num b { font: 800 0.78rem 'Manrope', sans-serif; }
.sbp-num:hover, .sbp-num.is-on { background: #f08000; color: #1a1206; }
/* a region's 2nd and 3rd spot (4.2, 4.3): smaller and dashed, so the regions' bests read first */
.sbp-num.sbp-num-sub { border-width: 1px; border-style: dashed; background: rgba(10, 14, 18, 0.88); }
.sbp-num.sbp-num-sub b { font-size: 0.66rem; }
.sbp-num.sbp-num-sub:hover, .sbp-num.sbp-num-sub.is-on { background: #f08000; color: #1a1206; border-style: solid; }
.sbp-centre i { display: block; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%;
  background: #f08000; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55); }
/* a node inside the ring: a white outer ring round its purity ring */
.sf-icon.sbp-in { outline: 2px solid #fff; outline-offset: 2px; }
.sf-icon.sbp-core { border-radius: 50%; background: rgba(10, 14, 18, 0.6); padding: 2px; box-shadow: 0 0 0 2px #38bdf8, 0 1px 4px rgba(0, 0, 0, 0.7); filter: none; }

/* ── "Full Satisfactory map →", top-right of the stage (Jason, 2026-10-12), where Leaflet's fullscreen button was until
   it moved under the zoom +/-. The same fixed-dark square chip as the hosting chip (map-app.css .oly-map-host), pinned
   right instead of left; the game's name drops under 600px (.oly-map-host-game), and it gives way to the phone sheet
   as the other chips do. On a desktop the spot card docks under it (.sbp-panel top: 54px). ── */
.oly-map-host.sbp-fullmap { top: 10px; right: 10px; left: auto; bottom: auto; height: auto; padding: 0.38rem 0.7rem; font-size: 0.72rem; }
@media (max-width: 999px) { .oly-map-host.sbp-fullmap { top: 10px; left: auto; right: 10px; height: 33px; } }
.oly-sheet-open .oly-map-host.sbp-fullmap { display: none; }

/* ── the HUD: the hint goes on a narrow stage, the X, Y stays ── */
@media (max-width: 640px) { .sbp-hud .sbp-hud-hint, .sbp-hud .sotf-hud-sep { display: none; } .sbp-hud:not(:has(.sf-hud-xy)) { display: none; } }   /* a game with no coordinates (StarRupture, Soulmask) has nothing left to show there */

/* ── the spot card on a desktop: docked top-right of the stage, under the fullscreen button (a phone gets the sheet) ── */
.sbp-panel { position: absolute; top: 54px; right: 10px; z-index: 1000; width: 320px; max-height: calc(100% - 110px); overflow-y: auto;
  overscroll-behavior: contain; background: #0d1318; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.sbp-panel[hidden] { display: none; }
.sbp-panel > .oly-card > .oly-card-bar { position: sticky; top: 0; }
.sbp-panel > .oly-card > .oly-card-acts { position: sticky; bottom: 0; }
@media (max-width: 999px) { .sbp-panel { top: 98px; max-height: calc(100% - 154px); } }
.sbp-card .oly-card-icon svg { width: 26px; height: 26px; }
.sbp-card-x { position: absolute; top: 1px; right: 1px; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 0; color: #93a3b5; font: 700 0.95rem/36px 'Manrope', sans-serif; }
.sbp-card-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.oly-sheet .sbp-card-x { display: none; }   /* the sheet has its own ✕ in that corner */
.sbp-card .oly-card-label img { width: 14px; height: 14px; object-fit: contain; margin-right: -0.2rem; }
.sbp-lab-n { margin-left: auto; color: #8d9dae; letter-spacing: 0.06em; }
.sbp-card .oly-card-label:has(.sbp-lab-n)::after { display: none; }
.sbp-near li { flex-wrap: nowrap; align-items: center; }
.sbp-near .sf-pur { flex: 0 0 4.2rem; font: 800 0.72rem 'Manrope', sans-serif; }
.sbp-li-xy { flex: 1 1 auto; min-width: 0; font: 600 0.76rem 'Urbanist', sans-serif; color: #c9d3dd; font-variant-numeric: tabular-nums; }
.sbp-go { display: inline-flex; align-items: center; gap: 0.35rem; flex: 1 1 auto; min-width: 0; padding: 0; background: none; border: 0;
  font: 600 0.8rem 'Urbanist', sans-serif; text-align: left; }
.sbp-go img { width: 14px; height: 14px; object-fit: contain; }
.sbp-near .sbp-go + .sf-pur { flex-basis: auto; }
.sbp-near .sbp-li-more { font: 600 0.74rem 'Urbanist', sans-serif; color: #8d9dae; }   /* C.listMax: "+246 more inside, out to 500 m" */
/* C.replenish (ARK): a node the base would stop coming back */
.sbp-near .sbp-blk { flex: 0 0 auto; margin-right: 0.45rem; padding: 0 0.3rem; border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5; font: 700 0.6rem/1.5 'Manrope', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.sbp-caves { margin-top: 0.55rem; }   /* C.caves: its toggle, under the purity switch */
/* C.caves (Satisfactory): a node in a cave or under an overhang; is-off: in a cave and not counted in reach */
.sbp-near .sbp-cave { flex: 0 0 auto; margin-right: 0.45rem; padding: 0 0.3rem; border: 1px solid rgba(59, 227, 255, 0.45);
  color: #7dd3fc; font: 700 0.6rem/1.5 'Manrope', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.sbp-near .sbp-cave.is-off { border-style: dashed; color: #8d9dae; border-color: rgba(141, 157, 174, 0.6); }
/* C.teleport: Copy Teleport in the card's action bar, as on the maps (map-app.css styles it there for #oly-map and the sheet;
   the picker's desktop card sits beside #oly-map, not in it) */
:is(.sbp-panel, .sbp-detail-body) .oly-card-acts .tp-copy .cmd-copy {
  display: block; width: 100%; margin: 0; padding: 0.62rem 0.75rem; border: 0; border-radius: 0;
  background: #f08000; color: #1a1206; font: 800 0.7rem 'Manrope', sans-serif; letter-spacing: 0.07em; }
:is(.sbp-panel, .sbp-detail-body) .oly-card-acts .tp-copy .cmd-copy:hover { background: #ff9a2e; color: #1a1206; }
:is(.sbp-panel, .sbp-detail-body) .oly-card-acts .tp-copy .cmd-copy.ok { background: #16a34a; color: #fff; }
/* The rail's section cards live in map-app.css now (every map and picker): Jason 2026-10-14. */
/* C.server: the PvE / PvP switch, then its extra no-build toggle */
.sbp-srv { margin-bottom: 0.55rem; }
/* C.server.regrow: the no-regrow distance, its name over an Off / ½× / 1× / 2× switch */
.sbp-rgx { margin-top: 0.6rem; }
.sbp-rgx-l { display: block; margin-bottom: 0.35rem; font: 600 0.84rem 'Urbanist', sans-serif; color: var(--text); }
/* C.replenish: the card's answer in one line, what is in reach and whether the base blocks any of it */
.sbp-reach { margin: 0 0 0.65rem; padding: 0.5rem 0.65rem; border-left: 3px solid #22c55e; background: rgba(34, 197, 94, 0.1);
  color: #e6edf3; font: 700 0.84rem/1.35 'Urbanist', sans-serif; }
.sbp-reach.has-blocked { border-left-color: #f87171; background: rgba(248, 113, 113, 0.1); }
/* C.replenish: the base's size, above the reach slider */
#sbp-base { margin-bottom: 0.4rem; }

/* ── YOUR SPOTS (base-picker.js): the visitor's saved spots, at the top of the rail and as stars on the map ── */
.sbp-mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.sbp-mine-n { font: 800 0.72rem 'Manrope', sans-serif; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sbp-mine-hint { margin-bottom: 0.6rem; }
.sbp-mine-list { list-style: none; margin: 0 0 0.6rem; padding: 0; max-height: 16rem; overflow-y: auto; overscroll-behavior: contain; }
.sbp-mine-list:empty { display: none; }
.sbp-mine-list li { display: flex; align-items: center; border-top: 1px solid var(--border); }
.sbp-mine-list li:first-child { border-top: 0; }
.sbp-mine-go { flex: 1 1 auto; min-width: 0; display: flex; gap: 0.5rem; padding: 0.42rem 0.3rem; cursor: pointer; text-align: left;
  background: none; border: 0; border-left: 3px solid transparent; border-radius: 0; color: var(--text); }
.sbp-mine-go:hover { background: var(--bg-surface); }
.sbp-mine-go.is-on { border-left-color: var(--map-accent); background: color-mix(in srgb, var(--map-accent) 10%, transparent); }
.sbp-mine-star { flex: 0 0 auto; font-style: normal; font-size: 0.9rem; line-height: 1.15; color: var(--map-accent); }
.sbp-mine-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sbp-mine-main b { font: 800 0.82rem 'Manrope', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbp-mine-note { font: 600 0.72rem/1.4 'Urbanist', sans-serif; color: var(--text-muted); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.sbp-mine-x { flex: 0 0 auto; background: none; border: 0; border-radius: 0; color: var(--text-muted); padding: 0.35rem 0.45rem;
  font-size: 0.78rem; line-height: 1; cursor: pointer; }
.sbp-mine-x:hover { color: #ef4444; background: var(--bg-surface); }
.sbp-mine-go:focus-visible, .sbp-mine-x:focus-visible { outline: 2px solid var(--map-accent); outline-offset: -2px; }
.sbp-mine .gsync.gsync-inline { margin: 0; }
/* the saved spot on the map: a green pin (status: yours; there is no gold on GamesOMG, Bridge #407), its tip on the spot
   (iconAnchor 11, 29), apart from the orange ring and numbers */
.sbp-mine-pin b { position: relative; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box;
  border-radius: 50%; background: #0d1318; border: 2px solid #4ade80; color: #4ade80; font: 900 12px/1 sans-serif;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.sbp-mine-pin b::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px;
  border: 5px solid transparent; border-top: 7px solid #4ade80; border-bottom: 0; }
.sbp-mine-pin.is-on b { background: #4ade80; color: #06210f; }
/* a friend's set (#spotset=, #767): their pin dashed in blue (info, not yours), their list under their name above yours,
   Add these / Hide them; Share all under your list. The map's own set (map-app.css .oly-set) is the model */
.sbp-mine-pin.is-theirs b { border-style: dashed; border-color: #3be3ff; color: #3be3ff; }
.sbp-mine-pin.is-theirs b::after { border-top-color: #3be3ff; }
.sbp-mine-star.is-theirs { color: var(--blue); }
.sbp-set { margin: 0 0 0.7rem; padding: 0.5rem 0.55rem 0.55rem; border: 1px dashed var(--blue-border, var(--border)); background: var(--blue-dim, var(--bg-surface)); }
.sbp-set[hidden], .sbp-share[hidden], .sbp-share-msg[hidden] { display: none; }
.sbp-set .sotf-label { overflow-wrap: anywhere; }
.sbp-set .sbp-note { margin: 0.25rem 0 0.4rem; }
.sbp-set .sbp-mine-list { margin-bottom: 0.4rem; max-height: 12rem; }
.sbp-set-acts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sbp-set-acts .sbp-btn { flex: 1 1 auto; }
.sbp-set-add:not(:disabled) { border-color: var(--map-accent); color: var(--map-accent); }
.sbp-set-acts .sbp-btn:disabled { opacity: 0.6; cursor: default; }
.sbp-set.is-err .sbp-set-msg { color: #ef4444; }
.sbp-set-msg { margin: 0.4rem 0 0; }
.sbp-share { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.35rem 0.4rem; margin: 0 0 0.6rem; }
.sbp-share-from { flex: 1 1 9rem; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; font: 700 0.68rem 'Manrope', sans-serif; color: var(--text-muted); }
.sbp-share-from input { min-width: 0; padding: 0.3rem 0.4rem; border: 1px solid var(--border); border-radius: 0; background: var(--bg-card);
  color: var(--text); font: 600 0.74rem 'Manrope', sans-serif; }
.sbp-share-all { flex: 0 0 auto; }
.sbp-share-msg { flex: 1 1 100%; margin: 0; }
/* the profile switcher (map-profile.js) under the account box: flush with the rail's blocks */
.sbp-mine .gsync + .gprof { margin: 0.5rem 0 0; }   /* past map-profile.js's own .gsync+.gprof, injected after this file */
.sbp-acct .gsync + .gprof { margin: 0; padding: 0.35rem 0.7rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
.sbp-acct .gprof-h { display: none; }
/* a points layer's spot (the spots guides name): a diamond in the layer's colour, apart from the numbered squares,
   the green saved pins and the round overlays */
.sbp-ov-pin b { display: block; width: 10px; height: 10px; margin: 2px; transform: rotate(45deg); box-sizing: border-box;
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65); cursor: pointer; }
/* a picture overlay's colour key (C.overlays[].keys: Sons of the Forest's water that freezes / stays liquid) */
.sbp-ov-keys { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.sbp-ov-keys span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sbp-ov-key { width: 14px; height: 10px; border: 1px solid; flex: 0 0 auto; }
/* the card's save form (fixed dark chrome, like the card) */
.sbp-save { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7rem 0.75rem 0; }
.sbp-save-l { display: flex; flex-direction: column; gap: 0.28rem; font: 700 0.64rem 'Manrope', sans-serif; letter-spacing: 0.06em;
  text-transform: uppercase; color: #93a3b5; }
.sbp-save input, .sbp-save textarea { width: 100%; box-sizing: border-box; padding: 0.42rem 0.5rem; background: #0a0e12;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0; color: #f3efe3; font: 600 0.86rem/1.4 'Urbanist', sans-serif;
  letter-spacing: 0; text-transform: none; resize: vertical; }
.sbp-save input:focus, .sbp-save textarea:focus { outline: none; border-color: #f08000; }
.sbp-save .oly-card-tools { margin: 0.1rem -0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sbp-save button[type="submit"] { color: #ffc98a; }
@media (max-width: 720px) { .sbp-save input, .sbp-save textarea { font-size: 16px; } }   /* under 16px a phone zooms the page on focus */
.sbp-card-mine .oly-card-title { color: #ffd76a; }

/* ── the table under the map ── */
.oly-below h3 { font: 800 0.92rem 'Manrope', sans-serif; color: var(--text); margin: 1.4rem 0 0.5rem; }
.sbp-tbl { width: 100%; border-collapse: collapse; margin: 0 0 0.9rem; font-size: 0.82rem; }
.sbp-tbl th, .sbp-tbl td { text-align: left; vertical-align: top; padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--border); }
.sbp-tbl th { font: 800 0.68rem 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sbp-tbl td { color: var(--text-muted); line-height: 1.45; }
.sbp-tbl td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.sbp-tbl td.sbp-tbl-xy { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbp-tbl td.sbp-tbl-where { white-space: nowrap; }
.sbp-tbl-lv { display: block; font-weight: 600; font-size: 0.74rem; color: var(--text-muted); }   /* Soulmask: the region's level band under its name */
.sbp-tbl tr:last-child td { border-bottom: 0; }
.sbp-tbl a { text-decoration: none; }
.sbp-tbl a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .sbp-tbl td:first-child { white-space: normal; }
  .sbp-tbl th, .sbp-tbl td { padding-right: 0.4rem; }
  .sbp-tbl td.sbp-tbl-xy, .sbp-tbl td.sbp-tbl-where { white-space: normal; }   /* X and Y are each bound with &nbsp;, so it breaks at the dot */
  /* a 4-5 column table's narrowest still overran a 320 px phone (Enshrouded, Project Zomboid, VEIN 340 px, Palworld 309 px in a
     288 px column, page-overflow 2026-10-22): a cell may break anywhere, the &nbsp; bindings too, rather than scroll the page */
  .sbp-tbl th, .sbp-tbl td { overflow-wrap: anywhere; }
  .sbp-tbl th { letter-spacing: 0.02em; }
}

/* the level-ground layer (base-picker.js drawLevel): one pad-plane cell a pixel, kept crisp */
.sbp-level { image-rendering: pixelated; }
/* the creature layer (drawWild): one 40 m cell a pixel, left smooth so it reads as where they live, not as a grid */
.sbp-wild { pointer-events: none; }

/* ══ THE "INSTRUMENT" LAYOUT TRIAL (Jason, 2026-10-13): the Island picker only, data-layout="instrument" on its .oly-app.
   Less surface (no card over the map, rules folded away, no prose in the rail) and an instrument's face: tight blocks,
   small-caps labels, monospace tabular numbers, a readout bar under the map. base-picker.js does the moves (INSTR). ══ */
.oly-app[data-layout="instrument"] { --bp-mono: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
[data-layout="instrument"] .sotf-block { padding: 0.5rem 0.7rem; }
[data-layout="instrument"] .sotf-label { font-size: 0.62rem; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
[data-layout="instrument"] .oly-rail-head { padding: 0.6rem 0.7rem 0.5rem; }
[data-layout="instrument"] .oly-rail-head h1 { font-size: 1.05rem; margin: 0; }
[data-layout="instrument"] .oly-rail-head p, [data-layout="instrument"] #sbp-radius-hint, [data-layout="instrument"] .sbp-mine-hint { display: none; }
[data-layout="instrument"] .sbp-xy, [data-layout="instrument"] .sbp-c,
[data-layout="instrument"] .sf-hud-xy, [data-layout="instrument"] .sbp-hud-calc, [data-layout="instrument"] output { font-family: var(--bp-mono); letter-spacing: 0; }
/* the list: denser rows, a smaller rank box */
[data-layout="instrument"] .sbp-spot { padding: 0.3rem 0.3rem 0.35rem 0; gap: 0.45rem; }
[data-layout="instrument"] .sbp-rank { flex-basis: 1.35rem; height: 1.35rem; font-size: 0.66rem; }
[data-layout="instrument"] .sbp-seg button { padding: 0.3rem 0.25rem; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
/* the account: one line on top of the results */
.sbp-acct:empty { display: none; }
.sbp-acct .gsync { margin: 0; padding: 0.4rem 0.7rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; }
.sbp-acct .gsync-me { margin: 0; flex: 1 1 auto; min-width: 0; }
.sbp-acct .gsync-me img { width: 20px; height: 20px; }
.sbp-acct .gsync-me div { display: flex; gap: 0.45rem; align-items: baseline; min-width: 0; }
.sbp-acct .gsync-me span { color: var(--text-muted); font-size: 0.68rem; white-space: nowrap; }
.sbp-acct .gsync-t { display: none; }
.sbp-acct .gsync-b { margin: 0; flex: 1 1 auto; }
.sbp-acct .gsync-b::before { content: 'Sync your saves'; font-size: 0.68rem; color: var(--text-muted); margin-right: auto; }
.sbp-acct .gsync-btn { padding: 0.15rem 0.45rem; font-size: 0.68rem; border-radius: 0; }
/* Saved tab: Your spots shows instead of the ranked list */
.oly-app[data-layout="instrument"]:not(.sbp-saved-on) #sbp-mine { display: none; }
.sbp-saved-on #sbp-spots, .sbp-saved-on #sbp-note { display: none; }
.sbp-saved-on .sbp-acct + .sotf-block { border-bottom: 0; }
/* the card in the column: list and Saved step aside, a back bar on top */
.sbp-detail { display: none; }
.sbp-detail-on .sbp-results .sbp-detail { display: block; }
.sbp-detail-on .sbp-results > .sotf-block { display: none; }
.sbp-detail-back { display: block; width: 100%; padding: 0.45rem 0.7rem; text-align: left; cursor: pointer; background: var(--bg-surface);
  border: 0; border-bottom: 1px solid var(--border); color: var(--text); font: 700 0.66rem 'Manrope', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.sbp-detail-back:hover { color: var(--map-accent); }
.sbp-detail-body > .oly-card { border: 0; box-shadow: none; }
.sbp-detail-body > .oly-card > .oly-card-acts { position: sticky; bottom: 0; }
/* More filters: the server and ground rules, folded */
.sbp-morebox > summary { cursor: pointer; list-style: none; margin: 0; display: flex; justify-content: space-between; }
.sbp-morebox > summary::-webkit-details-marker { display: none; }
.sbp-morebox > summary::after { content: '▸'; }
.sbp-morebox[open] > summary::after { content: '▾'; }
.sbp-morebox > .sotf-block { padding: 0.45rem 0 0; border-bottom: 0; }
/* the readout bar: under the map, left (the report chips keep the right) */
[data-layout="instrument"] .sbp-hud { top: auto; bottom: 0; left: 0; transform: none; border-radius: 0; font-family: var(--bp-mono); font-size: 0.68rem; }
/* under the Top 10: "Show 10 more" / "Show the top 10 only" (all pickers) */
.sbp-more-top { display: block; width: 100%; margin-top: 0.45rem; }
.sbp-more-top[hidden], .sbp-saved-on .sbp-more-top { display: none; }

/* ══ THE SHORT RAIL AND THE FLOATING COLUMN (D102, 2026-10-22): the maps' look since D101 (Jason 06:21 on the Valheim seed
   map: "thats how all the maps should look. way nicer"), on every picker through the engine (base-picker.js, railUI).
   The tiles, group bars and section bars are map-rail.css's; what is here is the picker's own: its rail 340 wide like
   the maps' (Popular's two columns hold a name each), the reasons as full-width tiles, the resource grids inside their
   bars, and everything on the stage's right standing clear of the column (map-fab.css). ══ */
@media (min-width: 1000px) {
  .oly-app:has(> .bp-short):not(.oly-folded):not(.sbp-cols) { grid-template-columns: 340px minmax(0, 1fr); }
  .oly-app.sbp-cols:has(> .bp-short):not(.oly-folded) { grid-template-columns: 340px minmax(0, 1fr) 280px; }
}
.bp-short .gomg-pop { padding: 0; margin-top: 0.15rem; }
.bp-tile-why { grid-column: 1 / -1; }
.bp-tile-why .gomg-tile-n { white-space: normal; }
.bp-tile-sel { cursor: default; padding-right: 0.15rem; }
.bp-tile-select { flex: 0 0 auto; min-width: 6.4rem; max-width: 55%; padding: 0.08rem 0.25rem; cursor: pointer; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font: 600 0.72rem 'Urbanist', sans-serif; }
.bp-tile-select:focus { outline: none; border-color: var(--orange-ink); }
/* a resource's name wraps to a second line rather than lose its end ("Resource Analy…"): the data names them, not us */
.bp-tile-res .gomg-tile-n { white-space: normal; overflow-wrap: normal; line-height: 1.1; }
.bp-tile-res .gomg-tile-sw { display: inline-flex; align-items: center; }
.bp-tile-res .gomg-tile-sw img { width: 14px; height: 14px; object-fit: contain; }
.bp-short .bp-pop + .sbp-btns { margin-top: 0.4rem; }
/* the resource groups bleed to the block's edges, as the maps' groups run the rail's width */
.bp-short #sbp-res > .gomg-groups-head { margin: 0.5rem -0.6rem 0; }
.bp-short #sbp-res > details.gomg-group { margin: 0 -0.6rem; }
.bp-short #sbp-res > details.gomg-group:last-child { border-bottom: 1px solid var(--border-hover); margin-bottom: -0.55rem; }
.bp-group > .sbp-res-grid { padding: 0.35rem 0.6rem 0.45rem; }
/* a phone's drawer is the screen less 92 px (map-app.css), so under 390 px two columns left a name 40-60 px and it broke
   inside the word on 22 of 26 pickers ("Limesto / ne", "Obsidi / an", "Lingonber / ry"; D106, 2026-10-23): one column there */
@media (max-width: 389px) { .sbp-res-grid { grid-template-columns: minmax(0, 1fr); } }
.bp-gcount { flex: 0 0 auto; font: 700 0.66rem 'Manrope', sans-serif; font-style: normal; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.bp-short .gomg-sec[hidden] { display: none; }
/* what a bar is set to wraps under itself on a narrow drawer rather than run past its edge (VEIN at 320: "Solo / PvE ·
   Fenced or not · 1 on"); the bar's name keeps its line */
.bp-short .gomg-sec > summary > span { flex: 0 0 auto; }
.bp-short .gomg-sec-sum { min-width: 0; white-space: normal; text-align: right; line-height: 1.25; }
.bp-short .gomg-sec-body > .sotf-block:only-child > .sotf-label:first-child { display: none; }   /* one block under a bar: the bar already says what it is */
.bp-short .gomg-sec-body > .sotf-block:not([hidden]) + .sotf-block:not([hidden]) { border-top: 1px solid var(--border); }
/* the stage's right-hand chips and the spot card stand clear of the column */
.gomg-fab-on .oly-map-host.sbp-fullmap { right: calc(var(--gomg-fab-w, 34px) + 22px); }
.gomg-fab-on .sbp-panel { right: calc(var(--gomg-fab-w, 34px) + 22px); }
