:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --bg-2: #edf3fa;
  --panel: #ffffff;
  --panel-2: #f6f9fd;
  --panel-3: #ffffff;
  --border: #d6e2ef;
  --text: #18324a;
  --muted: #5f7791;
  --accent: #1e7be7;
  --accent-2: #f2b857;
  --good: #1d9d6c;
  --warn: #d59b2f;
  --bad: #d95367;
  --shadow: 0 18px 48px rgba(31, 56, 84, 0.12);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: auto;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.page-admin-builder {
  overflow: hidden;
}
body, input, select, button, textarea { font-family: Inter, system-ui, sans-serif; }
h1, h2, h3, h4, .site-brand__title { font-family: Manrope, Inter, system-ui, sans-serif; }
button, input, select { font: inherit; }
.site-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(30, 123, 231, 0.08), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  border-bottom: 1px solid rgba(24, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.site-header__menu-toggle {
  display: inline-flex;
  width: auto;
  margin: 0;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(24,50,74,0.08);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-weight: 700;
}
.site-header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.site-header__menu-panel {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  right: 24px;
  z-index: 1400;
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, calc(100dvh - 32px));
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.mobile-nav-open {
  overflow: hidden;
}
body.mobile-nav-open .site-header__menu-panel { display: grid; gap: 12px; }
.site-brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.site-brand__logo {
  height: 60px;
  width: auto;
  max-width: min(100%, 320px);
  display: block;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
.site-brand__meta {
  display: none;
}
.site-brand__title {
  display: none;
}
.site-brand__tag {
  display: none;
}
.site-nav {
  display: grid;
  gap: 8px;
  align-items: stretch;
}
.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24,50,74,0.08);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav__link.active,
.site-nav__link:hover {
  color: var(--accent);
  border-color: rgba(30, 123, 231, 0.2);
  background: rgba(30, 123, 231, 0.08);
}
.site-auth {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(24,50,74,0.08);
}
.site-auth__meta {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}
.site-auth form,
.site-auth .ghost.small,
.site-auth .site-nav__link { width: 100%; }
.site-auth__meta:hover {
  color: var(--accent);
}
.notification-bell-wrap {
  position: relative;
}
.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24,50,74,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--text);
  cursor: pointer;
}
.notification-bell:hover {
  color: var(--accent);
  border-color: rgba(30, 123, 231, 0.22);
  background: rgba(30, 123, 231, 0.08);
}
.notification-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.notification-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, calc(100dvh - 120px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  z-index: 1500;
}
.notification-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notification-menu-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.notification-list {
  display: grid;
  max-height: 400px;
  overflow-y: auto;
}
.notification-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(24,50,74,0.08);
}
.notification-item:hover {
  background: rgba(30, 123, 231, 0.06);
}
.notification-item.unread {
  background: rgba(30, 123, 231, 0.08);
}
.notification-item__link {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.notification-item__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.notification-item__actions .ghost.small,
.notification-menu-actions .ghost.small {
  padding: 6px 8px;
  font-size: 11px;
}
.notification-item span,
.notification-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.notification-empty {
  padding: 16px 14px;
}
.site-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}
.site-main.wide { max-width: 1480px; }
.page-hero {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
  margin-bottom: 28px;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 12px; }
