:root {
  /* Day Harbor — product shell */
  --bg: #eef3f1;
  --panel: #ffffff;
  --ink: #102a32;
  --muted: #5a727a;
  --line: rgba(16, 42, 50, 0.12);
  --accent: #2a9d8f;
  --accent-2: #c45c26;
  --water: #0b3d4a;
  --danger: #c45c26;
  --shadow: 0 16px 40px rgba(16, 42, 50, 0.12);
  --font-display: "Manrope", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(42, 157, 143, 0.16), transparent 55%),
    linear-gradient(165deg, #e8efec, #eef3f1 40%, #e3ece9);
}

.shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top"
    "panel map";
}
.shell--map-first {
  grid-template-columns: 1fr;
  grid-template-areas:
    "top"
    "map";
}
.shell--map-first .panel { display: none !important; }

.top {
  grid-area: top;
  position: relative;
  z-index: 2000; /* above Yandex map panes so header menus are visible */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 220px; }
.brand-mark {
  width: 2.2rem; height: 2.2rem; border-radius: 0.7rem;
  background:
    linear-gradient(145deg, rgba(25,183,199,0.95), rgba(25,183,199,0.2)),
    linear-gradient(320deg, rgba(240,180,41,0.9), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  color: var(--water);
}
.brand-sub { margin: 0; color: var(--muted); font-size: 0.78rem; }

.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: 500 0.85rem var(--font-body);
  cursor: pointer;
}
.chip.active {
  background: rgba(25, 183, 199, 0.18);
  border-color: rgba(25, 183, 199, 0.55);
  color: #b9f3f8;
}

.header-weather {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 340px;
}
.header-weather b { color: var(--ink); font-weight: 600; }
.header-weather .wx-attr { font-size: 0.7rem; opacity: 0.85; }
.wind-toggle {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.wind-toggle[aria-pressed="true"] {
  background: rgba(42, 157, 143, 0.16);
  border-color: var(--accent);
  color: var(--water);
}
.wind-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status-pill[hidden] { display: none !important; }
.status-pill {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}
.status-pill.ok { color: #9be7c8; border-color: rgba(155,231,200,0.35); }
.status-pill.bad { color: var(--danger); border-color: rgba(255,122,89,0.4); }

.panel {
  grid-area: panel;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem 1rem 2rem;
}
.panel-block + .panel-block { margin-top: 1.4rem; }
.panel h1, .panel h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.panel h1 { font-size: 1.55rem; }
.panel h2 { font-size: 1.05rem; }
.lede { margin: 0 0 1rem; color: var(--muted); line-height: 1.45; font-size: 0.92rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255,255,255,0.03);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.75rem; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
#kindFilter {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.25rem 0.4rem;
}

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.queue li {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 0.75rem;
  background: var(--bg);
}
.queue .name {
  font-weight: 600;
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}
.queue .meta { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.tag {
  display: inline-block;
  margin-top: 0.4rem;
  margin-right: 0.25rem;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--accent-2);
}
.tag-ok {
  color: #9be7c8;
  border-color: rgba(155, 231, 200, 0.35);
}
.tag-warn {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.45);
}

.map-wrap {
  grid-area: map;
  position: relative;
  z-index: 1;
  min-height: 320px;
}
#map { height: 100%; width: 100%; background: #0b1820; }

