:root {
  --bg: #050506;
  --panel: rgba(5, 5, 6, 0.98);
  --panel-soft: rgba(13, 13, 15, 0.94);
  --menu-bar: #1b1b1b;
  --menu-bar-rgb: 27, 27, 27;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #edf7f3;
  --muted: #78918a;
  --mint: #1b1b1b;
  --mint-strong: #141414;
  --mint-rgb: 27, 27, 27;
  --amber: #ffb454;
  --amber-rgb: 255, 180, 84;
  --brand-primary: var(--mint);
  --brand-secondary: var(--amber);
  --brand-contrast: #ffffff;
  --login-background-color: #151515;
  --login-background-image: linear-gradient(#151515, #151515);
  --red: #ff666b;
  --blue: #57a6ff;
  --purple: #a889ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.login-screen {
  position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 20px;
  overflow: hidden;
  background-color: var(--login-background-color);
  background-image:
    var(--login-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text); transition: opacity .3s ease, visibility .3s ease;
}
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.login-screen::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(139, 92, 246, .2), rgba(3, 3, 5, .18) 34%, rgba(3, 3, 5, .92) 76%),
    radial-gradient(circle at 78% 18%, rgba(var(--mint-rgb), .12), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(196, 150, 255, .12), transparent 34%);
  mix-blend-mode: screen;
  opacity: .95;
}
.login-screen::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 42%, rgba(0, 0, 0, .76));
}
.login-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.login-panel {
  position: relative; z-index: 2; width: min(880px, calc(100vw - 48px)); display: grid; gap: 18px; justify-items: center;
}
.login-credit {
  position: fixed; left: 50%; bottom: 4.5%; transform: translateX(-50%); z-index: 2;
  display: grid; gap: 2px; justify-items: center; color: #fff; text-align: center; text-shadow: 0 10px 24px rgba(0, 0, 0, .72);
  pointer-events: none;
}
.login-credit span {
  color: #fff; font-size: clamp(7.2px, .492vw, 8.4px); font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
}
.login-credit strong {
  color: #fff; font-size: clamp(12.85px, 1.414vw, 21.42px); font-weight: 950; letter-spacing: .02em; line-height: 1;
}
html[data-setup="loading"] .login-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.login-card {
  position: relative; z-index: 1;
  width: 100%;
  min-height: min(350px, calc(90vh - 150px));
  padding: 41.4px 66.86px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px;
  display: grid; grid-template-columns: minmax(150px, 220px) 1px minmax(0, 1fr); align-items: center; gap: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 34%, rgba(0, 0, 0, .2)),
    rgba(17, 17, 17, .62);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(5px) saturate(1.25);
  -webkit-backdrop-filter: blur(5px) saturate(1.25);
}
.login-brand { height: auto; min-height: 0; display: grid; place-items: center; margin: 0; }
.login-brand img {
  display: block;
  width: clamp(136.85px, 17.6vw, 215.05px);
  max-height: 195.5px;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s ease;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
  margin: 0;
}
.login-brand img[src] { opacity: 1; }
.login-card-divider { align-self: center; width: 1.5px; height: 385px; max-height: 78%; background: rgba(255, 255, 255, .24); }
.login-content { min-width: 0; }
.login-eyebrow { display: block; margin: 0; color: var(--brand-contrast); font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; text-align: center; line-height: 1; }
.login-card h1 { margin: 0 0 8px; color: var(--brand-primary); font-size: 26.4px; font-weight: 900; letter-spacing: .1em; line-height: 1.05; text-align: center; }
.login-form { display: grid; gap: 14px; width: 86.4%; margin: 28px auto 0; }
.reset-form { margin-top: 22px; }
.login-credentials {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.login-field-divider {
  width: 1px;
  background: rgba(255, 255, 255, .25);
  margin: 0 14px;
}
.login-form label { display: grid; gap: 0; }
.login-form label span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.login-form input {
  width: 100%; height: 42.8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255,255,255,.045);
  color: #f6fbf9; padding: 0 18px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-form input::placeholder { color: rgba(246, 251, 249, .56); font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.login-form input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .14); background: rgba(255,255,255,.07); }
.login-submit,
.login-google {
  width: 100%; border-radius: 10px; cursor: pointer; font-weight: 850; letter-spacing: .02em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-submit { height: 48px; margin-top: 4px; border: 1px solid rgba(var(--mint-rgb), .78); background: var(--brand-primary); color: var(--brand-contrast); box-shadow: 0 12px 26px rgba(var(--mint-rgb), .18); }
.login-google {
  width: 86.4%; height: 48px; margin-left: auto; margin-right: auto; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255,255,255,.045); color: #f6fbf9; font-size: 11px; font-weight: 500;
}
.login-google svg { width: 18px; height: 18px; fill: none; stroke: none; }
.login-submit:hover,
.login-google:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(var(--mint-rgb), .16), 0 12px 26px rgba(0,0,0,.24); }
.login-divider { width: 72%; display: flex; align-items: center; gap: 10px; margin: 18px auto; color: #687d76; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.login-divider::before,
.login-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.login-message { min-height: 18px; margin-top: 14px; color: var(--brand-primary); font-size: 10px; font-weight: 800; text-align: center; }
.login-message.is-error { color: var(--red); }
.login-message.is-ok { color: var(--brand-primary); }
.login-reset-link {
  display: block; margin: 8px auto 0; padding: 0; border: 0; background: transparent; color: #fff;
  font-size: 12px; font-weight: 850; letter-spacing: .01em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.login-reset-link:hover { color: var(--brand-primary); }
.login-view-hidden { display: none !important; }
@media (max-width: 780px) {
  .login-screen {
    background-image: var(--login-background-image);
  }
  .login-screen::before {
    opacity: .85;
  }
  .login-panel { width: 90vw; justify-items: center; }
  .login-card {
    min-height: auto;
    padding: 41.4px 24.63px 39.1px;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .login-form,
  .login-google,
  .login-divider { width: 100%; }
  .login-brand img { width: clamp(116.96px, 43.84vw, 175.38px); max-height: 160.77px; transform: translateY(-20%); }
  .login-card-divider { display: none; }
  .login-credentials { grid-template-columns: 1fr; }
  .login-field-divider { display: none; }
  .login-form input { height: 52.9px; }
}
body[data-auth="checking"] .login-screen,
body[data-auth="signed-in"] .login-screen { opacity: 0; visibility: hidden; pointer-events: none; }
body[data-auth="checking"] .app-shell,
body[data-auth="signed-out"] .app-shell { visibility: hidden; pointer-events: none; }
body[data-auth="signed-out"] .loading-screen { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-screen {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #000; opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}
.loading-screen img { display: block; width: 458px; height: 458px; object-fit: contain; opacity: 0; transition: opacity .2s ease; }
.loading-screen.is-configured img[src] { opacity: 1; }
.loading-screen.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.portfolio-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.portfolio-update-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.portfolio-update-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 250px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(0, 0, 0, .62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}
.portfolio-update-card img {
  width: 69px;
  height: 69px;
  object-fit: contain;
}
.portfolio-update-card strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-shell.is-portfolio-updating {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.gm-fullscreen-control { display: none !important; }
.gm-iv-address,
.gm-iv-marker,
.gm-iv-small-container,
.gm-compass,
.gm-bundled-control {
  display: none !important;
}
body, .topbar, .workspace, .sidebar, .map-stage, .asset-panel,
.map-control-cluster, .top-map-actions, .map-type-control {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
button, input { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { height: 100vh; background: var(--bg); position: relative; }
.topbar {
  min-height: 50px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--menu-bar);
  position: absolute;
  top: 2%;
  right: 12px;
  left: auto;
  z-index: 72;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  transition: right .28s ease, background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.app-shell:has(.workspace.sidebar-collapsed) .topbar { right: 12px; }

.brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; min-width: 0; z-index: 1;
}
.brand-logo {
  display: block; width: 190px; height: 46px; object-fit: contain; object-position: center; margin-block: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .32)); opacity: 0; transition: opacity .2s ease;
}
.brand-logo[src] { opacity: 1; }

.top-actions { margin-left: 0; display: flex; align-items: center; gap: 0; position: relative; z-index: 2; }
.mobile-map-menu-tag { display: none; }
.icon-button, .avatar-button { border: 0; cursor: pointer; background: transparent; }
.icon-button { width: 34px; height: 34px; position: relative; color: #8ba29a; padding: 7px; }
.theme-toggle, .sound-toggle { border-radius: 9px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.theme-toggle:hover, .sound-toggle:hover { color: var(--mint); background: rgba(var(--mint-rgb), .08); transform: rotate(8deg); }
.theme-icon { position: absolute; inset: 7px; width: 18px; height: 18px; transition: opacity .2s ease, transform .3s ease; }
.theme-icon-moon { inset: 6px; width: 22px; height: 22px; opacity: 0; transform: rotate(-35deg) scale(.7); fill: currentColor; stroke: none; }
[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(35deg) scale(.7); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.sound-icon { position: absolute; inset: 7px; width: 18px; height: 18px; transition: opacity .2s ease, transform .28s ease; }
.sound-icon-off { opacity: 0; transform: scale(.72); }
.sound-toggle.is-muted .sound-icon-on { opacity: 0; transform: scale(.72); }
.sound-toggle.is-muted .sound-icon-off { opacity: 1; transform: scale(1); }
.system-status { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.system-status i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  animation: status-led-cycle 6s steps(1, end) infinite;
}
@keyframes status-led-cycle {
  0%, 83.33% { opacity: 1; box-shadow: 0 0 12px var(--mint); }
  83.34%, 100% { opacity: .18; box-shadow: none; }
}
.system-status span, .system-status strong { display: block; }
.system-status span { color: var(--muted); font-size: 8.05px; letter-spacing: .16em; }
.system-status strong { color: var(--mint); font-size: 10.35px; margin-top: 3px; letter-spacing: .09em; }
.avatar-button { width: 34px; height: 34px; border-radius: 9px; font-size: 10px; font-weight: 800; color: var(--brand-contrast); background: linear-gradient(135deg, var(--mint), var(--mint-strong)); }

.workspace { height: 100vh; display: grid; grid-template-columns: 200px 1fr; grid-template-rows: 1fr; transition: grid-template-columns .28s ease; }
.workspace.sidebar-collapsed { grid-template-columns: 67px 1fr; }
.sidebar {
  grid-column: 1; grid-row: 1 / -1;
  position: relative; overflow: visible; background: var(--menu-bar); border-right: 1px solid var(--line); padding: 18px 11px 11px; z-index: 30;
  display: flex; flex-direction: column; min-height: 0; transition: padding .28s ease, background-color .3s ease, border-color .3s ease;
}
.sidebar-toggle {
  position: absolute; top: 1%; left: 100%; right: auto; margin-left: 3px; z-index: 35; width: 19px; height: 35px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 0 8px 8px 0; background: var(--brand-primary); color: var(--brand-contrast); cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sidebar-toggle:hover { color: var(--brand-contrast); background: var(--brand-primary); border-color: transparent; box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .2), 0 8px 18px rgba(0, 0, 0, .24); }
.sidebar-toggle svg { display: block; width: 12px; height: 12px; margin: auto; transition: transform .25s ease; }
.workspace.sidebar-collapsed .sidebar { padding: 11px 5px; align-items: center; }
.workspace.sidebar-collapsed .sidebar-toggle { top: 1%; left: 100%; right: auto; margin: 0 0 0 2px; }
.workspace.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.primary-nav { display: grid; gap: 6px; padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nav-item {
  border: 0; background: transparent; border-radius: 10px; height: 46px; padding: 0 9px; color: #779087;
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; cursor: pointer; text-align: left; font-size: 10px; font-weight: 600;
}
.nav-item svg { width: 24.65px; height: 24.65px; display: block; margin: 0; }
.nav-item img.nav-item-icon {
  width: 24.65px;
  height: 24.65px;
  display: block;
  margin: 0;
}
.sidebar .nav-item svg,
.sidebar .settings-button svg,
.sidebar-toggle svg {
  color: #ffffff !important;
  stroke: currentColor;
}
.sidebar .nav-item img.nav-item-icon {
  filter: brightness(0) invert(1) !important;
  opacity: 1;
}
.sidebar .nav-item:hover svg,
.sidebar .nav-item:focus-visible svg,
.sidebar .settings-button:hover svg,
.sidebar .settings-button:focus-visible svg {
  color: #ffffff !important;
}
.analytics-icon-map {
  display: none !important;
}
.workspace.analytics-mode .analytics-icon-chart {
  display: none !important;
}
.workspace.analytics-mode .analytics-icon-map {
  display: block !important;
}
.workspace.analytics-mode .analytics-nav-item {
  color: #ffffff;
  background: rgba(var(--mint-rgb), .1);
  box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1);
}
.analytics-nav-item,
.analytics-nav-item:hover,
.analytics-nav-item:focus-visible,
.workspace.analytics-mode .analytics-nav-item,
[data-theme="light"] .analytics-nav-item,
[data-theme="light"] .analytics-nav-item:hover,
[data-theme="light"] .analytics-nav-item:focus-visible {
  color: #ffffff !important;
}
.analytics-nav-item .analytics-nav-icon,
.analytics-nav-item .analytics-label {
  color: #ffffff !important;
}
.google-map-markers-icon-on {
  display: none !important;
}
.google-map-markers-toggle.is-on {
  color: #ffffff;
  background: rgba(var(--mint-rgb), .1);
  box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1);
}
.google-map-markers-toggle.is-on .google-map-markers-icon-off {
  display: none !important;
}
.google-map-markers-toggle.is-on .google-map-markers-icon-on {
  display: block !important;
}
.google-map-markers-toggle.is-on b {
  color: var(--brand-contrast);
  background: var(--brand-primary);
}
.nav-item-icon.nav-item-layer-icon {
  filter: brightness(0) invert(1);
}
.nav-item:hover { color: #c3d5cf; background: rgba(var(--mint-rgb), .1); box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1); }
.nav-item b { min-width: 20px; text-align: center;  padding: 2px 2px; background: #1b2a27; border-radius: 6px; font-size: 6px; color: #8ca199; }
.nav-item b.danger { color: #ff8d90; background: rgba(255, 102, 107, .12); }
.workspace.sidebar-collapsed .primary-nav { width: 100%; justify-items: center; padding-bottom: 12px; }
.workspace.sidebar-collapsed .nav-item { width: 33px; height: 40px; display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
.workspace.sidebar-collapsed .nav-item svg { width: 21.25px; height: 21.25px; display: block; margin: 0; }
.workspace.sidebar-collapsed .nav-item img.nav-item-icon { width: 21.25px; height: 21.25px; }
.workspace.sidebar-collapsed .nav-item span,
.workspace.sidebar-collapsed .nav-item b { display: none; }

.sidebar-section { padding-top: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 9px; color: #61766f; font-size: 6px; font-weight: 800; letter-spacing: .15em; }
.section-heading button { border: 0; background: transparent; color: #61766f; cursor: pointer; font-size: 14px; }
.section-toggle { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; transition: color .2s ease, background .2s ease; }
.section-toggle:hover { color: var(--mint); background: rgba(var(--mint-rgb), .1); box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1); }
.section-toggle svg { width: 18px; height: 18px; transition: transform .22s ease; }
.sidebar-section.is-collapsed .section-toggle svg { transform: rotate(180deg); }
.layer-list { display: grid; max-height: 213px; opacity: 1; overflow: hidden; transition: max-height .26s ease, opacity .2s ease; }
.sidebar-section.is-collapsed .layer-list { max-height: 0; opacity: 0; pointer-events: none; }
.sidebar-section.is-collapsed .section-heading { padding-bottom: 0; }
.layer-row { display: grid; grid-template-columns: 30px 1fr 25px; gap: 8px; align-items: center; padding: 8px 8px; border-radius: 10px; cursor: pointer; }
.layer-row:hover { background: rgba(var(--mint-rgb), .1); box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1); }
.layer-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; }
.layer-icon i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.layer-icon.mint { color: var(--mint); background: rgba(var(--mint-rgb), .1); }
.layer-icon.orange { color: var(--amber); background: rgba(var(--amber-rgb), .1); }
.layer-icon.blue { color: var(--blue); background: rgba(87, 166, 255, .1); }
.layer-icon.purple { color: var(--purple); background: rgba(168, 137, 255, .1); }
.layer-icon.gray { color: #7d918b; background: rgba(125, 145, 139, .1); }
.layer-row strong, .layer-row small { display: block; }
.layer-row strong { color: #b8cbc4; font-size: 9px; font-weight: 600; }
.layer-row small { color: #526861; font-size: 6px; margin-top: 1px; }
.layer-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  width: 18px; height: 10px; border-radius: 20px; background: var(--brand-contrast); position: relative; transition: .2s;
  border: 1px solid var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), .16);
}
.switch::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); left: 1px; top: 1px; transition: .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
.layer-row input:checked + .switch {
  background: var(--brand-contrast);
  border-color: var(--brand-primary);
  box-shadow: 0 0 10px rgba(var(--mint-rgb), .34);
}
.layer-row input:checked + .switch::after {
  transform: translateX(8px); background: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22), 0 0 8px rgba(var(--mint-rgb), .42);
}
.workspace.sidebar-collapsed .sidebar-section { width: 100%; padding-top: 12px; }
.workspace.sidebar-collapsed .section-heading { display: none; }
.workspace.sidebar-collapsed .layer-list,
.workspace.sidebar-collapsed .sidebar-section.is-collapsed .layer-list {
  display: grid; justify-items: center; gap: 8px; max-height: none; opacity: 1; overflow: visible; pointer-events: auto;
}
.workspace.sidebar-collapsed .layer-row {
  width: 33px; height: 33px; display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0;
}
.workspace.sidebar-collapsed .layer-row > span:not(.layer-icon),
.workspace.sidebar-collapsed .layer-row .switch { display: none; }
.workspace.sidebar-collapsed .layer-icon { width: 31px; height: 31px; transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
.workspace.sidebar-collapsed .layer-row:hover .layer-icon { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .18), 0 8px 18px rgba(var(--mint-rgb), .12); }
.workspace.sidebar-collapsed .layer-row:has(input:not(:checked)) .layer-icon { opacity: .38; filter: grayscale(.85); }

.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.settings-button { border: 0; border-radius: 11px; height: 38px; width: 100%; padding: 0 10px; background: transparent; display: grid; grid-template-columns: 23px 1fr; align-items: center; gap: 10px; cursor: pointer; text-align: left; color: #687d76; font-size: 10px; font-weight: 600; }
.settings-button:hover { color: var(--mint); background: rgba(var(--mint-rgb), .1); box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1); }
.settings-icon { width: 24.65px; height: 24.65px; border: 0; border-radius: 0; background: transparent; display: grid; place-items: center; }
.settings-button svg { width: 24.65px; height: 24.65px; }
.settings-label { display: block; color: inherit; }
.workspace.sidebar-collapsed .sidebar-bottom { width: 100%; display: grid; justify-items: center; margin-top: auto; }
.workspace.sidebar-collapsed .settings-button { width: 33px; height: 33px; display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
.workspace.sidebar-collapsed .settings-icon { width: 21.25px; height: 21.25px; }
.workspace.sidebar-collapsed .settings-button svg { width: 21.25px; height: 21.25px; }
.workspace.sidebar-collapsed .settings-label { display: none; }

.workspace.sidebar-collapsed .nav-item,
.workspace.sidebar-collapsed .layer-row,
.workspace.sidebar-collapsed .settings-button {
  position: relative;
}
.workspace.sidebar-collapsed .nav-item::after,
.workspace.sidebar-collapsed .layer-row::after,
.workspace.sidebar-collapsed .settings-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 90;
  transform: translate(-4px, -50%);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #1b1b1b;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.workspace.sidebar-collapsed .nav-item::before,
.workspace.sidebar-collapsed .layer-row::before,
.workspace.sidebar-collapsed .settings-button::before {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  z-index: 91;
  width: 8px;
  height: 8px;
  background: #1b1b1b;
  border-left: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transform: translate(-4px, -50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.workspace.sidebar-collapsed .nav-item:hover::after,
.workspace.sidebar-collapsed .nav-item:focus-visible::after,
.workspace.sidebar-collapsed .layer-row:hover::after,
.workspace.sidebar-collapsed .layer-row:focus-within::after,
.workspace.sidebar-collapsed .settings-button:hover::after,
.workspace.sidebar-collapsed .settings-button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.workspace.sidebar-collapsed .nav-item:hover::before,
.workspace.sidebar-collapsed .nav-item:focus-visible::before,
.workspace.sidebar-collapsed .layer-row:hover::before,
.workspace.sidebar-collapsed .layer-row:focus-within::before,
.workspace.sidebar-collapsed .settings-button:hover::before,
.workspace.sidebar-collapsed .settings-button:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.map-stage { grid-column: 2; grid-row: 1; min-width: 0; position: relative; overflow: hidden; background: #101a18; touch-action: none; overscroll-behavior: contain; }
.map, .fallback-map { position: absolute; inset: 0; }
.map { transition: filter .28s ease; }
.map > div:first-child,
.map .gm-style {
  width: 100% !important;
  height: 100% !important;
}
.map,
.map .gm-style {
  touch-action: none !important;
  overscroll-behavior: contain;
}
.fallback-map {
  overflow: hidden;
  background:
    linear-gradient(25deg, transparent 48%, rgba(152, 189, 175, .06) 49%, rgba(152, 189, 175, .06) 51%, transparent 52%) 0 0 / 170px 170px,
    linear-gradient(115deg, transparent 46%, rgba(152, 189, 175, .045) 47%, rgba(152, 189, 175, .045) 50%, transparent 51%) 0 0 / 230px 230px,
    radial-gradient(circle at 53% 44%, #192b27 0, #111d1b 45%, #0c1614 100%);
}
.fallback-map::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(var(--mint-rgb), .08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--mint-rgb), .08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.fallback-road { position: absolute; height: 3px; border-top: 1px solid rgba(158, 189, 178, .14); border-bottom: 1px solid rgba(158, 189, 178, .08); transform-origin: left; z-index: 2; }
.road-a { width: 130%; top: 54%; left: -10%; transform: rotate(-12deg); }
.road-b { width: 100%; top: 18%; left: 16%; transform: rotate(58deg); }
.road-c { width: 90%; top: 78%; left: 18%; transform: rotate(-48deg); }
.fallback-zone { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 1; }
.zone-a { width: 250px; height: 190px; left: 37%; top: 25%; background: radial-gradient(circle, rgba(255, 112, 80, .24), rgba(var(--amber-rgb), .08) 50%, transparent 72%); }
.zone-b { width: 220px; height: 170px; left: 60%; top: 56%; background: radial-gradient(circle, rgba(var(--amber-rgb), .16), transparent 70%); }
.fallback-route { position: absolute; z-index: 3; left: 31%; top: 26%; width: 38%; height: 42%; border: 2px solid transparent; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 20% 50% 40%; transform: rotate(14deg); filter: drop-shadow(0 0 4px rgba(87, 166, 255, .7)); opacity: .7; }
.fallback-pin { position: absolute; width: 23px; height: 23px; z-index: 4; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--mint); box-shadow: 0 0 0 5px rgba(var(--mint-rgb), .1), 0 4px 14px rgba(0, 0, 0, .5); }
.fallback-pin i { position: absolute; width: 7px; height: 7px; background: #0c1715; border-radius: 50%; left: 8px; top: 8px; }
.fallback-pin.alert { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 102, 107, .1), 0 4px 14px rgba(0, 0, 0, .5); }
.pin-a { left: 47%; top: 37%; }
.pin-b { left: 61%; top: 57%; }
.pin-c { left: 37%; top: 66%; }
.map-label { position: absolute; z-index: 3; color: rgba(178, 204, 194, .26); font-size: 9px; letter-spacing: .22em; font-weight: 700; }
.label-a { left: 23%; top: 30%; } .label-b { left: 49%; top: 50%; } .label-c { left: 72%; top: 68%; }
.maps-ready .fallback-map { display: none; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 100px rgba(3, 10, 8, .62); }
.analytics-view {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #161616;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, background-color .3s ease;
}
.workspace.analytics-mode .analytics-view {
  opacity: 1;
  pointer-events: auto;
}
.analytics-content {
  width: 90%;
  height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 0;
  display: flex;
  flex-direction: column;
  color: #f4f4f4;
  overflow-y: auto;
}
#my-places-analytics-section {
  order: 1;
}
#portfolio-analytics-section {
  order: 2;
}
#developments-analytics-section {
  order: 3;
}
.analytics-section-card {
  display: grid;
  gap: 34px;
  padding: clamp(18px, 2.6vw, 30px);
  border: 0;
  border-radius: 18px;
  background: #1f2020;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}
.analytics-section-card[hidden],
.analytics-chart-layout[hidden],
.analytics-my-places-layout[hidden],
.analytics-portfolio-layout[hidden],
.analytics-chart-carousel[hidden] {
  display: none !important;
}
.analytics-section-card + .analytics-section-card {
  margin-top: 28px;
}
.analytics-card-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #999999;
}
.analytics-card-heading h2 {
  flex: 1;
  margin: 0;
  color: var(--brand-primary);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .14em;
  line-height: 1;
  text-align: left;
}
.analytics-card-heading-simple {
  justify-content: flex-start;
}
.analytics-card-heading-simple h2 {
  flex: initial;
}
.analytics-card-heading span {
  flex: 1;
  color: var(--brand-secondary);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .1em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.analytics-heading-metric {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.analytics-heading-metric small,
.analytics-heading-metric strong {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}
.analytics-chart-layout {
  --analytics-lower-card-height: 450px;
  display: grid;
  margin-top: 4px;
  grid-template-columns: minmax(420px, 468px) minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}
.analytics-mini-metrics {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: var(--analytics-lower-card-height);
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: start;
}
.analytics-mini-card {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 18px;
  color: var(--brand-secondary);
  background: rgba(255, 255, 255, .035);
  font-weight: 950;
  letter-spacing: .1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.analytics-mini-card small,
.analytics-mini-card strong {
  width: 100%;
  text-align: center;
}
.analytics-mini-card small {
  font-size: 18px;
  font-weight: 950;
}
.analytics-mini-card strong {
  font-size: 22px;
  font-weight: 950;
}
.analytics-chart-layout h2,
.analytics-my-places-layout h2,
.analytics-portfolio-layout h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1.12;
  text-align: center;
}
.analytics-chart-layout h2 span,
.analytics-my-places-layout h2 span,
.analytics-portfolio-layout h2 span {
  display: block;
}
.analytics-chart-frame {
  position: relative;
  width: 100%;
  max-width: 468px;
  min-height: 450px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  place-items: center;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.analytics-chart-carousel {
  position: relative;
  width: 100%;
  max-width: 676px;
  min-height: 450px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding-inline: 36px;
}
.analytics-column-carousel {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  height: var(--analytics-lower-card-height);
  min-height: 0;
  justify-self: stretch;
  align-self: start;
  padding-inline: 0;
}
.analytics-column-carousel .analytics-carousel-viewport {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: stretch;
}
.analytics-column-carousel .analytics-carousel-slide {
  height: 100%;
  min-height: 0;
  max-width: none;
}
.analytics-column-carousel .analytics-chart-frame {
  height: 100%;
  min-height: 0;
  max-width: none;
  justify-items: center;
}
.analytics-column-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0;
  text-align: center;
}
.analytics-column-heading h2 {
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.analytics-column-total {
  margin: 10px 0 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.analytics-column-scroll {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-self: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 8px;
  scrollbar-color: var(--brand-primary) rgba(255,255,255,.12);
  scrollbar-width: thin;
}
.analytics-column-scroll::-webkit-scrollbar {
  height: 8px;
}
.analytics-column-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.analytics-column-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--brand-primary);
}
.analytics-carousel-viewport {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}
.analytics-carousel-slide {
  grid-area: 1 / 1;
  max-width: 572px;
}
.analytics-carousel-slide[hidden] {
  display: none;
}
.analytics-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 30px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, .38);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.analytics-carousel-arrow:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.04);
}
.analytics-carousel-prev {
  left: 52px;
}
.analytics-carousel-next {
  right: 52px;
}
.analytics-chart-frame canvas {
  justify-self: center;
  align-self: center;
  width: min(100%, 320px);
  height: min(100%, 320px);
}
.analytics-chart-frame .analytics-column-canvas {
  display: block;
  margin-inline: auto;
  max-width: none;
  height: 345px;
}
.analytics-months-carousel {
  width: 100%;
  max-width: none;
  height: var(--analytics-lower-card-height);
  min-height: 0;
  max-height: var(--analytics-lower-card-height);
  align-self: start;
  justify-self: stretch;
  padding-inline: 0;
}
.analytics-months-carousel .analytics-carousel-viewport {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: stretch;
}
.analytics-months-carousel .analytics-carousel-slide {
  height: 100%;
  min-height: 0;
  max-height: var(--analytics-lower-card-height);
  max-width: none;
  overflow: hidden;
}
.analytics-months-carousel .analytics-bar-card {
  height: 100%;
  min-height: 0;
  max-height: var(--analytics-lower-card-height);
  grid-template-rows: 48px minmax(0, 1fr);
  align-content: stretch;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-inline: 72px;
  scrollbar-gutter: stable;
}
.analytics-months-carousel .analytics-bar-card h2 {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: inherit;
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.analytics-months-carousel .analytics-bar-list {
  width: min(100%, 760px);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin-inline: auto;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 6px;
  padding-right: 6px;
}
.analytics-months-carousel .analytics-bar-row {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) 88px;
  min-height: 30px;
  gap: 10px;
}
.analytics-months-carousel .analytics-bar-row strong {
  white-space: normal;
  line-height: 1.15;
}
#potential-pie-carousel {
  width: 100%;
  max-width: 468px;
  height: var(--analytics-lower-card-height);
  min-height: 0;
  max-height: var(--analytics-lower-card-height);
  align-self: start;
  justify-self: start;
  padding-inline: 0;
}
#potential-pie-carousel .analytics-carousel-viewport {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: stretch;
}
#potential-pie-carousel .analytics-carousel-slide,
#potential-pie-carousel .analytics-chart-frame {
  height: 100%;
  min-height: 0;
  max-height: var(--analytics-lower-card-height);
  max-width: none;
  overflow: hidden;
}
#potential-pie-carousel .analytics-carousel-prev {
  left: 22px;
}
#potential-pie-carousel .analytics-carousel-next {
  right: 28px;
}
.analytics-portfolio-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 468px));
  justify-content: start;
  gap: 16px;
}
.analytics-my-places-layout {
  display: grid;
  grid-template-columns: minmax(320px, 468px) minmax(320px, 468px);
  justify-content: start;
  gap: 16px;
}
.analytics-my-places-metrics {
  height: 450px;
}
.analytics-my-places-chart {
  width: 100%;
  max-width: 468px;
  min-height: 450px;
  height: 450px;
}
.analytics-portfolio-carousel {
  width: 100%;
  max-width: 468px;
  justify-self: start;
  padding-inline: 0;
}
.analytics-portfolio-carousel .analytics-carousel-viewport {
  height: 100%;
  place-items: stretch;
}
.analytics-portfolio-carousel .analytics-carousel-slide,
.analytics-portfolio-carousel .analytics-chart-frame {
  max-width: none;
}
.analytics-portfolio-carousel .analytics-carousel-prev {
  left: 22px;
}
.analytics-portfolio-carousel .analytics-carousel-next {
  right: 28px;
}
#inventory-months-carousel .analytics-carousel-prev {
  left: 20px;
}
#inventory-months-carousel .analytics-carousel-next {
  right: 20px;
}
#potential-pie-carousel .analytics-chart-subtitle {
  margin-top: -34px;
  font-size: 20px;
  letter-spacing: .06em;
}
.analytics-chart-subtitle {
  max-width: 100%;
  margin: -10px 0 0;
  color: var(--brand-secondary);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-chart-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #b6b6b6;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}
.analytics-bars-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.analytics-bar-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.analytics-bar-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1;
  text-align: left;
}
.analytics-bar-card small {
  margin: 0 0 6px;
  color: var(--brand-secondary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.analytics-bar-list {
  display: grid;
  gap: 12px;
  width: 100%;
}
.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.analytics-bar-row strong {
  min-width: 0;
  color: #f6f6f6;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-bar-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}
.analytics-bar-fill {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
}
.analytics-bar-value {
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.analytics-pie-tooltip {
  position: absolute;
  z-index: 40;
  min-width: 190px;
  max-width: 260px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}
.analytics-pie-tooltip small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 650;
}
.workspace.analytics-mode .map,
.workspace.analytics-mode .map-vignette,
.workspace.analytics-mode .demo-notice {
  opacity: 0;
  pointer-events: none;
}

.app-shell.analytics-mode .topbar,
.workspace.analytics-mode .developer-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-shell.analytics-mode .topbar *,
.workspace.analytics-mode .developer-dock * {
  pointer-events: none !important;
}
.map.is-adding-place-marker,
.map.is-adding-place-marker .gm-style,
.map.is-adding-place-marker .gm-style > div,
.map.is-adding-place-marker .gm-style * {
  cursor: crosshair !important;
}

.demo-notice {
  position: absolute; z-index: 8; top: 20px; left: 50%; transform: translateX(-50%); min-width: 300px;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(var(--amber-rgb), .3);
  border-radius: 9px; background: rgba(23, 26, 19, .94); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.demo-notice > span { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: rgba(var(--amber-rgb), .12); color: var(--amber); font-weight: 800; }
.demo-notice p { flex: 1; margin: 0; font-size: 8px; color: #81928c; }
.demo-notice p strong { display: block; color: #d9e5e0; font-size: 9px; margin-bottom: 2px; }
.demo-notice button { border: 0; background: transparent; color: #697c75; cursor: pointer; font-size: 16px; }
.demo-notice.hidden { display: none; }

.map-control-cluster { display: flex; align-items: center; gap: 8px; }
.map-control-cluster [data-tooltip] { position: relative; }
.map-control-cluster [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 96;
  transform: translate(-50%, -4px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #1b1b1b;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.map-control-cluster [data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 97;
  width: 8px;
  height: 8px;
  background: #1b1b1b;
  border-left: 1px solid rgba(255, 255, 255, .14);
  border-top: 1px solid rgba(255, 255, 255, .14);
  transform: translate(-50%, -4px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.map-control-cluster [data-tooltip]:hover::after,
.map-control-cluster [data-tooltip]:focus-visible::after,
.map-control-cluster [data-tooltip]:hover::before,
.map-control-cluster [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0);
}
.map-control-cluster [data-tooltip]:hover::before,
.map-control-cluster [data-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}
.top-map-actions {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
.top-map-actions button {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #779087; cursor: pointer; line-height: 1; opacity: 1;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.top-map-actions button:hover,
.top-map-actions button:focus-visible {
  color: #c3d5cf;
  background: rgba(var(--mint-rgb), .1);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1);
  transform: scale(1.08);
}
.top-map-actions button.active { color: var(--brand-primary); background: rgba(var(--mint-rgb), .075); }
.top-map-actions button.dragging { opacity: .65; }
.top-map-actions button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.top-map-actions #street-view { touch-action: none; }
.top-map-actions svg { display: block; width: 21px; height: 21px; margin: auto; stroke-width: 2; }
.top-map-actions #fullscreen-toggle { position: relative; }
.fullscreen-icon { transition: opacity .18s ease, transform .18s ease; }
.fullscreen-exit { position: absolute; inset: 0; opacity: 0; transform: scale(.72); }
#fullscreen-toggle.is-fullscreen .fullscreen-enter { opacity: 0; transform: scale(.72); }
#fullscreen-toggle.is-fullscreen .fullscreen-exit { opacity: 1; transform: scale(1); }
.street-view-drag-ghost {
  position: fixed; z-index: 9998; width: 44px; height: 54px; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .82); border-radius: 14px; background: rgba(var(--menu-bar-rgb), .92);
  color: #f0b93c; pointer-events: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .42), 0 0 0 5px rgba(240, 185, 60, .14);
  backdrop-filter: blur(8px);
}
.street-view-drag-ghost svg { width: 25px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.street-view-drop-hint {
  position: fixed; z-index: 9997; display: flex; align-items: center; gap: 6px; min-width: 112px;
  padding: 6px 8px; border: 1px solid rgba(87, 166, 255, .42); border-radius: 999px;
  background: rgba(var(--menu-bar-rgb), .92); color: #9a9a9a; pointer-events: none;
  font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3); opacity: .72; transition: color .15s ease, border-color .15s ease, opacity .15s ease;
}
.street-view-drop-hint span {
  width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor;
  box-shadow: 0 0 0 5px rgba(87, 166, 255, .12);
}
.street-view-drop-hint.is-over-map { color: #57a6ff; border-color: rgba(87, 166, 255, .72); opacity: 1; }
.street-view-dragging body,
.street-view-dragging body * {
  cursor: no-drop !important;
}
.street-view-dragging.street-view-over-map body,
.street-view-dragging.street-view-over-map body * {
  cursor: copy !important;
}
.map-type-control {
  display: grid; grid-template-columns: 1fr; gap: 0; width: auto; margin: 0; padding: 0;
  border: 0; border-radius: 8px; background: transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.map-type-control button {
  position: relative; width: 34px; min-width: 0; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; color: #779087; padding: 0; border-radius: 8px; cursor: pointer;
  text-align: center; white-space: nowrap; transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.map-type-control button.active { color: var(--brand-primary); background: rgba(var(--mint-rgb), .075); }
.map-type-control button:hover,
.map-type-control button:focus-visible {
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .16);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(var(--mint-rgb), .16), 0 8px 18px rgba(var(--mint-rgb), .1);
  transform: scale(1.08);
}
.map-type-icon {
  grid-area: 1 / 1;
  display: block;
  width: 21px;
  height: 21px;
  margin: auto;
  stroke-width: 2;
  transition: opacity .18s ease, transform .18s ease;
}
.map-type-icon-map { opacity: 0; transform: scale(.72); }
.map-type-control button.is-satellite .map-type-icon-satellite { opacity: 0; transform: scale(.72); }
.map-type-control button.is-satellite .map-type-icon-map { opacity: 1; transform: scale(1); }
.map-type-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.settings-panel {
  position: absolute; z-index: 82; left: 20px; bottom: 20px; width: 300px; padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(var(--menu-bar-rgb), .96); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); transform: translateY(0) scale(1); opacity: 1;
  transition: transform .24s ease, opacity .24s ease, border-color .24s ease, background-color .24s ease;
}
.settings-panel.closed { transform: translateY(10px) scale(.97); opacity: 0; pointer-events: none; }
.settings-panel.closed * { pointer-events: none !important; }
.settings-heading { padding-right: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.settings-heading span { display: block; color: var(--mint); font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.settings-heading strong { display: block; margin-top: 6px; color: #f0f0f0; font-size: 11px; }
.layers-heading {
  position: relative;
  min-height: 54px;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  align-content: center;
  padding-right: 36px;
  border-bottom: 0;
}
.layers-heading-logo {
  width: 96px;
  max-width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .2));
}
.layers-heading-logo:not([src]),
.layers-heading-logo[src=""] {
  visibility: hidden;
}
#layers-heading-desktop-logo {
  display: block;
}
.layers-heading-mobile-logo {
  display: none;
}
.layers-heading-mobile-logo:not([src]),
.layers-heading-mobile-logo[src=""] {
  visibility: hidden;
}
.layers-panel-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin-top: auto;
}
.layers-heading-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  align-self: center;
}
.settings-heading.layers-heading span {
  color: var(--mint);
  font-size: 8px;
  letter-spacing: .14em;
}
.settings-heading.layers-heading strong {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.16;
}
.settings-list { display: grid; gap: 10px; padding-top: 12px; }
.settings-row {
  min-height: 58px; display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.035);
}
.settings-row-disabled { opacity: .58; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { color: #d8d8d8; font-size: 10px; }
.settings-row small { color: #929292; font-size: 8px; margin-top: 4px; font-weight: 700; letter-spacing: .04em; }
.settings-toggle {
  width: 42px; height: 42px; position: relative; border: 1px solid rgba(var(--mint-rgb), .28); border-radius: 11px;
  background: rgba(var(--mint-rgb), .1); color: var(--brand-primary); cursor: pointer; outline: 0;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.settings-toggle:hover,
.settings-toggle:focus-visible {
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .16);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
  transform: none;
}
.settings-toggle .theme-icon,
.settings-toggle .sound-icon { inset: 10px; width: 18px; height: 18px; }
.settings-switch {
  width: 42px; height: 24px; display: grid; align-items: center; cursor: pointer;
}
.settings-switch input { position: absolute; opacity: 0; pointer-events: none; }
.settings-switch span {
  display: block; position: relative; width: 42px; height: 24px; border-radius: 999px;
  border: 1px solid rgba(var(--mint-rgb), .32); background: rgba(255, 255, 255, .08);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.settings-switch span::after {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%;
  background: #9a9a9a; box-shadow: 0 2px 6px rgba(0, 0, 0, .28); transition: transform .2s ease, background-color .2s ease;
}
.settings-switch input:checked + span {
  background: rgba(var(--mint-rgb), .14); border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .12);
}
.settings-switch input:checked + span::after { transform: translateX(18px); background: var(--brand-primary); }
.settings-static-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; background: rgba(255,255,255,.035); color: #9a9a9a; cursor: not-allowed;
}
.settings-static-icon svg { width: 18px; height: 18px; }
.developer-entry-button {
  cursor: pointer;
  color: var(--brand-primary);
  border-color: rgba(var(--mint-rgb), .28);
  background: rgba(var(--mint-rgb), .1);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.developer-entry-button:hover,
.developer-entry-button:focus-visible {
  color: var(--brand-contrast);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
  outline: 0;
}
.files-panel,
.marker-actions-panel,
.polygon-actions-panel,
.export-actions-panel,
.layers-panel {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 152;
  overflow-y: auto;
}
.search-panel {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  bottom: auto;
  width: min(680px, calc(100vw - 32px));
  max-height: none;
  padding: 14px 16px;
  z-index: 154;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) 30px;
  align-items: end;
  gap: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow), 0 26px 70px rgba(0, 0, 0, .42);
  transform: translateX(-50%) translateY(0) scale(1);
  transform-origin: top center;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease, background-color .2s ease;
}
.search-panel.closed {
  transform: translateX(-50%) translateY(-10px) scale(.98);
  opacity: 0;
  pointer-events: none;
}
.search-panel-heading {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  gap: 4px;
  min-width: 122px;
}
.search-panel-heading span {
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.search-panel-heading strong {
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 900;
}
.search-panel-body {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(300px, 1fr) 104px;
  align-items: end;
  gap: 10px;
  width: 100%;
}
#close-search {
  position: static;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}
.search-field-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.search-field-wrap span {
  color: var(--mint);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#location-search {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#location-search:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .15);
  background: rgba(255, 255, 255, .08);
}
#location-search-button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
#location-search-button:hover,
#location-search-button:focus-visible {
  opacity: .96;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
}
.files-panel {
  left: var(--files-panel-left, 96px);
  top: var(--files-panel-top, 74px);
  width: 330px;
  max-height: min(calc(100dvh - var(--files-panel-top, 74px) - 12px), 520px);
}
.marker-actions-panel {
  left: var(--marker-actions-panel-left, 96px);
  top: var(--marker-actions-panel-top, 74px);
  width: 330px;
  max-height: min(calc(100dvh - var(--marker-actions-panel-top, 74px) - 12px), 520px);
}
.polygon-actions-panel {
  left: var(--polygon-actions-panel-left, 96px);
  top: var(--polygon-actions-panel-top, 74px);
  width: 330px;
  max-height: min(calc(100dvh - var(--polygon-actions-panel-top, 74px) - 12px), 520px);
}
.export-actions-panel {
  left: var(--export-actions-panel-left, 96px);
  top: var(--export-actions-panel-top, 74px);
  width: 330px;
  max-height: min(calc(100dvh - var(--export-actions-panel-top, 74px) - 12px), 520px);
}
.marker-actions-heading {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 8px;
  text-align: center;
}
.marker-actions-heading strong {
  margin-top: 0;
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.marker-actions-list {
  padding-top: 6px;
}
.layers-panel {
  left: var(--layers-panel-left, 96px);
  top: var(--layers-panel-top, 74px);
  width: min(var(--layers-panel-width, 450px), calc(100vw - 24px));
  height: 750px;
  max-height: min(calc(100dvh - var(--layers-panel-top, 74px) - 12px), 750px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #303030 !important;
}

@media (min-width: 1181px) {
  .sidebar {
    z-index: auto;
  }
  .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 130;
    background: var(--menu-bar);
    border-right: 1px solid var(--line);
    pointer-events: none;
  }
  .primary-nav,
  .sidebar-section,
  .sidebar-bottom {
    position: relative;
    z-index: 131;
  }
  .sidebar-toggle {
    z-index: 110;
  }
  .layers-panel {
    z-index: 120;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    box-shadow: none;
    transform: translateX(0);
    transform-origin: left center;
    transition:
      transform .28s ease,
      opacity .22s ease,
      border-color .24s ease,
      background-color .24s ease;
  }
  #close-layers {
    display: none;
  }
  .layers-heading {
    padding-right: 130px;
  }
  #layers-heading-desktop-logo {
    position: static;
    top: auto;
    right: auto;
    display: block;
    object-fit: contain;
  }
  .layers-panel-logo-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding: 22px 14px 14px;
    border-top: 0;
  }
.layers-panel-logo-wrap strong {
  max-width: 100%;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: static;
  bottom: auto;
  margin: 0;
  padding: 0;
}

.layers-panel-bottom-logo {
  width: 104px;
  max-width: 104px;
  height: 36px;
  object-fit: contain;
  object-position: right center;
}
  .layers-panel.closed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .layers-panel.closed * {
    pointer-events: none !important;
  }
}
.layers-sheet-handle {
  display: none;
}
.layers-tabs {
  position: relative;
  z-index: 2;
  flex: 0 0 68px;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(var(--layers-tab-count, 5), minmax(54px, 1fr));
  grid-auto-flow: row;
  gap: 4px;
  padding: 10px 11px 8px;
  width: calc(100% - 0px);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
}
.layers-tabs button {
  min-width: 54px;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--brand-secondary);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: var(--brand-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.layers-tab-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.layers-tabs button span {
  display: none;
}
.layers-tabs button:hover,
.layers-tabs button:focus-visible,
.layers-tabs button.active {
  color: var(--brand-contrast);
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(var(--amber-rgb), .16);
  outline: 0;
}
.layers-tab-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  background: #303030 !important;
  overflow: hidden;
}
.layers-tab-panel[hidden] {
  display: none !important;
}
.layers-tab-panel > div:empty {
  display: none !important;
}
.layers-tab-panel[data-layers-panel="tiendas"] {
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.layers-section-card {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 7px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  height: auto;
  max-height: none;
  overflow: visible;
}
.general-layers-card {
  height: auto;
  max-height: none;
  border: 0;
  border-radius: 12px;
  padding-top: 12px;
  padding-right: 12px;
  padding-bottom: 10px;
  padding-left: 12px;
  overflow: visible;
}
.cities-layers-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cities-layer-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 4px 1px 0;
  margin-top: 7px;
}
.stores-layers-card {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  padding: 7px;
  overflow: hidden;
  max-height: 100%;
}
.file-layers-card {
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
  margin-top: 0;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.general-layers-card .layer-list {
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  padding: 0;
  margin: 7px 0 0;
}
.stores-layers-card .stores-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  max-height: none;
  align-content: start;
  align-items: start;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px 1px 0;
}
.layers-section-heading {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-left: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.general-layers-card .layers-section-heading {
  border-bottom-color: #999999;
}
.layers-section-heading span {
  display: block;
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1;
}
.layers-section-heading strong {
  display: block;
  color: #f2f2f2;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}
.general-layers-card .layers-section-heading strong {
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.general-layers-card .layers-section-heading {
  gap: 0;
}
.layers-section-heading small {
  color: #929292;
  font-size: 7px;
  font-weight: 750;
  line-height: 1.35;
}
.general-layers-card .layers-section-heading small {
  line-height: 1.05;
}
.layers-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.layers-section-title-row .settings-switch {
  flex: 0 0 auto;
  margin-top: 2px;
  transform: translateX(-8px);
}
.workspace.sidebar-collapsed .layers-panel .layer-list,
.workspace.sidebar-collapsed .layers-panel .sidebar-section.is-collapsed .layer-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  justify-items: stretch;
  align-content: start;
  grid-auto-rows: 52px;
  gap: 6px;
  margin-top: 12px;
  max-height: 100%;
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
}
.layers-panel .general-layers-card .layer-list {
  display: grid;
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
  justify-items: stretch;
  align-content: start;
  grid-auto-rows: auto;
  gap: 6px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  padding: 5px 5px 7px;
  margin: 5px 0 0;
}
.layers-panel .general-layers-card .layer-row {
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.layers-panel .general-layers-card .layer-row:hover {
  box-shadow: none !important;
}
.layers-panel .layer-row,
.workspace.sidebar-collapsed .layers-panel .layer-row {
  width: 100%;
  min-height: 30px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.layers-panel .layer-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  align-items: center;
}
.layers-panel .layer-row > span:not(.layer-icon) {
  flex: 1 1 auto;
  min-width: 0;
}
.layers-panel .layer-row .settings-switch {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  justify-self: end;
  justify-items: end;
  padding-right: 2px;
  box-sizing: border-box;
}
.layers-panel .layer-row strong {
  color: #d8d8d8;
  font-size: 8px;
  font-weight: 800;
}
.layers-panel .layer-row small {
  color: #929292;
  font-size: 6px;
  font-weight: 750;
  letter-spacing: .03em;
  line-height: 1.35;
}
.workspace.sidebar-collapsed .layers-panel .layer-row > span:not(.layer-icon) {
  display: block;
}
.workspace.sidebar-collapsed .layers-panel .layer-row .settings-switch {
  display: grid;
}
.workspace.sidebar-collapsed .layers-panel .layer-icon {
  width: 22px;
  height: 22px;
}
.layers-panel .layer-row::before,
.layers-panel .layer-row::after,
.workspace.sidebar-collapsed .layers-panel .layer-row::before,
.workspace.sidebar-collapsed .layers-panel .layer-row::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}
.layers-tab-panel p {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #8a8a8a;
  font-size: 9px;
  line-height: 1.5;
}
.stores-panel-heading {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.stores-panel-heading strong,
.stores-panel-heading small {
  display: block;
}
.stores-panel-heading strong {
  color: #d8d8d8;
  font-size: 8px;
}
.stores-panel-heading small {
  margin-top: 4px;
  color: #929292;
  font-size: 6px;
  font-weight: 700;
}
.stores-category-filters {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.stores-category-filters .store-category-toggle {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  min-width: 0;
  overflow: hidden;
}
.stores-category-filters .store-category-toggle-name {
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stores-category-filters .store-category-toggle .settings-switch span {
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.12);
}
.stores-category-filters .store-category-toggle .settings-switch {
  width: 42px;
  justify-content: end;
  justify-items: end;
  padding-right: 2px;
  box-sizing: border-box;
}
.stores-category-filters .store-category-toggle .settings-switch span::after {
  background: #ffffff;
}
.stores-category-filters .store-category-toggle .settings-switch input:checked + span {
  background: rgba(255,255,255,.22);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.stores-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  margin-top: 8px;
  max-height: none;
  overflow-y: visible;
  padding-right: 2px;
  background: transparent;
}
.stores-list p {
  margin: 0;
  color: #8a8a8a;
  font-size: 8px;
  line-height: 1.5;
}
.stores-list .stores-empty-state {
  margin: 0;
  padding: 6px 4px;
  color: var(--brand-primary) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.45;
  width: 100%;
  display: block;
}
.store-list-item {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 2px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.store-list-item > span {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-contrast);
  background: var(--brand-primary);
  font-size: 8px;
  font-weight: 900;
}
.store-list-item strong,
.store-list-item small {
  display: block;
}
.store-list-item strong {
  color: #d8d8d8;
  font-size: 8px;
  line-height: 1.2;
}
.store-list-item small {
  margin-top: 2px;
  color: #929292;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .03em;
  line-height: 1.35;
}
.store-list-item-meta {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.store-list-item-location,
.store-list-item-category {
  display: block;
  margin-top: 2px;
  color: #929292;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
  line-height: 1.35;
}
.store-list-item-location {
  flex: 1 1 auto;
  min-width: 0;
}
.store-list-item-category {
  flex: 0 0 auto;
  color: var(--brand-primary);
  max-width: 56%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}
.store-list-item:hover,
.store-list-item:focus-visible {
  outline: 0;
  border-color: transparent;
  background: rgba(var(--mint-rgb), .16);
  box-shadow: 0 8px 18px rgba(var(--mint-rgb), .16);
  transform: translateY(-1px);
}
.files-list { gap: 6px; }
.file-option,
.marker-action-option {
  width: 100%;
  grid-template-columns: 30px 1fr;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.file-option:hover,
.file-option:focus-visible,
.marker-action-option:hover,
.marker-action-option:focus-visible {
  outline: 0;
  border-color: rgba(var(--mint-rgb), .32);
  background: rgba(var(--mint-rgb), .12);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .12);
}
.file-option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mint-rgb), .28);
  border-radius: 11px;
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .1);
}
.file-option-icon svg { width: 16px; height: 16px; }
.file-mapping {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}
.file-mapping.closed { display: none; }
.file-mapping-title strong,
.file-mapping-title small,
.file-mapping label span {
  display: block;
}
.file-mapping-title strong {
  color: #d8d8d8;
  font-size: 10px;
}
.file-mapping-title small {
  margin-top: 4px;
  color: #929292;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}
.file-mapping label { display: grid; gap: 5px; }
.file-mapping label span {
  color: #929292;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.file-mapping select {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 0 10px;
  color: #f0f0f0;
  background: rgba(0,0,0,.22);
  outline: 0;
}
.file-mapping select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .14);
}
.file-mapping-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.layers-tab-panel[data-layers-panel="mis-lugares"],
.layers-tab-panel[data-layers-panel="rutas"],
.layers-tab-panel[data-layers-panel="lugares-compartidos"],
.layers-tab-panel[data-layers-panel="plazas-comerciales"],
.layers-tab-panel[data-layers-panel="equipamiento-urbano"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.layers-tab-panel[data-layers-panel="mis-lugares"][hidden],
.layers-tab-panel[data-layers-panel="rutas"][hidden],
.layers-tab-panel[data-layers-panel="lugares-compartidos"][hidden],
.layers-tab-panel[data-layers-panel="plazas-comerciales"][hidden],
.layers-tab-panel[data-layers-panel="equipamiento-urbano"][hidden] {
  display: none !important;
}
.layers-tab-panel[data-layers-panel="mis-lugares"] .file-layers-card,
.layers-tab-panel[data-layers-panel="rutas"] .file-layers-card,
.layers-tab-panel[data-layers-panel="lugares-compartidos"] .file-layers-card,
.layers-tab-panel[data-layers-panel="plazas-comerciales"] .file-layers-card,
.layers-tab-panel[data-layers-panel="equipamiento-urbano"] .file-layers-card {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  max-height: none;
}
.layers-tab-panel[data-layers-panel="mis-lugares"] .file-layer-list,
.layers-tab-panel[data-layers-panel="rutas"] .file-layer-list,
.layers-tab-panel[data-layers-panel="lugares-compartidos"] .file-layer-list,
.layers-tab-panel[data-layers-panel="plazas-comerciales"] .file-layer-list,
.layers-tab-panel[data-layers-panel="equipamiento-urbano"] .file-layer-list {
  flex: 1 1 auto;
  max-height: none;
}
.shared-layer-list {
  min-height: 0;
}
.layers-tab-panel[data-layers-panel="rutas"] .storage-geojson-layers-card {
  flex: 0 0 auto;
  height: auto;
}
.layers-tab-panel[data-layers-panel="rutas"] .storage-geojson-layers-card .file-layer-list {
  flex: 0 0 auto;
}
.layers-tab-panel[data-layers-panel="rutas"] .available-layers-card {
  flex: 1 1 auto;
  min-height: 0;
}
.storage-geojson-item.is-active {
  border-color: rgba(var(--mint-rgb), .6);
  background: rgba(var(--mint-rgb), .08);
}
.storage-geojson-nse-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.storage-geojson-nse-grid.is-extra {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: calc((100% - 36px) / 7 * 2 + 6px);
}
.storage-geojson-nse-item {
  display: grid;
  grid-template-rows: 14px auto 18px;
  align-items: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 6px 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, opacity .18s ease;
}
.storage-geojson-nse-item.is-active {
  border-color: rgba(var(--mint-rgb), .55);
  background: rgba(var(--mint-rgb), .08);
}
.storage-geojson-nse-item.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}
.storage-geojson-nse-swatch {
  width: 22px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.storage-geojson-nse-item strong {
  min-width: 0;
  color: #f4f4f4;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
}
.storage-geojson-nse-item .settings-switch {
  width: 30px;
  height: 16px;
  justify-self: center;
  padding: 0;
}
.storage-geojson-nse-item .settings-switch span {
  width: 30px;
  height: 16px;
}
.storage-geojson-nse-item .settings-switch span::after {
  width: 10px;
  height: 10px;
  left: 2px;
  top: 2px;
}
.storage-geojson-nse-item .settings-switch input:checked + span::after {
  transform: translateX(14px);
}
.file-mapping-actions button {
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #d8d8d8;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.file-mapping-actions button:last-child {
  color: var(--brand-contrast);
  border-color: rgba(var(--mint-rgb), .78);
  background: var(--brand-primary);
}
.file-layer-count-text {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #929292;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.05;
}
.file-layers-heading {
  gap: 1px;
  border-bottom-color: #999999;
}
.file-layers-card .layers-section-heading strong {
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.file-layers-card .layers-section-heading small {
  line-height: 1.05;
}
.file-layers-heading .layers-section-title-row .settings-switch {
  margin-top: 2px;
  transform: translateX(-10px);
}
.file-layers-heading .layers-section-title-row .file-layers-master-spacer {
  visibility: hidden;
  pointer-events: none;
}
.file-layer-list {
  display: grid;
  flex: 0 0 auto;
  min-height: auto;
  min-height: 0;
  max-height: min(50vh, 460px);
  position: relative;
  width: 100%;
  min-width: 0;
  gap: 6px;
  margin: 5px 0 0;
  justify-items: stretch;
  align-content: start;
  align-items: start;
  grid-auto-rows: auto;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  pointer-events: auto;
  padding: 6px 2px 8px;
}
.layers-tab-panel[data-layers-panel="tiendas"] .file-layers-card {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  max-height: none;
}
.layers-tab-panel[data-layers-panel="tiendas"] .file-layer-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-gutter: auto;
}
.file-layer-list p {
  margin: 0;
  color: #8a8a8a;
  font-size: 8px;
  line-height: 1.5;
}
.file-layer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: start;
  align-content: start;
}
.file-layer-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  align-self: start;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: calc(46.2px * 1.2);
  margin-inline: 0;
  padding: 5px 6px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.file-layer-item-folder {
  position: relative;
}
.file-layer-type-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .1);
}
.file-layer-type-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}
.file-layer-type-icon.is-folder svg {
  width: 16px;
  height: 16px;
}
.file-layers-card .file-layer-item,
.file-layers-card .file-layer-child-item {
  grid-template-columns: 33px minmax(0, 1fr) 42px;
  gap: 8px;
}
.file-layers-card .file-layer-type-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.file-layers-card .file-layer-type-icon svg {
  width: 22.5px;
  height: 22.5px;
}
.file-layers-card .file-layer-type-icon.is-folder svg {
  width: 24px;
  height: 24px;
}
.file-layer-content {
  min-width: 0;
  text-align: left;
  justify-self: stretch;
}
.shared-place-item,
.shared-place-item .file-layer-content,
.shared-place-item strong,
.shared-place-item small {
  text-align: left;
}
.file-layer-item strong,
.file-layer-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-layer-item strong {
  color: #d8d8d8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
.file-layer-item small {
  margin-top: 2px;
  color: #929292;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.35;
}
.file-layer-item .settings-switch {
  display: grid;
  width: 42px;
  justify-self: end;
  justify-items: end;
  padding-right: 2px;
  box-sizing: border-box;
}
.file-layer-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding-left: 0;
  align-items: stretch;
  align-content: start;
}
.file-layer-children[hidden] {
  display: none;
}
.file-layer-child-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: calc(46.2px * 1.2);
  margin-inline: 0;
  padding: 5px 6px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.file-layer-child-item strong,
.file-layer-child-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-layer-child-item strong {
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
.file-layer-child-item small {
  margin-top: 2px;
  color: #929292;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.35;
}
.file-layer-child-spacer {
  width: 30px;
  min-width: 30px;
}
.file-layer-item:hover,
.file-layer-item:focus-visible {
  outline: 0;
  border-color: rgba(var(--mint-rgb), .32);
  background: rgba(var(--mint-rgb), .12);
  box-shadow: none;
  transform: none;
}
.file-layer-child-item:hover,
.file-layer-child-item:focus-visible {
  outline: 0;
  border-color: rgba(var(--mint-rgb), .32);
  background: rgba(var(--mint-rgb), .12);
  box-shadow: none;
}
.file-layers-card .file-layer-item:hover {
  box-shadow: none !important;
}
.user-file-marker {
  cursor: pointer;
}

.coordinates {
  position: relative; z-index: 2; right: auto; bottom: auto; left: auto; padding: 9px 14px; border-radius: 6px;
  color: var(--brand-contrast); background: var(--brand-primary); border: 1px solid rgba(var(--mint-rgb), .78);
  box-shadow: 0 12px 28px rgba(var(--mint-rgb), .2), 0 10px 24px rgba(0, 0, 0, .24);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.8px; font-weight: 800; letter-spacing: .03em;
}
.coordinates.is-hidden { display: none; }

.asset-panel {
  position: absolute; z-index: 92; right: 20px; top: 12px; bottom: 20px; width: 335px; padding: 30px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(var(--menu-bar-rgb), .995); backdrop-filter: blur(16px);
  box-shadow: var(--shadow); transition: transform .3s ease, opacity .3s ease; overflow-y: auto;
}
.asset-panel.closed { transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.asset-panel.closed * { pointer-events: none !important; }
.asset-sheet-handle {
  display: none;
}
.branch-edit-panel {
  position: absolute;
  z-index: 94;
  right: 0;
  top: 0;
  bottom: 0;
  width: 402px;
  height: 100dvh;
  padding: 34px 26px 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-width: 0 0 0 1px;
  background: rgba(var(--menu-bar-rgb), .995);
  backdrop-filter: blur(16px);
  box-shadow: -18px 0 42px rgba(0, 0, 0, .32);
  transform: translateX(0);
  opacity: 1;
  transition: transform .3s ease, opacity .3s ease;
  overflow-y: auto;
}
.branch-edit-panel.closed {
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  pointer-events: none;
}
.branch-edit-panel.closed * { pointer-events: none !important; }
.branch-edit-heading {
  padding-right: 38px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.branch-edit-heading span {
  display: block;
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .16em;
}
.branch-edit-heading strong {
  display: block;
  margin-top: 9px;
  color: #f4f4f4;
  font-size: 18px;
  line-height: 1.15;
  word-break: break-word;
}
.branch-edit-heading small {
  display: block;
  margin-top: 6px;
  color: #a8a8a8;
  font-size: 10px;
  font-weight: 800;
}
.branch-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.branch-edit-form label {
  display: grid;
  gap: 7px;
}
.branch-edit-form label span,
.branch-edit-audit small {
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.branch-edit-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  outline: 0;
}
.branch-edit-form textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
  outline: 0;
  resize: vertical;
}
.branch-edit-form input:focus,
.branch-edit-form textarea:focus {
  border-color: rgba(var(--mint-rgb), .7);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .16);
}
.shared-place-edit-panel {
  width: 440px;
}
.shared-place-edit-panel .shared-place-internal-field,
.shared-place-edit-panel .shared-place-edit-audit {
  display: none !important;
}
.shared-place-info-panel {
  width: 390px;
}
.shared-place-info-heading {
  padding-top: 2px;
}
.shared-place-info-heading strong {
  margin-top: 0;
  font-size: 20px;
  text-transform: uppercase;
}
.shared-place-info-heading small {
  margin-top: 8px;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .01em;
  line-height: 1.35;
}
.shared-place-info-body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.shared-place-info-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.shared-place-info-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.shared-place-info-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shared-place-info-stats > div,
.shared-place-info-section {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.shared-place-info-stats > div {
  min-height: 66px;
  padding: 11px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.shared-place-info-stats small,
.shared-place-info-section > strong,
.shared-place-info-fields-label {
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.shared-place-info-stats strong {
  color: #f4f4f4;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}
.shared-place-info-section {
  padding: 13px;
}
.shared-place-info-section > strong {
  display: block;
  margin-bottom: 12px;
}
.shared-place-info-section dl {
  display: grid;
  gap: 9px;
  margin: 0;
}
.shared-place-info-section .shared-place-info-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.shared-place-info-section .shared-place-info-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.shared-place-info-section dt,
.shared-place-info-section dd {
  margin: 0;
}
.shared-place-info-section dd {
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}
.shared-place-info-links {
  display: grid;
  gap: 8px;
}
.shared-place-info-links a {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--mint-rgb), .32);
  border-radius: 8px;
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .09);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.shared-place-info-links a::after {
  content: "↗";
  color: currentColor;
  font-size: 12px;
}
.branch-edit-audit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}
#branch-edit-panel .branch-edit-audit {
  display: none !important;
}
.branch-edit-audit strong {
  display: block;
  margin-top: 5px;
  color: #efefef;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-word;
}
.branch-edit-save {
  min-height: 44px;
  border: 1px solid rgba(var(--mint-rgb), .78);
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.branch-edit-save:hover,
.branch-edit-save:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
}

@media (min-width: 1181px) {
  .asset-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 402px;
    height: 100dvh;
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
  }
  #close-asset-panel {
    display: none;
  }
}
.panel-close {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--brand-primary);
  border-radius: 50%;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  opacity: .94;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.panel-close:hover,
.panel-close:focus-visible {
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .08);
  border-color: var(--brand-primary);
  outline: 0;
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .16);
}
.settings-close,
.settings-close:hover { color: var(--brand-primary); }
.asset-status { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.asset-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: assetStatusPulse 1s steps(1, end) infinite;
}
@keyframes assetStatusPulse {
  0%, 49% {
    opacity: 1;
    box-shadow: 0 0 8px var(--mint);
  }
  50%, 100% {
    opacity: .18;
    box-shadow: none;
  }
}
.map-stage:has(.developer-modal:not(.closed)) .map {
  filter: blur(5px);
}
.map-stage:has(.platform-confirm:not(.closed)) .map {
  filter: blur(5px);
}
.map-stage:has(.developer-modal:not(.closed)) .map-vignette,
.map-stage:has(.platform-confirm:not(.closed)) .map-vignette {
  opacity: .96;
}
.developer-modal,
.platform-confirm {
  position: absolute;
  inset: 0;
  z-index: 118;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .26);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s ease;
}
.developer-modal.closed,
.platform-confirm.closed {
  opacity: 0;
  pointer-events: none;
}
.developer-modal.closed *,
.platform-confirm.closed * {
  pointer-events: none !important;
}
.developer-card,
.platform-confirm-card {
  position: relative;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(var(--menu-bar-rgb), .97);
  box-shadow: var(--shadow), 0 26px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);
}
.platform-confirm-card {
  width: min(380px, calc(100vw - 40px));
  gap: 16px;
  padding: 24px;
}
.developer-card > span {
  color: var(--brand-primary);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .18em;
}
.developer-card > strong,
.platform-confirm-card > strong {
  color: #f0f0f0;
  font-size: 14px;
}
.platform-confirm-card > strong {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.platform-confirm-card > p {
  margin: 0;
  color: #f8f8f8;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.platform-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.platform-confirm-actions button {
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#platform-confirm-cancel {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
#platform-confirm-accept {
  border: 1px solid rgba(var(--mint-rgb), .78);
  background: var(--brand-primary);
  color: var(--brand-contrast);
}
.platform-confirm-actions button:hover,
.platform-confirm-actions button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
}
.map-context-menu {
  position: fixed;
  left: var(--context-menu-left, 0);
  top: var(--context-menu-top, 0);
  z-index: 9999;
  min-width: 146px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(var(--menu-bar-rgb), .98);
  box-shadow: var(--shadow), 0 20px 44px rgba(0, 0, 0, .36);
  backdrop-filter: blur(16px);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: top left;
  pointer-events: auto;
  transition: opacity .16s ease, transform .16s ease;
}
.map-context-menu.closed {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -4px, 0) scale(.98);
}
.map-context-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  padding: 0 12px;
  transition: background-color .18s ease, color .18s ease;
}
.map-context-option:hover,
.map-context-option:focus-visible {
  outline: 0;
  background: rgba(var(--mint-rgb), .12);
}
.map-context-option.danger {
  color: #ff6b7a;
}
.map-context-menu.is-readonly #map-context-rename,
.map-context-menu.is-readonly #map-context-delete {
  display: none;
}
.map-context-menu.is-readonly::after {
  content: "Solo lectura";
  display: block;
  padding: 7px 12px 4px;
  color: #9b9b9b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.branch-context-menu.is-readonly::after {
  content: "Sin escritura";
  display: block;
  padding: 7px 12px 4px;
  color: #9b9b9b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.asset-marker.is-relocating {
  cursor: grab;
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .22), 0 0 26px rgba(var(--mint-rgb), .48);
  z-index: 8;
  touch-action: none;
}
.asset-marker.is-relocating:active {
  cursor: grabbing;
}
.developer-card input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  padding: 0 13px;
  outline: 0;
}
.developer-card input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .16);
}
.platform-confirm-input-wrap {
  margin: -2px 0 0;
}
.platform-confirm-input-wrap.hidden,
.platform-confirm-fields-wrap.hidden {
  display: none;
}
.platform-confirm-fields-wrap {
  display: grid;
  gap: 10px;
  margin: -2px 0 0;
}
.platform-confirm-field {
  display: grid;
  gap: 7px;
}
.platform-confirm-field span {
  color: var(--brand-primary);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.platform-confirm-input,
.platform-confirm-field input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  padding: 0 13px;
  outline: 0;
}
.platform-confirm-input:focus,
.platform-confirm-field input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .16);
}
.developer-submit {
  height: 42px;
  border: 1px solid rgba(var(--mint-rgb), .78);
  border-radius: 10px;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.developer-dock {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 104;
  width: auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(var(--menu-bar-rgb), .97);
  box-shadow: var(--shadow), 0 20px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease;
}
.developer-dock.closed {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
}
.developer-dock.closed * {
  pointer-events: none !important;
}
.developer-dummy-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.developer-dummy-grid button {
  position: relative;
  min-width: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: #d8d8d8;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
}
.developer-dummy-grid button:hover,
.developer-dummy-grid button:focus-visible {
  color: var(--brand-contrast);
  background: var(--brand-primary);
  border-color: rgba(var(--mint-rgb), .62);
  outline: 0;
}
.developer-dummy-grid svg {
  width: 20px;
  height: 20px;
}
.developer-dummy-grid [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 130;
  transform: translate(-50%, -4px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.developer-dummy-grid [data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  z-index: 131;
  width: 8px;
  height: 8px;
  background: #1b1b1b;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-left: 1px solid rgba(255, 255, 255, .14);
  transform: translate(-50%, -4px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.developer-dummy-grid [data-tooltip]:hover::after,
.developer-dummy-grid [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.developer-dummy-grid [data-tooltip]:hover::before,
.developer-dummy-grid [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.workspace.sidebar-collapsed .nav-item::before,
.workspace.sidebar-collapsed .nav-item::after,
.workspace.sidebar-collapsed .settings-button::before,
.workspace.sidebar-collapsed .settings-button::after,
.map-control-cluster [data-tooltip]::before,
.map-control-cluster [data-tooltip]::after {
  content: none !important;
  display: none !important;
}

.asset-section {
  margin-top: 10px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #f8f8f8;
  color: #29443a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.asset-section:first-of-type { margin-top: 16px; }
.asset-identity-section { padding: 13px 14px 15px; border: 0; }
.asset-title { display: flex; align-items: center; gap: 13px; padding: 8px 0 0; border-bottom: 0; }
.asset-title-logo { width: 54px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.asset-title-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.asset-title-logo img:not([src]),
.asset-title-logo img[src=""] { visibility: hidden; }
.asset-title h2 { color: var(--brand-primary); font-size: 17px; font-weight: 950; line-height: 1.08; margin: 0 0 6px; text-transform: uppercase; }
.asset-title p { color: #777; font-size: 9.5px; line-height: 1.25; margin: 0; }
.asset-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-bottom: 0; }
.asset-meta > div + div { border-left: 0; padding-left: 0; }
.asset-meta small, .asset-meta strong { display: block; }
.asset-meta small { color: #777; font-size: 7px; letter-spacing: .1em; margin-bottom: 6px; }
.asset-meta strong { color: #29443a; font-size: 11px; }
.asset-meta em { font-size: 7px; color: #9a9a9a; font-style: normal; }
.asset-location { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px; border-bottom: 0; }
.asset-location svg { width: 17px; color: var(--mint); }
.asset-location small, .asset-location strong { display: block; }
.asset-location small { color: #777; font-size: 7px; letter-spacing: .1em; margin-bottom: 6px; }
.asset-location strong { color: #29443a; font-size: 9px; line-height: 1.5; }
.activity-heading { display: flex; justify-content: space-between; padding: 0 0 12px; color: #777; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 9px; position: relative; padding-bottom: 17px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 9px; bottom: -1px; border-left: 1px dashed #505050; }
.timeline i { width: 7px; height: 7px; margin-top: 2px; border: 2px solid var(--mint); border-radius: 50%; background: #f8f8f8; z-index: 1; }
.timeline strong, .timeline small { display: block; }
.timeline strong { color: #29443a; font-size: 9px; }
.timeline small { color: #777; font-size: 7px; margin-top: 4px; }
.asset-actions-section { padding: 10px; }
.panel-actions { display: grid; grid-template-columns: 1fr 35px; gap: 7px; margin-top: 0; }
.panel-actions button { height: 35px; border: 1px solid rgba(var(--mint-rgb), .22); border-radius: 7px; background: rgba(var(--mint-rgb), .08); color: var(--mint); font-size: 8px; font-weight: 700; cursor: pointer; }
.panel-actions button:last-child { color: #9a9a9a; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035); }
.toast-stack {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.branch-relocation-bar {
  min-width: min(460px, 86vw);
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(var(--mint-rgb), .78);
  border-radius: 10px;
  background: rgba(var(--menu-bar-rgb), .98);
  color: #fff;
  box-shadow: var(--shadow), 0 12px 28px rgba(var(--mint-rgb), .18);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.branch-relocation-bar[hidden] {
  display: none;
}
.branch-relocation-bar strong,
.branch-relocation-bar small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.branch-relocation-bar strong {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 950;
}
.branch-relocation-bar small {
  margin-top: 3px;
  color: #bdbdbd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}
.branch-relocation-bar button {
  height: 32px;
  border: 1px solid rgba(var(--mint-rgb), .78);
  border-radius: 7px;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  padding: 0 14px;
}
.branch-relocation-bar button:last-child {
  width: 32px;
  padding: 0;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.branch-relocation-bar button:hover,
.branch-relocation-bar button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
}
.toast-coordinates-row {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.workspace.analytics-mode .toast-coordinates-row {
  display: none;
}
.toast {
  position: relative;
  z-index: 1;
  left: auto;
  top: auto;
  transform: translateY(-20px);
  background: var(--brand-primary);
  color: var(--brand-contrast);
  padding: 10px 15px;
  border: 1px solid rgba(var(--mint-rgb), .78);
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  box-shadow: 0 12px 28px rgba(var(--mint-rgb), .2), 0 10px 24px rgba(0, 0, 0, .24);
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.mobile-orientation-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 24px;
  background: #000;
  color: #fff;
  text-align: center;
}
.mobile-orientation-lock > div {
  width: min(330px, 86vw);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(var(--menu-bar-rgb), .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .52);
}
.mobile-orientation-lock svg {
  width: 42px;
  height: 42px;
  color: var(--brand-primary);
}
.mobile-orientation-lock strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mobile-orientation-lock span {
  display: block;
  max-width: 250px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.orientation-icon-tablet,
.orientation-title-tablet,
.orientation-copy-tablet {
  display: none !important;
}

.marker-tooltip {
  position: fixed; left: 0; top: 0; z-index: 140; transform: translate(-50%, calc(-100% - 10px));
  padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: #1b1b1b; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  font-size: 10px; font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.marker-tooltip.is-area {
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}
.marker-tooltip-title {
  display: block;
  font-weight: 800;
}
.marker-tooltip-area {
  display: block;
  font-weight: 400;
}
.marker-tooltip-area sup {
  font-size: 0.7em;
}
.marker-tooltip::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px;
  background: #1b1b1b; border-right: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14);
  transform: translateX(-50%) rotate(45deg);
}
.marker-tooltip.visible { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }

.asset-marker { width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: #18362d; color: #fff; display: grid; place-items: center; font-size: 6.4px; font-weight: 800; box-shadow: 0 0 0 4px rgba(var(--mint-rgb),.12), 0 4px 11px rgba(0,0,0,.45); cursor: pointer; z-index: 4; }
.asset-marker.alert { background: #81383b; box-shadow: 0 0 0 4px rgba(255,102,107,.12), 0 4px 11px rgba(0,0,0,.45); }
.asset-marker.pizza-marker {
  width: 33.12px; height: 33.12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  transform-origin: center center; transition: transform .18s ease, filter .18s ease; will-change: transform;
}
.asset-marker.pizza-marker:hover,
.asset-marker.pizza-marker:focus-visible {
  transform: scale(1.5);
  z-index: 7;
}
.asset-marker.pizza-marker:not(.has-icon) {
  border: 1px solid var(--brand-contrast); border-radius: 50%; background: var(--brand-primary); color: var(--brand-contrast);
  box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .12), 0 4px 11px rgba(0,0,0,.45);
}
.pizza-marker img { display: block; width: 33.12px; height: 33.12px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.pizza-marker.is-selected img { filter: drop-shadow(0 0 4px rgba(87,166,255,.95)) drop-shadow(0 0 9px rgba(var(--mint-rgb),.62)) drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cluster-marker {
  width: 35.2px; height: 35.2px; border-radius: 12px; border: 1px solid var(--brand-contrast);
  background: var(--brand-primary); color: var(--brand-contrast); box-shadow: 0 0 0 5.6px rgba(var(--mint-rgb), .14), 0 6.4px 16px rgba(0,0,0,.48);
  font-size: 8.8px; font-weight: 900; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease; z-index: 6;
}
.cluster-marker span { display: grid; place-items: center; width: 100%; height: 100%; }
.cluster-marker:hover,
.cluster-marker:focus-visible {
  transform: scale(1.18);
  box-shadow: 0 0 0 7.2px rgba(var(--mint-rgb), .18), 0 9.6px 22.4px rgba(0,0,0,.52);
  z-index: 8;
}
.user-location-marker {
  width: 22.4px; height: 22.4px; display: grid; place-items: center; border: 0; border-radius: 50%;
  pointer-events: none; transform-origin: center; filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .42)); z-index: 2;
}
.user-location-marker::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(var(--mint-rgb), .26); box-shadow: 0 0 0 1px rgba(var(--mint-rgb), .42);
  animation: user-location-halo-pulse 1.7s ease-out infinite;
}
.user-location-marker::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-primary); border: 3px solid var(--brand-contrast);
  box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .18), 0 0 18px rgba(var(--mint-rgb), .72);
  animation: user-location-core-pulse 1.7s ease-in-out infinite;
}
@keyframes user-location-halo-pulse {
  0% { transform: scale(.65); opacity: .9; }
  70% { transform: scale(1.55); opacity: .08; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes user-location-core-pulse {
  0%, 100% { transform: scale(.88); box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .16), 0 0 12px rgba(var(--mint-rgb), .54); }
  50% { transform: scale(1.16); box-shadow: 0 0 0 7px rgba(var(--mint-rgb), .24), 0 0 24px rgba(var(--mint-rgb), .84); }
}

[data-theme="light"] {
  --bg: #eef3f1;
  --panel: rgba(255, 255, 255, .97);
  --panel-soft: rgba(247, 250, 249, .94);
  --line: rgba(24, 62, 51, .11);
  --line-strong: rgba(24, 62, 51, .18);
  --text: #172620;
  --muted: #667d75;
  --mint: #1b1b1b;
  --mint-strong: #141414;
  --mint-rgb: 27, 27, 27;
  --amber: #d98018;
  --amber-rgb: 217, 128, 24;
  --red: #d9474d;
  --blue: #287ccb;
  --purple: #7556cf;
  --shadow: 0 20px 50px rgba(28, 57, 48, .16);
  color-scheme: light;
}
[data-theme="light"] .topbar,
[data-theme="light"] .sidebar {
  background: var(--brand-primary);
  border-color: rgba(255, 255, 255, .22);
}
[data-theme="light"] .sidebar::before {
  background: var(--brand-primary);
  border-right-color: rgba(255, 255, 255, .22);
}
[data-theme="light"] .brand-logo { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
[data-theme="light"] .icon-button,
[data-theme="light"] .system-status span,
[data-theme="light"] .system-status strong,
[data-theme="light"] .nav-item,
[data-theme="light"] .sidebar-toggle,
[data-theme="light"] .section-heading,
[data-theme="light"] .settings-button,
[data-theme="light"] .layer-row strong { color: var(--brand-contrast); }
[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .sound-toggle:hover,
[data-theme="light"] .sidebar-toggle:hover,
[data-theme="light"] .section-toggle:hover,
[data-theme="light"] .nav-item:hover,
[data-theme="light"] .settings-button:hover,
[data-theme="light"] .layer-row:hover {
  color: var(--brand-contrast);
  background: rgba(0, 0, 0, .168);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .216), 0 8px 18px rgba(0, 0, 0, .192);
}
[data-theme="light"] .avatar-button { color: #1e1200; background: var(--brand-secondary); }
[data-theme="light"] .system-status { border-left-color: rgba(255, 255, 255, .28); }
[data-theme="light"] .system-status i { background: var(--brand-secondary); box-shadow: 0 0 12px var(--brand-secondary); }
[data-theme="light"] .sidebar-toggle { border: 0; background: var(--brand-primary); }
[data-theme="light"] .sidebar-toggle:hover { background: var(--brand-primary); border-color: transparent; box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .24), 0 8px 18px rgba(0, 0, 0, .24); }
[data-theme="light"] .section-heading button { color: var(--brand-contrast); }
[data-theme="light"] .primary-nav { border-bottom-color: rgba(255, 255, 255, .18); }
[data-theme="light"] .nav-item b { color: var(--brand-primary); background: rgba(255, 255, 255, .88); }
[data-theme="light"] .layer-icon { background: rgba(255, 255, 255, .88); }
[data-theme="light"] .layer-row small { color: rgba(255, 255, 255, .74); }
[data-theme="light"] .switch {
  background: var(--brand-contrast);
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgba(var(--mint-rgb), .16);
}
[data-theme="light"] .switch::after {
  background: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
[data-theme="light"] .layer-row input:checked + .switch {
  background: var(--brand-contrast);
  border-color: var(--brand-primary);
  box-shadow: 0 0 10px rgba(var(--mint-rgb), .34);
}
[data-theme="light"] .layer-row input:checked + .switch::after {
  background: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22), 0 0 8px rgba(var(--mint-rgb), .42);
}
[data-theme="light"] .asset-panel { background: rgba(255, 255, 255, .985); }
[data-theme="light"] .settings-panel { color: #172620; background: rgba(255, 255, 255, .96); }
[data-theme="light"] .search-panel {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(24, 62, 51, .12);
}
[data-theme="light"] .search-panel-heading strong,
[data-theme="light"] #location-search {
  color: #172620;
}
[data-theme="light"] #location-search {
  border-color: rgba(24, 62, 51, .14);
  background: rgba(24, 62, 51, .05);
}
[data-theme="light"] .layers-panel {
  background: #FFFFFF !important;
}
[data-theme="light"] .branch-edit-panel,
[data-theme="light"] .branch-relocation-bar {
  color: #172620;
  background: rgba(255, 255, 255, .97);
}
[data-theme="light"] .branch-edit-heading strong,
[data-theme="light"] .branch-edit-audit strong,
[data-theme="light"] .branch-edit-form input,
[data-theme="light"] .shared-place-info-stats strong,
[data-theme="light"] .shared-place-info-section dd {
  color: #172620;
}
[data-theme="light"] .branch-edit-form input {
  border-color: rgba(24, 62, 51, .14);
  background: rgba(24, 62, 51, .05);
}
[data-theme="light"] .shared-place-info-stats > div,
[data-theme="light"] .shared-place-info-section,
[data-theme="light"] .shared-place-info-photo {
  border-color: rgba(24, 62, 51, .12);
  background: rgba(24, 62, 51, .05);
}
[data-theme="light"] .shared-place-info-heading small {
  color: #53645e;
}
[data-theme="light"] .shared-place-info-section .shared-place-info-field {
  border-bottom-color: rgba(24, 62, 51, .1);
}
[data-theme="light"] .branch-relocation-bar small {
  color: #53645e;
}
[data-theme="light"] .branch-relocation-bar button:last-child {
  color: #172620;
  border-color: rgba(24, 62, 51, .14);
  background: rgba(24, 62, 51, .05);
}
[data-theme="light"] .map-context-menu {
  border-color: rgba(24, 62, 51, .12);
  background: rgba(255, 255, 255, .97);
}
[data-theme="light"] .map-context-option:hover,
[data-theme="light"] .map-context-option:focus-visible {
  background: rgba(var(--mint-rgb), .09);
}
[data-theme="light"] .settings-heading strong,
[data-theme="light"] .settings-row strong,
[data-theme="light"] .file-mapping-title strong,
[data-theme="light"] .file-layer-count-text { color: #29443a; }
[data-theme="light"] .file-layers-card .file-layer-item strong,
[data-theme="light"] .file-layers-card .file-layer-child-item strong,
[data-theme="light"] .file-layers-card .file-layer-item small,
[data-theme="light"] .file-layers-card .file-layer-child-item small { color: #000000; }
[data-theme="light"] .settings-row small,
[data-theme="light"] .file-mapping-title small,
[data-theme="light"] .file-layer-list p,
[data-theme="light"] .file-mapping label span,
[data-theme="light"] .layers-tab-panel p,
[data-theme="light"] .stores-panel-heading small,
[data-theme="light"] .stores-list p,
[data-theme="light"] .store-list-item small { color: #6b8179; }
[data-theme="light"] .layers-tab-panel[data-layers-panel="rutas"],
[data-theme="light"] .layers-tab-panel[data-layers-panel="plazas-comerciales"],
[data-theme="light"] .layers-tab-panel[data-layers-panel="equipamiento-urbano"] { background: #ffffff !important; }
[data-theme="light"] .layers-tab-panel .stores-list p.stores-empty-state {
  color: var(--brand-primary) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 11px !important;
}
[data-theme="light"] .settings-row { border-color: rgba(24, 62, 51, .1); background: rgba(247, 250, 249, .92); }
[data-theme="light"] .file-mapping,
[data-theme="light"] .file-layer-item,
[data-theme="light"] .stores-category-filters .store-category-toggle {
  border-color: rgba(255,255,255,.2);
  background: transparent;
}
[data-theme="light"] .layers-tab-panel p { background: #DEDEDE !important; }
[data-theme="light"] .stores-panel-heading {
  border-color: rgba(255,255,255,0);
  background: transparent !important;
}
[data-theme="light"] .layers-tab-panel {
  background: transparent !important;
}
[data-theme="light"] .layers-section-card {
  border-color: transparent;
  background: #f4f4f4 !important;
  box-shadow: none;
  border-radius: 12px !important;
}
[data-theme="light"] .layers-section-card.general-layers-card {
  background: #f4f4f4 !important;
  height: auto !important;
  max-height: none !important;
  align-self: stretch;
}
[data-theme="light"] .layers-section-card.file-layers-card {
  background: #f4f4f4 !important;
}
[data-theme="light"] .layers-section-card .layer-row {
  border-color: rgba(24, 62, 51, .12);
  background: #FFFFFF !important;
}

[data-theme="light"] .layers-section-card.general-layers-card .layer-row {
  background: #FFFFFF !important;
}
[data-theme="light"] .file-layer-item {
  border-color: rgba(24, 62, 51, .12);
  background: #FFFFFF !important;
}
[data-theme="light"] .file-layer-child-item {
  border-color: rgba(24, 62, 51, .12);
  background: #FFFFFF !important;
}
[data-theme="light"] .storage-geojson-nse-item {
  border-color: rgba(24, 62, 51, .12);
  background: #FFFFFF !important;
}
[data-theme="light"] .storage-geojson-nse-item strong {
  color: #29443a;
}
[data-theme="light"] .layers-panel .general-layers-card .layer-row:hover,
[data-theme="light"] .layers-panel .general-layers-card .layer-row:focus-within {
  background: #FFFFFF !important;
  box-shadow: none !important;
}
[data-theme="light"] .file-layer-item:hover,
[data-theme="light"] .file-layer-item:focus-visible {
  background: #FFFFFF !important;
  box-shadow: none !important;
}
[data-theme="light"] .file-layer-child-item:hover,
[data-theme="light"] .file-layer-child-item:focus-visible {
  background: #FFFFFF !important;
  box-shadow: none !important;
}
[data-theme="light"] .stores-panel-heading strong,
[data-theme="light"] .layers-section-heading strong,
[data-theme="light"] .layers-panel .layer-row strong,
[data-theme="light"] .store-list-item strong { color: #29443a; }
[data-theme="light"] .stores-category-filters .store-category-toggle-name { color: #29443a; }

[data-theme="light"] .store-list-item {
  background: #FFFFFF !important;
}

[data-theme="light"] .store-list-item:hover,
[data-theme="light"] .store-list-item:focus-visible {
  background: #FFFFFF !important;
}

[data-theme="light"] .stores-category-filters {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 10px;
}

[data-theme="dark"] .stores-category-filters .store-category-toggle,
[data-theme="dark"] .stores-category-filters .store-category-toggle-name,
[data-theme="dark"] .stores-category-filters .store-category-toggle .settings-switch span::after {
  color: #ffffff !important;
}
[data-theme="light"] .layers-section-heading small,
[data-theme="light"] .layers-panel .layer-row small { color: #6b8179; }
[data-theme="light"] .layers-tabs button {
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  background: rgba(247, 250, 249, .92);
}
[data-theme="light"] .layers-tabs button:hover,
[data-theme="light"] .layers-tabs button:focus-visible,
[data-theme="light"] .layers-tabs button.active {
  color: var(--brand-contrast);
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
}

[data-theme="dark"] .layers-panel,
html:not([data-theme="light"]) .layers-panel {
  background: #303030 !important;
}

[data-theme="dark"] .layers-panel-logo-wrap strong,
html:not([data-theme="light"]) .layers-panel-logo-wrap strong {
  color: #ffffff !important;
}

[data-theme="dark"] .layers-tab-panel,
html:not([data-theme="light"]) .layers-tab-panel {
  background: #303030 !important;
}

[data-theme="dark"] .layers-section-card,
[data-theme="dark"] .stores-panel-heading,
[data-theme="dark"] .stores-category-filters,
html:not([data-theme="light"]) .layers-section-card,
html:not([data-theme="light"]) .stores-panel-heading,
html:not([data-theme="light"]) .stores-category-filters {
  background: #1F2020 !important;
  border-color: transparent !important;
}

[data-theme="dark"] .layers-tab-panel p,
[data-theme="dark"] .layers-panel .layer-row,
[data-theme="dark"] .store-list-item,
[data-theme="dark"] .file-layer-item,
html:not([data-theme="light"]) .layers-tab-panel p,
html:not([data-theme="light"]) .layers-panel .layer-row,
html:not([data-theme="light"]) .store-list-item,
html:not([data-theme="light"]) .file-layer-item {
  background: #3C3C3C !important;
  border-color: rgba(255, 255, 255, .1) !important;
}
[data-theme="dark"] .file-layers-card .file-layer-item strong,
[data-theme="dark"] .file-layers-card .file-layer-child-item strong,
[data-theme="dark"] .file-layers-card .file-layer-item small,
[data-theme="dark"] .file-layers-card .file-layer-child-item small { color: #ffffff !important; }
[data-theme="light"] .file-option:hover,
[data-theme="light"] .file-option:focus-visible {
  background: rgba(var(--mint-rgb), .1);
  border-color: rgba(var(--mint-rgb), .28);
}
[data-theme="light"] .file-mapping select {
  color: #172620;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(24, 62, 51, .14);
}
[data-theme="light"] .file-mapping-actions button {
  color: #526861;
  border-color: rgba(24, 62, 51, .12);
  background: rgba(255, 255, 255, .9);
}
[data-theme="light"] .file-mapping-actions button:last-child {
  color: var(--brand-contrast);
  border-color: rgba(var(--mint-rgb), .78);
  background: var(--brand-primary);
}
[data-theme="light"] .settings-row-disabled { opacity: .62; }
[data-theme="light"] .settings-toggle,
[data-theme="light"] .settings-toggle:hover,
[data-theme="light"] .settings-toggle:focus-visible {
  color: var(--brand-primary);
  background: rgba(var(--mint-rgb), .1);
  border-color: rgba(var(--mint-rgb), .36);
}
[data-theme="light"] .settings-toggle:hover,
[data-theme="light"] .settings-toggle:focus-visible {
  background: rgba(var(--mint-rgb), .16);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), .18);
}
[data-theme="light"] .settings-switch span { background: rgba(255, 255, 255, .9); border-color: rgba(var(--mint-rgb), .36); }
[data-theme="light"] .settings-switch span::after { background: #8c9894; }
[data-theme="light"] .settings-switch input:checked + span { background: rgba(var(--mint-rgb), .12); border-color: var(--brand-primary); }
[data-theme="light"] .settings-switch input:checked + span::after { background: var(--brand-primary); }


[data-theme="light"] .stores-category-filters .store-category-toggle .settings-switch span {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .65);
}
[data-theme="light"] .stores-category-filters .store-category-toggle .settings-switch span::after { background: #ffffff; }
[data-theme="light"] .stores-category-filters .store-category-toggle .settings-switch input:checked + span {
  background: rgba(255, 255, 255, .22);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}
[data-theme="light"] .settings-static-icon { color: #7a8782; border-color: rgba(24, 62, 51, .1); background: rgba(247, 250, 249, .92); }
[data-theme="light"] .coordinates {
  color: var(--brand-contrast);
  background: var(--brand-primary);
  border-color: rgba(var(--mint-rgb), .78);
  box-shadow: 0 12px 28px rgba(var(--mint-rgb), .2), 0 10px 24px rgba(0, 0, 0, .24);
}
[data-theme="light"] .map-stage { background: #dce8e3; }
[data-theme="light"] .map-vignette { box-shadow: inset 0 0 80px rgba(45, 88, 73, .12); }
[data-theme="light"] .asset-meta small,
[data-theme="light"] .asset-location small,
[data-theme="light"] .activity-heading { color: #777; }
[data-theme="light"] .map-type-control button { color: var(--brand-contrast); }
[data-theme="light"] .top-map-actions button { color: var(--brand-contrast); }
[data-theme="light"] .top-map-actions button:hover,
[data-theme="light"] .top-map-actions button:focus-visible {
  color: var(--brand-contrast);
  background: rgba(0, 0, 0, .168);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .216), 0 8px 18px rgba(0, 0, 0, .192);
}
[data-theme="light"] .top-map-actions button.active { color: var(--brand-contrast); background: rgba(0, 0, 0, .12); }
[data-theme="light"] .map-type-control button:hover,
[data-theme="light"] .map-type-control button:focus-visible {
  color: var(--brand-contrast);
  background: rgba(0, 0, 0, .168);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .216), 0 8px 18px rgba(0, 0, 0, .192);
}
[data-theme="light"] .map-type-control button.active { color: var(--brand-contrast); background: rgba(0, 0, 0, .12); }
[data-theme="light"] .asset-title p,
[data-theme="light"] .timeline small { color: #777; }
[data-theme="light"] .asset-location strong,
[data-theme="light"] .timeline strong { color: #343434; }
[data-theme="light"] .panel-actions button { color: var(--mint); background: rgba(var(--mint-rgb), .08); border-color: rgba(var(--mint-rgb), .24); }
[data-theme="light"] .panel-actions button:last-child { color: #777; background: #f4f4f4; border-color: rgba(0, 0, 0, .1); }
[data-theme="light"] .timeline i { background: #fff; }
[data-theme="light"] .demo-notice { color: #344c43; background: rgba(255, 255, 255, .96); }
[data-theme="light"] .demo-notice p strong { color: #283f37; }
[data-theme="light"] .analytics-view { background: #ffffff; }
[data-theme="light"] .analytics-content {
  color: #1f1f1f;
}
[data-theme="light"] .analytics-section-card {
  background: #f4f4f4;
  box-shadow: none;
}
[data-theme="light"] .analytics-card-heading h2 {
  color: #242424;
}
[data-theme="light"] .analytics-chart-layout h2,
[data-theme="light"] .analytics-my-places-layout h2,
[data-theme="light"] .analytics-portfolio-layout h2 {
  color: #242424;
}
[data-theme="light"] .analytics-chart-frame {
  background: #ffffff;
}
[data-theme="light"] .analytics-mini-card {
  background: #ffffff;
}
[data-theme="light"] .analytics-carousel-arrow {
  border-color: #d7d7d7;
  color: #242424;
  background: rgba(255, 255, 255, .92);
}
[data-theme="light"] .analytics-carousel-arrow:hover {
  border-color: var(--brand-primary);
  color: #ffffff;
  background: var(--brand-primary);
}
[data-theme="light"] .analytics-bar-card {
  background: #ffffff;
}
[data-theme="light"] .analytics-bar-card h2,
[data-theme="light"] .analytics-bar-row strong {
  color: #242424;
}
[data-theme="light"] .analytics-bar-card small {
  color: var(--brand-secondary);
}
[data-theme="light"] .analytics-bar-track {
  background: #e8e8e8;
}
[data-theme="light"] .analytics-chart-status {
  color: #666666;
}
[data-theme="light"] .platform-confirm-card {
  background: rgba(255, 255, 255, .97);
}
[data-theme="light"] .platform-confirm-card > p,
[data-theme="light"] .platform-confirm-input,
[data-theme="light"] .platform-confirm-field input {
  color: #172620;
}
[data-theme="light"] .platform-confirm-input,
[data-theme="light"] .platform-confirm-field input {
  border-color: rgba(24, 62, 51, .14);
  background: rgba(24, 62, 51, .05);
}
[data-theme="light"] #platform-confirm-cancel {
  color: #172620;
  border-color: rgba(24, 62, 51, .14);
  background: rgba(24, 62, 51, .05);
}
@media (max-width: 720px) {
  .analytics-content {
    width: min(100% - 24px, 560px);
    padding-top: 22px;
    padding-bottom: 96px;
  }
  .analytics-chart-frame {
    justify-self: center;
    max-width: 280px;
  }
  .analytics-chart-layout {
    grid-template-columns: 1fr;
  }
  .analytics-mini-metrics,
  .analytics-column-carousel,
  #potential-pie-carousel,
  .analytics-months-carousel {
    grid-column: 1;
  }
  .analytics-mini-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .analytics-mini-card {
    min-height: 144px;
  }
  .analytics-portfolio-layout {
    grid-template-columns: 1fr;
  }
  .analytics-my-places-layout {
    grid-template-columns: 1fr;
  }
  .analytics-my-places-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .analytics-my-places-chart {
    justify-self: center;
    height: auto;
  }
  .analytics-chart-carousel {
    max-width: 400px;
    padding-inline: 30px;
  }
  .analytics-column-carousel {
    padding-inline: 0;
  }
  .analytics-column-heading {
    align-items: center;
    flex-direction: column;
    gap: 6px;
  }
  .analytics-column-heading .analytics-chart-subtitle {
    text-align: center;
  }
  .analytics-carousel-arrow {
    width: 26px;
    height: 44px;
    font-size: 20px;
  }
  .analytics-carousel-prev {
    left: 40px;
  }
  .analytics-carousel-next {
    right: 40px;
  }
  .analytics-card-heading {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .analytics-card-heading span,
  #analytics-total-sales {
    text-align: left;
    white-space: normal;
  }
  .analytics-mini-card,
  .analytics-mini-card small,
  .analytics-mini-card strong,
  #analytics-total-sales.analytics-mini-card {
    text-align: center;
  }
  .analytics-bars-grid {
    grid-template-columns: 1fr;
  }
  .analytics-bar-card {
    padding-inline: 16px;
  }
  .analytics-months-carousel .analytics-bar-card {
    padding-inline: 42px;
  }
  .analytics-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .analytics-months-carousel .analytics-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .analytics-bar-value {
    text-align: left;
  }
}
@media (max-width: 1180px) and (min-width: 721px) {
  .analytics-chart-layout {
    grid-template-columns: 1fr;
  }
  .analytics-mini-metrics,
  .analytics-column-carousel,
  #potential-pie-carousel,
  .analytics-months-carousel {
    grid-column: 1;
  }
  .analytics-mini-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .analytics-mini-card {
    min-height: 158px;
  }
  .analytics-my-places-layout {
    grid-template-columns: 1fr;
  }
  .analytics-my-places-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .analytics-my-places-chart {
    justify-self: center;
    height: auto;
  }
}
[data-theme="light"] .toast { color: var(--brand-contrast); background: var(--brand-primary); border-color: rgba(var(--mint-rgb), .78); box-shadow: 0 12px 28px rgba(var(--mint-rgb), .2), 0 10px 24px rgba(0, 0, 0, .24); }
[data-theme="light"] .asset-marker { background: var(--mint); border-color: #fff; box-shadow: 0 0 0 4px rgba(var(--mint-rgb),.15), 0 4px 11px rgba(24,61,50,.28); }
[data-theme="light"] .asset-marker.alert { background: #d9474d; box-shadow: 0 0 0 4px rgba(217,71,77,.13), 0 4px 11px rgba(24,61,50,.28); }
[data-theme="light"] .asset-marker.pizza-marker { background: transparent; border: 0; box-shadow: none; }
[data-theme="light"] .asset-marker.pizza-marker:not(.has-icon) { background: var(--brand-primary); border: 1px solid var(--brand-contrast); box-shadow: 0 0 0 4px rgba(var(--mint-rgb),.15), 0 4px 11px rgba(24,61,50,.28); }

.layers-panel .file-layer-item.file-layer-item-folder,
.layers-panel .file-layer-item.file-layer-item-folder:hover,
.layers-panel .file-layer-item.file-layer-item-folder:focus-visible,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder:hover,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder:focus-visible,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder:hover,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder:focus-visible,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder:hover,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder:focus-visible {
  color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  box-shadow: none !important;
}

.layers-panel .file-layer-item.file-layer-item-folder strong,
.layers-panel .file-layer-item.file-layer-item-folder small,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder strong,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder small,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder strong,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder small,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder strong,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder small {
  color: #ffffff !important;
}

.layers-panel .file-layer-item.file-layer-item-folder .file-layer-type-icon,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder .file-layer-type-icon,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder .file-layer-type-icon,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder .file-layer-type-icon {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .16) !important;
}

.layers-panel .file-layer-item.file-layer-item-folder .settings-switch span,
.layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span {
  border-color: rgba(255, 255, 255, .82) !important;
  background: rgba(255, 255, 255, .22) !important;
  box-shadow: none !important;
}

.layers-panel .file-layer-item.file-layer-item-folder .settings-switch span::after,
.layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span::after,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span::after,
[data-theme="light"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span::after,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span::after,
[data-theme="dark"] .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span::after,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder .settings-switch span::after,
html:not([data-theme="light"]) .layers-panel .file-layer-item.file-layer-item-folder .settings-switch input:checked + span::after {
  background: #ffffff !important;
}

.layers-panel .shared-place-folder.is-portfolio-default-category,
.layers-panel .shared-place-folder.is-portfolio-default-category:hover,
.layers-panel .shared-place-folder.is-portfolio-default-category:focus-visible,
[data-theme="light"] .layers-panel .shared-place-folder.is-portfolio-default-category,
[data-theme="light"] .layers-panel .shared-place-folder.is-portfolio-default-category:hover,
[data-theme="light"] .layers-panel .shared-place-folder.is-portfolio-default-category:focus-visible,
[data-theme="dark"] .layers-panel .shared-place-folder.is-portfolio-default-category,
[data-theme="dark"] .layers-panel .shared-place-folder.is-portfolio-default-category:hover,
[data-theme="dark"] .layers-panel .shared-place-folder.is-portfolio-default-category:focus-visible,
html:not([data-theme="light"]) .layers-panel .shared-place-folder.is-portfolio-default-category,
html:not([data-theme="light"]) .layers-panel .shared-place-folder.is-portfolio-default-category:hover,
html:not([data-theme="light"]) .layers-panel .shared-place-folder.is-portfolio-default-category:focus-visible {
  border-color: var(--brand-secondary) !important;
  background: var(--brand-secondary) !important;
}

.layers-panel .store-location-folder.is-store-default-location,
.layers-panel .store-location-folder.is-store-default-location:hover,
.layers-panel .store-location-folder.is-store-default-location:focus-visible,
[data-theme="light"] .layers-panel .store-location-folder.is-store-default-location,
[data-theme="light"] .layers-panel .store-location-folder.is-store-default-location:hover,
[data-theme="light"] .layers-panel .store-location-folder.is-store-default-location:focus-visible,
[data-theme="dark"] .layers-panel .store-location-folder.is-store-default-location,
[data-theme="dark"] .layers-panel .store-location-folder.is-store-default-location:hover,
[data-theme="dark"] .layers-panel .store-location-folder.is-store-default-location:focus-visible,
html:not([data-theme="light"]) .layers-panel .store-location-folder.is-store-default-location,
html:not([data-theme="light"]) .layers-panel .store-location-folder.is-store-default-location:hover,
html:not([data-theme="light"]) .layers-panel .store-location-folder.is-store-default-location:focus-visible {
  border-color: #1F2020 !important;
  background: #1F2020 !important;
}

.layers-panel .file-layer-children .file-layer-child-item,
.layers-panel .file-layer-children .file-layer-child-item:hover,
.layers-panel .file-layer-children .file-layer-child-item:focus-visible,
[data-theme="light"] .layers-panel .file-layer-children .file-layer-child-item,
[data-theme="light"] .layers-panel .file-layer-children .file-layer-child-item:hover,
[data-theme="light"] .layers-panel .file-layer-children .file-layer-child-item:focus-visible,
[data-theme="dark"] .layers-panel .file-layer-children .file-layer-child-item,
[data-theme="dark"] .layers-panel .file-layer-children .file-layer-child-item:hover,
[data-theme="dark"] .layers-panel .file-layer-children .file-layer-child-item:focus-visible,
html:not([data-theme="light"]) .layers-panel .file-layer-children .file-layer-child-item,
html:not([data-theme="light"]) .layers-panel .file-layer-children .file-layer-child-item:hover,
html:not([data-theme="light"]) .layers-panel .file-layer-children .file-layer-child-item:focus-visible {
  border-color: rgba(var(--mint-rgb), .34) !important;
  background: linear-gradient(135deg, rgba(var(--mint-rgb), .36), rgba(var(--mint-rgb), .12)) !important;
  box-shadow: none !important;
}

.layers-panel .file-layer-children .file-layer-type-icon,
[data-theme="light"] .layers-panel .file-layer-children .file-layer-type-icon,
[data-theme="dark"] .layers-panel .file-layer-children .file-layer-type-icon,
html:not([data-theme="light"]) .layers-panel .file-layer-children .file-layer-type-icon {
  color: var(--brand-primary) !important;
  background: rgba(255, 255, 255, .42) !important;
}

@media (max-width: 1050px) {
  .topbar { right: 20px; left: auto; }
  .app-shell:has(.workspace.sidebar-collapsed) .topbar { right: 20px; left: auto; }
  .system-status { display: none; }
  .workspace { grid-template-columns: 200px 1fr; }
  .workspace.sidebar-collapsed { grid-template-columns: 67px 1fr; }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .asset-panel { width: 310px; }
}

@media (max-width: 760px) {
  :root {
    --mobile-menu-height: 64px;
    --mobile-panel-gap: 10px;
    --mobile-panel-bottom: calc(var(--mobile-menu-height) + var(--mobile-panel-gap) + env(safe-area-inset-bottom, 0px));
    --mobile-layers-sheet-top-gap: calc(env(safe-area-inset-top, 0px) + 12px);
  }
  html,
  body {
    background: var(--brand-primary);
  }
  body::before,
  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    pointer-events: none;
  }
  body::before {
    top: 0;
    z-index: 9999;
    height: env(safe-area-inset-top, 0px);
    background: #000;
  }
  body::after {
    bottom: 0;
    z-index: 80;
    height: env(safe-area-inset-bottom, 0px);
    background: var(--brand-primary);
  }
  .topbar { position: absolute; left: 50%; right: auto; top: 2%; transform: translateX(-50%); min-height: 50px; height: auto; gap: 0; padding: 7px 9px; }
  .app-shell:has(.workspace.sidebar-collapsed) .topbar { left: 50%; right: auto; transform: translateX(-50%); }
  .app-shell { height: 100dvh; min-height: 100dvh; }
  .brand-logo { display: none !important; }
  .top-actions .avatar-button { display: none; }
  .workspace { height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .workspace.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { grid-column: 1; grid-row: 1; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: calc(var(--mobile-menu-height) + env(safe-area-inset-bottom, 0px)); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line-strong); border-width: 1px 0 0; border-radius: 0; background: rgba(var(--menu-bar-rgb), .96); backdrop-filter: blur(16px); display: grid; grid-template-columns: 1fr 92px; align-items: start; gap: 4px; box-shadow: 0 -14px 32px rgba(0, 0, 0, .36); }
  .workspace.sidebar-collapsed .sidebar { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); align-items: stretch; }
  .sidebar-toggle { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(6, 1fr); border: 0; padding: 0; gap: 2px; }
  .workspace.sidebar-collapsed .primary-nav { width: auto; grid-template-columns: repeat(6, 1fr); justify-items: stretch; padding: 0; }
  .nav-item { height: 44px; display: flex; justify-content: center; padding: 0; }
  .workspace.sidebar-collapsed .nav-item { width: auto; height: 44px; display: flex; justify-content: center; }
  .nav-item span, .nav-item b, .sidebar-section { display: none; }
  .workspace.sidebar-collapsed .sidebar-section { display: none; }
  .sidebar-bottom,
  .workspace.sidebar-collapsed .sidebar-bottom { display: grid; grid-template-columns: repeat(2, 44px); gap: 4px; width: 92px; margin-top: 0; justify-items: center; }
  .settings-button,
  .workspace.sidebar-collapsed .settings-button { width: 44px; height: 44px; display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .settings-icon,
  .workspace.sidebar-collapsed .settings-icon { width: 100%; height: 100%; }
  .settings-button svg { width: 22px; height: 22px; }
  .settings-label { display: none; }
  .nav-item svg { width: 26px; margin: 3px 0; }
  .workspace.sidebar-collapsed .nav-item::before,
  .workspace.sidebar-collapsed .nav-item::after,
  .workspace.sidebar-collapsed .layer-row::before,
  .workspace.sidebar-collapsed .layer-row::after,
  .workspace.sidebar-collapsed .settings-button::before,
  .workspace.sidebar-collapsed .settings-button::after {
    display: none;
  }
  .map-stage { grid-column: 1; grid-row: 1; }
  .map-stage:has(.asset-panel:not(.closed)) .map { filter: blur(5px); }
  .asset-panel { right: 10px; left: 10px; top: 70px; bottom: var(--mobile-panel-bottom); width: auto; padding-top: 48px; }
  .asset-panel.closed { transform: translateY(calc(100% + 90px)); }
  .branch-edit-panel {
    position: fixed;
    right: 10px;
    left: 10px;
    top: 70px;
    bottom: var(--mobile-panel-bottom);
    width: auto;
    height: auto;
    padding-top: 48px;
    border-radius: 12px;
    border-width: 1px;
  }
  .branch-edit-panel.closed {
    transform: translateY(calc(100% + 90px));
  }
  .asset-panel.is-dragging {
    transition: none;
  }
  #close-asset-panel {
    display: none;
  }
  .asset-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 91px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand-primary);
    cursor: pointer;
    touch-action: none;
  }
  .asset-sheet-handle span {
    width: 50px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  }
  .asset-sheet-handle:hover span,
  .asset-sheet-handle:focus-visible span {
    width: 60px;
    box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .14), 0 8px 18px rgba(0, 0, 0, .3);
  }
  .settings-panel,
  .files-panel,
  .marker-actions-panel,
  .polygon-actions-panel,
  .export-actions-panel,
  .layers-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: var(--mobile-panel-bottom);
    width: auto;
    max-height: min(72dvh, calc(100dvh - var(--mobile-panel-bottom) - 24px));
  }
  #close-layers,
  .layers-heading {
    display: none;
  }
  .layers-heading-copy {
    display: none;
  }
  .layers-heading-mobile-logo {
    display: none !important;
  }
  .layers-panel .layers-panel-bottom-logo {
    display: none !important;
  }
  .layers-panel {
    left: 10px;
    right: 10px;
    top: auto;
    height: min(45dvh, calc(100dvh - var(--mobile-panel-bottom) - 24px));
    max-height: none;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .layers-panel.is-expanded {
    height: calc(100dvh - var(--mobile-panel-bottom) - var(--mobile-layers-sheet-top-gap));
  }
  .layers-panel.is-dragging {
    transition: none;
  }
.layers-sheet-handle {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 91px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand-primary);
    cursor: pointer;
    touch-action: none;
  }
.layers-sheet-handle span {
  width: 50px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
    transition: width .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .layers-sheet-handle:hover,
  .layers-sheet-handle:focus-visible {
    color: var(--brand-primary);
    outline: 0;
  }
.layers-sheet-handle:hover span,
.layers-sheet-handle:focus-visible span,
.layers-panel.is-expanded .layers-sheet-handle span {
  width: 60px;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(var(--mint-rgb), .14), 0 8px 18px rgba(0, 0, 0, .3);
  }
  .layers-tabs {
    grid-template-columns: repeat(var(--layers-tab-count, 8), minmax(42px, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    width: 100%;
    gap: 7px;
    flex: 0 0 62px;
    min-height: 62px;
    max-height: 62px;
    align-items: center;
    justify-items: stretch;
    padding: 10px 0 12px;
    overflow-x: auto;
    overflow-y: visible;
  }
  .layers-tabs button {
    width: 100%;
    min-width: 42px;
    max-width: none;
    height: 58px;
    padding: 0;
  }
  .layers-tabs button span { display: none; }
  .layers-tab-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
  .layers-tab-panel {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }
  .layers-tab-panel[hidden] { display: none !important; }
  .layers-tab-panel[data-layers-panel="general"] {
    overflow-y: auto;
  }
.layers-tab-panel[data-layers-panel="general"] .layers-section-card {
  flex: 0 0 auto;
  overflow: visible;
  height: auto;
  max-height: none;
  border-radius: 12px;
}
  .layers-tab-panel[data-layers-panel="general"] .cities-layers-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .layers-tab-panel[data-layers-panel="general"] .cities-layer-list {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
  }
  .layers-tab-panel[data-layers-panel="general"] .layer-list,
  .layers-panel .general-layers-card .layer-list {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
  .layers-panel .layer-list,
  .stores-list,
  .file-layer-list {
    flex: 0 0 auto;
    min-height: 0;
    max-height: min(50vh, 460px);
    overflow-y: auto;
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
    padding-right: 2px;
  }
  .layers-tab-panel[data-layers-panel="tiendas"] {
    gap: 10px;
    overflow: hidden;
  }
  .stores-layers-card {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
  }
  .file-layers-card {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    margin-top: 8px;
    padding: 0;
    overflow: hidden;
  }
  .layers-tab-panel[data-layers-panel="tiendas"] .file-layers-card {
    flex: 1 1 0;
    height: 100%;
    margin-top: 0;
  }
  .layers-tab-panel[data-layers-panel="tiendas"] .file-layer-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    scrollbar-gutter: auto;
  }
  .layers-tab-panel[data-layers-panel="mis-lugares"],
  .layers-tab-panel[data-layers-panel="lugares-compartidos"],
  .layers-tab-panel[data-layers-panel="plazas-comerciales"],
  .layers-tab-panel[data-layers-panel="equipamiento-urbano"] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }
  .layers-tab-panel[data-layers-panel="mis-lugares"][hidden],
  .layers-tab-panel[data-layers-panel="lugares-compartidos"][hidden],
  .layers-tab-panel[data-layers-panel="plazas-comerciales"][hidden],
  .layers-tab-panel[data-layers-panel="equipamiento-urbano"][hidden] {
    display: none !important;
  }
  .layers-tab-panel[data-layers-panel="mis-lugares"] .file-layers-card,
  .layers-tab-panel[data-layers-panel="lugares-compartidos"] .file-layers-card,
  .layers-tab-panel[data-layers-panel="plazas-comerciales"] .file-layers-card,
  .layers-tab-panel[data-layers-panel="equipamiento-urbano"] .file-layers-card {
    flex: 1 1 0;
    height: 100%;
    margin-top: 0;
  }
  .stores-layers-card .stores-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    overflow-y: auto;
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
    padding-right: 2px;
  }
  .file-layer-count-text,
  .stores-panel-heading {
    flex: 0 0 auto;
  }
  .demo-notice { top: 72px; min-width: 280px; }
  .map-control-cluster { display: flex; }
  [data-theme="light"] .sidebar { background: var(--brand-primary); }
  .loading-screen img { width: 354px; height: 354px; }
}

@media (max-width: 1180px) {
  #logout-button,
  #open-settings,
  .sidebar-bottom,
  .workspace.sidebar-collapsed .sidebar-bottom,
  .developer-modal,
  .developer-dock {
    display: none !important;
  }
  .coordinates {
    display: none !important;
  }
}

@media (pointer: coarse) and (min-width: 761px) and (max-width: 1368px) {
  .sidebar-toggle {
    display: none !important;
  }
  #fullscreen-toggle {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .sidebar,
  .workspace.sidebar-collapsed .sidebar {
    grid-template-columns: 1fr 44px !important;
  }
  .sidebar-bottom,
  .workspace.sidebar-collapsed .sidebar-bottom {
    display: grid !important;
    grid-template-columns: 44px;
    gap: 0;
    width: 44px;
    margin-top: 0;
    justify-items: center;
  }
  #logout-button {
    display: grid !important;
  }
  #open-settings {
    display: none !important;
  }
  #fullscreen-toggle {
    display: none !important;
  }
  .search-panel {
    left: 50%;
    right: auto;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    bottom: auto;
    width: min(420px, calc(100vw - 24px));
    max-height: none;
    padding: 16px;
    grid-template-columns: 1fr 30px;
    align-items: stretch;
    gap: 14px;
  }
  .search-panel-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .search-panel-body {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
  }
  #close-search {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  #location-search-button {
    width: 100%;
  }
  .toast,
  .toast.visible {
    display: none !important;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .topbar {
    left: auto;
    right: 0;
    top: 5%;
    transform: none;
    min-height: 66px;
    padding: 7px 9px;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: opacity .2s ease, transform .24s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .app-shell:has(.workspace.sidebar-collapsed) .topbar {
    left: auto;
    right: 0;
    top: 5%;
    transform: none;
  }
  .sidebar {
    transition: transform .24s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .mobile-map-menu-tag {
    position: absolute;
    left: auto;
    right: 100%;
    top: 0;
    bottom: 0;
    transform: none;
    width: 31.5px;
    height: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--mint-rgb), .78);
    border-width: 1px 0 1px 1px;
    border-radius: 12px 0 0 12px;
    background: var(--brand-primary);
    color: var(--brand-contrast);
    cursor: pointer;
    box-shadow: none;
  }
  .mobile-map-menu-tag svg {
    width: 13px;
    height: 14px;
  }
  .mobile-map-menu-expand {
    display: none;
  }
  .app-shell.map-menu-collapsed .topbar {
    left: auto;
    right: 0;
    top: 5%;
    width: 0;
    min-height: 66px;
    height: 66px;
    padding: 0;
    transform: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  .app-shell.map-menu-collapsed .top-actions {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }
  .app-shell.map-menu-collapsed .mobile-map-menu-tag {
    top: 0;
    right: 100%;
    bottom: 0;
    width: 31.5px;
    height: auto;
    background: var(--brand-primary);
    border: 1px solid rgba(var(--mint-rgb), .78);
    border-width: 1px 0 1px 1px;
    border-radius: 12px 0 0 12px;
  }
  .app-shell.map-menu-collapsed .mobile-map-menu-collapse {
    display: none;
  }
  .app-shell.map-menu-collapsed .mobile-map-menu-expand {
    display: block;
  }
  .app-shell:has(.asset-panel:not(.closed)) .topbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
  .asset-panel:not(.closed) {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    bottom: var(--mobile-panel-bottom);
    z-index: 120;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 620px) {
  .mobile-orientation-lock {
    display: grid;
    pointer-events: auto;
  }
  #fullscreen-toggle {
    display: none !important;
  }
  .orientation-icon-mobile,
  .orientation-title-mobile,
  .orientation-copy-mobile {
    display: block !important;
  }
  .orientation-icon-tablet,
  .orientation-title-tablet,
  .orientation-copy-tablet {
    display: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  .mobile-orientation-lock {
    display: grid;
    pointer-events: auto;
  }
  .orientation-icon-mobile,
  .orientation-title-mobile,
  .orientation-copy-mobile {
    display: none !important;
  }
  .orientation-icon-tablet,
  .orientation-title-tablet,
  .orientation-copy-tablet {
    display: block !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: landscape) {
  .sidebar {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .workspace.sidebar-collapsed .sidebar {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .sidebar-bottom {
    gap: 8px;
  }
  .settings-button {
    min-width: 0;
  }
  .settings-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1050px) and (max-height: 600px) and (orientation: landscape) {
  .topbar { left: auto; right: 10px; top: 2%; transform: none; }
  .app-shell:has(.workspace.sidebar-collapsed) .topbar { left: auto; right: 10px; transform: none; }
}

.layers-tab-panel[data-layers-panel="general"] {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.layers-tab-panel[data-layers-panel="general"] .cities-layers-card {
  flex: 1 1 0 !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0;
  overflow: hidden !important;
}

.layers-tab-panel[data-layers-panel="general"] .cities-layer-list {
  flex: 1 1 0 !important;
  max-height: none !important;
  min-height: 0;
  overflow-y: auto;
}