.page-hero p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 70ch; }
.eyebrow {
  color: #9edfff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-card-stack { display: grid; gap: 12px; }
.hero-stat-card,
.plan-card,
.storm-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,254,0.98));
  border: 1px solid rgba(24,50,74,0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-stat-card {
  padding: 20px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.hero-stat-card span { color: var(--muted); font-size: 13px; }
.hero-stat-card strong { font-size: 28px; }
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}
.storm-card { overflow: hidden; }
.storm-card__media-link {
  display: block;
  position: relative;
  background: #dce8f3;
}
.storm-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}
.storm-static-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #deebf6 0%, #eef4fa 100%);
}
.storm-static-map--detail {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}
.storm-static-map .leaflet-container,
.storm-static-map.leaflet-container {
  width: 100%;
  height: 100%;
  background: #dce8f3;
}
.storm-card__map-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 450;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(24,50,74,0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.pill.ready {
  background: #1e7be7;
  color: #ffffff;
  border: 1px solid rgba(30, 123, 231, 0.22);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 123, 231, 0.18);
}
.storm-card__body { padding: 18px; }
.storm-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.storm-card__top h2,
.detail-main-card h1 { margin: 6px 0 0; }
.storm-card__top h2 a { color: var(--text); text-decoration: none; }
.storm-card__summary { color: var(--muted); line-height: 1.55; min-height: 72px; }
.storm-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.storm-meta-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.storm-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.storm-card__footer,
.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.detail-shell { display: grid; gap: 20px; }
.detail-main-card { padding: 20px; }
.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}
.detail-preview-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #dce8f3;
  border: 1px solid rgba(255,255,255,0.06);
}
.detail-preview { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.detail-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.storm-score-panel,
.storm-description-panel {
  grid-column: 1 / -1;
}
.score-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.score-meter-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}
.score-meter-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.score-meter-card__top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.score-meter-card__top strong {
  font-size: 26px;
}
.score-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.score-meter span {
  display: block;
  width: var(--score-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b 42%, #22c55e);
  animation: scoreMeterFill 850ms ease-out both;
}
.score-meter--secondary span {
  background: linear-gradient(90deg, #64748b, #38bdf8 45%, #22c55e);
}
.score-meter-card p {
  margin: 10px 0 0;
  color: var(--text);
}
.storm-description-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
@keyframes scoreMeterFill {
  from { width: 0; }
  to { width: var(--score-width, 0%); }
}
.feature-list { margin: 0 0 18px; padding: 0; list-style: none; }
.feature-list li { padding-left: 20px; position: relative; color: var(--muted); font-size: 13px; line-height: 1.75; margin-bottom: 4px; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: var(--good); font-weight: 700; font-size: 11px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.plan-card { padding: 24px 22px; display: flex; flex-direction: column; }
.plan-card--free {
  border-color: rgba(16,185,129,0.28);
  border-top: 3px solid #10b981;
  background: linear-gradient(180deg, rgba(244,253,248,0.98) 0%, rgba(235,250,242,0.96) 100%);
}
.plan-card--free .plan-badge {
  background: rgba(16,185,129,0.12);
  color: #047857;
}
.plan-card--free .eyebrow {
  color: #047857;
}
.plan-card.featured { border-color: rgba(30,123,231,0.35); border-top: 3px solid var(--accent); background: linear-gradient(160deg, #f0f7ff 0%, #e8f3ff 100%); }
.plan-card.featured-dark { border-color: rgba(255,209,102,0.45); border-top: 3px solid var(--accent-2); background: linear-gradient(160deg, #1a2236 0%, #0e1622 100%); color: #f0f4fa; }
.plan-card.featured-dark .tag,
.plan-card.featured-dark .feature-list,
.plan-card.featured-dark .subtle,
.plan-card.featured-dark .plan-alt { color: rgba(240,244,250,0.7); }
.plan-card.featured-dark .eyebrow { color: var(--accent-2); }
.plan-card.featured-dark h2 { color: #fff; }
.plan-card--org {
  border-color: rgba(30,123,231,0.24);
  background: linear-gradient(180deg, rgba(246,250,255,0.98) 0%, rgba(237,245,255,0.96) 100%);
  position: relative;
  overflow: hidden;
}
.plan-card--org::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(103,208,255,0.2) 0%, rgba(103,208,255,0) 70%);
  pointer-events: none;
}
.plan-card--org { border-top: 3px solid #10b981; }
.plan-card--org .plan-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
}
.plan-card--org .eyebrow {
  color: #2563eb;
}
.plan-card--org .tag,
.plan-card--org .feature-list,
.plan-card--org .subtle,
.plan-card--org .plan-alt {
  color: var(--muted);
}
.plan-price { font-size: 32px; font-weight: 800; font-family: Manrope, Inter, sans-serif; margin: 8px 0 4px; line-height: 1.1; }
.plan-price .subtle { font-size: 15px; font-weight: 400; }
.plan-scope { font-size: 12px; font-weight: 500; color: var(--muted); margin: 4px 0 12px; line-height: 1.4; }
.plan-card.featured-dark .plan-scope { color: rgba(240,244,250,0.55); }
.plan-divider { height: 1px; background: var(--border); margin: 14px 0 16px; flex-shrink: 0; }
.plan-card.featured-dark .plan-divider { background: rgba(240,244,250,0.1); }
.plan-card.featured-dark .feature-list li { color: rgba(240,244,250,0.72); }
.plan-card.featured-dark .feature-list li::before { color: #4dd8a0; }
.plan-alt { font-size: 13px; color: var(--muted); margin-left: 6px; }
.plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.plan-cta {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.plan-cta:hover { background: #1668c7; }
.plan-cta.ghost { background: var(--panel); color: var(--accent); border: 1px solid var(--accent); }
.plan-cta.ghost:hover { background: #f0f7ff; }
.plan-cta--dark { background: var(--accent-2); color: #1a2236; }
.plan-cta--dark:hover { background: #e0a030; }
.hero-trust-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.trust-badge { font-size: 13px; font-weight: 600; color: var(--good); }
.pricing-features-section {
  margin-top: 48px;
}
.pricing-features-header { text-align: center; margin-bottom: 32px; }
.pricing-features-header h2 { font-size: 26px; margin-bottom: 8px; }
.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pricing-feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.pricing-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf5ff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.pricing-feature h3 { font-size: 16px; margin-bottom: 8px; }
.pricing-feature p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.pricing-usecases-section { margin-top: 32px; }
.pricing-usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.pricing-usecase {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.pricing-usecase strong { display: block; margin-bottom: 6px; font-size: 14px; }
.pricing-usecase p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.pricing-reassurance { margin-top: 32px; }
.pricing-faq-list { display: grid; gap: 10px; margin-top: 4px; }
.pricing-faq { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.pricing-faq strong { display: block; margin-bottom: 6px; font-size: 14px; }
.pricing-faq p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.contact-form-grid {
  display: grid;
  gap: 14px;
}
.contact-form-grid textarea {
  min-height: 180px;
  resize: vertical;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.contact-form-grid textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
@media (max-width: 900px) {
  .pricing-features-grid,
  .pricing-usecases-grid { grid-template-columns: 1fr; }
}
.site-main--app {
  max-width: 1760px;
  padding-top: 20px;
  padding-bottom: 20px;
  height: calc(100vh - 92px);
  overflow: hidden;
}
.page-owned .site-header__inner,
.page-admin-builder .site-header__inner,
.page-historic .site-header__inner {
  max-width: none;
  padding-left: 18px;
  padding-right: 18px;
}
.page-owned .site-main--app,
.page-admin-builder .site-main--app,
.page-historic .site-main--app {
  max-width: none;
  padding-left: 18px;
  padding-right: 18px;
}
.page-admin-builder .site-main--app {
  height: calc(100vh - 112px);
}
.site-main--app .shell {
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(24,50,74,0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.66);
  box-shadow: var(--shadow);
}
.site-main--app .sidebar,
.site-main--app .main,
.site-main--app #map {
  min-height: 0;
}
.site-main--app #map {
  height: 100%;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 17, 31, 0.95);
  backdrop-filter: blur(12px);
}
.topbar h1 { margin: 0; font-size: 24px; }
.topbar-brand .tag { margin-top: 4px; font-size: 13px; max-width: 520px; }
.topnav { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-actions form { margin: 0; }
.shell {
  display: grid;
  grid-template-columns: 450px 1fr;
  min-height: calc(100vh - 79px);
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #f9fbfe 0%, #eef4fb 100%);
}
.hero, .panel, .panel-head, .events-list, .event-item, .main { min-width: 0; }
.hero { display: grid; gap: 14px; }
.main { position: relative; height: 100%; overflow: hidden; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; }
.map-canvas { position: relative; min-width: 0; min-height: 0; }
.mobile-map-actions {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 980;
  pointer-events: none;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-map-actions button {
  width: auto;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.mobile-map-actions a {
  pointer-events: auto;
}
.mobile-detail-sheet {
  display: none;
}
.map-sidepanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(249,251,254,0.98), rgba(238,244,251,0.98));
}
.page-admin-builder .map-workspace {
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.page-owned .map-workspace {
  grid-template-rows: minmax(0, 1fr);
  position: relative;
}
.legend-bar {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 0 0 24px 24px;
}
.page-owned .legend-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.page-owned .legend-bar::-webkit-scrollbar { display: none; }
.legend-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  flex: 0 0 auto;
}
.legend-bar-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail-modal.hidden { display: none; }
.detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.55);
  backdrop-filter: blur(4px);
}
.detail-modal__card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(8, 17, 31, 0.22);
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}
.detail-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
body.modal-open { overflow: hidden; }
.detail-modal__body { padding-top: 28px; }
.detail-modal__card .detail-card {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}
#property-pin-modal .detail-modal__card {
  max-width: 760px;
}
.property-pin-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}
.property-pin-note {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit;
  color: var(--text);
  line-height: 1.5;
}
.property-pin-note:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.property-pin-note-hint {
  margin-top: -2px;
}
.property-pin-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.property-pin-history-card {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 252, 0.94));
}
.property-pin-history-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.property-pin-history-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 8px;
}
.property-pin-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.property-pin-history-head--compact {
  justify-content: flex-end;
}
.property-pin-history-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.property-pin-history-sep {
  display: inline-block;
  margin: 0 5px;
}
.property-pin-history-note {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text);
}
.property-pin-history-address {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding-top: 2px;
}
.profile-notifications-form {
  display: grid;
  gap: 18px;
}
.profile-notification-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}
.profile-notification-toggle-copy {
  min-width: 0;
  max-width: 780px;
}
.profile-notification-toggle-copy strong {
  display: block;
}
.profile-notifications-grid {
  display: grid;
  grid-template-columns: minmax(260px,320px) minmax(0,1fr);
  gap: 20px;
  align-items: start;
}
.profile-notifications-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
}
.profile-notifications-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.profile-alert-types-list {
  display: grid;
  gap: 10px;
}
.profile-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-weight: 500;
  color: var(--text);
}
.profile-check-row input {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
.profile-check-row span {
  min-width: 0;
}
.profile-states-card {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.65);
}
.profile-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 8px 12px;
  align-items: start;
}
.profile-state-row {
  gap: 8px;
}
.page-admin-builder .map-sidepanel {
  position: absolute;
  top: 72px;
  right: 16px;
  bottom: 16px;
  width: 340px;
  max-width: calc(100vw - 48px);
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: none;
  overflow: visible;
  z-index: 950;
}
.page-admin-builder .map-sidepanel .detail-card,
.page-admin-builder .map-sidepanel .info-card,
.page-admin-builder .map-sidepanel .admin-panel,
.page-admin-builder .map-sidepanel .legend-card {
  pointer-events: auto;
}
.page-admin-builder .main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-admin-builder.site-page .site-main--app {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-admin-builder .site-main--app .shell {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}
.page-admin-builder .map-workspace {
  min-height: 0;
  flex: 1 1 auto;
}
.admin-workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  width: 100%;
  border-radius: 12px;
  box-shadow: none;
}
.admin-workspace-topbar > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-workspace-topbar > div:first-child .eyebrow {
  margin-bottom: 2px;
}
.admin-workspace-topbar > div:first-child h2 {
  font-size: 22px;
  margin-top: 0;
}
.admin-workspace-topbar > div:first-child .tag {
  margin-top: 2px;
  line-height: 1.3;
}
.admin-workspace-topbar__actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
}
.page-admin-builder .admin-subnav {
  margin-top: 0;
  justify-content: flex-end;
  align-self: flex-start;
  flex-wrap: nowrap;
}
.page-admin-builder .admin-subnav .site-nav__link {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.page-admin-builder .admin-subnav .site-nav__link.active {
  background: linear-gradient(135deg, #1e7be7, #4fa8ff);
  color: #fff;
  border-color: transparent;
}
.builder-sidecard,
.page-admin-builder .map-sidepanel .admin-panel {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 215, 228, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.builder-sidecard .floating-card-head,
.page-admin-builder .map-sidepanel .admin-panel .panel-head {
  margin-bottom: 12px;
}
.detail-grid--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-grid--compact .detail-stat {
  min-width: 0;
}
.admin-roadmap-panel {
  display: none;
}
.viewer-mode .site-main--app {
  height: calc(100dvh - 120px);
  min-height: calc(100dvh - 120px);
  overflow: hidden;
}
.viewer-mode .shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}
.viewer-mode .sidebar,
.viewer-mode .page-stage {
  display: none;
}
.viewer-mode .main,
.viewer-mode .map-workspace,
.viewer-mode .map-canvas,
.viewer-mode #map {
  height: 100%;
  min-height: 0;
}
.viewer-mode .map-workspace {
  grid-template-columns: minmax(0, 1fr);
}
.viewer-mode .map-sidepanel {
  position: absolute;
  top: 108px;
  right: 16px;
  bottom: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: none;
  overflow: visible;
  z-index: 1100;
}
.viewer-mode .map-sidepanel .detail-card,
.viewer-mode .map-sidepanel .info-card,
.viewer-mode .map-sidepanel .legend-card {
  pointer-events: auto;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
}
.viewer-mode .map-sidepanel .detail-card {
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
}
#map { height: 100%; width: 100%; }
.admin-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.admin-shared-subnav-wrap {
  padding: 12px 16px;
}
.admin-subnav--shared {
  margin-top: 0;
}
.admin-nav-select-wrap {
  display: grid;
  gap: 6px;
  min-width: min(280px, 100%);
  margin: 0;
}
.admin-nav-select-wrap .subtle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-nav-select {
  margin-top: 0;
  min-width: 220px;
  max-width: 100%;
  background: rgba(255,255,255,0.92);
}
.mobile-admin-shortcuts,
.builder-mobile-note,
.builder-mobile-drop-pin-row {
  display: none;
}
@media (min-width: 901px) {
  .builder-mobile-drop-pin-row {
    display: none !important;
  }
}
h1 { margin: 0 0 6px; font-size: 30px; }
h2, h3, h4 { margin: 0; }
.tag, .subtle, .hint { color: var(--muted); }
.tag { margin: 0; line-height: 1.45; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,254,0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head.compact { align-items: center; }
.panel-head.stack-on-mobile > :first-child { min-width: 0; }
.grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
input, select, button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 12px 14px;
  margin-top: 6px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}
input:hover, select:hover { border-color: rgba(30, 123, 231, 0.28); }
input:focus, select:focus {
  outline: none;
  border-color: rgba(30, 123, 231, 0.48);
  box-shadow: 0 0 0 3px rgba(30, 123, 231, 0.12);
  background: var(--panel-3);
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  margin: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
input[type="range"] { padding: 0; }
button {
  cursor: pointer;
  background: linear-gradient(135deg, #1e7be7, #4fa8ff);
  border: none;
  font-weight: 700;
  color: #ffffff;
}
button:hover { transform: translateY(-1px); }
button.ghost {
  width: auto;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}
button.small { padding: 7px 11px; font-size: 12px; }
.library-search-inline-wrap {
  margin-bottom: 18px;
}
.library-search-inline {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(96px, 0.7fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) auto auto;
  gap: 10px;
  align-items: center;
}
.library-search-inline--owned {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.library-search-inline input,
.library-search-inline button,
.library-search-inline a {
  margin-top: 0;
}
.library-search-actions.minimal {
  margin-top: 8px;
}
.tab-row, .helper-row, .layer-switch, .basemap-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tab-row {
  gap: 2px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.tab-btn {
  width: auto;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 12px;
  text-decoration: none;
}
.tab-btn.active, .layer-switch .active {
  border-color: rgba(103, 208, 255, 0.8);
  background: rgba(103, 208, 255, 0.12);
  color: var(--text);
}
.tab-btn.active {
  background: linear-gradient(180deg, rgba(103, 208, 255, 0.18), rgba(103, 208, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(103, 208, 255, 0.24);
}
.tab-panel { display: none; gap: 16px; }
.tab-panel.active { display: grid; }
.chip, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.chip { background: rgba(255,255,255,0.06); color: var(--muted); }
.chip.accent { background: rgba(255, 209, 102, 0.14); color: #ffd98a; }
.status { min-height: 20px; margin-top: 4px; color: var(--accent); font-size: 14px; }
.status[data-tone="error"] { color: #ff9ca2; }
.events-list { display: grid; gap: 10px; }
.event-item {
  text-align: left;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,254,0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  color: var(--text);
}
.event-item strong,
.subtle,
.hint,
.toolbar-copy,
.message { overflow-wrap: anywhere; }
.event-item strong { color: var(--text); }
.event-item.active, .event-item:hover {
  border-color: rgba(30,123,231,0.3);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,247,253,1));
  box-shadow: 0 14px 30px rgba(31, 56, 84, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.event-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.event-top strong { font-size: 15px; }
.ownership-strip { margin: 6px 0 8px; }
.chip.ownership {
  background: rgba(30,123,231,0.1);
  color: #18324a;
  font-weight: 700;
}
.event-actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pins-dropdown {
  display: none;
}
.pins-dropdown-menu {
  position: fixed;
  top: 74px;
  right: 12px;
  left: auto;
  z-index: 1250;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 40px rgba(31, 56, 84, 0.18);
}
.pins-dropdown-menu button {
  width: 100%;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(24,50,74,0.08);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  justify-content: flex-start;
  box-shadow: none;
}
.pins-dropdown-menu button:hover {
  background: rgba(30,123,231,0.08);
  border-color: rgba(30,123,231,0.18);
}
.pins-dropdown-menu button.active {
  background: rgba(30,123,231,0.1);
  border-color: rgba(30,123,231,0.22);
  color: #18324a;
}
.pins-dropdown-menu.hidden {
  display: none;
}
.ownership-admin-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(24,50,74,0.08);
}
.ownership-title { margin-bottom: 8px; }
.ownership-list {
  display: grid;
  gap: 8px;
}
.ownership-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(24,50,74,0.08);
}
.panel-subcard {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(24,50,74,0.08);
  background: rgba(255,255,255,0.6);
}
.search-results {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.search-result-btn {
  width: 100%;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(24,50,74,0.08);
}
.search-result-btn span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.progress-wrap { margin-top: 10px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f90ff, #67d0ff);
  box-shadow: 0 0 18px rgba(103, 208, 255, 0.3);
}
.pill { text-transform: uppercase; }
.pill.ready { background: rgba(30, 194, 139, 0.15); color: #18324a; }
.pill.failed { background: rgba(239, 107, 115, 0.14); color: #18324a; }
.pill.working { background: rgba(240, 178, 74, 0.14); color: #18324a; }
.pill.queued { background: rgba(30, 123, 231, 0.12); color: #18324a; }
.legend { display: grid; gap: 10px; }
.legend-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.045);
}
.swatch { width: 18px; height: 18px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255,255,255,0.2); }
.map-toolbar,
.playback-card,
.detail-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.map-toolbar,
.playback-card {
  position: absolute;
  z-index: 900;
}
.detail-card {
  position: static;
}
.map-toolbar {
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 120px);
  padding: 10px 12px;
}
.basemap-toggle-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 900;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 6px 10px;
}
.map-toolbar--minimal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.84);
}
.map-toolbar--minimal .layer-switch,
.map-toolbar--minimal .basemap-select-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.toolbar-icon-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toolbar-icon-switch .ghost.small,
.toolbar-icon-switch a.ghost.small {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}
.toolbar-icon-switch .ghost.small svg { display: block; }
.toolbar-icon-switch .ghost.small.active {
  background: linear-gradient(180deg, rgba(30, 123, 231, 0.14), rgba(30, 123, 231, 0.06));
  border-color: rgba(30, 123, 231, 0.35);
  box-shadow: inset 0 0 0 1px rgba(30, 123, 231, 0.1), 0 6px 18px rgba(31, 56, 84, 0.12);
}
.page-owned .playback-card .playback-time-label {
  font-weight: 800;
}
.page-owned .map-toolbar {
  top: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  justify-content: flex-start;
  width: max-content;
  max-width: calc(100% - 140px);
  box-sizing: border-box;
}
.page-owned .map-toolbar::-webkit-scrollbar {
  display: none;
}
.page-owned .map-toolbar .layer-switch,
.page-owned .map-toolbar .toolbar-icon-switch,
.page-owned .map-toolbar .basemap-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
.page-owned .map-toolbar .ghost.small {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (min-width: 641px) {
  .page-owned .playback-card {
    bottom: 74px;
  }
}
.basemap-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.basemap-select-wrap label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.basemap-select-wrap select {
  width: auto;
  min-width: 110px;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.legend-card {
  top: auto;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
}
.page-admin-builder .legend-card {
  width: 100%;
}
.map-sidepanel .legend-card,
.map-sidepanel .detail-card,
.map-sidepanel .info-card {
  width: 100%;
}
.map-sidepanel .legend-card {
  position: static;
}
.map-sidepanel .detail-card,
.map-sidepanel .info-card {
  padding: 18px;
}
.map-sidepanel .floating-card-body {
  margin-top: 14px;
}
.map-sidepanel .detail-grid {
  padding-right: 2px;
}
.floating-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.floating-card-body { margin-top: 10px; }
.floating-toggle {
  width: auto;
  min-width: 58px;
  margin-top: 0;
  flex: 0 0 auto;
}
.map-toolbar.is-collapsed,
.playback-card.is-collapsed,
.detail-card.is-collapsed {
  padding-bottom: 12px;
}
.toolbar-title { font-weight: 700; margin-bottom: 6px; }
.toolbar-copy { color: var(--muted); line-height: 1.35; font-size: 13px; }
.layer-switch,
.basemap-switch {
  margin-top: 12px;
  gap: 6px;
}
.map-toolbar .ghost.small {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(24,50,74,0.08);
}
.map-toolbar .ghost.small:hover {
  background: rgba(30,123,231,0.06);
  border-color: rgba(30,123,231,0.2);
}
.map-toolbar .layer-switch .active,
.map-toolbar .basemap-switch .active {
  background: linear-gradient(180deg, rgba(30, 123, 231, 0.14), rgba(30, 123, 231, 0.06));
  border-color: rgba(30, 123, 231, 0.35);
  box-shadow: inset 0 0 0 1px rgba(30, 123, 231, 0.1), 0 6px 18px rgba(31, 56, 84, 0.12);
}
.playback-card {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 120px));
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 10px;
}
.playback-play-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,123,231,0.35);
  transition: background 0.15s, box-shadow 0.15s;
}
.playback-play-btn:hover { background: #1668c7; box-shadow: 0 4px 14px rgba(30,123,231,0.45); }
.playback-time-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 56px;
  letter-spacing: -0.01em;
}
.playback-seek {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}
.playback-card .detail-card .detail-header {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(24,50,74,0.08);
}

@media (min-width: 1024px) {
  .viewer-mode .site-main--app {
    height: calc(100dvh - 88px);
    min-height: calc(100dvh - 88px);
  }
  .viewer-mode .map-sidepanel {
    top: 82px;
    right: 12px;
    bottom: 12px;
    width: 300px;
    max-width: calc(100vw - 24px);
  }
  .viewer-mode .map-sidepanel .detail-card,
  .viewer-mode .map-sidepanel .info-card,
  .viewer-mode .map-sidepanel .legend-card {
    background: rgba(255,255,255,0.9);
  }
  .map-toolbar {
    top: 8px;
    max-width: calc(100% - 88px);
    padding: 6px 8px;
    border-radius: 14px;
  }
  .map-toolbar--minimal {
    gap: 4px;
  }
  .page-owned .map-toolbar {
    top: 8px;
    max-width: calc(100% - 96px);
  }
  .map-toolbar .ghost.small {
    padding: 5px 9px;
    font-size: 11px;
  }
  .toolbar-icon-switch .ghost.small,
  .toolbar-icon-switch a.ghost.small {
    min-width: 30px;
    width: 30px;
    height: 30px;
  }
  .basemap-toggle-corner {
    top: 8px;
    right: 12px;
    padding: 3px 7px;
    border-radius: 14px;
  }
  .playback-card {
    bottom: 12px;
    width: min(420px, calc(100% - 120px));
    padding: 5px 10px;
    border-radius: 14px;
    gap: 6px;
  }
  .playback-play-btn {
    width: 28px;
    height: 28px;
  }
  .playback-time-label {
    font-size: 11px;
    min-width: 42px;
  }
  .legend-card {
    right: 12px;
    bottom: 12px;
    width: min(200px, calc(100% - 24px));
  }
  .map-sidepanel .detail-card,
  .map-sidepanel .info-card {
    padding: 12px;
  }
  .detail-card h3 {
    font-size: 16px;
  }
}
.detail-card h3 { font-size: 18px; }
.detail-card.hidden { display: none; }
.detail-card:not(.hidden) { display: block; }
.detail-card .detail-grid {
  display: grid;
  gap: 12px;
}
.detail-card .detail-copy {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.detail-card .detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-card .detail-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(24,50,74,0.08);
}
.detail-card .detail-stat strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.detail-card .detail-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-card .detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-card .detail-section {
  padding-top: 12px;
  border-top: 1px solid rgba(24,50,74,0.08);
}
.detail-card .detail-section h4 {
  margin-bottom: 6px;
}
.leaflet-control-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom { z-index: 400; }
.leaflet-popup-pane { z-index: 820; }
.leaflet-tooltip-pane { z-index: 780; }
.leaflet-control-container,
.leaflet-top,
.leaflet-bottom { z-index: 850; }
.radar-dot {
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
}
.radar-dot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.78);
  background: radial-gradient(circle at 30% 30%, #f7fbff 0%, #7bd6ff 30%, #2b8cff 68%, #0f3872 100%);
  box-shadow: 0 0 0 2px rgba(8,17,31,0.45), 0 6px 16px rgba(13, 87, 184, 0.45);
}
.radar-dot.selected {
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
}
.radar-dot.selected span {
  border-color: rgba(220,255,227,0.95);
  background: radial-gradient(circle at 30% 30%, #f5fff7 0%, #8df5a5 28%, #35c95b 62%, #116b2b 100%);
  box-shadow: 0 0 0 3px rgba(72, 210, 111, 0.22), 0 10px 22px rgba(52, 201, 91, 0.42);
}
.detail-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.detail-header h3 { margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 16px 0; }
.stats div {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.stats span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.section { margin-top: 14px; }
.section h4 { margin-bottom: 8px; }
.section ul { margin: 0; padding-left: 18px; }
.section li { margin-bottom: 6px; }
.message {
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.empty { color: var(--muted); font-size: 14px; }
.empty {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
}
.hidden { display: none; }
.page-no-map .site-main--app { height: auto; overflow: visible; }
.page-no-map .shell { grid-template-columns: minmax(0, 1fr); height: auto; }
.page-no-map .sidebar { border-right: none; max-width: 980px; width: 100%; margin: 0 auto; }
.page-historic.page-no-map .sidebar,
.page-owned.page-no-map .sidebar,
.page-admin-builder.page-no-map .sidebar {
  max-width: none;
  margin: 0;
}
.page-no-map .main { display: none; }
.page-stage {
  display: none;
  position: absolute;
  inset: 24px;
  max-width: 760px;
}
.page-no-map .page-stage { display: block; }
@media (max-width: 1100px) {
  .site-main--app {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .site-main--app .shell,
  .map-workspace {
    height: auto;
    min-height: 0;
  }
  .shell { grid-template-columns: 1fr; height: auto; }
  .page-owned .map-workspace,
  .page-admin-builder .map-workspace { grid-template-columns: 1fr; }
  .page-admin-builder .main {
    gap: 12px;
  }
  .page-admin-builder.site-page .site-main--app {
    gap: 12px;
  }
  .admin-workspace-topbar {
    width: calc(100% + 32px);
    margin: -4px -16px 0;
  }
  .admin-workspace-topbar__actions {
    align-items: center;
  }
  .map-sidepanel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: none;
  }
  .page-admin-builder .map-sidepanel {
    position: absolute;
    top: 72px;
    right: 12px;
    bottom: 12px;
    width: min(340px, calc(100vw - 24px));
    border-top: none;
  }
  .site-header__inner,
  .page-hero,
  .detail-main-grid,
  .detail-lower-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-search-inline {
    grid-template-columns: minmax(140px, 1.2fr) minmax(96px, 0.7fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) auto auto;
  }
  .map-toolbar--minimal {
    justify-content: space-between;
  }
  .topbar { grid-template-columns: 1fr; justify-items: start; }
  .topnav, .topbar-actions { justify-content: flex-start; }
  .sidebar {
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
  }
  .main, #map { height: 56vh; min-height: 360px; }
  .map-toolbar, .playback-card, .detail-card {
    position: static;
    width: auto;
    margin: 16px;
  }
  .page-owned .legend-bar {
    padding: 8px 14px;
    gap: 6px 10px;
  }
  .page-owned .main,
  .page-owned #map,
  .page-admin-builder .main,
  .page-admin-builder #map {
    height: 72vh;
    min-height: 420px;
  }
  .playback-card {
    width: min(320px, calc(100% - 32px));
    padding: 12px;
  }
  .playback-card h3 {
    font-size: 17px;
  }
  .playback-card .panel-head {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .playback-card .ghost.small {
    min-width: 64px;
    padding: 8px 11px;
  }
  .playback-meta {
    gap: 10px;
    font-size: 12px;
  }
  .playback-card.is-collapsed {
    width: auto;
    max-width: calc(100% - 32px);
  }
  .page-owned .mobile-map-actions,
  .page-admin-builder .mobile-map-actions {
    display: flex;
    justify-content: flex-start;
  }
  .viewer-mode .site-main--app {
    height: calc(100dvh - 102px);
    min-height: calc(100dvh - 102px);
  }
  .viewer-mode .map-sidepanel {
    top: 88px;
    right: 12px;
    bottom: auto;
    width: min(340px, calc(100vw - 24px));
  }
}
@media (max-width: 900px) {
  html,
  body:not(.page-admin-builder),
  body.site-page:not(.page-admin-builder) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .site-main:not(.site-main--app) {
    min-height: 0;
    overflow: visible;
    padding-bottom: 36px;
  }
  body.page-admin-builder {
    overflow: auto !important;
  }
  .page-admin-builder .site-main--app {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .page-admin-builder .site-main--app .shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .page-admin-builder .sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .page-admin-builder:not(.mobile-map-focus) .site-main--app {
    padding-bottom: 36px;
  }
  .page-admin-builder:not(.mobile-map-focus) .shell {
    display: block;
    min-height: 0;
    height: auto;
  }
  .page-admin-builder:not(.mobile-map-focus) .sidebar {
    gap: 12px;
    padding: 0;
    border-right: none;
    border-bottom: none;
    background: transparent;
  }
  .page-admin-builder:not(.mobile-map-focus) .tab-panel.active {
    gap: 12px;
  }
  .page-admin-builder:not(.mobile-map-focus) .admin-workspace-topbar {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .page-admin-builder:not(.mobile-map-focus) .admin-panel {
    border-radius: 18px;
  }
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-header__menu-panel {
    right: 16px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100dvh - 84px);
  }
  .site-brand__logo {
    width: auto;
    height: 48px;
    max-width: min(100%, 240px);
  }
  .site-nav {
    width: 100%;
  }
  .site-auth {
    width: 100%;
  }
  .site-auth__meta {
    width: 100%;
    text-align: left;
  }
  .site-main,
  .page-owned .site-main--app,
  .page-admin-builder .site-main--app,
  .page-historic .site-main--app {
    padding-left: 16px;
    padding-right: 16px;
  }
  .library-grid,
  .detail-lower-grid {
    grid-template-columns: 1fr;
  }
  .pricing-usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-main-grid > :last-child {
    order: -1;
  }
  .mobile-admin-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .admin-workspace-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-workspace-topbar__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .builder-mobile-note {
    display: block;
    margin: -2px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(30,123,231,0.08);
    border: 1px solid rgba(30,123,231,0.14);
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
  }
  .builder-mobile-drop-pin-row {
    display: flex;
    margin: -2px 0 10px;
  }
  .builder-mobile-drop-pin-row .ghost.small {
    width: auto;
    min-width: 120px;
  }
  .admin-panel {
    scroll-margin-top: 84px;
  }
  .detail-grid--compact {
    grid-template-columns: 1fr;
  }
  .storm-static-map--detail {
    min-height: 260px;
  }
  .library-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-owned .mobile-detail-sheet,
  .page-admin-builder .mobile-detail-sheet {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 970;
    pointer-events: none;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .page-owned .mobile-detail-sheet.hidden,
  .page-admin-builder .mobile-detail-sheet.hidden {
    display: none !important;
  }
  .mobile-detail-sheet__card {
    pointer-events: auto;
    border-radius: 22px 22px 0 0;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: min(62vh, 560px);
    overflow-y: auto;
    padding: 10px 14px 16px;
  }
  .mobile-detail-sheet__grab {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(24,50,74,0.18);
    margin: 2px auto 12px;
  }
  .mobile-detail-sheet__body .detail-card {
    display: block;
    position: static;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .mobile-detail-sheet__body .detail-card .detail-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  body.mobile-map-focus.page-owned,
  body.mobile-map-focus.page-admin-builder {
    overflow: hidden;
  }
  body.mobile-map-focus.page-owned .site-header,
  body.mobile-map-focus.page-admin-builder .site-header,
  body.mobile-map-focus.page-owned .sidebar,
  body.mobile-map-focus.page-admin-builder .sidebar,
  body.mobile-map-focus.page-owned .map-sidepanel,
  body.mobile-map-focus.page-admin-builder .map-sidepanel,
  body.mobile-map-focus.page-owned .page-stage,
  body.mobile-map-focus.page-admin-builder .page-stage {
    display: none !important;
  }
  body.mobile-map-focus.page-owned .site-main--app,
  body.mobile-map-focus.page-admin-builder .site-main--app {
    padding: 0 !important;
    height: 100dvh;
    min-height: 100dvh;
  }
  body.mobile-map-focus.page-owned .shell,
  body.mobile-map-focus.page-admin-builder .shell {
    display: block;
    height: 100dvh;
    min-height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }
  body.mobile-map-focus.page-owned .main,
  body.mobile-map-focus.page-owned #map,
  body.mobile-map-focus.page-owned .map-workspace,
  body.mobile-map-focus.page-owned .map-canvas,
  body.mobile-map-focus.page-admin-builder .main,
  body.mobile-map-focus.page-admin-builder #map,
  body.mobile-map-focus.page-admin-builder .map-workspace,
  body.mobile-map-focus.page-admin-builder .map-canvas {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
  body.mobile-map-focus.page-owned .mobile-map-actions,
  body.mobile-map-focus.page-admin-builder .mobile-map-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  body.mobile-map-focus.page-owned.viewer-mode .mobile-map-actions {
    display: none !important;
  }
  body.mobile-map-focus.page-owned .mobile-detail-sheet,
  body.mobile-map-focus.page-admin-builder .mobile-detail-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  body.mobile-map-focus.page-owned .mobile-detail-sheet.hidden,
  body.mobile-map-focus.page-admin-builder .mobile-detail-sheet.hidden {
    display: none !important;
  }
  body.mobile-map-focus.page-owned .map-toolbar,
  body.mobile-map-focus.page-admin-builder .map-toolbar,
  body.mobile-map-focus.page-owned .playback-card,
  body.mobile-map-focus.page-admin-builder .playback-card {
    position: absolute;
    margin: 0;
  }
  body.mobile-map-focus.page-owned .map-toolbar,
  body.mobile-map-focus.page-admin-builder .map-toolbar {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  body.mobile-map-focus.page-owned .playback-card,
  body.mobile-map-focus.page-admin-builder .playback-card {
    left: 12px;
    right: 12px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  body.mobile-map-focus.page-owned .playback-card.is-collapsed,
  body.mobile-map-focus.page-admin-builder .playback-card.is-collapsed {
    right: auto;
    width: auto;
    max-width: calc(100vw - 24px);
  }
  body.mobile-map-focus.page-owned .legend-bar {
    display: flex !important;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 640px) {
  .notification-menu {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(460px, calc(100dvh - 92px));
    border-radius: 14px;
  }
  .notification-list {
    max-height: calc(100dvh - 154px);
  }
  .grid.two, .stats { grid-template-columns: 1fr; }
  .site-header__inner,
  .site-main { padding-left: 14px; padding-right: 14px; }
  .site-brand__logo {
    width: 124px;
    height: 70px;
  }
  .site-nav__link,
  .site-auth .ghost.small,
  .site-auth form {
    width: 100%;
  }
  .page-hero {
    margin-bottom: 20px;
  }
  .page-hero h1 {
    font-size: clamp(28px, 10vw, 38px);
  }
  .library-search-grid,
  .storm-meta-grid,
  .detail-lower-grid,
  .score-meter-grid { grid-template-columns: 1fr; }
  .library-search-inline,
  .library-search-inline--owned {
    grid-template-columns: 1fr;
  }
  .library-search-actions,
  .storm-card__top,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .storm-card__summary {
    min-height: 0;
  }
  .storm-meta-grid { grid-template-columns: 1fr; }
  .shell { min-width: 0; }
  .panel-head.stack-on-mobile,
  .playback-meta { flex-direction: column; align-items: stretch; }
  .tab-btn { flex-basis: calc(50% - 4px); }
  .sidebar { padding: 14px; }
  .topbar { padding: 14px; }
  .panel { padding: 14px; border-radius: 16px; }
  .map-toolbar, .playback-card, .detail-card { margin: 12px; }
  .map-toolbar { width: calc(100% - 24px); }
  .main,
  #map {
    height: 46vh;
    min-height: 300px;
  }
  .page-owned .main,
  .page-owned #map,
  .page-admin-builder .main,
  .page-admin-builder #map {
    height: 64vh;
    min-height: 360px;
  }
  .page-admin-builder:not(.mobile-map-focus) .site-main--app {
    padding-top: 10px;
    padding-bottom: 32px;
  }
  .page-admin-builder:not(.mobile-map-focus) .sidebar {
    padding: 0;
    gap: 10px;
  }
  .page-admin-builder:not(.mobile-map-focus) .admin-workspace-topbar > div:first-child h2 {
    font-size: 18px;
  }
  .page-admin-builder:not(.mobile-map-focus) .admin-nav-select-wrap {
    max-width: none !important;
  }
  .page-admin-builder:not(.mobile-map-focus) .admin-nav-select {
    min-width: 0;
    width: 100%;
  }
  .page-admin-builder:not(.mobile-map-focus) .main {
    display: none;
  }
  .page-admin-builder:not(.mobile-map-focus) .map-workspace,
  .page-admin-builder:not(.mobile-map-focus) .map-canvas,
  .page-admin-builder:not(.mobile-map-focus) #map {
    height: 0 !important;
    min-height: 0 !important;
  }
  .playback-card {
    width: min(300px, calc(100% - 20px));
    padding: 11px;
  }
  .playback-card h3 {
    font-size: 16px;
  }
  .playback-card .panel-head {
    gap: 8px;
  }
  .playback-card .ghost.small {
    min-width: 60px;
    padding: 7px 10px;
  }
  .playback-card input[type="range"] {
    margin-top: 3px;
  }
  .playback-meta {
    font-size: 11px;
    margin-top: 7px;
  }
  .playback-card.is-collapsed {
    width: auto;
    max-width: calc(100% - 20px);
  }
  .map-sidepanel {
    padding: 14px;
  }
  .storm-card__body {
    padding: 16px;
  }
  .storm-card__map-note {
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
  }
  .mobile-map-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .mobile-map-actions button,
  .mobile-map-actions a {
    flex: 1 1 100%;
    width: 100%;
  }
  body.mobile-map-focus.page-owned .playback-card,
  body.mobile-map-focus.page-admin-builder .playback-card {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  body.mobile-map-focus.page-owned .playback-card.is-collapsed,
  body.mobile-map-focus.page-admin-builder .playback-card.is-collapsed {
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .mobile-detail-sheet {
    padding-left: 8px;
    padding-right: 8px;
  }
  .mobile-detail-sheet__card {
    max-height: min(68vh, 620px);
  }
  .mobile-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  h1 { font-size: 25px; }
  /* Owned viewer: single-row scrollable toolbar + tighter positions at phone size */
  .page-owned .map-toolbar {
    top: 10px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 8px;
  }
  .page-owned .map-toolbar::-webkit-scrollbar {
    display: none;
  }
  .page-owned .map-toolbar .layer-switch,
  .page-owned .map-toolbar .toolbar-icon-switch {
    gap: 4px;
    flex-wrap: nowrap;
  }
  .page-owned .map-toolbar .ghost.small {
    padding: 6px 9px;
    white-space: nowrap;
  }
  .page-owned .playback-card {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: auto !important;
    padding: 10px 12px;
  }
  .page-owned .legend-bar {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px;
    gap: 4px 10px;
    font-size: 11px;
  }
  .page-owned .leaflet-control-zoom {
    display: none !important;
  }
  /* Detail modal: slide up from bottom on phones */
  .detail-modal {
    padding: 10px;
    align-items: flex-end;
  }
  .detail-modal__card {
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 20px 20px 14px 14px;
  }
  .property-pin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .property-pin-history-card {
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
  }
  .property-pin-history-list {
    gap: 10px;
    margin-top: 12px;
  }
  .property-pin-history-item {
    padding: 14px;
    gap: 8px;
    border-radius: 14px;
  }
  .property-pin-history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .property-pin-history-head .pill {
    align-self: flex-start;
  }
  .property-pin-history-meta,
  .property-pin-history-address {
    font-size: 12px;
    line-height: 1.5;
  }
  .property-pin-history-note {
    line-height: 1.6;
  }
  .profile-notification-toggle-card {
    padding: 14px;
  }
  .profile-notifications-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .profile-notifications-card {
    padding: 14px;
  }
  .profile-alert-types-list {
    gap: 12px;
  }
  .profile-check-row {
    align-items: flex-start;
    line-height: 1.45;
  }
  .profile-states-card {
    max-height: none;
    overflow: visible;
    padding: 12px 12px 6px;
  }
  .profile-states-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-state-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(24,50,74,0.08);
  }
  .profile-state-row:last-child {
    border-bottom: none;
  }
}

/* Historic address autocomplete suggestions */
.address-suggestions {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.address-suggestions li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}
.address-suggestions li:hover,
.address-suggestions li.active {
  background: rgba(103, 208, 255, 0.14);
  color: var(--text);
}


.admin-users-table-wrap {
  padding: 0;
  overflow: hidden;
}
.admin-users-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.admin-users-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-users-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  background: rgba(237, 243, 250, 0.92);
  border-bottom: 1px solid var(--border);
}
.admin-users-table tbody td {
  padding: 16px;
  border-bottom: 1px solid rgba(24, 50, 74, 0.08);
  vertical-align: middle;
  background: rgba(255,255,255,0.88);
}
.admin-users-table tbody tr:hover td {
  background: rgba(246, 249, 253, 0.98);
}
.admin-users-table__user,
.admin-users-table__summary,
.admin-users-table__billing {
  display: grid;
  gap: 4px;
  line-height: 1.3;
}
.admin-users-table__user {
  min-width: 260px;
}
.admin-users-table__user strong,
.admin-users-table__summary strong,
.admin-users-table__billing strong {
  font-size: 14px;
}
.admin-users-table__summary {
  min-width: 180px;
}
.admin-users-table__billing {
  min-width: 210px;
}
.admin-users-table__actions {
  display: grid;
  gap: 8px;
}
.admin-users-table__actions--row {
  grid-template-columns: repeat(2, auto);
  align-items: center;
  justify-content: flex-start;
}
.admin-users-table .ghost.small,
.admin-users-table button.small {
  padding: 8px 12px;
  line-height: 1;
}
.admin-users-table .reset-result {
  margin-top: 8px;
  font-size: 12px;
  max-width: 220px;
}

.body.modal-open,
body.modal-open {
  overflow: hidden;
}
.admin-user-modal[hidden] {
  display: none;
}
.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}
.admin-user-modal__card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}
.admin-user-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-user-modal__header h2 {
  margin: 4px 0 6px;
}
.admin-user-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
  gap: 18px;
}
.admin-user-modal__section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.78);
}
.admin-user-modal__section h3 {
  margin: 0;
}
.admin-user-modal__section label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.admin-user-modal__section select,
.admin-user-modal__section input[type="date"] {
  margin-top: 0;
}
.admin-user-modal__billing-card {
  padding: 14px;
  border: 1px solid rgba(24, 50, 74, 0.08);
  border-radius: 14px;
  background: #fff;
}
.admin-user-modal__action-stack {
  display: grid;
  gap: 8px;
}
#modal-reset-result {
  font-size: 12px;
}
@media (max-width: 900px) {
  .admin-users-table-wrap {
    padding: 0;
  }
  .admin-user-modal {
    padding: 12px;
    align-items: end;
  }
  .admin-user-modal__card {
    width: 100%;
    max-height: 92vh;
    padding: 18px;
    border-radius: 20px 20px 0 0;
  }
  .admin-user-modal__header,
  .admin-user-modal__grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .admin-users-table__actions--row {
    grid-template-columns: 1fr;
  }
}

/* ── Property Pins pricing section ── */
.pricing-pins-section {
  margin-top: 40px;
  padding: 40px 36px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 55%, #f3faf7 100%);
  border: 1px solid rgba(30,123,231,0.14);
  border-radius: 24px;
}
.pricing-pins-header { text-align: center; margin-bottom: 32px; }
.pricing-pins-header h2 { font-size: 26px; margin-bottom: 10px; }
.pricing-pins-header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.pricing-pins-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pricing-pin-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.pricing-pin-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: Manrope, Inter, sans-serif;
}
.pricing-pin-step h3 { font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.pricing-pin-step p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.pricing-pins-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 0;
}
.pricing-pin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.pricing-pins-footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Pricing responsive ── */
@media (max-width: 1100px) {
  .page-owned #toggle-property-pins-toolbar,
  .page-owned #toggle-add-pin {
    display: none;
  }
  .page-owned .pins-dropdown {
    display: inline-flex;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .page-owned .map-toolbar {
    position: absolute;
    z-index: 900;
    margin: 0;
    top: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 140px);
    justify-content: flex-start;
    overflow-x: auto;
  }
  .page-owned .playback-card {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 74px;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 140px);
    margin: 0;
  }
}

