.lmap-app {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  background: #0b101b;
  border: 1px solid #26334d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.lmap-sidebar {
  background: #0e1422;
  border-right: 1px solid #26334d;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 660px;
  overflow-y: auto;
}
.lmap-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lmap-title-row strong {
  font-family: var(--font-ui);
  font-size: 16px;
  color: #f8fafc;
}
.lmap-progress-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 227, 213, 0.14);
  color: #22e3d5;
  border: 1px solid rgba(34, 227, 213, 0.35);
}
.lmap-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #1b2438;
  overflow: hidden;
}
.lmap-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5c93, #ffbe55, #22e3d5);
  transition: width 0.25s ease;
}
.lmap-search {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #2c3a57;
  background: #080c15;
  color: #f8fafc;
  font-size: 14px;
}
.lmap-search::placeholder { color: #94a3b8; }
.lmap-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lmap-mini-btn {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2c3a57;
  background: #151d30;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lmap-mini-btn:hover { border-color: #22e3d5; color: #22e3d5; }
.lmap-mini-btn.is-active {
  background: #c9265e;
  border-color: #ff5c93;
  color: #f8fafc;
}
.lmap-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8b5cc;
}
.lmap-cats { display: grid; gap: 6px; }
.lmap-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #232f48;
  background: #121a2b;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.lmap-cat-btn[aria-pressed="false"] { opacity: 0.48; }
.lmap-cat-left { display: inline-flex; align-items: center; gap: 8px; }
.lmap-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lmap-cat-count { font-size: 12px; color: #a8b5cc; }
.lmap-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lmap-region-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #2c3a57;
  background: #131c2e;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lmap-region-chip:hover { border-color: #ffbe55; color: #ffbe55; }
.lmap-stage-col {
  display: flex;
  flex-direction: column;
  background: #060b14;
  min-width: 0;
}
.lmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #0c1220;
  border-bottom: 1px solid #23304a;
}
.lmap-tool-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lmap-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 460px;
  max-height: 600px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: #050c16;
}
.lmap-viewport.is-dragging { cursor: grabbing; }
.lmap-viewport.is-pinning { cursor: crosshair; }
.lmap-canvas {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.lmap-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  transition: filter 0.25s ease;
}
.lmap-viewport[data-layer="radar"] .lmap-canvas img {
  filter: hue-rotate(155deg) saturate(1.45) contrast(1.18) brightness(0.84);
}
.lmap-zone-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(255, 190, 85, 0.45);
  color: #ffbe55;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
.lmap-viewport[data-zones="off"] .lmap-zone-label { display: none; }
.lmap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #f8fafc;
  background: var(--pin-color, #c9265e);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, opacity 0.15s ease;
  padding: 0;
}
.lmap-pin:hover, .lmap-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 6;
  box-shadow: 0 0 0 4px rgba(34, 227, 213, 0.35), 0 4px 14px rgba(0, 0, 0, 0.85);
}
.lmap-pin.is-visited { opacity: 0.45; }
.lmap-pin.is-custom { background: #ffbe55; color: #080b12; border-color: #080b12; }
.lmap-inspector {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(330px, calc(100% - 28px));
  background: rgba(11, 16, 28, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #304266;
  border-top: 3px solid #ff5c93;
  border-radius: 12px;
  padding: 16px;
  color: #f8fafc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  z-index: 10;
}
.lmap-insp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.lmap-insp-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22e3d5;
}
.lmap-insp-close {
  background: transparent;
  border: 0;
  color: #d6dfee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.lmap-insp-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 6px;
  color: #f8fafc;
}
.lmap-insp-meta {
  font-size: 12px;
  color: #ffbe55;
  margin-bottom: 8px;
  font-weight: 600;
}
.lmap-inspector p {
  font-size: 14px;
  color: #d6dfee;
  margin: 0 0 12px;
  line-height: 1.5;
}
.lmap-insp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lmap-hint-bar {
  padding: 8px 14px;
  background: #0c1220;
  border-top: 1px solid #23304a;
  font-size: 12px;
  color: #a8b5cc;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .lmap-app { grid-template-columns: 1fr; }
  .lmap-sidebar { max-height: none; border-right: 0; border-bottom: 1px solid #26334d; }
  .lmap-viewport { min-height: 360px; }
}