.lpl-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; font-family: Inter, sans-serif; color: #2A2C31; }
.lpl-wrap.is-readonly { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
@media (max-width: 991px) { .lpl-wrap, .lpl-wrap.is-readonly { grid-template-columns: 1fr; } }

.lpl-rail { display: flex; flex-direction: column; min-width: 0; }
.lpl-rail .form-group { margin-bottom: 12px; }
.lpl-rail .tt-alert { margin: 0 0 12px; }
.lpl-h { display: flex; align-items: center; gap: 8px; font: 700 14px/1.3 Inter, sans-serif; color: #2A2C31; margin: 0 0 12px; }
.lpl-h .lpl-h-aside { margin-left: auto; font: 500 12px/1.3 Inter, sans-serif; color: #5F707F; }
.lpl-n { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    background: #EEF4F8; color: #5F707F; font: 700 11px/1 Inter, sans-serif; transition: background .2s ease, color .2s ease; }
.lpl-h.is-done .lpl-n { background: rgba(16, 196, 105, .14); color: #0B8A4A; }
.lpl-h.is-done .lpl-n::before { content: "\2713"; font-size: 12px; }
.lpl-h.is-done .lpl-n span { display: none; }

.lpl { margin-top: 8px; padding-top: 16px; border-top: 1px solid #E7EEF4; }
.lpl-wrap.is-readonly .lpl { margin-top: 0; padding-top: 0; border-top: 0; }
.lpl-tip { font: 400 13px/1.45 Inter, sans-serif; color: #5F707F; margin: 0 0 12px; }
.lpl-cols, .lpl-pt { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.lpl-cols { font: 600 11px/1.3 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5F707F; padding: 0 0 6px;
    position: sticky; top: 0; z-index: 1; background: #FFFFFF; }
/* список растёт внутри себя: иначе каждая точка удлиняет колонку и страница дёргается */
.lpl-list { position: relative; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lpl-wrap.is-readonly .lpl-list { max-height: 300px; }
.lpl-pt { padding: 4px 0; border-radius: 6px; transition: background .15s ease; }
.lpl-pt.is-hot { background: #E9F3FC; }
.lpl-pt.is-new { animation: lpl-row-in .45s ease-out; }
@keyframes lpl-row-in { from { opacity: 0; transform: translateY(-4px); background: #E9F3FC; } 60% { opacity: 1; transform: none; background: #E9F3FC; } to { background: transparent; } }
.lpl-pt-n { font: 600 12px/1 Inter, sans-serif; color: #5F707F; text-align: center; font-variant-numeric: tabular-nums; }
.lpl-in { width: 100%; min-width: 0; height: 32px; border: 1px solid #D2D7E3; border-radius: 6px; padding: 0 8px; background: #FFFFFF;
    font: 500 13px/1 'JetBrains Mono', Consolas, monospace; color: #2A2C31; }
.lpl-in:focus { outline: 0; border-color: #006196; box-shadow: 0 0 0 3px rgba(0, 97, 150, .12); }
.lpl-in.is-bad { border-color: #FF4D4F; background: rgba(255, 77, 79, .04); }
.lpl-in::placeholder { color: #A0AAB4; }
.lpl-ro { font: 500 13px/1.3 'JetBrains Mono', Consolas, monospace; color: #2A2C31; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpl-x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #A0AAB4; cursor: pointer; font-size: 16px; line-height: 1; }
.lpl-x:hover { background: rgba(255, 77, 79, .08); color: #FF4D4F; }
.lpl-actions { display: flex; gap: 8px; margin-top: 10px; }
.lpl-actions .tt-btn { flex: 1 1 0; height: 32px; padding: 0 10px; border-radius: 9px; }
.lpl-link { margin-top: 8px; border: 0; background: none; padding: 0; font: 500 12px/1.3 Inter, sans-serif; color: #5F707F; cursor: pointer; align-self: flex-start; }
.lpl-link:hover { color: #FF4D4F; }
.lpl-msg { margin-top: 10px; font: 500 12px/1.45 Inter, sans-serif; border-radius: 6px; padding: 8px 10px; }
.lpl-msg.is-error { background: rgba(255, 77, 79, .08); color: #C9302C; }
.lpl-msg.is-warn { background: rgba(224, 170, 122, .2); color: #A86F3E; }
.lpl-paste { margin-top: 10px; padding: 12px; border-radius: 9px; background: #F4F8FB; }
.lpl-paste textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid #D2D7E3; border-radius: 6px; padding: 8px;
    font: 400 12px/1.5 'JetBrains Mono', Consolas, monospace; color: #2A2C31; background: #FFFFFF; }
.lpl-paste p { font: 400 12px/1.45 Inter, sans-serif; color: #5F707F; margin: 0 0 8px; }

/* высота фиксирована и карта прилипает при прокрутке: не тянется за колонкой и не догружает подложку */
.lpl-map { position: sticky; top: 16px; height: 560px; border: 1px solid #E3EBF2; border-radius: 12px; overflow: hidden; background: #EEF4F8;
    transition: box-shadow .35s ease; }
.lpl-wrap.is-readonly .lpl-map { position: relative; top: auto; height: 380px; }
@media (max-width: 991px) { .lpl-map { position: relative; top: auto; height: 380px; } }
.lpl-map.is-flash { box-shadow: 0 0 0 4px rgba(0, 97, 150, .18); }
.lpl-map .ol-viewport { position: absolute !important; inset: 0; }
.lpl-map.is-picking .ol-viewport { cursor: crosshair; }

.lpl-chip { position: absolute; top: 12px; left: 12px; right: 64px; z-index: 2; pointer-events: none; display: flex; }
.lpl-chip span { background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 6px 12px; font: 600 12px/1.3 Inter, sans-serif; color: #2A2C31;
    box-shadow: 0 1px 3px rgba(0, 40, 70, .12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lpl-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.lpl-tool { width: 36px; height: 36px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .94); color: #2A2C31; cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 40, 70, .12); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.lpl-tool:hover { color: #006196; }
.lpl-layers { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px;
    background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(0, 40, 70, .12); }
.lpl-layers button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: 600 12px/1 Inter, sans-serif; color: #5F707F; cursor: pointer; }
.lpl-layers button.is-on { background: #006196; color: #FFFFFF; }
.lpl-hint { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 2; max-width: min(420px, calc(100% - 24px));
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; background: #FFFFFF; color: #2A2C31;
    box-shadow: 0 4px 16px rgba(0, 40, 70, .18); font: 500 13px/1.4 Inter, sans-serif; pointer-events: none; }
.lpl-hint i { font-size: 20px; color: #006196; }
.lpl-hint.is-pulse i { animation: lpl-pulse 1.6s ease-in-out infinite; }
@keyframes lpl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.lpl-empty { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    text-align: center; background: rgba(238, 244, 248, .82); backdrop-filter: blur(2px); padding: 24px; }
.lpl-empty i { font-size: 28px; color: #006196; width: 56px; height: 56px; border-radius: 14px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.lpl-empty b { font: 700 15px/1.3 Inter, sans-serif; color: #2A2C31; }
.lpl-empty span { font: 400 13px/1.45 Inter, sans-serif; color: #5F707F; }
.lpl-map .ol-attribution { right: 8px; bottom: 8px; }
.lpl-map .ol-attribution ul { font-size: 10px; }
/* внешние карты: иконка в заголовке точек + выпадающее меню, монохромно в цветах проекта */
.lpl-ext { position: relative; margin-left: 6px; }
.lpl-ext-btn { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #5F707F; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: background .15s ease, color .15s ease; }
.lpl-ext-btn:hover, .lpl-ext-btn[aria-expanded="true"] { background: #E5F1F8; color: #006196; }
.lpl-ext-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 232px; padding: 6px; border-radius: 12px; background: #FFFFFF;
    border: 1px solid #E3EBF2; box-shadow: 0 8px 24px rgba(0, 40, 70, .12); animation: lpl-menu-in .14s ease-out; }
@keyframes lpl-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lpl-ext-t { font: 600 11px/1.3 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5F707F; padding: 6px 8px 8px; }
.lpl-ext-menu a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 8px;
    font: 500 13px/1 Inter, sans-serif; color: #2A2C31; text-decoration: none; }
.lpl-ext-menu a:hover { background: #E9F3FC; color: #006196; text-decoration: none; }
.lpl-ext-logo { width: 24px; height: 24px; border-radius: 7px; background: #E5F1F8; color: #006196; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font: 800 13px/1 Inter, sans-serif; }
.lpl-ext-logo .mdi { font-size: 15px; line-height: 1; }
.lpl-ext-menu a:hover .lpl-ext-logo { background: #006196; color: #FFFFFF; }
.lpl-ext-note { font: 400 11px/1.4 Inter, sans-serif; color: #A0AAB4; padding: 8px 8px 4px; border-top: 1px solid #E7EEF4; margin-top: 4px; }
