/* SnowWatcher mobile v2 — only loaded by _MobileLayoutV2 (/mobile). */

html:has(body.swm-body) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* overflow-x must be clip, not hidden: hidden turns body into a scroll container and breaks the sticky header. */
body.sw-app-body.swm-body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  overflow-x: clip;
}

body.sw-app-body.swm-body {
  --swm-bg: #0a0d14;
  --swm-card: rgba(22, 29, 45, 0.88);
  --swm-card-solid: #151c2c;
  --swm-glass: rgba(18, 24, 38, 0.78);
  --swm-border: rgba(255, 255, 255, 0.08);
  --swm-border-soft: rgba(255, 255, 255, 0.05);
  --swm-tile: rgba(255, 255, 255, 0.03);
  --swm-ink: #f1f5f9;
  --swm-ink-soft: #cbd5e1;
  --swm-muted: #94a3b8;
  --swm-cyan: #22d3ee;
  --swm-sky: #38bdf8;
  --swm-accent: #0ea5e9;
  --swm-amber: #f59e0b;
  --swm-emerald: #10b981;
  --swm-rose: #f43f5e;
  --swm-radius: 1rem;
  --swm-tabbar-h: 4.25rem;
  --swm-safe-b: env(safe-area-inset-bottom, 0px);
  --swm-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --swm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  margin: 0;
  font-family: var(--swm-font);
  color: var(--swm-ink);
  -webkit-font-smoothing: antialiased;
  background-color: #0b0e17;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(circle at 100% 40%, rgba(56, 189, 248, 0.05), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 14px);
  background-attachment: fixed;
}

body.swm-body.swm-sheet-open {
  overflow: hidden;
}

.swm-body ::selection {
  background: #06b6d4;
  color: #fff;
}

.swm-app {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--swm-tabbar-h) + var(--swm-safe-b) + 1.25rem);
}

.swm-muted {
  color: var(--swm-muted);
}

.swm-empty {
  margin: 0;
  padding: 0.75rem 0.25rem;
  font-size: 0.8rem;
  color: var(--swm-muted);
}

/* ---------- Header ---------- */

.swm-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 1rem 0.65rem;
  background: var(--swm-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--swm-border-soft);
}

.swm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.swm-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.swm-brand-logo {
  flex: 0 0 auto;
  display: block;
  width: 44px;
  height: auto;
}

.swm-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swm-brand-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.swm-brand-tag {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  color: var(--swm-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.swm-brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--swm-muted);
}

.swm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swm-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--swm-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--swm-ink-soft);
  font-size: 1.05rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.swm-icon-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.swm-icon-btn-sm {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
}

.swm-ping {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.swm-ping::before,
.swm-ping > span {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--swm-cyan);
}

.swm-ping::before {
  opacity: 0.75;
  animation: swm-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.swm-ping.is-static {
  position: relative;
  top: auto;
  right: auto;
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
}

@keyframes swm-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.9);
  }
}

.swm-avatar {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  padding: 1px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #0284c7);
  text-decoration: none;
}

.swm-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  color: #67e8f9;
}

/* Search */

.swm-search {
  position: relative;
  margin-top: 0.75rem;
}

.swm-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--swm-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.swm-search-input {
  width: 100%;
  padding: 0.55rem 5.25rem 0.55rem 2.4rem;
  font-size: 0.9rem;
  color: var(--swm-ink);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.swm-search-input::placeholder {
  color: var(--swm-muted);
}

.swm-search-input:focus {
  border-color: var(--swm-cyan);
  box-shadow: 0 0 0 1px var(--swm-cyan);
}

.swm-search-input::-webkit-search-cancel-button {
  display: none;
}

.swm-search-nearby {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.4rem;
}

.swm-search-nearby:active {
  background: rgba(255, 255, 255, 0.15);
}

.swm-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 55vh;
  overflow-y: auto;
  padding: 0.3rem;
  background: rgba(15, 20, 32, 0.98);
  border: 1px solid var(--swm-border);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.swm-search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--swm-ink);
  text-align: left;
}

