﻿* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, system-ui, sans-serif;
  background: #eef3f4;
  color: #1a1a1a;
}
.app-body { padding-bottom: 72px; }
.app-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #087f8c;
  color: #fff;
}
.app-header.compact { padding: 8px 14px; }
.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-logo {
  display: none;
  width: 132px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}
.brand-text { display: inline; }
.brand-logo-login {
  display: block;
  margin: 0 auto;
  width: min(280px, 82vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  background: transparent;
}
.top-nav { display: flex; gap: 8px; }
a.nav-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0.85;
}
a.nav-link.is-active { background: rgba(255,255,255,.2); opacity: 1; }
.header-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.header-right span { opacity: 0.9; }
.header-right button {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
}
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: linear-gradient(#0b8f9c, #066c76);
}
.auth-card {
  width: min(420px, 92vw);
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-card h1 { margin: 0; color: #087f8c; font-size: 22px; text-align: center; }
.auth-card p { margin: 0; color: #546e7a; font-size: 14px; text-align: center; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; }
.auth-card input, .search-pill input, .search-pill select, .map-search input {
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 16px;
}
.auth-card button, .search-pill button, .map-search button, .sync-bar button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #087f8c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.error { color: #c62828; font-size: 14px; }
.feed-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 24px; }
.search-pill {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  margin-bottom: 12px;
}
.search-pill input { flex: 1; min-width: 160px; }
.note { color: #546e7a; font-size: 13px; }
.source-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.source-card h2 { margin: 6px 0 4px; font-size: 17px; color: #087f8c; }
.source-card p { margin: 8px 0 0; line-height: 1.45; white-space: pre-wrap; }
.card-top { display: flex; gap: 8px; align-items: center; }
.ma { font-weight: 800; font-size: 13px; }
.badge {
  background: #e0f4f6;
  color: #066c76;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.type, .stats, .meta { font-size: 13px; color: #546e7a; }
.stats { font-weight: 700; color: #103d43; margin-top: 4px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-block;
  border: 1px solid #1593a0;
  color: #087f8b;
  background: #fff;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sync-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-users { margin: 0 0 20px; padding: 14px; border: 1px solid #d5dee3; border-radius: 12px; background: #fff; }
.admin-users h2 { margin: 0 0 8px; font-size: 16px; }
.admin-user-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.admin-user-form input, .admin-user-form select { flex: 1 1 140px; padding: 8px 10px; border: 1px solid #c5d0d6; border-radius: 8px; }
.admin-user-form button { padding: 8px 12px; border: 0; border-radius: 8px; background: #087f8c; color: #fff; font-weight: 700; cursor: pointer; }
.admin-user-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #eef2f4; font-size: 13px; }
.admin-user-row button { padding: 6px 10px; border: 1px solid #087f8c; background: #fff; color: #087f8c; border-radius: 8px; cursor: pointer; }
.ghost-btn {
  border: 1px solid #087f8c;
  background: #fff;
  color: #087f8c;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.feed-more-wrap { text-align: center; }
.hidden { display: none !important; }
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #d7e2e4;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.dock-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  color: #5f7a80;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
}
.dock-item.is-active { color: #087f8c; background: #e8f6f7; }
.map-body {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #dfe7ea;
  padding-bottom: 56px;
}
#map { flex: 1; min-height: 0; width: 100%; }
.map-search {
  z-index: 5;
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border-radius: 30px;
}
.chip-fill {
  background: #087f8c;
  color: #fff;
  border-color: #087f8c;
}
.kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #eef3f4;
  font-size: 13px;
}
.kv span { color: #78909c; }
.kv b { font-weight: 700; color: #103d43; }
.layer-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.2);
  padding: 3px;
  border-radius: 10px;
}
.layer-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.layer-switch button.is-on { background: #fff; color: #087f8c; }
.skyland-popup {
  z-index: 22 !important;
  width: max-content !important;
  max-width: none !important;
}
.skyland-popup .maplibregl-popup-content {
  padding: 0;
  min-width: 280px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
.skyland-popup .maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  font-size: 20px;
  padding: 3px;
  right: 8px;
  top: 8px;
  color: #52636b;
  z-index: 2;
}
@media (min-width: 900px) {
  .skyland-popup .maplibregl-popup-content {
    width: 372px;
    min-width: 372px;
    max-height: min(78vh, 640px);
  }
}
.skyland-v63-popup { padding: 8px 30px 8px 8px; font-size: 11px; line-height: 1.25; }
.skyland-priority-box {
  margin: 0 0 6px;
  padding: 5px 6px;
  border: 1px solid #f5c400;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,248,210,0.96), rgba(255,255,255,0.98));
}
.skyland-priority-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.skyland-priority-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #8a6500;
  white-space: nowrap;
}
.skyland-priority-chips {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}
.skyland-priority-empty {
  color: #9a8a4a;
  font-size: 9px;
  font-weight: 700;
}
.skyland-priority-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid #e3b900;
  border-radius: 999px;
  background: #fff8d6;
  color: #8a6500;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.skyland-v63-priority-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 5px;
  overflow-x: auto;
}
.skyland-priority-option {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  gap: 4px;
  border: 1px solid #e7ecee;
  border-radius: 999px;
  background: #fff;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
  color: #31555a;
  white-space: nowrap;
  cursor: pointer;
}
.skyland-priority-option input {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  accent-color: #087f8c;
  opacity: 1;
}
.skyland-priority-badge {
  padding: 2px 6px;
  border: 1px solid #e3b900;
  border-radius: 999px;
  background: #fff4b8;
  color: #8a6500;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.skyland-v63-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 118px);
  gap: 6px;
  align-items: start;
  margin: 0 0 5px;
}
.skyland-v63-code {
  min-width: 0;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid #edf1f2;
  border-radius: 8px;
  background: #f7fafb;
  font-size: 11px;
}
.skyland-v63-code-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skyland-v63-code-label { color: #829096; font-weight: 800; }
.skyland-v63-code strong { color: #087f8c; font-size: 12px; }
.skyland-v63-updated {
  display: block;
  margin-top: 2px;
  color: #087f8c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.skyland-v63-contact .skyland-v63-info-value a,
.skyland-v63-contact a { color: #087f8c; }
.skyland-v63-status { min-width: 0; }
.skyland-v63-status-select {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #b9dfe2;
  border-radius: 8px;
  background: #eaf8f9;
  color: #087f8c;
  font-size: 10px;
  font-weight: 800;
  opacity: 1;
  color-scheme: light;
  cursor: pointer;
}
.skyland-v63-status-select:disabled {
  cursor: wait;
}
.skyland-v63-status-readonly {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #b9d9dc;
  border-radius: 999px;
  background: #f4fbfb;
  color: #31555a;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.skyland-v63-types { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 5px; }
.skyland-v63-hero {
  margin: 0 0 5px;
  padding: 5px 7px;
  border: 1px solid #dceff1;
  border-radius: 8px;
  background: #f3fafb;
  color: #087f8c;
  font-size: 12px;
  font-weight: 800;
}
.skyland-v63-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}
.skyland-v63-info-item {
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #edf1f2;
  border-radius: 8px;
  background: #fff;
}
.skyland-v63-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
}
.skyland-v63-type {
  padding: 3px 6px;
  border: 1px solid #b9dfe2;
  border-radius: 999px;
  background: #eaf8f9;
  color: #087f8c;
  font-size: 9px;
  font-weight: 800;
}
.skyland-v63-span-2 { grid-column: 1 / -1; }
.skyland-v63-info-label {
  display: block;
  margin-bottom: 1px;
  color: #829096;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}
.skyland-v63-info-value {
  display: block;
  color: #26363b;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.skyland-v63-sale .skyland-v63-info-value { color: #087f8c; font-weight: 800; }
.skyland-v63-actions .popup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 30px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: #0b8f9c;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.https-gps-bar {
  display: none;
}
.https-gps-bar:not([hidden]) {
  display: block;
  position: relative;
  z-index: 50;
  padding: 8px 12px;
  background: #fff4d6;
  color: #5c4300;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.https-gps-bar a {
  color: #0b57d0;
}
.skyland-gps-help {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
.skyland-gps-help.is-open {
  display: flex;
}
.skyland-gps-help-panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.skyland-gps-help-title {
  font-size: 17px;
  font-weight: 800;
  color: #087f8c;
  margin-bottom: 8px;
}
.skyland-gps-help-lead {
  margin: 0 0 10px;
  color: #44555a;
  font-size: 13px;
  line-height: 1.45;
}
.skyland-gps-help-steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #334248;
  font-size: 13px;
  line-height: 1.45;
}
.skyland-gps-help-steps li {
  margin-bottom: 6px;
}
.skyland-gps-help-retry,
.skyland-gps-help-close {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.skyland-gps-help-retry {
  background: #087f8c;
  color: #fff;
  margin-bottom: 8px;
}
.skyland-gps-help-close {
  background: #eef1f5;
  color: #333;
}
.action-sheet {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 48, 0.35);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.action-sheet.hidden { display: none !important; }
.action-sheet-card {
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px 22px;
  position: relative;
}
.action-sheet-card h2 { margin: 0 28px 10px 0; color: #087f8c; font-size: 18px; }
.action-sheet-card p { margin: 0 0 12px; color: #546e7a; line-height: 1.45; }
.action-sheet-card textarea {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: #eef3f4;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.filter-panel { display: none; }
@media (min-width: 900px) {
  .filter-panel {
    display: block;
    position: fixed;
    top: 72px;
    left: 12px;
    z-index: 34;
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.22);
  }
  .filter-panel.collapsed {
    width: 58px;
    min-width: 58px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .filter-title {
    font-size: 15px;
    font-weight: 800;
    color: #222;
  }
  .filter-panel.collapsed .filter-title,
  .filter-panel.collapsed .filter-panel-content {
    display: none;
  }
  .filter-toggle {
    flex: 0 0 auto;
    width: 36px;
    height: 32px;
    border: 1px solid #dfe6e8;
    border-radius: 10px;
    background: #fff;
    color: #087f8c;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }
  .filter-panel.collapsed .filter-header {
    width: 58px;
    height: 42px;
    justify-content: center;
  }
  .filter-panel.collapsed .filter-toggle {
    width: 58px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #263b55;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  }
  .filter-panel.collapsed .filter-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.5 7.3v5.2l-3 1.5v-6.7L4 5z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  }
  .filter-panel.is-active.collapsed .filter-toggle {
    border-color: #087f8c;
    color: #087f8c;
  }
  .filter-panel-content { margin-top: 10px; }
  .filter-field { margin: 0 0 10px; position: relative; }
  .filter-label {
    display: block;
    margin-bottom: 4px;
    color: #5f7178;
    font-size: 11px;
    font-weight: 800;
  }
  .filter-dd-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #d5dee2;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .filter-dd-menu {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    max-height: 180px;
    overflow: auto;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid #d5dee2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  .filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    font-size: 12px;
    cursor: pointer;
  }
  .filter-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eaf8f9;
    color: #087f8c;
    font-size: 11px;
    font-weight: 800;
  }
  .filter-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
  }
  .filter-clear {
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: #087f8c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }
  .map-body .maplibregl-ctrl-top-right {
    top: 72px;
    right: 12px;
  }
  .maplibregl-ctrl-top-right .maplibregl-ctrl-geolocate { display: none; }
  .maplibregl-ctrl-bottom-right,
  .maplibregl-ctrl-attrib { display: none !important; }
  .action-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 25;
    width: min(348px, calc(100vw - 36px));
    gap: 6px 8px;
    align-items: start;
    padding: 10px 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 252, 0.92));
    box-shadow: 0 18px 44px rgba(15, 43, 60, 0.24), 0 4px 12px rgba(15, 43, 60, 0.12), inset 0 1px 0 #fff;
    box-sizing: border-box;
  }
  .fab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    gap: 5px;
    position: relative;
  }
  .fab {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(211, 224, 231, 0.9);
    border-radius: 14px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    box-shadow: 0 6px 14px rgba(19, 54, 73, 0.16), inset 0 1px 0 #fff;
    cursor: pointer;
  }
  .fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(19, 54, 73, 0.2), inset 0 1px 0 #fff;
  }
  .fab-label {
    display: block;
    width: 100%;
    color: #334155;
    font: 800 10.5px/1.15 Arial, Helvetica, sans-serif;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fab-add {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    background-color: #07977f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    box-shadow: 0 12px 22px rgba(4, 139, 116, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  .fab-add:hover {
    background-color: #078a75;
    box-shadow: 0 15px 28px rgba(4, 139, 116, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  .fab-bell {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99a0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
  }
  .fab-settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555e6d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
  }
  .fab-locate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b76e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='2.7'/%3E%3C/svg%3E");
  }
  .dock { display: none; }
  .app-body, .map-body { padding-bottom: 0; }
  .feed-main { max-width: 980px; padding: 24px 32px 40px; }
  .app-header { padding: 10px 22px; min-height: 58px; }
  .brand-logo { display: block; }
  .brand-text { display: none; }
  .map-body {
    position: relative;
  }
  .map-body .app-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    background: transparent;
    min-height: 0;
    padding: 10px 16px;
    pointer-events: none;
    gap: 12px;
  }
  .map-body .app-header > * {
    pointer-events: auto;
  }
  .map-body .app-header.compact .brand-logo {
    width: 168px;
    height: 40px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  }
  .map-body .top-nav {
    background: #fff;
    padding: 3px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }
  .map-body .nav-link {
    color: #087f8c;
    opacity: 1;
    text-shadow: none;
  }
  .map-body .nav-link.is-active {
    background: #087f8c;
    color: #fff;
  }
  .map-body #who,
  .map-body #mapStatus {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }
  .map-body .layer-switch {
    background: rgba(0, 0, 0, 0.35);
  }
  .map-body .header-right button {
    background: #fff;
  }
  .map-body #map {
    position: absolute;
    inset: 0;
  }
  .map-search {
    position: static;
    transform: none;
    width: 420px;
    margin: 0 auto;
    box-shadow: none;
    background: rgba(255,255,255,.96);
  }
  .source-card { padding: 18px 20px; }
  .header-right span:not(#mapStatus) { display: inline; }
}
@media (max-width: 899px) {
  .top-nav { display: none; }
  .map-search {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: min(380px, calc(100% - 24px));
  }
}
.skyland-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
  box-sizing: border-box;
}
.skyland-edit-overlay[hidden] {
  display: none !important;
}
.skyland-edit-panel {
  width: min(620px, calc(100vw - 16px));
  max-height: 92vh;
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(8, 127, 140, 0.12);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skyland-edit-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid #e9eef0;
}
.skyland-edit-head b {
  flex: 1;
  font-size: 16px;
  color: #17363b;
}
.skyland-edit-head small {
  display: block;
  margin-top: 2px;
  color: #829096;
  font-size: 11px;
  font-weight: 500;
}
.skyland-edit-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef4f5;
  color: #65757a;
  font-size: 19px;
  cursor: pointer;
}
.skyland-edit-body {
  padding: 7px 9px;
  overflow: auto;
}
.skyland-edit-section {
  padding: 6px 7px;
  margin-bottom: 6px;
  border: 1px solid #e8edef;
  border-radius: 11px;
}
.skyland-edit-section-title {
  margin-bottom: 5px;
  color: #087f8c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.skyland-edit-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
}
.skyland-edit-field {
  display: block;
  min-width: 0;
  color: #47575c;
  font-size: 11px;
  font-weight: 800;
}
.skyland-edit-field input {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 2px;
  box-sizing: border-box;
  border: 1px solid #cbd5d8;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}
.skyland-edit-loc-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.skyland-edit-gps {
  width: 100%;
  min-height: 36px;
  border: 1px solid #087f8c;
  border-radius: 8px;
  background: #fff;
  color: #087f8c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.skyland-edit-media-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.skyland-edit-media-btn {
  flex: 1;
  min-height: 36px;
  border: 1px solid #cad5d8;
  border-radius: 8px;
  background: #fff;
  color: #16343c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.skyland-edit-media-add {
  border-color: #087f8c;
  color: #087f8c;
}
.skyland-edit-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.skyland-edit-media-preview img,
.skyland-edit-media-preview video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f5;
}
.skyland-edit-media-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef3f5;
  color: #16343c;
  font-size: 11px;
  font-weight: 700;
}
.skyland-edit-loc-status {
  color: #748087;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .skyland-edit-grid2 {
    grid-template-columns: 1fr;
  }
}
.skyland-edit-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.skyland-edit-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: 1px solid #cad5d8;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  background: #fff;
}
.skyland-edit-type-chip input {
  width: auto;
  margin: 0;
}
.skyland-edit-type-chip.is-on {
  background: #e8f8f9;
  border-color: #0b8f9c;
  color: #087f8c;
  font-weight: 800;
}
.skyland-edit-note {
  padding: 0 2px 5px;
  color: #7a888d;
  font-size: 11px;
  text-align: center;
}
.skyland-edit-foot {
  padding: 7px 9px;
  border-top: 1px solid #e9eef0;
}
.skyland-edit-foot button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #0b8f9c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.skyland-edit-foot button:disabled {
  opacity: 0.58;
}
.skyland-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.skyland-info-overlay[hidden] {
  display: none !important;
}
.skyland-info-panel {
  width: min(92vw, 650px);
  max-height: 84vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  padding: 16px;
}
.skyland-info-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.skyland-info-head b {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #17363b;
}
.skyland-info-back {
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  background: #edf6f7;
  color: #087f8c;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.skyland-info-text {
  white-space: pre-wrap;
  background: #f6f8f9;
  border: 1px solid #e1e7e9;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  line-height: 1.55;
  font-size: 14px;
  color: #26363b;
}
.skyland-info-detail-box {
  margin-top: 4px;
}
.skyland-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.skyland-info-copy {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  background: #edf6f7;
  color: #087f8c;
}
.skyland-info-save {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  background: #109eaa;
  color: #fff;
}
.skyland-info-reward {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f9;
  color: #315e64;
  font-size: 12px;
}
.skyland-info-note {
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 9px;
  background: #fff7d6;
  color: #705d00;
  font-size: 12px;
}
#skylandInfoDetailInput {
  width: 100%;
  min-height: 130px;
  box-sizing: border-box;
  border: 1px solid #ccd9dc;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  resize: vertical;
  margin-top: 8px;
}
.skyland-ai-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dce8ea;
  border-radius: 12px;
  background: #f8fbfb;
}
.skyland-ai-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.skyland-ai-status {
  font-size: 11px;
  font-weight: 800;
  color: #087f8c;
}
.skyland-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.skyland-ai-field {
  display: block;
  min-width: 0;
  color: #59686d;
  font-size: 11px;
  font-weight: 800;
}
.skyland-ai-staff-phone {
  display: block;
  margin-bottom: 8px;
}
.skyland-ai-staff-phone input {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border: 1px solid #7eb8be;
  border-radius: 9px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.skyland-ai-field select,
.skyland-ai-field input {
  display: block;
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #ccd9dc;
  border-radius: 9px;
  background: #fff;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.skyland-ai-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #bfd6da;
  border-radius: 10px;
  background: #fff;
  color: #315e64;
  font-size: 13px;
  cursor: pointer;
}
.skyland-ai-hide-box {
  margin-top: 10px;
  padding: 8px 10px 10px;
  border: 1px dashed #bfd6da;
  border-radius: 10px;
  background: #fff;
}
.skyland-ai-hide-title {
  font-size: 12px;
  font-weight: 700;
  color: #315e64;
  margin-bottom: 2px;
}
.skyland-ai-hide-box .skyland-ai-option {
  margin-top: 2px;
  padding: 6px 0;
  border: none;
  background: transparent;
}
.skyland-ai-hide-box .skyland-ai-option i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #69777b;
  font-weight: 400;
}
.skyland-ai-meta {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #69777b;
}
@media (max-width: 600px) {
  .skyland-edit-grid2,
  .skyland-ai-grid {
    grid-template-columns: 1fr;
  }
}

.skyland-desktop-float {
  width: max-content;
  height: auto;
  white-space: nowrap;
  background: transparent;
}
.skyland-desktop-float.is-label {
  pointer-events: auto;
  cursor: pointer;
}
.skyland-desktop-float.is-badge {
  pointer-events: none;
}
.maplibregl-marker:has(> .skyland-desktop-float) {
  width: max-content !important;
  height: auto !important;
  background: transparent !important;
}
.skyland-label-box {
  display: inline-block;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #087f8c;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.skyland-label-box .label-ma-can {
  color: #087f8c;
}
.skyland-filter-label-highlight {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.skyland-priority-pin-badge {
  display: inline-block;
  width: max-content;
  min-width: 34px;
  max-width: 90px;
  padding: 3px 6px;
  border-radius: 8px;
  background: var(--skyland-priority-accent, #ca8a04);
  color: #fff;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#skylandAddChooser,
#skylandAddOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(0, 0, 0, 0.36);
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
#skylandAddChooser.is-open,
#skylandAddOverlay.is-open {
  display: flex;
}
.skyland-add-chooser-panel,
#skylandAddPanel {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}
.skyland-add-chooser-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skyland-add-chooser-panel .skyland-add-title {
  margin-bottom: 4px;
  color: #087f8c;
}
.skyland-add-type-btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: #0b57d0;
  color: #fff;
  cursor: pointer;
}
.skyland-add-type-btn.is-bulk {
  background: #138f9e;
}
.skyland-add-type-cancel {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: #eef1f5;
  cursor: pointer;
}
#skylandAddPanel {
  max-height: 88dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skyland-add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.skyland-add-title {
  font-size: 18px;
  font-weight: 800;
  color: #087f8c;
}
.skyland-add-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #444;
  font-size: 22px;
  cursor: pointer;
}
.skyland-add-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 16px 18px;
  overflow: auto;
}
.skyland-add-note {
  margin-bottom: 5px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f8f8;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}
.skyland-add-label {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}
.skyland-add-input,
.skyland-add-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #d0d5d8;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.skyland-add-input:focus,
.skyland-add-select:focus {
  border-color: #087f8c;
  box-shadow: 0 0 0 2px rgba(8, 127, 140, 0.12);
}
.skyland-add-hint {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}
.skyland-add-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  color: #087f8c;
  font-size: 14px;
  font-weight: 800;
}
#skylandAddOverlay .skyland-edit-media-row {
  margin: 8px 0;
}
#skylandAddPhoto {
  margin-top: 8px;
}
.skyland-add-dd {
  position: relative;
}
.skyland-add-dd.open .skyland-add-dd-btn {
  border-color: #087f8c;
}
.skyland-add-dd-btn {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #d0d5d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}
.skyland-add-dd-menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 4;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d0d5d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.skyland-add-dd.open .skyland-add-dd-menu {
  display: grid;
}
.skyland-add-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.skyland-add-loc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.skyland-add-secondary {
  flex: 1;
  min-height: 40px;
  border: 1px solid #087f8c;
  border-radius: 8px;
  background: #fff;
  color: #087f8c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.skyland-add-or {
  color: #777;
  font-size: 12px;
}
.skyland-add-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  border: 0;
  border-radius: 9px;
  background: #087f8c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.skyland-add-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.skyland-add-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}
@media (max-width: 899px) {
  #skylandAddChooser,
  #skylandAddOverlay {
    align-items: flex-end;
    padding: 8px;
  }
  #skylandAddPanel,
  .skyland-add-chooser-panel {
    width: 100%;
    border-radius: 18px 18px 10px 10px;
  }
}
#skylandMediaOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10150;
  background: rgba(0, 0, 0, 0.48);
  padding: 10px;
  box-sizing: border-box;
}
#skylandMediaOverlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#skylandMediaPanel {
  position: relative;
  width: min(760px, 100%);
  height: min(88dvh, 860px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
#skylandMediaFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
#skylandMediaClose {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.25);
}
@media (max-width: 768px) {
  #skylandMediaOverlay {
    padding: 0;
  }
  #skylandMediaPanel {
    width: 100%;
    height: 100dvh;
    height: 100svh;
    border-radius: 0;
  }
}
