/* /rust-seed-map/ — only what the seed map has that the shared map shell (map-app.css) does not: the size + seed
   form and its queue status, the base-spot presets and best-squares list, the saved seeds, and the marks drawn on
   the map (monument labels, caves, the grid, the picked spot). Fixed dark chrome on the map art, like the cards. */

.rsm-form { display: grid; grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); gap: 0.35rem; }
.rsm-f { display: grid; gap: 0.15rem; min-width: 0; }
.rsm-f > span { font: 700 0.66rem 'Manrope', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.rsm-f .sotf-search { font-variant-numeric: tabular-nums; min-width: 0; }
.rsm-go { grid-column: 1 / -1; background: var(--orange); border: 0; border-radius: 9px; color: #1a1206; font: 800 0.84rem 'Manrope', sans-serif;
  padding: 0.5rem 0.9rem; cursor: pointer; }
.rsm-go:hover { background: #ff9a2e; }
.rsm-row2 { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.rsm-row2 button { flex: 1 1 0; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; color: var(--text);
  font: 700 0.74rem 'Manrope', sans-serif; padding: 0.4rem 0.5rem; cursor: pointer; }
.rsm-row2 button:hover:not(:disabled) { border-color: var(--map-accent); color: var(--map-accent); }
.rsm-row2 button:disabled { opacity: 0.4; cursor: default; }
.rsm-row2 button.ok { border-color: #22c55e; color: #22c55e; }
.rsm-proto { margin: 0.4rem 0 0; font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rsm-proto:empty { display: none; }

.rsm-status { margin-top: 0.55rem; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-surface);
  font-size: 0.78rem; line-height: 1.45; color: var(--text); }
.rsm-status.is-err { border-color: #dc2626; }
.rsm-status.is-busy { border-color: var(--map-accent); }
.rsm-status.is-note { border-color: var(--blue); }
.rsm-status button { margin-top: 0.35rem; background: var(--orange); border: 0; border-radius: 7px; color: #1a1206; font: 800 0.74rem 'Manrope', sans-serif; padding: 0.3rem 0.6rem; cursor: pointer; }
.rsm-bar { height: 5px; margin-top: 0.45rem; background: var(--border); border-radius: 3px; overflow: hidden; }
.rsm-bar i { display: block; height: 100%; background: var(--orange); transition: width 0.8s linear; }
.rsm-ts { margin-top: 0.45rem; min-height: 65px; }

/* base spots */
.rsm-presets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.35rem; }
.rsm-preset { display: grid; gap: 0.15rem; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; color: var(--text);
  padding: 0.45rem 0.55rem; cursor: pointer; min-width: 0; }
.rsm-preset b { font: 800 0.84rem 'Manrope', sans-serif; color: var(--orange-ink); }
.rsm-preset span { font-size: 0.7rem; line-height: 1.3; color: var(--text-muted); }
.rsm-preset:hover { border-color: var(--map-accent); }
.rsm-preset.is-on { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.rsm-foot-l { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font: 700 0.76rem 'Manrope', sans-serif; color: var(--text); }
.rsm-foot-l select { flex: 1 1 auto; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; color: var(--text);
  font: 600 0.8rem 'Urbanist', sans-serif; padding: 0.38rem 0.45rem; }
.rsm-best { display: grid; gap: 0.2rem; }
.rsm-best:empty { display: none; }
.rsm-best-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.45rem; text-align: left; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; color: var(--text); padding: 0.32rem 0.5rem; cursor: pointer; }
.rsm-best-row:hover { border-color: var(--map-accent); }
.rsm-best-row b { font: 800 0.84rem 'Manrope', sans-serif; color: var(--blue); font-variant-numeric: tabular-nums; }
.rsm-best-row span { font-size: 0.72rem; line-height: 1.3; color: var(--text-muted); overflow-wrap: anywhere; }
.rsm-best-row i { font: 700 0.74rem 'Manrope', sans-serif; font-style: normal; color: #16a34a; font-variant-numeric: tabular-nums; }
.rsm-sub-h { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.rsm-mini { background: none; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); font: 700 0.68rem 'Manrope', sans-serif;
  letter-spacing: 0; text-transform: none; padding: 0.15rem 0.45rem; cursor: pointer; }
.rsm-mini:hover { color: var(--map-accent); border-color: var(--map-accent); }
.rsm-spot-layers, .rsm-toggles { display: grid; gap: 0.35rem; }
.rsm-toggles .sotf-toggle i, .rsm-pick i { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rsm-sub { display: grid; gap: 0.2rem; margin: 0 0 0.2rem 1.4rem; }
.rsm-sub:empty { display: none; }
.rsm-sub .rsm-mini { justify-self: start; }
.rsm-pick { font-size: 0.78rem; }
.rsm-swb { flex: 0 0 auto; width: 11px; height: 11px; border: 1px solid rgba(0, 0, 0, 0.35); }
/* under A cave close by: next to one or in one (two buttons, one pressed) · under the tier zones: the zone, then the
   monuments the game put in it, on a line of their own so a 320 px phone does not squeeze them */
.rsm-seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.25rem; margin-bottom: 0.15rem; }
.rsm-seg-b { min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted);
  font: 700 0.72rem 'Manrope', sans-serif; padding: 0.3rem 0.35rem; cursor: pointer; }
.rsm-seg-b:hover { border-color: var(--map-accent); color: var(--map-accent); }
.rsm-seg-b.is-on { border-color: var(--orange); color: var(--text); box-shadow: inset 0 0 0 1px var(--orange); }
.rsm-sub-note { margin: 0 0 0.15rem; font-size: 0.72rem; line-height: 1.35; color: var(--text-muted); }
.rsm-tier { align-items: flex-start; }
.rsm-tier > span { display: grid; min-width: 0; }
.rsm-tier b { font-weight: 700; }
.rsm-tier small { font-size: 0.7rem; line-height: 1.3; color: var(--text-muted); overflow-wrap: anywhere; }
/* Unique spots: a chip per kind, then that kind's list (a row is the square and one fact: no score column) */
.rsm-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.4rem; }
.rsm-chip { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font: 700 0.72rem 'Manrope', sans-serif; padding: 0.22rem 0.55rem; cursor: pointer; }
.rsm-chip i { font-style: normal; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rsm-chip:hover { border-color: var(--map-accent); }
.rsm-chip.is-on { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.rsm-best-row.is-unique { grid-template-columns: 3.4rem minmax(0, 1fr); }

/* saved seeds */
.rsm-saved-row { display: flex; gap: 0.3rem; margin-bottom: 0.25rem; }
.rsm-saved-go { flex: 1 1 auto; min-width: 0; display: grid; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); font: 600 0.8rem 'Urbanist', sans-serif; padding: 0.3rem 0.5rem; cursor: pointer; }
.rsm-saved-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsm-saved-go i { font-style: normal; font-size: 0.7rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rsm-saved-go:hover { border-color: var(--map-accent); }
.rsm-saved-x { flex: 0 0 auto; background: none; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); cursor: pointer; padding: 0 0.5rem; }
.rsm-saved-x:hover { color: #dc2626; border-color: #dc2626; }

/* what's in this world */
.rsm-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.18rem; }
.rsm-legend-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--text); }
.rsm-legend-list.is-plain li { grid-template-columns: minmax(0, 1fr) auto; }
.rsm-legend-list li i { width: 14px; height: 14px; border: 1px solid rgba(0, 0, 0, 0.35); }
.rsm-legend-list li b { font: 700 0.74rem 'Manrope', sans-serif; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rsm-legend-list li.is-none { opacity: 0.5; }
.rsm-legend-h { margin: 0.6rem 0 0.25rem; font: 700 0.72rem 'Manrope', sans-serif; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* marks on the map art: fixed dark chrome in both themes */
#oly-map { background: #0b3b4a; }
.rsm-mon { background: none; border: 0; }
.rsm-mon span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 0.12rem 0.42rem; cursor: pointer;
  font: 800 0.68rem/1.25 'Manrope', sans-serif; color: #fff; background: rgba(10, 14, 18, 0.74); border: 1px solid rgba(59, 227, 255, 0.55); text-shadow: 0 1px 2px #000; }
.rsm-mon.is-safe span { border-color: #4ade80; color: #d9ffe6; }
.rsm-mon.is-found span { opacity: 0.55; border-color: #4ade80; }
.rsm-mon span:hover { border-color: #ff8a1f; }
/* zoomed out, the names crowd: smaller type, and the roadside stops and lighthouses wait until you zoom in */
.rsm-far .rsm-mon span { font-size: 0.58rem; padding: 0.05rem 0.28rem; }
.rsm-far .rsm-mon.is-minor { display: none; }
.rsm-cave { display: grid; place-items: center; cursor: pointer; }
.rsm-cave i { font-style: normal; font-size: 13px; line-height: 18px; width: 18px; height: 18px; text-align: center; color: #ffd27a;
  background: #0d1318; border: 2px solid #ffd27a; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.rsm-cave.is-found i { border-color: #4ade80; color: #4ade80; opacity: 0.6; }
/* the underground rail: violet, a colour no other layer uses. ▼ = a Train Tunnel entrance the seed placed, S = a station */
.rsm-tun { display: grid; place-items: center; cursor: pointer; }
.rsm-tun i { font-style: normal; font-size: 9px; line-height: 16px; width: 16px; height: 16px; text-align: center; color: #e4d2ff;
  background: #1a0f2e; border: 2px solid #b98cff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.rsm-tun.is-found i { border-color: #4ade80; color: #4ade80; opacity: 0.6; }
.rsm-stn { display: grid; place-items: center; cursor: pointer; }
.rsm-stn i { font: 800 9px/12px 'Manrope', sans-serif; font-style: normal; width: 12px; height: 12px; text-align: center; color: #1a0f2e;
  background: #f3e6ff; border: 2px solid #1a0f2e; }
.rsm-best-pin { display: grid; place-items: center; cursor: pointer; }
.rsm-best-pin b { display: grid; place-items: center; width: 22px; height: 22px; font: 800 12px 'Manrope', sans-serif; color: #06210f;
  background: #4ade80; border: 2px solid #0b1016; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.rsm-pin { display: grid; place-items: center; pointer-events: none; }
.rsm-pin i { display: block; width: 14px; height: 14px; border: 3px solid #ff8a1f; background: rgba(255, 138, 31, 0.25); box-shadow: 0 0 0 2px #0b1016; }
.rsm-grid path.rsm-grid-l { fill: none; stroke: rgba(10, 14, 18, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rsm-grid .rsm-grid-c { display: none; font: 700 22px 'Manrope', sans-serif; fill: rgba(10, 14, 18, 0.72); }
.rsm-grid.show-cells .rsm-grid-c, svg.show-cells .rsm-grid-c { display: inline; }
.rsm-axis { background: none; border: 0; }
.rsm-axis span { display: inline-block; white-space: nowrap; font: 700 0.62rem 'Manrope', sans-serif; color: #a5f3ff; background: rgba(10, 14, 18, 0.6); padding: 0.05rem 0.25rem; }
.rsm-axis.is-top span { transform: translate(-50%, -110%); }
.rsm-axis.is-left span { transform: translate(-110%, -50%); }
.rsm-sw { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; }
.rsm-sw-monuments { background: #0a0e12; border: 1px solid #3be3ff; }
.rsm-sw-caves { background: #0d1318; border: 2px solid #ffd27a; }
.rsm-sw-landmarks { background: #3be3ff; border-radius: 50%; border: 2px solid #0b1016; }
.rsm-sw-tunnels { background: #1a0f2e; border: 2px solid #b98cff; }
/* a place named on a spot card is a link to it */
.oly-card button.oly-card-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-align: left; }
.rsm-hud #rsm-hud-at { min-width: 12ch; }
.rsm-is-prev .rsm-img { filter: saturate(0.55); }

/* the card, docked (rust-seed-map.js openCard; the ARK Island card's .ark-around-panel, df0300663): on a desktop it sits on
   the right of the stage under the HUD and the map stays put. Fixed dark like every card; the bar and the action bar stay
   put while the rows scroll. A phone keeps the bottom sheet. */
.rsm-panel { position: absolute; top: 54px; right: 56px; z-index: 1000; width: 320px; max-width: calc(100% - 76px);
  max-height: calc(100% - 70px); 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); }
.rsm-panel[hidden] { display: none; }
.rsm-panel > .oly-card > .oly-card-bar { position: sticky; top: 0; }
.rsm-panel > .oly-card > .oly-card-acts { position: sticky; bottom: 0; }
.rsm-panel .oly-card-head { padding-right: 1.6rem; }   /* clear of the ✕ */
.rsm-panel-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; }
.rsm-panel-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.oly-sheet .rsm-panel-x { display: none; }   /* the sheet has its own ✕ */
/* the bottom-right "Suggest it / Report it" chips sit under the docked card: they step aside while it is open */
.rsm-panel-on .map-asks { display: none; }
/* a spot card's "For what you ticked" labels are long ("Out of sight of roads, rails and monuments"): under the shared
   max-content label column they left the score a sliver and "100%" broke onto two lines. The labels wrap at 58 % here. */
.rsm-panel .oly-card-rows, .oly-sheet .oly-card-rows { grid-template-columns: fit-content(58%) minmax(0, 1fr); }

/* the monuments you run: a head line with All / None, then the game's size groups, each with its own tick */
.rsm-pick-head { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.15rem; font-size: 0.74rem; color: var(--text-muted); }
.rsm-pick-head span { margin-right: auto; }
.rsm-pick-group { font-weight: 700; margin-top: 0.2rem; }
.rsm-pick-one { margin-left: 1.25rem; }