.swm-search-hit:active,
.swm-search-hit:focus-visible {
  background: rgba(56, 189, 248, 0.12);
}

.swm-search-hit.is-empty {
  color: var(--swm-muted);
  font-size: 0.8rem;
}

.swm-search-hit-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.swm-search-hit-meta {
  font-size: 0.72rem;
  color: var(--swm-muted);
}

/* Pills */

.swm-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-bottom: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.swm-pills::-webkit-scrollbar,
.swm-scroller::-webkit-scrollbar,
.swm-tabs::-webkit-scrollbar {
  display: none;
}

.swm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.28rem 0.75rem;
  font-size: 0.75rem;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.swm-pill.is-active {
  font-weight: 600;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.32);
}

.swm-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--swm-muted);
}

.swm-pill-powder .swm-pill-dot,
.swm-pill.is-active .swm-pill-dot {
  background: var(--swm-cyan);
}

/* ---------- Main + cards ---------- */

.swm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem 1rem 0;
}

.swm-main > section {
  scroll-margin-top: 10.5rem;
}

.swm-card {
  position: relative;
  border-radius: var(--swm-radius);
  background: var(--swm-card);
  border: 1px solid var(--swm-border);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4);
}

.swm-pad {
  padding: 1rem;
}

.swm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.swm-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.swm-card-sub {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--swm-muted);
}

.swm-kicker {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--swm-muted);
}

.swm-kicker.is-accent {
  color: var(--swm-cyan);
  font-weight: 700;
}

.swm-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.swm-dot-live {
  background: #34d399;
}

.swm-dot-rec {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--swm-rose);
  animation: swm-blink 1.6s ease-in-out infinite;
}

@keyframes swm-blink {
  50% {
    opacity: 0.35;
  }
}

.swm-link,
.swm-link-muted {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--swm-cyan);
}

.swm-link-muted {
  font-weight: 500;
  color: var(--swm-muted);
}

.swm-link i {
  font-size: 0.7rem;
}

/* ---------- Map card ---------- */

.swm-map-card {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.swm-map-stage {
  position: relative;
  height: 16rem;
  background: #0d1624;
  transition: height 0.3s ease;
}

.swm-map-card.is-tall .swm-map-stage {
  height: 68dvh;
}

.swm-map {
  position: absolute;
  inset: 0;
}

.swm-map-tools {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.swm-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--swm-ink-soft);
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
}

