.ol-base { filter: saturate(0.8) brightness(1.06) contrast(0.95); }
.wz-dim .ol-base { filter: saturate(0.35) brightness(0.75) contrast(1.05); }
.ol-popup { position: absolute; background: var(--gray-2, #1b1b1f); color: var(--white, #fff); border-radius: 10px; padding: 10px 28px 10px 12px; min-width: 140px; max-width: 260px; box-shadow: 0 4px 16px rgba(0,0,0,.45); font-size: 13px; }
.ol-popup:after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--gray-2, #1b1b1f); }
.ol-popup-x { position: absolute; top: 2px; right: 6px; background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.ol-tip-box { position: absolute; z-index: 5; pointer-events: none; background: rgba(21,21,24,.94); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.ol-control button { background: rgba(21,21,24,.92); color: #fff; }
.ol-control button:hover { background: var(--orange, #ff6a1a); }
.ol-attribution { font-size: 10px; }

.gis-ruler-on { cursor: crosshair !important; }
.gis-ruler-bar { position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(15,15,20,.9); border: 1px solid var(--orange-border, #ff6a1a); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 12px; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }
.gis-ruler-bar button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 4px 8px; cursor: pointer; font: inherit; }
.gis-ruler-bar button:hover { border-color: #ff6a1a; }
.gis-ol-ruler { top: 4.6em; left: .5em; }
.gis-ol-ruler button { font-size: 15px; }
.gis-ol-ruler button.active { background: var(--orange); }
.ol-zoom { top: auto; left: auto; right: 12px; bottom: 36px; }
.gis-ol-lite { top: 4.6em; left: .5em; }
.gis-ol-lite button { font-size: 15px; }
.gis-ol-lite button.active { background: var(--orange, #ff6a1a); }

/* кнопки на карте */
._x { background: transparent; padding: 0; border-radius: 12px; }
._y, .ol-control button {
  width: 34px; height: 34px; margin: 0; border-radius: 12px; font-size: 17px; font-weight: 700; line-height: 1;
  background: rgba(21,21,24,0.92); color: #fff; border: 1px solid var(--glass-border, rgba(255,255,255,.14)); backdrop-filter: blur(6px);
}
.ol-zoom { display: flex; flex-direction: column; gap: 6px; }
.ol-zoom button { display: block; }
.ol-control button:hover, .ol-control button:focus { background: var(--orange, #ff6a1a); color: #fff; }
.ol-control button.active { background: var(--orange, #ff6a1a); }
.gis-ol-ruler { top: 6.4em; left: .5em; } .gis-ol-lite { top: 9.9em; left: .5em; }
.wz-meas { background: var(--orange, #ff6a1a); color: #fff; padding: 3px 9px; border-radius: 999px; font: 700 12px 'JetBrains Mono', monospace; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }

.gis-ol-ruler { top: .5em; left: .5em; } .gis-ol-lite { top: 3.9em; left: .5em; }