.empty-state {
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translateX(-50%);
  z-index: 500;
  width: min(420px, calc(100% - 2rem));
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.empty-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.empty-text { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.empty-text code {
  font-size: 0.8em;
  color: var(--water);
}
.empty-text a { color: var(--accent); }
.key-hint { top: auto; bottom: 1.2rem; border-color: rgba(240, 180, 41, 0.45); }
.map-error { top: 50%; transform: translate(-50%, -50%); }
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.empty-reset--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.leaflet-spot-pin {
  background: transparent !important;
  border: none !important;
}
.leaflet-spot-pin .spot-pin {
  transform: translate(-50%, -100%);
}
.leaflet-cluster-pin {
  background: transparent !important;
  border: none !important;
}
.leaflet-cluster-pin .spot-cluster {
  transform: translate(-50%, -50%);
}
.provider-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.85rem;
}
.toggle input { accent-color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.search { flex: 1; min-width: 160px; max-width: 420px; }
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  font: 500 0.9rem var(--font-body);
}
.search input::placeholder { color: var(--muted); }

.omnibox {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 560px;
}
.omnibox-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.omnibox-field.is-open,
.omnibox-field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}
.omnibox-chips {
  display: contents;
}
.omnibox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 12rem;
  padding: 0.22rem 0.35rem 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--disc-color, var(--accent)) 40%, var(--line));
  background: color-mix(in srgb, var(--disc-color, var(--accent)) 14%, #fff);
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.omnibox-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.omnibox-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  opacity: 0.7;
}
.omnibox-chip button:hover { opacity: 1; }
.omnibox-input-wrap {
  flex: 1;
  min-width: 8rem;
}
.omnibox-input-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.25rem;
  font: 500 0.9rem var(--font-body);
}
.omnibox-input-wrap input::placeholder { color: var(--muted); }
.omnibox-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
}
.omnibox-clear:hover { color: var(--ink); }
.omnibox-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1200;
  max-height: min(58vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}
.omnibox-section {
  margin: 0.2rem 0 0.15rem;
  padding: 0.35rem 0.55rem 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.omnibox-item {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font: 500 0.88rem var(--font-body);
}
.omnibox-item:hover,
.omnibox-item.is-active {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}
.omnibox-item .glyph {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--disc-color, var(--accent)) 18%, #fff);
  color: var(--disc-color, var(--water));
}
.omnibox-item .glyph svg { width: 1.05rem; height: 1.05rem; }
.omnibox-item .name { min-width: 0; }
.omnibox-item .name b {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.omnibox-item .name small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.omnibox-item .count {
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.omnibox-empty {
  margin: 0;
  padding: 0.75rem 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.empty-reset {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--water);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: 600 0.82rem var(--font-body);
  cursor: pointer;
}
.empty-reset:hover { border-color: var(--accent); }
.more-menu {
  position: relative;
  z-index: 2;
}
.more-menu > summary {
  list-style: none;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 2100;
  width: min(320px, calc(100vw - 1.5rem));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.more-menu-panel .panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
}
.more-menu-panel .queue { max-height: 240px; overflow: auto; }
.more-menu-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
/* Minimal trigger; full owner-admin styles live in modules/owner-admin.css */
.owner-open {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--water);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  font: 700 0.8rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.owner-open:hover {
  border-color: var(--accent);
  background: rgba(42, 157, 143, 0.08);
}

.discipline-block { margin: 0 0 1.1rem; }
.discipline-list {
  display: grid;
  gap: 0.4rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 0.15rem;
}
.discipline-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  cursor: pointer;
  font: 500 0.86rem var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.discipline-row:hover { background: var(--bg); }
.discipline-row.active {
  background: rgba(42, 157, 143, 0.14);
  border-color: rgba(42, 157, 143, 0.45);
}
.discipline-row.is-all.active {
  background: rgba(11, 61, 74, 0.08);
  border-color: rgba(11, 61, 74, 0.18);
}
.discipline-row .glyph {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--disc-color, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.discipline-row .glyph svg { width: 1.2rem; height: 1.2rem; }
.discipline-row .glyph.all {
  background: linear-gradient(145deg, #19b7c7, #1d4ed8);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
}
.discipline-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discipline-row .count {
  min-width: 1.6rem;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.discipline-row.active .count { color: var(--water); }
.hint { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.75rem; }

.weather-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.8rem;
  color: var(--muted);
}
.weather-strip b { color: var(--ink); font-weight: 600; }
.weather-strip .weather-layer { color: var(--accent-2); }
.weather-note { margin: -0.55rem 0 1rem; }
.manage-hint { margin-top: 0.75rem !important; }
.card-head-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.card-address { margin: 0 !important; }
.card-route {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--water);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 61, 74, 0.25);
}
.card-route:hover { border-bottom-color: var(--accent); color: var(--accent); }
.card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.15rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #229ED9;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.social-icon:hover {
  border-color: #229ED9;
  background: rgba(34, 158, 217, 0.08);
  transform: translateY(-1px);
}
.social-icon--telegram { color: #229ED9; }

.insight-panel {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 1.1rem;
}
.insight-stats {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
}
.insight-count {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}
.insight-count b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--water);
}
.insight-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.insight-selected {
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(42, 157, 143, 0.08);
}
.insight-selected h2 { margin-bottom: 0.25rem; }
.insight-selected-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--water);
}
.insight-legend h2,
.insight-facts h2 {
  margin-bottom: 0.45rem;
}
.legend-list,
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.legend-list li,
.facts-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}
.facts-list li {
  grid-template-columns: 0.55rem 1fr;
}
.facts-list li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
.legend-dot {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.legend-dot.verified { background: var(--accent); }
.legend-dot.draft {
  background: #f0b429;
  border-radius: 0.2rem;
}
.legend-dot.cluster {
  background: var(--water);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(11, 61, 74, 0.18);
}
.insight-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: grid;
  gap: 0.3rem;
}
.mod-drawer {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.mod-drawer summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.spot-pin {
  position: relative;
  width: 36px;
  height: 44px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  cursor: pointer;
}
.spot-pin .pin-body {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  transform: rotate(-45deg);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.spot-pin .pin-face {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--disc-color, #64748b);
}
.spot-pin .pin-face svg { width: 14px; height: 14px; }
.spot-pin.is-active .pin-body {
  box-shadow: 0 0 0 2px var(--disc-color, var(--accent)), inset 0 0 0 1px rgba(15,23,42,0.08);
}
.spot-pin.is-hover { filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45)); transform: translate(-50%, -100%) scale(1.06); }