.swm-map-expand {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.swm-map-expand:active {
  transform: scale(0.95);
}

.swm-map-locate {
  font-size: 0.9rem;
}

.swm-map-locate[data-state='active'] {
  color: var(--swm-cyan);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
}

.swm-map-locate[data-state='background'] {
  color: var(--swm-cyan);
}

.swm-map-locate[data-state='waiting'] i {
  animation: swm-locate-pulse 1s ease-in-out infinite;
}

.swm-map-locate[data-state='error'] {
  color: #fb7185;
}

@keyframes swm-locate-pulse {
  50% {
    opacity: 0.35;
  }
}

.swm-map .swm-geolocate-native {
  display: none !important;
}

.swm-map .maplibregl-ctrl-group {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  box-shadow: none;
  overflow: hidden;
}

.swm-map .maplibregl-ctrl-group button {
  width: 1.9rem;
  height: 1.9rem;
}

.swm-map .maplibregl-ctrl-group button + button {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.swm-map .maplibregl-ctrl-group .maplibregl-ctrl-icon {
  filter: invert(1) brightness(1.4);
}

.swm-map .maplibregl-ctrl-scale {
  background: rgba(0, 0, 0, 0.6);
  color: var(--swm-ink-soft);
  border-color: rgba(203, 213, 225, 0.6);
  font-family: var(--swm-mono);
  font-size: 0.58rem;
}

.swm-map .maplibregl-ctrl-attrib {
  background: rgba(0, 0, 0, 0.45);
  color: var(--swm-muted);
  font-size: 0.55rem;
}

.swm-map .maplibregl-ctrl-attrib a {
  color: var(--swm-ink-soft);
}

.swm-map-stage .sw-price-legend {
  position: absolute;
  left: 0.65rem;
  bottom: 2rem;
  z-index: 2;
}

/* ---------- Resort detail ---------- */

.swm-resort {
  padding: 0.9rem;
  background: linear-gradient(180deg, #131b2e, #0f1422);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.swm-resort-empty-title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.swm-resort-empty .swm-muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.swm-resort-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.swm-resort-head-copy {
  min-width: 0;
}

.swm-resort-kickers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.swm-badge {
  padding: 0.1rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 0.25rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.swm-badge[data-tone='rose'] {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.3);
}

.swm-badge[data-tone='amber'] {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.swm-badge[data-tone='muted'] {
  color: var(--swm-muted);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.swm-resort-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.swm-resort-name small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--swm-muted);
}

.swm-resort-head-side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.swm-status {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.swm-status[data-status='open'] {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.swm-status[data-status='limited'] {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}

.swm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.swm-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  text-align: center;
  background: var(--swm-tile);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.75rem;
}

.swm-metric-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--swm-muted);
}

.swm-metric-value {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.swm-metric-value.is-accent {
  font-weight: 900;
  color: var(--swm-cyan);
}

.swm-metric-value .sw-wx-icon {
  font-size: 0.95rem;
}

.swm-metric-sub {
  min-height: 0.85rem;
  font-size: 0.64rem;
  color: var(--swm-muted);
  line-height: 1.2;
}

#swm-metric-snowsure .swm-metric-sub {
  color: #34d399;
  font-weight: 500;
}

.swm-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--swm-border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.swm-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.swm-tab em {
  font-style: normal;
  font-size: 0.62rem;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background: #1e293b;
  color: var(--swm-muted);
}

.swm-tab.is-active {
  font-weight: 600;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.3);
}

.swm-panes {
  margin-top: 0.75rem;
}

.swm-pane {
  display: none;
}

.swm-pane.is-active {
  display: block;
}

.swm-overview {
  position: relative;
}

/* The card header + metric tiles already show name, status, weather, price and SnowSure. */
.swm-overview .sw-bp-hero {
  display: none;
}

.swm-overview.is-clamped {
  max-height: 24rem;
  overflow: hidden;
}

.swm-overview.is-clamped::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(15, 20, 34, 0), #0f1422 90%);
  pointer-events: none;
}

.swm-overview-more {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--swm-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 0.65rem;
}

.swm-resort .sw-mvp2-card-resort,
.swm-resort.sw-mvp2-card-resort {
  color: var(--swm-ink-soft);
}

/* ---------- Sections (powder alerts) ---------- */

.swm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.swm-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.swm-section-title-sm {
  font-size: 0.72rem;
  color: var(--swm-ink-soft);
}

.swm-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.swm-alert {
  flex: 0 0 15rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  text-align: left;
  color: inherit;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), var(--swm-card-solid));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4);
}

.swm-alert[data-tone='epic'] {
  border-color: rgba(6, 182, 212, 0.35);
}

.swm-alert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.swm-alert-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.swm-alert-id > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swm-alert-id strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swm-alert-id em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--swm-muted);
}

.swm-alert[data-tone='epic'] .swm-alert-id em {
  color: var(--swm-cyan);
}

.swm-alert[data-tone='watch'] .swm-alert-id em {
  color: #fbbf24;
}

.swm-alert-cm {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.swm-alert[data-tone='epic'] .swm-alert-cm {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
}

.swm-alert[data-tone='watch'] .swm-alert-cm {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.swm-alert-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--swm-border-soft);
  font-size: 0.68rem;
  color: var(--swm-muted);
}

.swm-alert-foot b {
  font-weight: 500;
  color: #fff;
}

/* ---------- Season archive ---------- */

.swm-seg {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.15rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.5rem;
}

.swm-seg-btn {
  padding: 0.15rem 0.5rem;
  font-size: 0.62rem;
  color: var(--swm-muted);
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
}

