:root { --visual: .25; --ink: #111827; --mut: #6b7280; --acc: #1d4ed8; }
/* Icon system (2026-11-25): one inline-SVG set (public/icons.js, built
   from icons/svg/) — 24x24 stroke icons in currentColor, sized per
   context below. Replaces the old emoji glyphs everywhere. */
.icon { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; pointer-events: none; }
.icon--working { animation: nested-working 1.8s ease-in-out infinite; }
@keyframes nested-working { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .icon--working { animation: none; } }
.brand { display: flex; align-items: center; gap: 7px; }
.brand .icon { width: 28px; height: 28px; }
#tabbar .tabico .icon { width: 24px; height: 24px; display: block; }
#detail-back .icon { width: 18px; height: 18px; vertical-align: -4px; }
.feedmenu-btn .caret .icon { width: 16px; height: 16px; }
.pres-i .icon { width: 16px; height: 16px; display: block; }
#ptr .icon { width: 16px; height: 16px; vertical-align: -3px; }
.refbadge .icon { width: 14px; height: 14px; }
.meta .icon { width: 13px; height: 13px; vertical-align: -2px; }
.detail-dates .icon { width: 15px; height: 15px; vertical-align: -3px; }
.gc-eyebrow .icon { width: 13px; height: 13px; vertical-align: -2px; }
.gcard .gc-big .icon { width: 27px; height: 27px; vertical-align: -4px; }
.planned-banner .icon { width: 15px; height: 15px; vertical-align: -3px; }
.streetview-btn .icon { width: 16px; height: 16px; vertical-align: -3px; }
.photo-credit .icon { width: 13px; height: 13px; vertical-align: -2px; }
.pop-tag .icon, .pop-when .icon { width: 12px; height: 12px; vertical-align: -2px; }
.actions .fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.fbtn .icon { width: 20px; height: 20px; }
#feed.mode-thumb .fbtn .icon { width: 17px; height: 17px; }
.fbtn.on.like, .fbtn.on.dislike { color: #fff; }
.fbtn.mark-btn .icon { width: 17px; height: 17px; }
.kind311 .kindicon .icon { width: 54px; height: 54px; }
#feed.mode-thumb .kind311 .kindicon .icon { width: 30px; height: 30px; }
.wx .wxicon .icon { width: 76px; height: 76px; }
#feed.mode-thumb .wx .wxicon .icon { width: 34px; height: 34px; }
.wx .wxlabel .icon { width: 20px; height: 20px; vertical-align: -4px; }
#feed.mode-thumb .wx .wxlabel .icon { width: 14px; height: 14px; vertical-align: -2px; }
.gcard.catcard .gc-caticon .icon { width: 52px; height: 52px; }
#feed.mode-thumb .gcard.catcard .gc-caticon .icon { width: 32px; height: 32px; }
.card .vis .pin .icon { width: 28px; height: 28px; display: block; }
.mk .mk-ico { color: #fff; display: flex; }
.mk .mk-ico .icon { width: 19px; height: 19px; }
.mk .mk-clock { color: #7c3aed; }
.mk .mk-clock .icon { width: 11px; height: 11px; display: block; }
.media-play .icon { width: 24px; height: 24px; }
.media-play.big .icon { width: 32px; height: 32px; }
#feed.mode-thumb .media-play .icon { width: 16px; height: 16px; }
.spot strong .icon, .spot .disc .icon { width: 15px; height: 15px; vertical-align: -3px; }
#patterns .icon { width: 14px; height: 14px; vertical-align: -2px; }
#addr-picks button .icon { width: 15px; height: 15px; vertical-align: -3px; }
#agenda .hint .icon { width: 15px; height: 15px; vertical-align: -3px; }
.cal-urlrow button .icon { width: 14px; height: 14px; vertical-align: -3px; }
* { box-sizing: border-box; }
html, body { overflow-x: hidden; overscroll-behavior-y: none; max-width: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--ink); background: #f8fafc; padding-bottom: 76px; }
/* The PTR strip is a fixed overlay in the slot under the feed bar
   (Ray 2026-11-24): as an in-flow element it grew and shrank the
   header zone every time it appeared. (The yellow Fetching banner
   that shared this slot is gone — the completeness gauge in the feed
   bar carries in-flight state now, Ray 2026-11-26.) */
#ptr { position: fixed; top: calc(var(--hdrh, 49px) + var(--barh, 108px) + 6px); left: 50%; transform: translateX(-50%); width: min(696px, calc(100% - 24px)); box-sizing: border-box; z-index: 395; text-align: center; color: var(--acc); font-size: 14px; font-weight: 700; padding: 10px; background: #eff6ff; border-radius: 10px; box-shadow: 0 8px 20px -8px rgba(15,23,42,.35); animation: ptr-in .18s ease; }
@keyframes ptr-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.card .vis img, .vis-gen { max-width: 100%; }
.geomap { width: 100%; height: 100%; display: block; }
.card { cursor: pointer; }
#detail { position: fixed; inset: 0; background: #f8fafc; z-index: 600; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 40px; }
#detail .detail-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 16px; display: flex; align-items: center; gap: 14px; z-index: 2; }
#detail .detail-head button { font-size: 16px; }
#detail-content { max-width: 720px; margin: 0 auto; padding: 14px 16px; }
#detail-content .vis { border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 12px; }
#detail-content .detail-vis { height: 320px; }
#detail-content .detail-vis.split { display: flex; gap: 3px; }
#detail-content .detail-vis.split .split-map { flex: 1; position: relative; min-width: 0; }
#detail-content .detail-vis.split .split-map img, #detail-content .detail-vis.split .split-map svg.geomap { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Leaflet's attribution prefix is a tiny inline SVG flag (Ukraine colors,
   12x8) — never let generic visual sizing rules stretch it. */
.leaflet-attribution-flag { width: 12px !important; height: 8px !important; display: inline-block !important; }
#detail-content .detail-vis.split .split-photo { flex: 1; position: relative; min-width: 0; display: block; }
#detail-content .detail-vis.split .split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Live detail map (Leaflet) — replaces the static map visual in detail view only */
.live-map { width: 100%; height: 100%; min-height: 200px; background: #e5e7eb; z-index: 0; }
/* Below-body live map for photo-headed detail pages (Ray 2026-11-25):
   the photo keeps the header; a located item still gets its map, under
   the summary text. Same live Leaflet treatment as the header map. */
.detail-bodymap { position: relative; height: 260px; border-radius: 12px; overflow: hidden; margin: 4px 0 12px; background: #e5e7eb; }
.detail-bodymap .live-map { height: 100%; min-height: 0; }
.detail-bodymap .refbadge { z-index: 1300; }
#detail-content .detail-vis.split .split-map .live-map { height: 100%; min-height: 0; }
#detail-content .detail-vis .refbadge { z-index: 1300; }
/* Left-edge strip kept free of the map so the swipe-from-edge Back gesture
   still reaches the detail overlay's touch handlers (Leaflet would
   otherwise swallow the touches that start on it). Transparent: the map
   shows through underneath. */
.edge-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; z-index: 1200; }
.line-label { font-weight: 800; font-size: 12.5px; color: #111; background: rgba(255,255,255,.92); border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); padding: 1px 6px; }
.line-label::before { display: none; }
.photo-credit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 11.5px; padding: 5px 8px; }
#detail-content .detail-vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
#detail-content h2 { font-size: 22px; line-height: 1.3; margin: 8px 0; }
.detail-summary { font-size: 16px; line-height: 1.55; color: #1f2937; white-space: pre-wrap; }
.detail-dates { font-weight: 600; color: #92400e; }
.streetview-btn { display: inline-block; background: #2563eb; color: #fff !important; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 999px; margin: 6px 0; }
.refbadge { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); color: #1e3a8a; border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.refarrow { display: inline-block; color: #2563eb; font-size: 15px; line-height: 1; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 500; }
.brand { font-weight: 800; font-size: 20px; }
.tag { font-size: 11px; background: #f59e0b; color: #fff; border-radius: 8px; padding: 2px 6px; vertical-align: middle; }
main { max-width: 720px; margin: 0 auto; padding: 12px; }
.hidden { display: none !important; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin: 12px 0; }
.panel input, .panel select { display: block; width: 100%; margin: 6px 0; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
button { border: 1px solid #d1d5db; background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
button.primary { background: var(--acc); color: #fff; border-color: var(--acc); }
button.chip.active { background: var(--acc); color: #fff; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.hint { color: var(--mut); font-size: 13px; }
.preslabel { display: flex; gap: 10px; align-items: center; color: var(--mut); font-size: 13px; margin: 6px 0 12px; }
.preslabel input { flex: 1; min-width: 0; }
/* Sticky feed bar (Ray 2026-11-24): the title row through the slider
   stays pinned under the app header; on scroll it smoothly collapses
   to one line — hint gone, slider words become icons. */
/* Fixed, not sticky: the page's overflow-x:hidden makes nested sticky
   unreliable in iOS Safari (the bar compacted but scrolled away,
   Ray 2026-11-24). A spacer in the flow holds its place and glides
   between the two heights so the feed slides smoothly with the morph. */
#feedbar { position: fixed; top: var(--hdrh, 49px); left: 50%; transform: translateX(-50%); width: min(720px, 100%); box-sizing: border-box; z-index: 400; background: #f8fafc; padding: 6px 12px 4px; transition: box-shadow .3s ease; }
#feedbar-spacer { height: 108px; transition: height .3s ease; }
#feedbar.compact { box-shadow: 0 6px 14px -8px rgba(15,23,42,.25); border-bottom: 1px solid #e5e7eb; }
/* Feed-bar rows (fixed Ray 2026-11-25): title + spot picker ALWAYS
   share row 1 — the title wrap has flex-basis 0 + min-width 0, so its
   hypothetical size can never push the picker onto the next line; the
   title text truncates with an ellipsis instead (see .fm-label). The
   presentation slider takes its own row below in expanded mode. In
   compact mode the slider leaves the bar entirely (Ray 2026-11-27):
   a single cycle button (#prescycle) rides in row 1 instead, where
   the spot label also collapses to icon-only (the same morph pattern
   as .pres-w). (Snap a sign left the bar entirely on 2026-11-26 —
   it is an icon-only button in the app header now.) */
#feedbar .fb-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
#feedbar .feedmenu-wrap { order: 1; flex: 1 1 0%; min-width: 0; }
/* The completeness gauge sits in row 1 immediately LEFT of the
   location dropdown (Ray 2026-11-26) — it adds no row and no height
   in either bar state. order 1 ties it with the two dropdown wraps
   and DOM order (feedmenu-wrap → gauge → spotmenu-wrap) seats it
   between them. It is arc + robot only (no text label — the name is
   redundant beside the dropdown), so its footprint is a fixed arc
   width and never flexes; row 1 still cannot wrap because the title
   wrap's flex-basis is 0 (hypothetical size 0) and the title text
   ellipsizes instead. In compact mode the same order keeps the mini
   gauge beside the icon-only dropdown. */
#feedbar #gauge { order: 1; flex: none; }
#feedbar .preslabel { order: 2; flex: 1 1 100%; margin: 2px 0 8px; transition: margin .3s ease, flex-basis .3s ease; }
/* Compact bar drops the slider entirely (Ray 2026-11-27): there is
   not room in the one-line bar to do a 0–100 spectrum justice. The
   cycle button below takes its place — one tap advances to the next
   preset along the same spectrum, gliding the shared value there. */
#feedbar.compact .preslabel { display: none; }
#prescycle { display: none; }
#feedbar.compact #prescycle { display: inline-flex; order: 2; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: none; border: 0; color: var(--mut); }
#prescycle .prescycle-ico { display: inline-flex; }
#prescycle .prescycle-ico .icon { width: 22px; height: 22px; display: block; }
#feedbar .pres-w, #feedbar .pres-i { display: inline-block; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, opacity .25s ease; }
#feedbar .pres-i { max-width: 0; opacity: 0; font-size: 14px; }
#feedbar .pres-w { max-width: 44px; opacity: 1; }
#feedbar.compact .pres-i { max-width: 24px; opacity: 1; }
#feedbar.compact .pres-w { max-width: 0; opacity: 0; }
#feedbar .feedmenu-btn { transition: font-size .3s ease; height: 38px; box-sizing: border-box; }
#feedbar.compact .feedmenu-btn { font-size: 17px; }
/* Title button: the label is the flexible element — full ellipsis
   chain (fb-line → .feedmenu-wrap min-width:0 → button min-width:0 →
   .fm-label min-width:0 + nowrap + ellipsis). Fixed 38px height in
   both bar states keeps row 1 exactly 38px tall, which is what the
   dropdown menus' top:42px is anchored against. */
#feedmenu-btn { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; text-align: left; }
#feedmenu-btn .fm-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#feedmenu-btn .caret { flex: none; display: inline-flex; }
#feedbar #spotmenu-label { transition: max-width .3s ease, opacity .25s ease; }
#feedbar.compact #spotmenu-label { max-width: 0; opacity: 0; }

/* Presentation zones (Ray 2026-11-23): four distinct layouts along the
   slider — text / thumbnail+text (default) / band image+short text /
   all image — with sizes still easing smoothly inside each zone via
   --thumbsize / --bandh / --fullh set from JS. */
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 10px; overflow: hidden; position: relative; }
.card-main { background: #fff; position: relative; }

/* Card background scenes (Ray 2026-11-27; scenes.js + design harvest):
   a cross-section layer behind the card body — silhouettes above a
   shared ground line, infrastructure below it. The SVG is bottom-
   anchored with preserveAspectRatio xMinYMax meet (no distortion,
   LEFT-anchored — xMid centering used to indent the scene by a
   card-dependent gap, Ray 2026-11-27); its
   height is derived so the 188-unit above-ground span exactly fills
   the card above the action band (--ah = the action band's height:
   actions margin 9 + button height + body bottom padding 10), landing
   the ground line at the top of the action area and the 42-unit
   underground strip behind the buttons. Opacity tiers (the design's
   hierarchy) scale live by --scene-k, the user's intensity setting. */
.card { --ah: 53px; }
#feed.mode-thumb .card { --ah: 49px; }
#feed .card-main { background: transparent; }
.card-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.card-scene svg { position: absolute; left: 0; bottom: 0; width: 100%; height: calc((100% - var(--ah, 53px)) * 1.2234); display: block; }
.card-veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.55) 68%, rgba(255,255,255,.10) 86%, rgba(255,255,255,.10) 100%),
  linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.80) 38%, rgba(255,255,255,.80) 100%); }
.card-veil.veil-strong { background:
  linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.72) 68%, rgba(255,255,255,.15) 86%, rgba(255,255,255,.15) 100%),
  linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.55) 100%); }
.ly-distant { opacity: calc(.045 * var(--scene-k, 1.5)); }
.ly-main    { opacity: calc(.095 * var(--scene-k, 1.5)); }
.ly-ground  { opacity: calc(.115 * var(--scene-k, 1.5)); }
.ly-tint    { opacity: calc(.032 * var(--scene-k, 1.5)); }
.ly-infra   { opacity: calc(.13  * var(--scene-k, 1.5)); }
.ly-tunnel  { opacity: calc(.095 * var(--scene-k, 1.5)); }
.ly-sig     { opacity: calc(.19  * var(--scene-k, 1.5)); }
.ly-ko      { opacity: var(--scene-k, 1.5); }
html.scenes-off .card-scene { display: none; }
#detail-content { position: relative; }
.detail-main { position: relative; }
/* Settings view */
.setgroup { margin-top: 18px; }
.setgroup h3 { margin: 0 0 4px; }
.setrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 600; }
.setrow input[type="range"] { flex: 1; accent-color: var(--acc); }
.setval { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 40px; text-align: right; }
.unitseg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
#feed.mode-thumb .card-main { display: flex; width: 100%; }
.actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.actions-spacer { flex: 1; }
.fbtn { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 999px; min-width: 44px; height: 34px; padding: 0 10px; font-size: 16px; line-height: 1; cursor: pointer; color: #374151; }
.fbtn:active { transform: scale(.94); }
.fbtn.on.like { background: #16a34a; border-color: #16a34a; }
.fbtn.on.dislike { background: #d97706; border-color: #d97706; }
.fbtn.hide-btn { font-size: 12.5px; font-weight: 600; min-width: 0; }
#feed.mode-thumb .fbtn { min-width: 38px; height: 30px; font-size: 14px; padding: 0 7px; }
#feed.mode-thumb .fbtn.hide-btn { font-size: 11px; }
#detail-content .actions { margin: 10px 0 4px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.tagchip { font-size: 10.5px; font-weight: 600; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 2px 7px; }
.tagchip.pos { background: #dcfce7; color: #166534; }
.tagchip.neg { background: #fee2e2; color: #991b1b; }
#feed.mode-thumb .tagrow { display: none; }
#toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 900; max-width: 88vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast button { margin-left: 10px; background: #2563eb; color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font-weight: 700; }
.tune-h { margin: 22px 0 4px; }
.feedmenu-wrap { position: relative; }
.feedmenu-btn { background: none; border: 0; font-size: 21px; font-weight: 800; color: inherit; padding: 4px 2px; cursor: pointer; }
.feedmenu-btn .caret { font-size: 14px; opacity: .55; }
/* Dropdown menus (fixed Ray 2026-11-25): both menus are children of
   .fb-line (position: relative, full bar width) — NOT of their button
   wraps. The spot menu used to anchor right:0 to its mid-bar wrap, so
   its min-width 270px body extended LEFT past the screen edge. Now
   both anchor left:0 to the bar itself (its content-left is the
   bar's 12px padding, always on-screen) and are capped at
   calc(100vw - 24px) with border-box sizing, so neither edge can
   leave the viewport; long row labels truncate instead of widening
   the menu. top:42px = row 1's fixed 38px + 4px gap, both bar
   states. */
.feedmenu { position: absolute; top: 42px; left: 0; z-index: 700; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); min-width: 270px; max-width: calc(100vw - 24px); box-sizing: border-box; max-height: 55vh; overflow-y: auto; padding: 5px; }
.feedmenu .fm-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; min-width: 0; box-sizing: border-box; background: none; border: 0; padding: 9px 10px; font-size: 14.5px; border-radius: 8px; cursor: pointer; color: #111827; text-align: left; }
.feedmenu .fm-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedmenu .fm-count, .feedmenu .fm-check { flex: none; }
.feedmenu .fm-row:active, .feedmenu .fm-row.active { background: #eef2ff; }
.feedmenu .fm-row.active { font-weight: 700; }
.feedmenu .fm-row.zero { opacity: .42; }
.feedmenu .fm-count { font-size: 12px; font-weight: 700; background: #f3f4f6; border-radius: 999px; padding: 1px 8px; color: #374151; }
/* Category picker rows carry their category icon (Ray 2026-11-27),
   scoped to #feedmenu so the spot/profile menus keep their layout. */
#feedmenu .fm-row { justify-content: flex-start; gap: 10px; }
#feedmenu .fm-ico { display: inline-flex; flex: none; }
#feedmenu .fm-ico .icon { width: 19px; height: 19px; display: block; }
#feedmenu .fm-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-wrap { background: none; border: 0; }
.mk { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; position: relative; }
.mk .mk-ico { font-size: 16px; line-height: 1; filter: drop-shadow(0 0 1px rgba(255,255,255,.7)); }
.mk-past { background: #9ca3af; }
.mk-live { background: #16a34a; }
.mk-future { background: #7c3aed; }
.mk .mk-clock { position: absolute; right: -7px; bottom: -6px; font-size: 12px; background: #fff; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pop { min-width: 210px; max-width: 260px; }
.pop-tags { display: flex; gap: 5px; margin-bottom: 5px; flex-wrap: wrap; }
.pop-tag { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #eef2ff; color: #3730a3; }
.pop-tag.future { background: #ede9fe; color: #5b21b6; }
.pop-tag.live { background: #dcfce7; color: #166534; }
.pop-sum { font-size: 12.5px; color: #374151; margin: 4px 0; }
.pop-when { font-size: 12px; color: #6b7280; }
.pop-foot { font-size: 12px; margin-top: 5px; }
.refedge { position: absolute; inset: 3px; border: 0 solid #2563eb; border-radius: 9px; pointer-events: none; z-index: 3; }
/* Generated kind cards (Ray 2026-11-24): one glance-distinct visual per
   data kind, each modeled on its real-world artifact. */
.gcard { padding: 14px; gap: 6px; }
.gcard .gc-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.gcard .gc-eyebrow.light { color: #fff; }
.gcard .gc-eyebrow.dark { color: #451a03; }
.gcard .gc-big { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: .01em; }
.gcard .gc-big.gc-mid { font-size: 27px; }
.gcard .gc-units { font-size: 20px; font-weight: 800; }
.gcard .gc-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .gc-name.dark { color: #1c1917; }
.gcard .gc-sub { font-size: 12px; opacity: .85; }
.gcard .gc-serif { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .gc-left { text-align: left; align-self: stretch; }
.gcard .gc-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.gcard .gc-chip.dark { background: rgba(69,26,3,.14); border-color: rgba(69,26,3,.3); color: #451a03; }
.gcard.grade { background: #fffef5; color: #111827; border: 5px solid var(--gc); justify-content: center; }
.gcard.grade .gc-grade { font-size: 52px; font-weight: 900; color: var(--gc); line-height: 1; border: 3.5px solid var(--gc); border-radius: 8px; padding: 2px 18px; background: #fff; max-width: 100%; box-sizing: border-box; text-align: center; }
.gcard.grade .gc-grade.pend { font-size: 38px; letter-spacing: .04em; padding: 6px 12px; }
.gcard .gc-wshort { display: none; }
.gcard.grade .gc-grade:empty { display: none; }
.gcard.permit { background-color: #1e40af; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 22px 22px; color: #fff; border: 2.5px dashed rgba(255,255,255,.65); }
.gcard.zoning { background: linear-gradient(150deg, #581c87, #7c3aed); color: #fff; }
.gcard.meeting { background: linear-gradient(165deg, #0f2040, #1e3a8a); color: #f8fafc; border-top: 5px solid #d4af37; border-bottom: 5px solid #d4af37; }
.gcard.decision { background: linear-gradient(160deg, #14532d, #166534); color: #ecfdf5; }
.gcard.decision .gc-stamp { border: 3.5px solid #fef08a; color: #fef08a; font-weight: 900; letter-spacing: .18em; font-size: 17px; padding: 3px 14px; border-radius: 6px; transform: rotate(-3.5deg); background: rgba(0,0,0,.18); }
.gcard.news { background: #faf6ee; color: #111827; justify-content: flex-start; text-align: left; }
.gcard.news .gc-masthead { font-family: Georgia, serif; font-size: 21px; font-weight: 900; letter-spacing: .02em; align-self: stretch; text-align: center; }
.gcard.news .gc-rule { align-self: stretch; border-top: 3.5px solid #111827; border-bottom: 1px solid #111827; height: 3px; }
.gcard.lottery { background: linear-gradient(150deg, #fbbf24, #d97706); color: #fff; text-shadow: 0 1px 2px rgba(69,26,3,.35); }
.gcard.event { background: #fff; color: #111827; justify-content: flex-start; padding: 0 0 12px; gap: 2px; }
.gcard.event .gc-calband { align-self: stretch; background: #dc2626; color: #fff; font-weight: 900; letter-spacing: .3em; font-size: 14px; padding: 6px 0 4px; text-align: center; }
.gcard.event .gc-calday { font-size: 58px; font-weight: 900; line-height: 1; color: #111827; }
.gcard.film { background: #111827; color: #fff; justify-content: flex-start; padding: 0 0 12px; }
.gcard.film .gc-clap { align-self: stretch; height: 24px; background: repeating-linear-gradient(45deg, #f8fafc 0 18px, #111827 18px 36px); border-bottom: 3px solid #f8fafc; margin-bottom: 12px; }
.gcard.official { background: linear-gradient(160deg, #172554, #1d4ed8); color: #fff; }
.gcard.official .gc-medal { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #d4af37; background: #172554; color: #fff; font-family: Georgia, serif; font-size: 25px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gcard.official .gc-official { font-size: 17px; }
.gcard.source { background: linear-gradient(150deg, #134e4a, #0f766e); color: #fff; }
.gcard.catcard { color: #fff; }
.gcard.catcard .gc-caticon { font-size: 52px; line-height: 1; }
.gcard.catcard .gc-catlabel { font-size: 16px; font-weight: 900; letter-spacing: .12em; }
#feed.mode-thumb .gcard { padding: 8px; gap: 3px; }
#feed.mode-thumb .gcard .gc-big { font-size: 26px; }
#feed.mode-thumb .gcard .gc-big.gc-mid { font-size: 18px; }
#feed.mode-thumb .gcard.grade .gc-grade { font-size: 30px; padding: 0 10px; }
#feed.mode-thumb .gcard.grade .gc-grade.pend { font-size: 13.5px; padding: 3px 4px; letter-spacing: -0.02em; }
.gcard.official.mayor { background: linear-gradient(160deg, #2e1065, #6d28d9); }
.gcard.official.mayor .gc-medal { background: #2e1065; }
.gcard.news .gc-dek { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: #4b5563; align-self: stretch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard.event .gc-chip.dark { margin-top: 6px; }
#feed.mode-thumb .planned-banner { font-size: 10.5px; padding: 3px 8px; }
#feed.mode-thumb .vis-gen.transit { justify-content: flex-start; }
#feed.mode-thumb .vis-gen.transit .planned-banner { line-height: 1.15; padding: 2px 6px; }
#feed.mode-thumb .vis-gen.transit .stationline { display: none; }
#feed.mode-thumb .gcard.lottery .gc-name { -webkit-line-clamp: 1; }
#feed.mode-thumb .gcard.lottery .gc-chip { font-size: 10.5px; padding: 1px 7px; }
#feed.mode-thumb .gcard.source .gc-name { display: none; }
#feed.mode-thumb .gcard.source .gc-big { font-size: 13.5px; }
#feed.mode-thumb .gcard.news .gc-dek { display: none; }
#feed.mode-thumb .gcard .gc-wfull { display: none; }
#feed.mode-thumb .gcard .gc-wshort { display: inline; }
#feed.mode-thumb .gcard.official .gc-official { font-size: 13px; }
#feed.mode-thumb .gcard.source .gc-big { font-size: 13px; display: block; line-height: 1.15; }
#feed.mode-thumb .gcard .gc-name { font-size: 12px; -webkit-line-clamp: 2; }
#feed.mode-thumb .gcard .gc-serif { font-size: 14px; -webkit-line-clamp: 2; }
#feed.mode-thumb .gcard.event .gc-calday { font-size: 34px; }
#feed.mode-thumb .gcard.event .gc-calband { font-size: 11px; padding: 3px 0 2px; }
#feed.mode-thumb .gcard.official .gc-medal { width: 40px; height: 40px; font-size: 16px; }
#feed.mode-thumb .gcard.catcard .gc-caticon { font-size: 32px; }
#feed.mode-thumb .gcard.catcard .gc-catlabel { font-size: 12px; }
#feed.mode-thumb .gcard.film .gc-clap { height: 14px; margin-bottom: 6px; }
#feed.mode-thumb .gcard.news .gc-masthead { font-size: 15px; }
#feed.mode-thumb .gcard .gc-eyebrow { font-size: 8.5px; }
#feed.mode-thumb .gcard.decision .gc-stamp { font-size: 12px; padding: 1px 8px; }
.rdate { text-decoration: underline dotted rgba(120,120,140,.65); text-underline-offset: 2px; cursor: pointer; }
.rdate.abs { text-decoration-style: solid; }
.card .vis { overflow: hidden; position: relative; }
.card .vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
#feed.mode-text .card .vis { display: none; }
#feed.mode-text .card p { -webkit-line-clamp: 6; }
#feed.mode-thumb .card { display: flex; }
/* Thumb-mode visual box (spacing fix, Ray 2026-11-27): photo visuals
   used to sit flush at the card's left edge (0px) while generated
   visuals read as inset (their 12px internal padding) and the text
   column starts at 14px — three different left edges down the feed.
   Now every visual occupies the SAME box: inset 14px from the card's
   left edge (matching the body's padding), 10px from the top (matching
   the body's top padding), rounded corners. Photos and generated
   visuals fill that box identically; the scene stays full-bleed
   behind everything, as a background should. */
#feed.mode-thumb .card .vis { width: var(--thumbsize, 108px); height: var(--thumbsize, 108px); flex: none; margin: 10px 0 10px 14px; border-radius: 10px; }
#feed.mode-thumb .card .body { flex: 1; min-width: 0; }
#feed.mode-thumb .card p { -webkit-line-clamp: 2; }
#feed.mode-thumb .vis-gen .bigstatus { font-size: 19px; }
#feed.mode-thumb .vis-gen .bullet { width: 24px; height: 24px; font-size: 13px; }
#feed.mode-thumb .vis-gen .stationline { display: none; }
.kind311 { color: #fff; }
.kind311 .kindicon { font-size: 54px; line-height: 1; }
.kind311 .kindlabel { font-weight: 800; font-size: 21px; letter-spacing: .06em; }
.kind311 .kindsub { opacity: .85; font-size: 13.5px; font-weight: 600; }
#feed.mode-thumb .kind311 .kindicon { font-size: 30px; }
#feed.mode-thumb .kind311 .kindlabel { font-size: 12.5px; }
#feed.mode-thumb .kind311 .kindsub { display: none; }
.wx { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.wx .wxicon { font-size: 76px; line-height: 1; }
.wx .wxmain { display: flex; align-items: baseline; gap: 12px; }
.wx .wxtemp { font-size: 44px; font-weight: 800; }
.wx .wxlabel { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
#feed.mode-thumb .wx .wxicon { font-size: 34px; }
#feed.mode-thumb .wx .wxtemp { font-size: 20px; }
#feed.mode-thumb .wx .wxlabel { font-size: 12.5px; }
.transit2 { background: #fff; color: #1c1c1e; justify-content: flex-start; padding: 0; gap: 0; }
.transit2 .t2head { width: 100%; background: #101014; color: #fff; display: flex; align-items: center; gap: 10px; padding: 7px 12px; box-sizing: border-box; }
.transit2 .t2status { font-weight: 800; font-size: 15px; letter-spacing: .05em; }
.transit2 .linemap { width: 100%; flex: 1; min-height: 0; }
.transit2 .svglab { font-size: 15px; font-weight: 800; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.transit2 .t2cap { width: 100%; box-sizing: border-box; padding: 5px 12px 8px; font-size: 12.5px; font-weight: 600; color: #b91c1c; background: #fff; }
#feed.mode-thumb .transit2 .linemap, #feed.mode-thumb .transit2 .t2cap { display: none; }
#feed.mode-thumb .transit2 .t2head { height: 100%; }
#feed.mode-thumb .refbadge { display: none; }
#feed.mode-band .card .vis { height: var(--bandh, 160px); }
#feed.mode-band .card p { -webkit-line-clamp: var(--bandlines, 2); }
#feed.mode-full .card .vis { height: var(--fullh, 340px); }
#feed.mode-full .card p { display: none; }
#feed.mode-full .card .body .meta:last-child { display: none; }
#feed.mode-full .card h3 { font-size: 20px; }
.card .vis .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: #dc2626; filter: drop-shadow(0 1px 2px rgba(255,255,255,.9)); }
.vis-gen { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 12px; text-align: center; }
.vis-gen.transit { background: #111827; color: #fff; }
.vis-gen.transit.future { background: linear-gradient(150deg, #4c1d95, #6d28d9 70%, #7c3aed); }
.planned-banner { width: 100%; box-sizing: border-box; background: #7c3aed; color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; padding: 6px 12px; text-align: left; }
.transit2 .planned-banner { border-radius: 0; }
.vis-gen.transit .planned-banner { align-self: stretch; width: auto; margin: -12px -12px 2px; text-align: center; border-radius: 10px 10px 0 0; }
.vis-gen .bullets { display: flex; gap: 6px; }
.vis-gen .bullet { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.vis-gen .bigstatus { font-size: 34px; font-weight: 900; letter-spacing: 1px; line-height: 1; }
.vis-gen .stationline { font-size: 15px; color: #d1d5db; }
.card .body { padding: 10px 14px; }
.card h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.25; }
.card p { margin: 4px 0; color: #374151; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--mut); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.cat { background: #eff6ff; color: var(--acc); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
/* Header de-texted (Ray 2026-11-27): category = icon chip tinted with
   the category accent (color set inline), scope = muted scale icon. */
.catchip { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 2px 5px; flex: none; }
.catchip .icon { width: 15px; height: 15px; display: block; }
.scope { display: inline-flex; align-items: center; color: var(--mut); flex: none; }
.scope .icon { width: 16px; height: 16px; display: block; }
/* Weather pill (Ray 2026-11-26): icon + temperature, nothing else.
   Sits in the card/detail meta row right after the date; the row
   already wraps, and the pill is a single flex child so it moves as
   one piece. */
.wxpill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; background: #eef2f7; font-size: 12.5px; font-weight: 600; color: #374151; line-height: 1.5; white-space: nowrap; }
.wxpill-ico { display: inline-flex; }
.wxpill-ico .icon { width: 14px; height: 14px; display: block; }
.deadline { color: #b91c1c; font-weight: 700; }

#map { height: 62vh; border-radius: 12px; border: 1px solid #e5e7eb; }
.spot { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.spot .disc { font-size: 13px; color: var(--mut); }
.slider-row { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.slider-row input { width: 100%; }
#langbox .slider-row input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: #1d4ed8; }
.badge { font-size: 11px; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.badge.live { background: #dcfce7; color: #166534; }
.badge.seeded { background: #fef9c3; color: #854d0e; }
.badge.stubbed { background: #fee2e2; color: #991b1b; }
.badge.system, .badge.active { background: #dcfce7; color: #166534; }
.badge.watching { background: #fef9c3; color: #854d0e; }
.badge.designed { background: #e0e7ff; color: #3730a3; }
.agenda-item { background: #fff; border-left: 4px solid var(--acc); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.fbtn.mark-btn { font-size: 13px; font-weight: 700; min-width: 54px; }
.fbtn.on.marked { background: var(--acc); border-color: var(--acc); color: #fff; }
.agenda-item .mark-btn { margin-left: auto; }
.cal-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px 10px; margin: 12px 0 8px; }
.cal-row .cal-ico { display: inline-flex; color: var(--acc); flex: none; }
.cal-row svg { width: 18px; height: 18px; display: block; }
.cal-row .iconbtn { border: none; background: none; padding: 6px; display: inline-flex; color: var(--mut); flex: none; }
.cal-row .iconbtn:active { color: var(--acc); }
.cal-row #cal-copyicon { margin-left: auto; }
.cal-panel { margin-top: 0; }
.cal-panel .hint:first-child { margin-top: 0; }
.cal-subscribe { font-weight: 700; font-size: 14.5px; }
.cal-urlrow { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.cal-urlrow input { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; background: #f9fafb; }
.cal-urlrow button { flex: none; }
nav#tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; display: flex; z-index: 500; }
nav#tabbar button { flex: 1; border: none; border-radius: 0; padding: 8px 0 10px; font-size: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; }
nav#tabbar .tabico { font-size: 21px; line-height: 1.1; }
nav#tabbar button:not(.active) .tabico { opacity: .55; color: #6b7280; }
nav#tabbar button.active { color: var(--acc); font-weight: 800; }

/* Stored item media (Ray 2026-11-24): the post's own photo fills the
   visual frame in every presentation mode (the .vis sizing rules do
   the mode work); officials keep their seal — medallion + name strip —
   overlaid on the photo. */
.vis-media { position: relative; width: 100%; height: 100%; background: #111827; }
.vis-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 19px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.media-play.big { width: 62px; height: 62px; font-size: 25px; }
.media-count { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.off-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 16px 10px 7px; background: linear-gradient(transparent, rgba(2,6,23,.78)); color: #fff; pointer-events: none; }
.off-medal { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #d4af37; background: #172554; color: #fff; font-family: Georgia, serif; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.off-strip.mayor .off-medal { background: #2e1065; }
.off-name { font-size: 13.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feed.mode-thumb .off-medal { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
#feed.mode-thumb .off-name { font-size: 11px; }
#feed.mode-thumb .media-play { width: 32px; height: 32px; font-size: 13px; }
#feed.mode-thumb .media-count { font-size: 10.5px; padding: 2px 7px; }
/* Detail gallery: horizontal snap-scroll through the item's media. */
.gallery { position: relative; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; }
.gal-frame { flex: 0 0 100%; scroll-snap-align: start; position: relative; height: 100%; }
.gal-frame img, .gal-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.gal-count { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.gal-watch { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255,255,255,.94); color: #1d4ed8; font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.gal-frame .off-strip { z-index: 2; }

/* Snooze sheet (Ray 2026-11-25): bottom sheet above everything,
   including the detail overlay (z 600) and the toast (z 900). */
#snooze-sheet { position: fixed; inset: 0; z-index: 1000; }
#snooze-sheet .snz-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); animation: snz-fade .18s ease; }
.snz-panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(720px, 100%); box-sizing: border-box; background: #fff; border-radius: 16px 16px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 32px rgba(0,0,0,.25); animation: snz-up .22s ease; max-height: 84vh; overflow-y: auto; }
@keyframes snz-up { from { transform: translateX(-50%) translateY(26px); opacity: .4; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes snz-fade { from { opacity: 0; } to { opacity: 1; } }
.snz-grip { width: 40px; height: 4px; border-radius: 999px; background: #d1d5db; margin: 2px auto 10px; }
.snz-title { margin: 0 0 4px; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snz-opt { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 14px; margin-top: 8px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; font-size: 15px; cursor: pointer; color: var(--ink); }
.snz-opt:active { background: #eef2ff; }
.snz-opt[disabled] { opacity: .45; cursor: default; }
.snz-opt-label { font-weight: 700; }
.snz-cur { font-weight: 600; color: var(--acc); font-size: 12.5px; }
.snz-opt-when { color: var(--mut); font-size: 13px; white-space: nowrap; }
.snz-check { display: flex; align-items: center; gap: 9px; margin: 14px 2px 4px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.snz-check input { width: 19px; height: 19px; accent-color: var(--acc); flex: none; }
.snz-cancel { width: 100%; margin-top: 10px; padding: 11px; font-size: 15px; border-radius: 12px; }

/* Spot switcher + Friends placeholder (Ray 2026-11-25): the Spots tab
   became a dropdown beside "Your feed" (Here / All My
   Spots / each favorite / Edit Spots) and a placeholder Friends tab. */
#feedbar .spotmenu-wrap { order: 1; flex: 0 1 auto; min-width: 0; }
.spotmenu-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; max-width: 100%; min-width: 0; box-sizing: border-box; }
.spotmenu-btn .sm-ico { display: inline-flex; flex: none; }
.spotmenu-btn .sm-ico .icon { width: 20px; height: 20px; display: block; }
.spotmenu-btn #spotmenu-label { max-width: 118px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotmenu-btn .caret { flex: none; display: inline-flex; }
#feedbar.compact .spotmenu-btn { font-size: 14px; }
/* #spotmenu anchors RIGHT (Ray 2026-11-25): its button sits at the
   right end of row 1, so the menu opens under it, right-aligned to
   the bar's right content edge — still as a .fb-line child, so
   right:0 is relative to the full-width bar (the v50 off-screen bug
   was right:0 relative to the narrow button wrap). The shared
   .feedmenu max-width: calc(100vw - 24px) + border-box keeps it on
   screen at any width: the right edge lands on the bar's 12px right
   padding line, and the width cap leaves the left edge at least
   12px inside the viewport. #feedmenu stays left:0 (see .feedmenu
   above) — its button is on the left. */
#spotmenu { left: auto; right: 0; }
.feedmenu .fm-div { border-top: 1px solid #e5e7eb; margin: 5px 6px; }
.feedmenu .fm-check { color: var(--acc); display: inline-flex; }
.feedmenu .fm-check .icon { width: 17px; height: 17px; }
.backbtn { background: none; border: 0; font-size: 16px; color: inherit; padding: 6px 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.backbtn .icon { width: 20px; height: 20px; }

/* Completeness gauge (Ray 2026-11-26): a little speedometer for the
   spot the feed is centered on — red and low when a spot is new,
   green and nearly-full once seeded, still creeping up as mailing
   lists deliver. Placement: row 1 of the feed bar, immediately left
   of the location dropdown (see #feedbar #gauge above) — never its
   own line. Arc + robot only, no text label (Ray 2026-11-26): the
   spot name already sits in the dropdown beside it, so name and
   percent live in the tap/hover popup (and in the aria-label). The
   robot bounces and wiggles only while a fetch is in flight AND the
   spot is still seeding; once the gauge is green the robot sits
   still even if a routine refresh runs — it's not working, it's
   waiting. In the compact (scrolled) bar the arc shrinks to mini. */
.gauge { display: flex; align-items: center; padding: 0 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gauge-arc { position: relative; width: 44px; height: 26px; flex: none; }
.gauge-svg { width: 44px; height: 26px; display: block; }
.gauge-track { fill: none; stroke: #e5e7eb; stroke-width: 4.5; stroke-linecap: round; }
.gauge-prog { fill: none; stroke-width: 4.5; stroke-linecap: round; transition: stroke-dashoffset .6s ease, stroke .6s ease; }
.gauge-bot { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); font-size: 17px; line-height: 1; }
.gauge.working .gauge-bot { animation: gauge-dance 1.6s ease-in-out infinite; }
@keyframes gauge-dance { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); } 25% { transform: translateX(-50%) translateY(-2.5px) rotate(-7deg); } 55% { transform: translateX(-50%) translateY(0) rotate(0deg); } 75% { transform: translateX(-50%) translateY(-2px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .gauge.working .gauge-bot { animation: none; } }
#feedbar.compact .gauge-arc, #feedbar.compact .gauge-svg { width: 32px; height: 19px; }
#feedbar.compact .gauge-bot { font-size: 13px; }
/* Completeness popup: bottom sheet on small screens (the snooze
   pattern); on wide screens a card anchored under the gauge. */
#gauge-pop { position: fixed; inset: 0; z-index: 1000; }
#gauge-pop .gp-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); animation: snz-fade .18s ease; }
.gp-panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(720px, 100%); box-sizing: border-box; background: #fff; border-radius: 16px 16px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 32px rgba(0,0,0,.25); animation: snz-up .22s ease; max-height: 84vh; overflow-y: auto; }
@media (min-width: 760px) {
  .gp-panel { bottom: auto; top: calc(var(--hdrh, 49px) + var(--barh, 108px) + 10px); left: auto; right: calc(50% - 348px); transform: none; width: min(460px, calc(100vw - 24px)); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.28); animation: snz-fade .18s ease; max-height: 76vh; }
}
.gp-grip { width: 40px; height: 4px; border-radius: 999px; background: #d1d5db; margin: 2px auto 10px; }
@media (min-width: 760px) { .gp-grip { display: none; } }
.gp-title { margin: 0 0 2px; font-size: 17px; }
.gp-overall { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--acc); }
.gp-row { margin-top: 10px; }
.gp-row-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.gp-row-label { font-weight: 600; }
.gp-row-pct { font-weight: 700; color: var(--mut); font-size: 13px; }
.gp-bar { height: 6px; border-radius: 999px; background: #eef0f3; margin-top: 4px; overflow: hidden; }
.gp-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.gp-row-status { font-size: 12.5px; color: var(--mut); margin-top: 3px; }
.gp-note { font-size: 13.5px; line-height: 1.5; color: #374151; margin: 14px 0 4px; }
.gp-done { width: 100%; margin-top: 10px; padding: 11px; font-size: 15px; border-radius: 12px; }
.friends-ph { text-align: center; padding: 72px 28px; color: #6b7280; }
.friends-ph .friends-ico { display: inline-flex; }
.friends-ph .friends-ico .icon { width: 56px; height: 56px; }
.friends-ph p { font-size: 16px; line-height: 1.45; margin-top: 14px; }
/* Header camera button (Ray 2026-11-26): Snap a sign moved out of
   the feed bar into the global header as an icon-only button beside
   Profile, styled to match the Profile button's chrome exactly, so
   it is reachable from every view. */
#authbox { display: flex; align-items: center; gap: 2px; }
#cambtn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; display: inline-flex; align-items: center; }
#cambtn .cam-btn-ico { display: inline-flex; }
#cambtn .cam-btn-ico .icon { width: 26px; height: 26px; }
/* Profile button + menu (Ray 2026-11-26): the header's old Sign Out
   button became a Profile button opening a dropdown in the feedmenu
   pattern, anchored to the header's right edge where the button
   lives. Holds Profile / Tune / Settings / Sign out — Tune moved
   here off the tab bar. Sign out has no suite glyph, so its row
   keeps an empty icon slot to stay aligned with the others. */
.profilemenu-wrap { position: relative; }
#profilebtn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; display: inline-flex; align-items: center; }
#profilebtn .pm-btn-ico { display: inline-flex; }
#profilebtn .pm-btn-ico .icon { width: 26px; height: 26px; }
#profilemenu { left: auto; right: 0; top: calc(100% + 8px); min-width: 210px; }
.feedmenu .pm-row { justify-content: flex-start; gap: 10px; }
.feedmenu .pm-ico { display: inline-flex; flex: none; width: 20px; }
.feedmenu .pm-ico .icon { width: 20px; height: 20px; }
/* Placeholder screens (Profile / Settings until they grow content):
   the Friends placeholder pattern. */
.ph { text-align: center; padding: 72px 28px; color: #6b7280; }
.ph .ph-ico { display: inline-flex; }
.ph .ph-ico .icon { width: 56px; height: 56px; }
.ph p { font-size: 16px; line-height: 1.45; margin-top: 14px; }

/* Out-of-area state (Ray 2026-11-27): the feed's answer when the
   current location is outside New York City — a friendly wall, with
   the saved favorites offered as working buttons below the copy. */
/* Spot-switch loading state (Ray 2026-11-27): picking a different
   spot blanks the feed behind this centered spinner until the new
   location's feed renders. The working icon bobs via .icon--working
   (which already honors prefers-reduced-motion). */
.feedspin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 72px 0; color: var(--mut); }
.feedspin .icon { width: 40px; height: 40px; }
.feedspin-label { font-size: 14px; }
.ooa { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px 22px; text-align: center; }
.ooa-title { margin: 0 0 10px; font-size: 20px; }
.ooa p { color: var(--mut); font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.ooa-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.ooa-btn.primary { background: var(--acc); color: #fff; border-color: var(--acc); }