/* CIAN-like count badge for co-located clubs */
.spot-cluster {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #3b82f6;
  color: #0f172a;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}
.spot-cluster-count { line-height: 1; }
.spot-cluster.is-hover,
.spot-cluster.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.spot-card {
  position: absolute;
  right: 1rem;
  top: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 520;
  width: min(380px, calc(100% - 2rem));
  max-height: none;
  overflow: auto;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.spot-card h3 {
  margin: 0 0 0.35rem;
  padding-right: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--water);
}
.spot-card .meta { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.spot-card .notes {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
}
.spot-card .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.score-block {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.score-label {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.score-value {
  margin: 0.15rem 0 0.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.checklist-wrap { margin-top: 0.7rem; }
.checklist {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.4rem;
  align-items: start;
  font-size: 0.8rem;
  color: var(--ink);
}
.checklist .ck {
  font-weight: 700;
  color: var(--muted);
}
.checklist li[data-state="yes"] .ck { color: var(--accent); }
.checklist li[data-state="no"] .ck { color: var(--danger); }
.checklist li[data-state="unsupported"] .ck { color: var(--muted); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  align-items: center;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.cta-primary:hover { filter: brightness(1.05); }
.cta-secondary {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  background: var(--bg);
}
.cta-secondary:hover { border-color: var(--accent); }
body.embed-mode .embed-shell {
  min-height: 100vh;
}
body.host-fvls {
  --accent: #2f6fed;
}
.spot-card .chip-tag {
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--disc-color, var(--accent)) 45%, transparent);
  color: var(--water);
  background: color-mix(in srgb, var(--disc-color, var(--accent)) 14%, #fff);
}
.spot-card .close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.cluster-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  max-height: 220px;
  overflow: auto;
}
.cluster-item {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0.7rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font: 500 0.82rem var(--font-body);
}
.cluster-item:hover {
  border-color: var(--accent);
  background: #fff;
}
.cluster-item-name { font-weight: 600; }
.cluster-item-meta { color: var(--muted); font-size: 0.72rem; }

@media (max-width: 860px) {
  .search { max-width: none; }
  .omnibox { max-width: none; }
  .discipline-row { border-radius: 0.85rem; }
  .header-weather { display: none; }
  .brand-sub { display: none; }
  .brand { min-width: auto; }
}

/* Yandex Maps root fills the panel */
#map > ymaps { width: 100% !important; height: 100% !important; }

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(48vh, 1fr);
    grid-template-areas:
      "top"
      "panel"
      "map";
  }
  .shell--map-first {
    grid-template-rows: auto minmax(56vh, 1fr);
    grid-template-areas:
      "top"
      "map";
  }
  .panel { max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .spot-card {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(62vh, 560px);
    border-radius: 18px 18px 0 0;
  }
  .insight-panel { gap: 0.7rem; }
  .insight-facts,
  .insight-steps { display: none; }
}