.swm-seg-btn.is-active {
  font-weight: 600;
  color: #fff;
  background: rgba(8, 145, 178, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.swm-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.swm-stat-grid > .swm-empty {
  grid-column: 1 / -1;
}

.swm-stat {
  padding: 0.75rem;
  background: var(--swm-tile);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.75rem;
}

.swm-stat-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--swm-muted);
}

.swm-stat-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.swm-stat-value small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--swm-cyan);
}

.swm-stat-value.is-amber {
  color: #fbbf24;
}

.swm-stat-value.is-amber small {
  color: var(--swm-ink-soft);
}

.swm-stat-sub {
  display: block;
  margin-top: 0.25rem;
  min-height: 0.8rem;
  font-size: 0.62rem;
  color: var(--swm-muted);
}

.swm-bars-wrap {
  margin-top: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--swm-border-soft);
}

.swm-bars-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  color: var(--swm-muted);
}

.swm-bars-head span:first-child {
  font-weight: 500;
  color: var(--swm-ink-soft);
}

.swm-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 4.5rem;
  padding: 0.5rem 0.25rem 0;
}

.swm-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}

.swm-bar-fill {
  display: block;
  width: 100%;
  border-radius: 0.25rem 0.25rem 0 0;
  background: rgba(6, 182, 212, 0.45);
}

.swm-bar.is-peak .swm-bar-fill {
  background: var(--swm-cyan);
  box-shadow: 0 1px 6px rgba(34, 211, 238, 0.45);
}

.swm-bar-label {
  font-family: var(--swm-mono);
  font-size: 0.56rem;
  color: var(--swm-muted);
}

.swm-bar.is-peak .swm-bar-label {
  font-weight: 700;
  color: #67e8f9;
}

/* ---------- Resorts catalog ---------- */

.swm-catalog-actions {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.swm-chip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.5rem;
}

.swm-chip-btn-amber {
  font-weight: 500;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
}

.swm-chip-btn .sw-filters-badge {
  position: static;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  font-size: 0.6rem;
  line-height: 1.05rem;
  border-radius: 999px;
  background: var(--swm-accent);
  color: #fff;
}

.swm-chip-btn-amber .sw-filters-badge {
  background: #f59e0b;
  color: #111827;
}

.swm-region-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.35rem 0 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 0.55rem;
}

.swm-region-note[hidden] {
  display: none;
}

.swm-table-head,
.swm-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) 2fr 3fr;
  align-items: center;
}

.swm-table-head {
  padding: 0.35rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--swm-muted);
  border-bottom: 1px solid var(--swm-border-soft);
}

.swm-table-head .is-center {
  text-align: center;
}

.swm-table-head .is-right {
  text-align: right;
}

.swm-catalog-list {
  display: flex;
  flex-direction: column;
}

.swm-row {
  padding: 0.6rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.swm-row + .swm-row {
  border-top-color: var(--swm-border-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.swm-row:active {
  background: rgba(255, 255, 255, 0.03);
}

.swm-row.is-selected {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--swm-border-soft);
  border-radius: 0.55rem;
}

.swm-row-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.swm-row .sw-fav-star {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.95rem;
}

.swm-row .sw-fav-star.is-on {
  color: #fbbf24;
}

.swm-resort-fav {
  display: contents;
}

.swm-resort-fav .sw-fav-star {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border);
  border-radius: 0.6rem;
}

.swm-resort-fav .sw-fav-star.is-on {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}

.swm-row-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swm-row-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.swm-row-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swm-row-meta {
  font-size: 0.64rem;
  color: var(--swm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swm-row.is-selected .swm-row-meta {
  color: #67e8f9;
}

.swm-row-wx {
  display: flex;
  justify-content: center;
}

.swm-row-wx .sw-wx-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.75rem;
}

.swm-row-wx .sw-wx-sun {
  background: rgba(251, 191, 36, 0.15);
}

.swm-row-score {
  justify-self: end;
  min-width: 2rem;
  padding: 0.12rem 0.5rem;
  font-family: var(--swm-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 0.4rem;
}

.swm-row-score.is-empty {
  color: var(--swm-muted);
}

.swm-row.is-selected .swm-row-score {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.3);
}

.swm-flag-emoji {
  font-size: 0.85rem;
  line-height: 1;
}

.swm-body .sw-country-flag-img,
.swm-body img.sw-flag {
  border-radius: 2px;
}

.swm-btn-block {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.75rem;
}

.swm-btn-block:active {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Webcam ---------- */

.swm-webcam-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(45deg, #0f172a, #082f49, #1e3a8a);
}

.swm-webcam-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.swm-webcam-frame > .swm-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.swm-live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 0.3rem;
  pointer-events: none;
}

.swm-webcam-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.swm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--swm-ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.6rem;
}

.swm-btn-primary {
  font-weight: 700;
  color: #fff;
  background: #0891b2;
  border-color: transparent;
}

.swm-btn-primary:active,
.swm-btn-primary:hover {
  color: #fff;
  background: #06b6d4;
}

.swm-btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Co-pilot ---------- */

.swm-copilot {
  overflow: hidden;
  border-color: rgba(6, 182, 212, 0.2);
  scroll-margin-top: 10.5rem;
}

.swm-copilot-glow {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  filter: blur(24px);
  pointer-events: none;
}

.swm-copilot-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.swm-copilot-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  color: #67e8f9;
  background: #0f172a;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.swm-copilot-hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--swm-ink-soft);
}