@media (max-width: 900px) {
  .pricing-pins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .page-owned .map-toolbar {
    position: absolute;
    z-index: 900;
    margin: 0;
    top: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 140px);
    justify-content: flex-start;
    overflow-x: auto;
  }
  .page-owned .playback-card {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 140px);
    margin: 0;
  }
  body.mobile-map-focus.page-owned .map-toolbar {
    position: absolute;
    top: 10px;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100% - 140px);
    transform: translateX(-50%);
    margin: 0;
  }
  body.mobile-map-focus.page-owned .playback-card {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: fit-content;
    max-width: calc(100% - 140px);
    transform: translateX(-50%);
    margin: 0;
  }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .page-subscriptions { overflow-x: hidden; }
  .page-subscriptions .site-main,
  .page-subscriptions .page-hero,
  .page-subscriptions .plans-grid,
  .page-subscriptions .plan-card,
  .page-subscriptions .pricing-features-section,
  .page-subscriptions .pricing-pins-section,
  .page-subscriptions .pricing-usecases-section,
  .page-subscriptions .pricing-reassurance {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .page-subscriptions .plan-card,
  .page-subscriptions .pricing-feature,
  .page-subscriptions .pricing-pin-step,
  .page-subscriptions .pricing-usecase,
  .page-subscriptions .pricing-faq {
    overflow-wrap: anywhere;
  }
  .pricing-pins-grid { grid-template-columns: 1fr; }
  .pricing-usecases-grid { grid-template-columns: 1fr; }
  .pricing-features-grid { grid-template-columns: 1fr; }
  .pricing-pins-section { padding: 28px 20px; }
}
