/* /fm-shop (templates/fm_shop.html, fm_shop/_page.html, fm_shop/_drawer.html; fm-shop.js), on top of hubcw.css:
   .hero/.mkt-hero, .mkt-stats, .lrows/.lrow and .fs-state come from there. Prefix fs-. */

/* ---------- hero: the heading and the day's counters, or an item's facts ---------- */
/* since 2026-11-08 only an item has a banner (its icon, name, links and facts); the default page has no banner at all:
   the heading sits in the bar's first row and the day's numbers beside the category tiles (.fs-kpis) */
.hero.mkt-hero.fs-hero { padding: 13px 22px 14px; margin-bottom: 10px; border-radius: 18px; }
.fs-hero .hero-main > h1 { font-size: clamp(20px, 2.1vw, 24px); margin: 0 0 3px; }
.fs-hero .lead { max-width: none; margin: 0; font-size: 13px; line-height: 1.35; }
.fs-ih { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.fs-ih-ic { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fs-ih-ic img.ico { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; }
.fs-ih h1 { margin: 0; }
.fs-kicker { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.fs-kicker a { color: inherit; }
.fs-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fs-links a { font-weight: 600; font-size: 13px; }
/* four tiles on one row; the Sold tile gets the most room ("each, median" + bundles), For sale the least */
.fs-facts { position: relative; z-index: 2; flex: 0 1 600px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .95fr); gap: 6px; align-self: center; }
.fs-fact { min-width: 0; padding: 9px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fs-fact > span { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fs-fact > b { font: 700 17px/1.25 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fs-fact > b.muted { font-size: 14px; color: var(--ink-3); }
.fs-fact > small { margin-left: 3px; font-size: 11px; color: var(--ink-3); }
.fs-fact > em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-fact > em a { font-weight: 600; }
.fs-fact.hot { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--green-soft) 70%, var(--card)), var(--card)); }

/* ---------- the bar (three rows since 2026-11-08): the heading, views, search and sort; the chips with the count and the
   scanner; the category tiles with the day's numbers. More filters and the active chips open between the last two.
   On wide screens it sticks under the top bar (fm-shop.js sets --fs-top); once stuck only the first row stays, the
   rest opens as a flyout from the Filters button ---------- */
.fs-sticky { position: relative; z-index: 39; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.fs-form { display: flex; flex-direction: column; }
.fs-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 10px 6px; }
.fs-title { display: contents; } /* the swap region around the heading (empty on an item's page: the banner has the name) */
.fs-h1 { max-width: 34%; margin: 0 4px 0 6px; padding-right: 14px; border-right: 1px solid var(--line); font-size: 19px; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-search { position: relative; flex: 1 1 300px; min-width: 220px; display: flex; align-items: center; height: 36px; border-radius: 999px; background: var(--bg-2); border: 1px solid transparent; transition: background .12s, border-color .12s, box-shadow .12s; }
.fs-search:focus-within { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.fs-search > svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ink-3); pointer-events: none; }
.fs-search input[type=search] { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 37px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.fs-search input[type=search]:focus { outline: none; box-shadow: none; }
.fs-search input[type=search]::-webkit-search-cancel-button { display: none; }
.fs-clear, .fs-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font: 600 20px/1 var(--font); cursor: pointer; }
.fs-clear:hover { background: var(--line); color: var(--ink); }
.fs-go { background: var(--accent); color: #fff; }
.fs-go svg { width: 15px; height: 15px; }
.fs-go:hover { filter: brightness(1.05); }
/* item suggestions under the search (fm-shop.js) */
.fs-sugg { position: absolute; z-index: 36; top: calc(100% + 6px); left: 0; width: min(100%, 560px); min-width: min(100%, 320px); max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); }
.fs-sugg[hidden] { display: none; }
.fs-sg { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.fs-sg.act, .fs-sg:hover { background: var(--bg-2); }
.fs-sg .ci { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); }
.fs-sg .ci img { max-width: 26px; max-height: 26px; image-rendering: pixelated; }
.fs-sg .ci svg { width: 16px; height: 16px; color: var(--ink-3); }
.fs-sg .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fs-sg .n b { color: var(--accent-ink); font-weight: 700; }
.fs-sg small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.fs-sg.q { color: var(--ink-2); }
.fs-sg.q .n { font-weight: 500; }
.fs-sg.q .n b { font-weight: 700; color: var(--ink); }
.fs-sugg .fs-sg + .fs-sg.q, .fs-sugg .fs-sg.q + .fs-sg:not(.q) { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 9px; }
.fs-seg { display: inline-flex; height: 36px; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-2); }
.fs-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.fs-seg a svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.fs-seg a:hover { color: var(--ink); }
.fs-seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.fs-seg a.on svg { color: var(--accent); opacity: 1; }
/* Sort: a chip opening the choices (2026-11-08; was a "Sort" label + a 200px <select>) */
.fs-sortpop summary.fs-chip { height: 36px; padding: 0 12px; border-radius: 11px; }
.fs-sortpop .fs-pop-b { left: auto; right: 0; min-width: 230px; padding: 6px; }
.fs-sortpop .fs-pop-h { margin: 0 0 2px; padding: 6px 10px 4px; }
.fs-sort-list { display: flex; flex-direction: column; }
.fs-sort-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fs-sort-list a:hover { background: var(--bg-2); color: var(--ink); }
.fs-sort-list a.on { background: var(--accent-soft); color: var(--accent-ink); }
.fs-sort-list a svg { width: 16px; height: 16px; flex: none; }
.fs-sort-list a:not(.on) svg { visibility: hidden; }
.fs-chip.fs-filt { display: none; }
.fs-flyout { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 7px; }
.fs-row2 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.fs-tools { position: relative; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fs-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; user-select: none; }
.fs-chip svg { width: 14px; height: 14px; flex: none; }
.fs-chip small { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.fs-chip:hover { border-color: var(--line-2); color: var(--ink); }
.fs-chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-ink); }
.fs-chip.tog.on { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 55%, transparent); color: var(--green-ink); }
.fs-chip.tog.on small { color: inherit; }
.fs-chip .fs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.fs-chip.tog.on .fs-dot { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.fs-chip .fs-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fs-chip.adv-toggle[aria-expanded="true"] { border-color: var(--ink-3); color: var(--ink); }
summary.fs-chip { list-style: none; }
summary.fs-chip::-webkit-details-marker { display: none; }
summary.fs-chip::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.fs-pop { position: relative; }
.fs-pop[open] > summary { border-color: var(--ink-3); color: var(--ink); }
/* channel + room as one joined pair of chips: both pick a place */
.fs-pair { display: inline-flex; }
.fs-pair > details > summary.fs-chip { border-radius: 0; }
.fs-pair > details:first-child > summary.fs-chip { border-radius: 999px 0 0 999px; }
.fs-pair > details:last-child > summary.fs-chip { margin-left: -1px; border-radius: 0 999px 999px 0; }
.fs-pair > details[open] > summary.fs-chip, .fs-pair > details > summary.fs-chip.on, .fs-pair > details > summary.fs-chip:hover { position: relative; z-index: 1; }
.fs-scrim { display: none; }
.fs-pop-b { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max-content; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); }
.fs-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fs-pop-h a { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.fs-pop-h a.on { background: var(--accent-soft); color: var(--accent-ink); }
.fs-nums { display: grid; grid-template-columns: repeat(8, 36px); gap: 4px; }
.fs-nums.rooms { grid-template-columns: repeat(5, 44px); }
.fs-nums a { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 9px; background: var(--card-2); font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fs-nums a.seen { background: var(--bg-2); color: var(--ink); }
.fs-nums a.seen::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.fs-nums a:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.fs-nums a.on { background: var(--accent); color: #fff; }
.fs-nums a.on::after { background: #fff; }
.fs-pop-note { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; font-size: 12px; color: var(--ink-3); }
.fs-pop-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
/* the status: how many rows, and the scanner's latest pass */
.fs-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fs-total { white-space: nowrap; }
.fs-total b { color: var(--ink); font-size: 13.5px; font-variant-numeric: tabular-nums; }
/* the scanner's latest pass: a soft pill, green while it is still around */
.fs-scan { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); white-space: nowrap; font-size: 12px; font-weight: 500; }
.fs-scan i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.fs-scan.hot { background: var(--green-soft); color: var(--green-ink); }
.fs-scan.hot i { background: var(--green); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); animation: pulse 2s infinite; }
.fs-adv { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fs-form.collapsible:not(.adv-open) .fs-adv { display: none; }
.fs-adv .f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.fs-adv label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fs-adv input[type=text], .fs-adv select { height: 36px; padding: 0 10px; font-size: 13.5px; }
.fs-adv .range { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.fs-adv .range input[type=text] { width: 74px; }
.fs-sticky .activef { padding: 0; border: 0; }
[data-fs="active"]:empty { display: none; }
.fs-sticky .activef .clear { margin-left: auto; padding: 0; border: 0; background: none; font-weight: 600; color: var(--ink-3); }
.fs-sticky .activef .clear:hover { color: var(--red-ink); }
/* the progress line while the page fetches itself */
.fs-progress { position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .15s; pointer-events: none; }
.fs-progress::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 2px; background: var(--accent); }
.fs-sticky.busy .fs-progress { opacity: 1; }
.fs-sticky.busy .fs-progress::before { animation: fs-prog 1s ease-in-out infinite; }
@keyframes fs-prog { to { left: 100%; } }
/* stuck under the top bar: the first row only, the rest in a flyout */
@media (min-width: 761px) {
  .fs-sticky.sticky { position: sticky; top: var(--fs-top, 106px); }
  .fs-sticky.stuck { border-radius: 0 0 var(--radius) var(--radius); border-top-color: transparent; box-shadow: var(--shadow-lg); }
  .fs-sticky.stuck .fs-chip.fs-filt { display: inline-flex; }
  .fs-sticky.stuck:not(.expanded) .fs-flyout { display: none; }
  .fs-sticky.stuck.expanded .fs-flyout { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 2; padding: 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--card); box-shadow: var(--shadow-lg); }
  .fs-sticky.stuck.expanded { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .fs-sticky.stuck.expanded .fs-filt { border-color: var(--ink-3); color: var(--ink); }
}
/* the results dim while the next ones load */
.fs-results, .fs-live { transition: opacity .15s; }
.fs-results.busy, .fs-live.busy { opacity: .45; pointer-events: none; }

/* ---------- the bar's last row: the category tiles in a track like the view switch, the day's numbers at the right ---------- */
.fs-catrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding-top: 6px; border-top: 1px solid var(--line); }
/* icon-only tiles (2026-11-08; the names were pills with counts before): the name and count are the title */
.fs-cats { display: flex; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 2px; border-radius: 10px; background: var(--bg-2); }
.fs-cat { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 28px; border-radius: 8px; color: var(--ink-2); transition: background .12s, color .12s; }
.fs-cat .ci { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.fs-cat .ci img { max-width: 22px; max-height: 22px; image-rendering: pixelated; }
.fs-cat .ci svg { width: 16px; height: 16px; color: var(--ink-3); }
.fs-cat:hover { background: color-mix(in srgb, var(--card) 75%, transparent); }
.fs-cat.on { background: var(--card); box-shadow: var(--shadow); }
.fs-cat.on .ci svg { color: var(--accent); }
/* the day's numbers (a banner of five tiles before 2026-11-08): bold number, lowercase label, the live count green */
.fs-kpis { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fs-kpis:empty { display: none; }
.fs-kpi-cap { padding: 2px 6px; border-radius: 5px; background: var(--bg-2); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fs-kpi { color: var(--ink-3); white-space: nowrap; }
.fs-kpi:hover { color: var(--ink); }
.fs-kpi b { margin-right: 3px; font: 700 14px/1 var(--head); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fs-kpi .lc { text-transform: lowercase; }
.fs-kpi-live b { color: var(--green-ink); }
.fs-kpi-live .fs-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); animation: pulse 2s infinite; }
.fs-kpi-sep { width: 1px; height: 16px; background: var(--line); }

/* ---------- live shops: a strip (the full cards with ?live=1, market/_live_style.html) ---------- */
.fs-live { margin-bottom: 10px; }
.fs-live[hidden] { display: none; }
/* the full cards (?live=1): as /live */
.fs-live-section, .fs-live:has(> div > .fs-live-heading) { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-2); }
.fs-live-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fs-live-heading h2 { margin: 0; font-size: 20px; }
.fs-live-note, .fs-live-empty { font-size: 13px; }
.fs-live-watch { display: inline-flex; gap: 5px; align-items: center; color: var(--green-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fs-live-grid { justify-content: start; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.fs-live-grid > [hidden] { display: none !important; }

/* ---------- "n new listings" (fm-shop.js, part=fresh) ---------- */
.fs-fresh { position: fixed; left: 0; right: 0; top: calc(var(--fs-top, 106px) + 10px); z-index: 45; display: flex; justify-content: center; pointer-events: none; }
.fs-fresh[hidden] { display: none; }
.fs-fresh-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border: 0; border-radius: 999px; background: var(--ink); color: var(--card); font: 600 13.5px/1 var(--font); cursor: pointer; box-shadow: var(--shadow-lg); animation: fs-drop .25s ease-out; }
.fs-fresh-btn svg { width: 15px; height: 15px; }
.fs-fresh-btn:hover { background: var(--accent); color: #fff; }
@keyframes fs-drop { from { transform: translateY(-14px); opacity: 0; } }

/* ---------- the rows: the Market's listing rows (.lrow), with the shop's place and Price Check ---------- */
.box.fs-list { margin-bottom: 14px; }
.fs-rows .lrow { grid-template-rows: auto auto; }
.fs-rows .lr-ic { grid-row: 1 / span 2; }
.fs-rows .lr-main { grid-column: 2; grid-row: 1; align-self: end; }
.fs-rows .lr-price { grid-column: 3; grid-row: 1 / span 2; }
.fs-metas { grid-column: 2; grid-row: 2; align-self: start; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fs-rows .lr-price a { position: relative; z-index: 1; }
.fs-rows .lr-price .lr-mkt a { color: var(--ink-3); }
.fs-rows .lr-price .lr-mkt a:hover { color: var(--accent-ink); }
.fs-rows .lr-price small.fs-sub { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.fs-rows .lr-title .fs-state { flex: none; }
.fs-rows .lr-meta b { color: var(--ink-2); font-weight: 700; }
.fs-pills span b.down { color: var(--red-ink); }
.fs-pills span.clean { background: var(--green-soft); color: var(--green-ink); }
.fs-pills span.scr { background: var(--violet-soft, var(--bg-2)); color: var(--violet, var(--ink-2)); }
.fs-loc { padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--bg-2); }
.fs-loc:hover { background: var(--accent-soft); color: var(--accent-ink); }
.fs-ttl { min-width: 0; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-rows .lrow.done .lr-link { color: var(--ink-2); }
.lr-user .ulink[data-shop] { cursor: pointer; }
/* paging: "Show more" (fm-shop.js hides the page links) */
.fs-pager .pager { margin-top: 0; }
.fs-more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.fs-more-btn small { font-weight: 600; color: var(--ink-3); }
.fs-more-btn:hover { border-color: var(--ink-3); box-shadow: var(--shadow-lg); }
.fs-more-btn:disabled { opacity: .6; cursor: progress; }

/* ---------- the room map: shops per channel and room, each room shaded by how long ago the scanner last passed
   through it (green: lately; grey: 6 hours or more); the wide table, or on phones the channels as rows / one channel's rooms ---------- */
.fs-mapwrap { margin-bottom: 14px; }
.box.fs-mapbox { margin-bottom: 0; }
.fs-pmap { display: none; }
.fs-mapbox > summary { cursor: pointer; list-style: none; }
.fs-mapbox > summary::-webkit-details-marker { display: none; }
.fs-mapbox > summary::after { content: ""; width: 7px; height: 7px; margin: 0 4px 3px auto; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; flex: none; }
.fs-mapbox[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.fs-mapbox:not([open]) > summary { border-bottom: 0; }
.fs-mapbox > summary small { font-family: var(--font); font-weight: 500; }
.fs-map-wrap { overflow-x: auto; padding: 10px 14px 14px; }
.fs-map { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.fs-map th, .fs-map td { padding: 0; border: 0; text-align: center; font-size: 12px; white-space: nowrap; background: none; }
.fs-map thead th a { display: block; min-width: 30px; padding: 2px 0; border-radius: 6px; font-weight: 700; color: var(--ink-3); }
.fs-map thead th a:hover { color: var(--ink); }
.fs-map thead th a.on { background: var(--accent); color: #fff; }
.fs-map tbody th { padding-right: 6px; text-align: left; white-space: nowrap; }
.fs-map tbody th a { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fs-map tbody tr.on th a { color: var(--accent-ink); }
.fs-map td a, .fs-map td i { display: flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 6px; }
.fs-map td i { background: color-mix(in srgb, var(--ink) 3.5%, var(--card)); }
.fs-map td a { font-weight: 700; color: var(--ink); }
.fs-map td a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.fs-map td a.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.fs-map .tot, .fs-map .ago { padding-left: 10px; color: var(--ink-3); font-weight: 600; text-align: right; }
.fs-map td.ago { font-weight: 500; font-size: 11.5px; }
/* last pass: green (minutes) draining to grey (6 h+): one hue, less of it each step over a grey that deepens; fm_shop_fresh() */
.fs-mapwrap .f1 { background: var(--green); }
.fs-mapwrap .f2 { background: color-mix(in srgb, var(--green) 78%, var(--card)); }
.fs-mapwrap .f3 { background: color-mix(in srgb, var(--green) 58%, var(--card)); }
.fs-mapwrap .f4 { background: color-mix(in srgb, var(--green) 41%, var(--card)); }
.fs-mapwrap .f5 { background: color-mix(in srgb, var(--green) 28%, color-mix(in srgb, var(--ink) 3%, var(--card))); }
.fs-mapwrap .f6 { background: color-mix(in srgb, var(--green) 18%, color-mix(in srgb, var(--ink) 6%, var(--card))); }
.fs-mapwrap .f7 { background: color-mix(in srgb, var(--green) 11%, color-mix(in srgb, var(--ink) 9%, var(--card))); }
.fs-mapwrap .f8 { background: color-mix(in srgb, var(--green) 5%, color-mix(in srgb, var(--ink) 15%, var(--card))); }
.fs-mapwrap .f9 { background: color-mix(in srgb, var(--ink) 22%, var(--card)); }
.fs-map td a.f1, .fs-map td a.f2, .fs-ptiles a.f1 b, .fs-ptiles a.f1 small, .fs-ptiles a.f2 b, .fs-ptiles a.f2 small { color: var(--hard); }
.fs-map td a.f9 { color: var(--ink-2); }
.fs-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.fs-legend > .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fs-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3.5px; vertical-align: -2px; }
.fs-legend .lp { margin-left: auto; font-weight: 600; }
.fs-legend b { margin-left: 2px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fs-legend .none { color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.fs-legend .none b { color: inherit; font-weight: 600; }
.fs-pch { list-style: none; margin: 0; padding: 6px 8px 2px; }
.fs-pch a { display: grid; grid-template-columns: 50px minmax(0, 1fr) 38px; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ink); }
.fs-pch a:hover, .fs-pch a.on { background: var(--bg-2); }
.fs-pch b { font-size: 13px; }
.fs-pch small { text-align: right; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fs-strip { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; }
.fs-strip i { height: 18px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 3.5%, var(--card)); }
.fs-ptiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 12px 4px; }
.fs-ptiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 54px; border-radius: 11px; background: color-mix(in srgb, var(--ink) 4%, var(--card)); color: var(--ink-3); }
.fs-ptiles a b { font: 700 16px/1.1 var(--head); color: var(--ink); }
.fs-ptiles a small { font-size: 11px; font-weight: 600; }
.fs-ptiles a.f3 small, .fs-ptiles a.f4 small, .fs-ptiles a.f5 small, .fs-ptiles a.f6 small, .fs-ptiles a.f7 small, .fs-ptiles a.f8 small, .fs-ptiles a.f9 small { color: var(--ink-2); }
.fs-ptiles a.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.fs-pfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 16px 14px; font-size: 13px; font-weight: 600; }
.fs-pfoot .fs-legend { margin: 0; }

/* ---------- the shops: a card each, grouped by room (the latest pass first) ---------- */
.fs-group { margin: 0 0 18px; }
.fs-gh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.fs-gh h2 { margin: 0; font-size: 17px; }
.fs-gh h2 a { color: var(--ink); }
.fs-gh h2 a:hover { color: var(--accent-ink); }
.fs-gh small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fs-step { display: flex; gap: 6px; margin-left: auto; align-self: center; }
.fs-step a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fs-step a:hover { border-color: var(--line-2); color: var(--ink); }
.fs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.fs-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fs-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fs-who { min-width: 0; }
.fs-seller { display: inline-flex; align-items: center; gap: 7px; font: 700 15.5px/1.25 var(--head); color: var(--ink); overflow-wrap: anywhere; }
.fs-seller:hover { color: var(--accent-ink); }
.fs-card-t { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.fs-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--ink-3); text-align: right; }
.fs-card-loc .fs-loc { font-size: 12.5px; }
.fs-card.gone { background: var(--card-2); box-shadow: none; }
.fs-card.gone .fs-items, .fs-card.gone .fs-more, .fs-card.gone .fs-seller { opacity: .62; }
.fs-items { list-style: none; margin: 0 -8px; padding: 0; }
.fs-it + .fs-it { border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.fs-it a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 9px; color: var(--ink); }
.fs-it a:hover { background: var(--bg-2); }
.fs-it a:hover .fs-it-name { color: var(--accent-ink); }
.fs-it img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.fs-it-n { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fs-it-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.fs-it-name { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.fs-it-q { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fs-it-q:empty { display: none; }
.fs-it-roll span { padding: 0 6px; font-size: 11px; }
.fs-it-roll span:not(.slots):not(.clean):not(.scr) { background: color-mix(in srgb, var(--ink) 7%, var(--card)); }
.fs-it-p { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1px 6px; text-align: right; }
.fs-it-each { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-it-p .lr-pct { margin: 0; }
.fs-it.out a > img, .fs-it.out .fs-it-name, .fs-it.out .fs-it-roll, .fs-it.out .fs-it-each { opacity: .45; }
.fs-it.out .fs-it-q { color: var(--red-ink); font-weight: 600; }
.fs-more > summary { width: max-content; margin-top: 2px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, var(--card)); }
.fs-more > summary::-webkit-details-marker { display: none; }
.fs-more > summary:hover { color: var(--ink); }
.fs-more[open] > summary { display: none; }
.fs-more > .fs-items { border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.fs-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.fs-card footer .go { margin-left: auto; font-weight: 600; }
.fs-empty-sub { margin: -4px 0 10px; font-size: 13px; color: var(--ink-3); }
.fs-empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 620px; margin: 0 auto; }
.fs-empty-chips a { padding: 4px 11px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fs-empty-chips a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.fs-empty-step { display: flex; justify-content: center; margin-top: 16px; }
.fs-empty-step .fs-step { margin: 0; }
.fs-empty { padding: 34px 18px 38px; }

/* ---------- the shop drawer (fm-shop.js, templates/fm_shop/_drawer.html) ---------- */
.fs-drawer { position: fixed; inset: 0; z-index: 70; }
.fs-drawer[hidden] { display: none; }
.fs-drawer-scrim { position: absolute; inset: 0; background: rgba(11, 14, 23, .45); opacity: 0; transition: opacity .2s; }
.fs-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); display: flex; flex-direction: column; background: var(--card); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .22s ease; }
.fs-drawer.open .fs-drawer-scrim { opacity: 1; }
.fs-drawer.open .fs-drawer-panel { transform: none; }
.fs-drawer-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink-2); font: 500 22px/1 var(--font); cursor: pointer; }
.fs-drawer-x:hover { color: var(--ink); border-color: var(--ink-3); }
.fs-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 24px; overscroll-behavior: contain; }
body.fs-drawer-open { overflow: hidden; }
.fs-dr-loading { padding: 40px 0; text-align: center; color: var(--ink-3); font-weight: 600; }
.fs-dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 40px; }
.fs-dr-who { min-width: 0; }
.fs-dr-name { display: inline-flex; align-items: center; gap: 8px; font: 700 21px/1.2 var(--head); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.fs-dr-name:hover { color: var(--accent-ink); }
.fs-dr-job { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fs-dr-title { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.fs-dr-state { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ink-3); text-align: right; }
.fs-dr-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.fs-dr-loc .fs-loc { font-size: 13px; }
.fs-dr-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fs-dr-facts > div { padding: 10px 8px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); text-align: center; }
.fs-dr-facts b { display: block; font: 700 18px/1.2 var(--head); font-variant-numeric: tabular-nums; }
.fs-dr-facts span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-dr-h { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 6px; font: 700 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fs-dr-h small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.fs-dr-items { margin: 0; }
.fs-dr-empty { color: var(--ink-3); }
.fs-dr-sales { list-style: none; margin: 0; padding: 0; }
.fs-dr-sales li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); font-size: 13px; }
.fs-dr-sales li:first-child { border-top: 0; }
.fs-dr-sales img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.fs-dr-sales .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-dr-sales .n a { font-weight: 600; color: var(--ink); }
.fs-dr-sales .n small { color: var(--ink-3); }
.fs-dr-sales .p { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fs-dr-sales .w { min-width: 64px; text-align: right; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.fs-dr-since { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); }
.fs-dr-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- widths ---------- */
@media (max-width: 1020px) {
  .fs-facts { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .hero.mkt-hero.fs-hero { padding: 14px; gap: 10px 16px; border-radius: 16px; }
  .fs-ih-ic { width: 44px; height: 44px; border-radius: 12px; }
  .fs-ih-ic img.ico { width: 32px; height: 32px; }
  .fs-links { gap: 4px 14px; }
  .fs-links a { font-size: 13.5px; }
  .fs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-fact { padding: 9px 11px; }
  .fs-fact > b { font-size: 16px; }
  /* the bar's pieces re-flow as one column: heading, search, views, chips, status with the sort, more filters, active chips,
     category tiles, the day's numbers */
  .fs-sticky { z-index: auto; } /* no stacking context: the channel/room/sort sheets (z 60/61) must clear the phone nav (z 49) */
  .fs-form { flex-flow: row wrap; gap: 8px; padding: 8px 10px; }
  .fs-row, .fs-flyout, .fs-row2, .fs-catrow { display: contents; }
  .fs-h1 { order: 0; flex: 1 1 100%; max-width: none; margin: 2px 0 -2px 2px; padding: 0; border: 0; font-size: 19px; }
  .fs-search { flex: 1 1 100%; order: 1; height: 40px; }
  .fs-search input[type=search] { font-size: 16px; }
  .fs-seg { display: flex; width: 100%; order: 2; }
  .fs-seg a { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 13.5px; }
  .fs-seg a svg { display: none; }
  .fs-tools { order: 3; flex: 1 1 0; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 0 -10px; padding: 0 6px 1px 10px; } /* the sort chip sits at its right end */
  .fs-tools::-webkit-scrollbar { display: none; }
  .fs-chip { flex: none; height: 34px; padding: 0 11px; font-size: 13px; }
  .fs-sortpop { order: 4; flex: none; }
  .fs-sortpop summary.fs-chip { padding: 0 9px 0 10px; }
  .fs-sortpop summary.fs-chip > span { display: none; } /* icon only: the sheet names the current sort */
  .fs-sortpop .fs-pop-b { left: 0; right: 0; min-width: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); } /* the sheet, not the desktop list */
  .fs-sortpop .fs-pop-h { padding: 0; margin-bottom: 8px; }
  .fs-sort-list a { padding: 12px 10px; font-size: 15px; }
  .fs-status { order: 5; flex: 1 1 100%; min-width: 0; margin: 0; justify-content: space-between; gap: 2px 10px; font-size: 12px; overflow: hidden; }
  .fs-status:empty { display: none; }
  .fs-scan { height: auto; padding: 0; border-radius: 0; background: none; color: var(--ink-3); } /* plain text: one line with the count */
  .fs-scan.hot { background: none; color: var(--ink-3); }
  .fs-adv { order: 6; flex: 1 1 100%; }
  [data-fs="active"] { order: 7; flex: 1 1 100%; }
  .fs-pop { position: static; }
  .fs-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(11, 14, 23, .45); }
  .fs-pop-b { position: fixed; z-index: 61; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; overflow-y: auto;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; border-bottom: 0; box-shadow: 0 -12px 40px rgba(11, 14, 23, .25); }
  .fs-pop-b::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--line-2); }
  .fs-pop-h { font-size: 12px; }
  .fs-nums { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .fs-nums.rooms { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fs-nums a { height: 42px; font-size: 14.5px; }
  .fs-sugg { left: 0; right: 0; width: auto; min-width: 0; max-height: min(55vh, 420px); }
  .fs-sg small { max-width: 48%; overflow: hidden; text-overflow: ellipsis; } /* a long type ("Lv. 10 One-Handed Blunt Weapon") must not squeeze the name out */ /* under the search box, as wide as it (fixed + no top centred it on the box, so it climbed under the top bar) */
  .fs-cats { order: 8; flex: 1 1 100%; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
  .fs-cats::-webkit-scrollbar { display: none; }
  .fs-cat { width: 38px; height: 32px; }
  .fs-cat .ci img { max-width: 24px; max-height: 24px; }
  .fs-kpis { order: 9; flex: 1 1 100%; gap: 2px 10px; margin: -3px 0 0; font-size: 11px; } /* two lines at 390px: one would hide the channel count off the edge */
  .fs-kpi b { margin-right: 2px; font-size: 12.5px; }
  .fs-kpi-cap, .fs-kpi-sep { display: none; }
  .fs-fresh { top: 70px; }
  .fs-xs, .fs-ttl { display: none; }
  .fs-rows .lr-ic, .fs-rows .lr-price { grid-row: 1; }
  .fs-rows .lr-main { align-self: start; }
  .fs-metas { grid-column: 2 / -1; }
  .fs-adv .f { flex: 1 1 140px; min-width: 0; }
  .fs-adv .f select { width: 100%; height: 40px; }
  .fs-adv .range { width: 100%; min-width: 0; }
  .fs-adv .range input[type=text] { flex: 1 1 0; width: auto; min-width: 0; height: 40px; }
  .fs-adv .range select { flex: 1 1 0; min-width: 0; }
  .fs-adv .range select + input[type=text] { flex: 0 0 80px; }
  .fs-adv .btn { width: 100%; }
  .fs-adv .f-stat { flex-basis: 100%; }
  .fs-dmap { display: none; }
  .fs-pmap { display: block; }
  .fs-mapbox > summary { flex-wrap: nowrap; white-space: nowrap; }
  .fs-mapbox > summary small { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fs-gh h2 { font-size: 16px; }
  .fs-gh .fs-step { flex-basis: 100%; margin: 2px 0 0; }
  .fs-card { padding: 12px 12px 10px; }
  .fs-items { margin: 0 -6px; }
  .fs-it a { gap: 9px; padding: 6px; }
  .fs-it-name { font-size: 13px; }
  .fs-drawer-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(104%); }
  .fs-drawer-body { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .fs-dr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-dr-facts b { font-size: 16px; }
}