.swm-copilot-answer {
  max-height: 16rem;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 0.75rem;
}

.swm-copilot-answer.is-thinking {
  color: var(--swm-muted);
  font-style: italic;
}

.swm-copilot-form {
  position: relative;
  display: flex;
  align-items: center;
}

.swm-copilot-form input {
  width: 100%;
  padding: 0.65rem 4.5rem 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  outline: none;
}

.swm-copilot-form input::placeholder {
  color: #64748b;
}

.swm-copilot-form input:focus {
  border-color: var(--swm-cyan);
  box-shadow: 0 0 0 1px var(--swm-cyan);
}

.swm-copilot-form button {
  position: absolute;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #020617;
  background: #06b6d4;
  border: 0;
  border-radius: 0.5rem;
}

.swm-copilot-form button:disabled {
  opacity: 0.6;
}

.swm-copilot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

/* ---------- Footer ---------- */

.swm-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.5rem 0 0.25rem;
  font-size: 0.7rem;
}

.swm-footer a,
.swm-footer button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--swm-muted);
  text-decoration: none;
}

/* ---------- Bottom tab bar ---------- */

.swm-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  max-width: 28rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: calc(var(--swm-tabbar-h) + var(--swm-safe-b));
  padding: 0 0.25rem var(--swm-safe-b);
  background: rgba(18, 24, 38, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.swm-tabbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--swm-muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.swm-tabbar-btn > i,
.swm-tabbar-icon > i {
  font-size: 1.2rem;
  line-height: 1;
}

.swm-tabbar-btn.is-active {
  color: var(--swm-cyan);
  font-weight: 700;
}

.swm-tabbar-icon {
  position: relative;
  display: inline-flex;
}

.swm-tabbar-dot {
  position: absolute;
  top: -0.2rem;
  right: -0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--swm-cyan);
}

.swm-tabbar-center {
  margin-top: -0.9rem;
  color: #67e8f9;
  font-weight: 700;
}

.swm-tabbar-fab {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  color: #67e8f9;
  font-size: 1.2rem;
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(45deg, #06b6d4, #38bdf8) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 24px -6px rgba(6, 182, 212, 0.4);
}

/* ---------- Bottom sheets (tools + shared filters / favourites flyouts) ---------- */

.swm-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(2, 6, 23, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.swm-body .swm-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  z-index: 1045;
  width: auto;
  max-width: 28rem;
  max-height: 82dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem calc(1rem + var(--swm-safe-b));
  color: var(--swm-ink);
  /* !important: snowwatcher.css forces a white glass panel on .sw-filters-flyout. */
  background: #111827 !important;
  border: 1px solid var(--swm-border) !important;
  border-bottom: 0 !important;
  border-radius: 1.25rem 1.25rem 0 0 !important;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.swm-sheet-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.swm-sheet-title-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.95rem;
  color: var(--swm-cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 0.65rem;
}

.swm-sheet-title-icon.is-amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.swm-body .swm-sheet-panel[hidden] {
  display: none;
}

.swm-sheet-grip {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.swm-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.swm-sheet-head strong {
  font-size: 0.95rem;
  color: #fff;
}

.swm-sheet-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swm-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.swm-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.5rem;
  padding: 0.6rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--swm-ink-soft);
  text-decoration: none;
  background: var(--swm-tile);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.85rem;
}

.swm-tool i {
  font-size: 1.15rem;
  color: var(--swm-sky);
}

.swm-tool:active {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.swm-tools-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  border-top: 1px solid var(--swm-border-soft);
}

.swm-tools-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.25rem;
  font-size: 0.82rem;
  color: var(--swm-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--swm-border-soft);
}

.swm-tools-links a i {
  color: var(--swm-muted);
}

/* Shared filter + favourites flyout internals — dark treatment */

.swm-body .sw-filters-flyout .sw-filters-flyout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
}

.swm-body .sw-filters-flyout .sw-filters-flyout-header strong {
  color: #fff;
  font-size: 0.95rem;
}

.swm-body .sw-filters-flyout-sub,
.swm-body .sw-filter-hint,
.swm-body .sw-range-value {
  color: var(--swm-muted);
}

.swm-body .sw-filters-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0;
}

.swm-body .sw-filter-label {
  color: var(--swm-ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.swm-body .sw-filter-select {
  color: #fff;
  background-color: #0b101c;
  border: 1px solid #1e2638;
}

.swm-body .sw-filter-chip {
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
}

.swm-body .sw-filter-chip.is-active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.32);
}

.swm-body .sw-filter-range {
  accent-color: var(--swm-cyan);
}

.swm-body .sw-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--swm-cyan);
}

.swm-body .sw-filters-flyout .sw-icon-btn {
  color: var(--swm-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--swm-border-soft);
}

.swm-body .sw-favourites-body {
  padding: 0;
  overflow: visible;
}

.swm-body .sw-favourites-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.45rem;
  padding: 0.6rem 0.55rem 0.6rem 0.8rem;
  background: var(--swm-tile);
  border: 1px solid var(--swm-border-soft);
  border-radius: 0.85rem;
}

.swm-body .sw-favourites-item:active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.swm-body .sw-favourites-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'name score'
    'meta score';
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  color: var(--swm-ink);
  background: none;
}

.swm-body .sw-favourites-name {
  grid-area: name;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.swm-body .sw-favourites-name .sw-flag-img {
  margin-right: 0.2rem;
  border-radius: 2px;
  vertical-align: -1px;
}

.swm-body .sw-favourites-meta {
  grid-area: meta;
  font-size: 0.66rem;
  color: var(--swm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swm-body .sw-favourites-score {
  grid-area: score;
  min-width: 2rem;
  padding: 0.12rem 0.5rem;
  font-family: var(--swm-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 0.4rem;
}

.swm-body .sw-favourites-flyout .sw-fav-star {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.6rem;
}

.swm-body .sw-favourites-empty {
  gap: 0.4rem;
  padding: 1.75rem 1rem;
  color: var(--swm-muted);
  background: var(--swm-tile);
  border: 1px dashed var(--swm-border);
  border-radius: 0.85rem;
}

.swm-body .sw-favourites-empty > i {
  font-size: 1.6rem;
  color: #fbbf24;
}

.swm-body .sw-favourites-empty p {
  color: #fff;
}

.swm-body .sw-favourites-empty-hint,
.swm-body .sw-favourites-missing {
  color: var(--swm-muted) !important;
}

/* Cookie banner sits above the tab bar */
.swm-body .sw-cookie-banner {
  bottom: calc(var(--swm-tabbar-h) + var(--swm-safe-b));
}

@media (prefers-reduced-motion: reduce) {
  .swm-ping::before,
  .swm-dot-rec {
    animation: none;
  }
  .swm-map-stage {
    transition: none;
  }
}
