/* Контрольные пункты на карте: треугольник — триангуляция (ГГС), перевёрнутый — она же в переуравненных
   координатах, квадрат — полигонометрия и ОМЗ.
   Цвет — величина поправки, серый пунктир — пункт выключен из сетки. */
.ctl-pt { position: absolute; display: block; left: -6px; top: -6px; width: 12px; height: 12px; cursor: pointer; background: var(--c); box-shadow: 0 0 0 1.5px rgba(11, 16, 32, 0.85); }
.ctl-pt.is-ggs { left: -7px; top: -8px; width: 14px; height: 13px; clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; filter: drop-shadow(0 0 1px rgba(11, 16, 32, 0.9)); }
.ctl-pt.is-ggsn { left: -7px; top: -5px; width: 14px; height: 13px; clip-path: polygon(0 0, 100% 0, 50% 100%); box-shadow: none; filter: drop-shadow(0 0 1px rgba(11, 16, 32, 0.9)); }
.ctl-pt.is-pp { left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 1.5px; }
.ctl-pt.is-off { opacity: 0.6; }
.ctl-pt:hover { transform: scale(1.3); }

.ctl-card { display: grid; gap: 6px; font-size: 12px; min-width: 240px; }
.ctl-card > b { font-size: 13.5px; display: inline; }
.ctl-card small, .ctl-card .ctl-hint { color: var(--muted); }
.ctl-card p { margin: 0; }
.ctl-state { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; color: var(--muted); background: color-mix(in srgb, var(--muted) 16%, transparent); }
.ctl-state.is-on { color: #1c9a6a; background: color-mix(in srgb, #5df2b0 22%, transparent); }
:root[data-theme='dark'] .ctl-state.is-on { color: #5df2b0; }
.ctl-card table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ctl-card th { font-weight: 500; color: var(--muted); text-align: right; padding: 2px 0 2px 10px; font-size: 10.5px; }
.ctl-card td { text-align: right; padding: 2px 0 2px 10px; border-top: 1px solid var(--line); }
.ctl-card th:first-child, .ctl-card td:first-child { text-align: left; padding-left: 0; }
.ctl-card td i { font-style: normal; font-size: 10px; color: var(--wait-text, #b98300); }
.ctl-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
/* Окно «Пункты ГГС и ПП»: загрузка, проверка плитками и на карте, пункты в базе */
#ctl-dialog.adm-board { position: fixed; z-index: 40; margin: 0; inset: 64px 12px 12px 12px; width: auto; max-width: none; height: auto; max-height: none; display: flex; flex-direction: column; overflow: hidden; padding: 12px 14px 10px; border-radius: 18px; box-shadow: var(--shadow); }
#ctl-dialog.adm-board:not([open]) { display: none; }
#ctl-dialog > h2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-right: 36px; margin-bottom: 8px; }
.ci-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.ci-cols { overflow-x: auto; }
.ci-cols th { vertical-align: top; }
.ci-cols select, .ci-defaults select { height: 26px; margin-top: 3px; border-radius: 7px; border: 1px solid var(--line, #2a2f45); background: rgba(0, 0, 0, 0.2); color: inherit; font: inherit; font-size: 11.5px; padding: 0 4px; }
.bd-legend > i[style] { border-color: var(--st); background: color-mix(in srgb, var(--st) 25%, transparent); }
/* Загрузка пунктов: одна строка сверху и схема отлётов */
.ci-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ci-drop { flex: 1 1 280px; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--line, #2a2f45); color: var(--muted, #8fa3c0); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-drop b { color: #7cc4ff; font-size: 16px; }
.ci-drop.is-over { border-color: #7cc4ff; background: #7cc4ff14; color: var(--text, #e8f3ff); }
.ci-bar .nt-opt { height: 32px; display: inline-grid; place-items: center; }
.ci-q { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line, #2a2f45); color: var(--muted, #8fa3c0); font-weight: 700; cursor: help; }
.ci-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted, #8fa3c0); }
.ci-opt select { height: 30px; border-radius: 15px; border: 1px solid var(--line, #2a2f45); background: rgba(0, 0, 0, 0.2); color: var(--text, #e8f3ff); padding: 0 8px; font: inherit; font-size: 12px; }
.ci-go { width: auto; height: 34px; padding: 0 18px; margin-left: auto; }
.ci-colsbox > summary { cursor: pointer; font-size: 12px; color: var(--muted, #8fa3c0); padding: 2px 0; }
.ci-colsbox .ci-cols { margin-top: 6px; }
.ci-scheme { flex: 1; min-height: 300px; display: flex; align-items: stretch; justify-content: center; border-radius: 14px; border: 1px solid var(--line, #2a2f45);
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, #7cc4ff 7%, transparent), transparent 70%), color-mix(in srgb, var(--text, #e8f3ff) 2%, transparent); overflow: hidden; }
.ci-empty { align-self: center; color: var(--muted, #8fa3c0); font-size: 13px; text-align: center; padding: 20px; }
.ci-errs { margin: 0; font-size: 12px; color: #ff9db1; }
.ci-errs span { cursor: help; }
.ci-note { margin: 0; font-size: 11.5px; color: var(--muted, #8fa3c0); }
.ci-layer { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 16px; border: 1px solid var(--line, #2a2f45); font-size: 12px; }
.ci-layer .nt-opt { height: 26px; }
svg.cs { width: 100%; height: 100%; max-height: 100%; display: block; }
.cs .cs-grid { stroke: color-mix(in srgb, var(--text, #e8f3ff) 9%, transparent); stroke-width: 1; }
.cs .cs-km { fill: var(--muted, #8fa3c0); font-size: 11px; }
.cs .cs-st path { fill: none; stroke: #7cc4ff; stroke-width: 2; }
.cs .cs-st text { fill: #7cc4ff; font: 700 12px ui-monospace, Consolas, monospace; }
.cs .cs-pt { cursor: pointer; }
.cs .cs-pt circle, .cs .cs-pt rect, .cs .cs-pt > path { fill: var(--c); stroke: #0b1020; stroke-width: 1.5; }
.cs .cs-pt:hover circle, .cs .cs-pt:hover rect, .cs .cs-pt:hover > path { stroke: #fff; stroke-width: 2.5; }
.cs .cs-arrow { stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; }
.cs .cs-pt.is-skip, .cs .cs-pt.is-off { opacity: 0.4; }
.cs .cs-name { fill: var(--text, #e8f3ff); font-size: 10.5px; paint-order: stroke; stroke: #0b1020; stroke-width: 3px; }
.cs .cs-legend rect { fill: rgba(11, 16, 32, 0.78); stroke: var(--line, #2a2f45); }
.cs .cs-legend text { fill: var(--text, #e8f3ff); font-size: 11.5px; }
.cs .cs-stleg { fill: none; stroke: #7cc4ff; stroke-width: 2; }
/* Одно окно вместо вкладок: полоса «Новый файл» и пункты файла в белой обводке на общей схеме */
.ci-count { font-size: 12px; font-weight: 500; color: var(--muted, #8fa3c0); }
.ci-bar .ci-drop { flex: 1 1 320px; }
.ci-new { display: grid; gap: 6px; padding: 9px 12px; border-radius: 14px; border: 1px solid #7cc4ff66; background: #7cc4ff0f; }
.ci-new-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ci-new-head > b { font-size: 13px; color: #a8dcff; }
.ci-new-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ci-new-acts .ci-go { margin-left: 0; }
.cs .cs-pt.is-new circle, .cs .cs-pt.is-new rect, .cs .cs-pt.is-new > path { stroke: #ffffff; stroke-width: 2.4; }
.cs .cs-pt.is-new .cs-name { font-weight: 700; }
.cs .cs-newleg { fill: #94a3b8; stroke: #ffffff; stroke-width: 2.4; }
/* Пункты файла на схеме — с кольцом; списком в полосе «Новый файл» (щелчок — не загружать) */
.cs .cs-ring { fill: none; stroke: #ffffff; stroke-width: 2; stroke-dasharray: 4 3; opacity: 0.85; }
.cs .cs-pt.is-skip .cs-ring { stroke-dasharray: none; opacity: 0.4; }
.cs .cs-pt.is-new .cs-name, .cs .cs-pt.is-skip .cs-name { font-size: 15px; }
.ci-rep.ci-fpt { font: inherit; font-size: 11.5px; color: inherit; cursor: pointer; border-color: color-mix(in srgb, var(--c) 60%, transparent); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ci-rep.ci-fpt.is-skip { opacity: 0.45; text-decoration: line-through; }
/* Присланные клиентами с /points/: заметная полоса, внутри — отправки с пунктами и решениями */
.ci-inbox { border-radius: 14px; border: 1px solid #c9a2ff88; background: #c9a2ff12; box-shadow: 0 0 14px #b38cff22; }
.ci-inbox-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ci-inbox-head i { width: 9px; height: 9px; border-radius: 50%; background: #c9a2ff; box-shadow: 0 0 0 0 #c9a2ff99; animation: ci-ping 1.6s ease-out infinite; }
@keyframes ci-ping { to { box-shadow: 0 0 0 8px #c9a2ff00; } }
.ci-inbox-head b { color: #e2ccff; font-size: 13px; }
.ci-inbox-head span { font-size: 12px; color: var(--muted, #8fa3c0); }
.ci-inbox-head em { margin-left: auto; font-style: normal; font-size: 12px; color: #c9a2ff; }
.ci-inbox-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.ci-batch { display: grid; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #2a2f45); background: #ffffff06; }
.ci-batch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-batch-head b { font-size: 13px; } .ci-batch-head small { font-size: 11.5px; color: var(--muted, #8fa3c0); }
.ci-tel { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--blue, #7cc4ff); text-decoration: none; white-space: nowrap; } .ci-tel:hover { text-decoration: underline; }
.ci-batch-pts { display: flex; flex-wrap: wrap; gap: 5px; }
.ci-rep { font-size: 11.5px; padding: 3px 8px; border-radius: 8px; border: 1px solid #4fd18b55; background: #4fd18b12; cursor: help; }
.ci-rep.is-warn { border-color: #f0b86077; background: #f0b86014; } .ci-rep.is-bad { border-color: #ff6b8b77; background: #ff6b8b14; }
.ci-rep b { font-weight: 600; }
.nt-opt.ci-rej { color: #ff9db1; }

/* Окно плитками (24.10.2026): сверху сводка — вид пунктов, присланные, загрузка (у каждой сути свой цвет --st);
   ниже слева карточки пунктов (полоса — отлёт, метка — вид), справа схема; наведение подсвечивает пару */
.ci-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ci-tile { --st: #8a86a8; display: grid; align-content: start; gap: 2px; padding: 8px 11px 10px; border-radius: 12px; text-align: left; font: inherit; color: var(--text, #e8f3ff);
  border: 1px solid color-mix(in srgb, var(--st) 45%, var(--line, #2a2f45)); background: color-mix(in srgb, var(--st) 8%, var(--inset, #11152a)); min-width: 0; }
.ci-tile.is-click { cursor: pointer; }
.ci-tile.is-click:hover, .ci-tile.ci-drop.is-over { border-color: var(--st); background: color-mix(in srgb, var(--st) 16%, var(--inset, #11152a)); }
.ci-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ci-tile-head b { font-size: 12.5px; color: color-mix(in srgb, var(--st) 45%, var(--text, #e8f3ff)); }
.ci-tile-head i { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 7px; color: color-mix(in srgb, var(--st) 55%, var(--text, #e8f3ff)); background: color-mix(in srgb, var(--st) 22%, transparent); }
.ci-tile-big { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; color: color-mix(in srgb, var(--st) 70%, var(--text, #e8f3ff)); }
.ci-tile-big small { font-size: 12px; font-weight: 500; color: var(--muted, #8fa3c0); }
.ci-tile > small { font-size: 11px; color: var(--muted, #8fa3c0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-tile .nt-opt { justify-self: start; margin-top: 4px; height: 26px; }
.ci-tile.ci-drop { height: auto; flex: none; display: grid; white-space: normal; border-style: dashed; color: var(--text, #e8f3ff); padding: 8px 11px 10px; }
.ci-tile-acts { display: flex; gap: 6px; margin-top: 4px; }
.ci-tile-acts .nt-opt { margin: 0; display: inline-grid; place-items: center; }
.ci-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.25fr); gap: 10px; }
.ci-main.is-one { grid-template-columns: 1fr; }
.ci-list { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ci-filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ci-chip { height: 26px; padding: 0 9px; border-radius: 8px; font: inherit; font-size: 11.5px; cursor: pointer; color: var(--text, #e8f3ff); border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.ci-chip b { font-family: ui-monospace, Consolas, monospace; }
.ci-chip[aria-pressed='true'] { border-color: #7cc4ff; background: color-mix(in srgb, #7cc4ff 18%, var(--inset, #11152a)); }
.ci-search { flex: 1 1 140px; min-width: 0; height: 26px; padding: 0 9px; border-radius: 8px; font: inherit; font-size: 12px; color: var(--text, #e8f3ff); border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.ci-cards { flex: 1; min-height: 200px; max-height: 62vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; align-content: start; padding-right: 2px; }
.ci-card { display: grid; gap: 1px; padding: 6px 9px 7px; border-radius: 11px; text-align: left; font: inherit; cursor: pointer; color: var(--text, #e8f3ff); min-width: 0;
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line, #2a2f45)); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--inset, #11152a)); }
.ci-card.is-off { opacity: 0.62; }
.ci-card:hover, .ci-card.is-hl { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); opacity: 1; }
.ci-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.ci-card-head b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-card-head i { font-style: normal; font-size: 10px; font-weight: 600; padding: 0 6px; border-radius: 6px; white-space: nowrap; color: color-mix(in srgb, var(--k) 60%, var(--text, #e8f3ff)); background: color-mix(in srgb, var(--k) 22%, transparent); }
.ci-card-dev { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; color: var(--c); }
.ci-card-dev small { font-size: 11px; font-weight: 500; color: var(--muted, #8fa3c0); }
.ci-card > small { font-size: 10.5px; color: var(--muted, #8fa3c0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-main .ci-scheme { min-height: 360px; }
.cs .cs-pt.is-hl circle, .cs .cs-pt.is-hl rect, .cs .cs-pt.is-hl > path { stroke: #fff; stroke-width: 3; }
.cs .cs-pt.is-hl circle { r: 8; }
@media (max-width: 900px) { .ci-main { grid-template-columns: 1fr; } .ci-cards { max-height: 40vh; } }
.ctl-pt.is-hl { transform: scale(2); filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px var(--c)); z-index: 5; }

/* Окно — узкая панель справа (24.10.2026): пункты на настоящей карте панели, карта свободна; схема — только для нового файла */
#ctl-dialog.ctl-side { position: fixed; z-index: 30; margin: 0; inset: 64px 12px 12px auto; width: min(560px, calc(100vw - 360px)); max-width: none; height: auto; max-height: none;
  display: flex; flex-direction: column; overflow: hidden; padding: 10px 12px 8px; border-radius: 16px; box-shadow: var(--shadow); }
#ctl-dialog.ctl-side:not([open]) { display: none; }
#ctl-dialog.ctl-side > h2 { font-size: 13.5px; margin-bottom: 6px; }
#ctl-dialog.ctl-side .ci-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
#ctl-dialog.ctl-side .ci-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
#ctl-dialog.ctl-side .ci-tile { padding: 6px 9px 8px; }
#ctl-dialog.ctl-side .ci-tile-big { font-size: 18px; }
#ctl-dialog.ctl-side .ci-scheme { flex: none; min-height: 220px; max-height: 32vh; }
#ctl-dialog.ctl-side .ci-list { flex: 1; min-height: 0; }
#ctl-dialog.ctl-side .ci-cards { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ci-card { outline: none; cursor: pointer; }
.ci-card:focus-visible { box-shadow: 0 0 0 2px #7cc4ff; }
.ci-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.ci-card-foot small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-sw { flex: none; height: 20px; padding: 0 7px; border-radius: 6px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; color: var(--muted, #8fa3c0);
  border: 1px solid var(--line, #2a2f45); background: transparent; }
.ci-sw.is-on { color: #0b1020; border-color: #4fd18b; background: #4fd18b; }
/* пока открыта панель пунктов — обзор сети в середине убираем, карта свободна */
body:has(#ctl-dialog.ctl-side[open]) #main.adm-float { display: none; }

/* Плитка «Сетка NTv2» (27.10.2026): строка — сеть раздачи; что вещает выпуск и что изменится при следующем */
.ci-ntv { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid #4fd1c588; background: color-mix(in srgb, #4fd1c5 7%, var(--inset, #11152a)); }
.ci-ntv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; }
.ci-ntv-head b { font-size: 13px; color: #9ff0e6; }
.ci-ntv-head small { font-size: 11px; color: var(--muted, #8fa3c0); }
.ci-net { --t: #6b7280; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--t) 40%, var(--line, #2a2f45)); border-left: 3px solid var(--t); background: #ffffff05; }
.ci-net.is-on { --t: #4fd18b; } .ci-net.is-test { --t: #b48cff; } .ci-net.is-wait { --t: #f0b860; } .ci-net.is-off { --t: #59627a; }
.ci-net-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 8px; min-height: 34px; }
.ci-net-row[role='button'] { cursor: pointer; }
.ci-net-row[role='button']:hover { background: #ffffff08; }
.ci-net-name { font: 700 12.5px ui-monospace, Consolas, monospace; white-space: nowrap; }
.ci-net-name small { font-weight: 500; color: var(--muted, #8fa3c0); }
.ci-net-st { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 7px; color: color-mix(in srgb, var(--t) 60%, var(--text, #e8f3ff)); background: color-mix(in srgb, var(--t) 22%, transparent); white-space: nowrap; }
.ci-net-info { font-size: 11.5px; color: var(--muted, #8fa3c0); }
.ci-net-todo { font-size: 11.5px; color: var(--muted, #8fa3c0); }
.ci-net-todo.is-wait { color: #f0b860; } .ci-net-todo.is-bad { color: #ff8da5; } .ci-net-todo.is-ok { color: #6fdc9f; }
.ci-net-row .nt-opt { margin-left: auto; height: 24px; }
.ci-net-row .nt-opt.is-go { border-color: #f0b860; color: #ffd79a; }
.ci-net-body { display: grid; gap: 6px; padding: 2px 10px 9px; }
.ci-net-mod, .ci-net-area { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-size: 11.5px; }
.ci-net-mod .nt-opt, .ci-net-area .nt-opt { height: 22px; }
.ci-net-area > b { font-size: 11.5px; }
.ci-net-area small { color: var(--muted, #8fa3c0); font-size: 11px; }
.ci-net-area select, .ci-net-area input { height: 22px; font: inherit; font-size: 11.5px; color: var(--text, #e8f3ff); background: var(--inset, #11152a); border: 1px solid var(--line, #2a2f45); border-radius: 6px; }
.ci-net-area input, .ci-net-area .ci-opt input { width: 52px; height: 22px; padding: 0 4px; }
.ci-gg { display: grid; gap: 3px; } .ci-gg > small { font-size: 10.5px; color: var(--muted, #8fa3c0); }
.ci-gg > div { display: flex; flex-wrap: wrap; gap: 3px; }
.ci-gp { --c: #8fa3c0; display: inline-flex; align-items: center; gap: 3px; font: 600 10.5px ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); }
.ci-gp.is-add { box-shadow: 0 0 0 1px #4fd18b inset; } .ci-gp.is-mv { box-shadow: 0 0 0 1px #f0b860 inset; } .ci-gp.is-gone { opacity: 0.55; text-decoration: line-through; }
.ci-gp.is-area { --c: #4fd1c5; font-family: inherit; }
.ci-gp button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font: inherit; }

/* Окно «Разбор пунктов» (review.js): слева станции, в середине карта, справа вывод, внизу таблица */
#rv-dialog.rv-dialog { position: fixed; z-index: 32; margin: 0; inset: 56px 12px 12px 12px; width: auto; max-width: none; height: auto; max-height: none;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 10px 14px 10px; border-radius: 16px; box-shadow: var(--shadow); }
#rv-dialog.rv-dialog:not([open]) { display: none; }
#rv-dialog > h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; margin: 0; padding-right: 40px; }
#rv-dialog > h2 small { font-size: 11.5px; font-weight: 500; color: var(--muted, #8fa3c0); }
.rv-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.rv-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 9px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text, #e8f3ff); border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.rv-chip small { color: var(--muted, #8fa3c0); font-family: ui-monospace, Consolas, monospace; }
.rv-chip[aria-pressed='true'] { border-color: #7cc4ff; background: color-mix(in srgb, #7cc4ff 20%, var(--inset, #11152a)); }
.rv-sp { flex: 1; }
.rv-new { width: 8px; height: 8px; border-radius: 50%; background: #ff9fd4; box-shadow: 0 0 6px #ff9fd4; display: inline-block; }
.rv-main { flex: 1 1 auto; min-height: 280px; display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 10px; }
/* Список станций */
.rv-list { min-height: 0; overflow: auto; display: grid; gap: 4px; align-content: start; padding-right: 2px; }
.rv-st-all, .rv-st { display: grid; text-align: left; font: inherit; color: var(--text, #e8f3ff); cursor: pointer; border-radius: 10px; border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.rv-st-all { gap: 1px; padding: 7px 10px; } .rv-st-all b { font-size: 13px; } .rv-st-all small { font-size: 11px; color: var(--muted, #8fa3c0); }
.rv-st { --t: #8fa3c0; grid-template-columns: 1fr auto; grid-template-areas: 'code n' 'bar bar' 'v v'; gap: 3px 6px; padding: 6px 10px 7px; border-left: 3px solid var(--t); position: relative; }
.rv-st.is-ok { --t: #4fd18b; } .rv-st.is-do { --t: #ffd166; } .rv-st.is-wait { --t: #6b7489; }
.rv-st b { grid-area: code; font: 700 13px ui-monospace, Consolas, monospace; }
.rv-st-n { grid-area: n; font: 600 11px ui-monospace, Consolas, monospace; color: var(--muted, #8fa3c0); }
.rv-bar { grid-area: bar; height: 5px; border-radius: 3px; background: #ffffff10; overflow: hidden; } .rv-bar i { display: block; height: 100%; border-radius: 3px; }
.rv-st-v { grid-area: v; font-size: 11px; color: color-mix(in srgb, var(--t) 60%, var(--text, #e8f3ff)); }
.rv-st em { position: absolute; right: 30px; top: 6px; font: 700 9.5px/14px ui-monospace, Consolas, monospace; font-style: normal; padding: 0 4px; border-radius: 4px; color: #ffb38a; background: #ffb38a22; }
.rv-st:hover, .rv-st-all:hover { background: color-mix(in srgb, #7cc4ff 8%, var(--inset, #11152a)); }
.rv-st[aria-pressed='true'], .rv-st-all[aria-pressed='true'] { border-color: #7cc4ff; box-shadow: 0 0 0 1px #7cc4ff inset; background: color-mix(in srgb, #7cc4ff 14%, var(--inset, #11152a)); }
/* Карта */
.rv-mapbox { position: relative; min-height: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #2a2f45); }
.rv-map { position: absolute; inset: 0; background: #0b1020; }
.rv-map .leaflet-tile-pane { filter: brightness(0.62) saturate(0.55) contrast(1.05); }
.rv-legend { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 9px; font-size: 11.5px; color: #e8f3ff; background: rgba(11, 16, 32, 0.84); border: 1px solid #2a2f45; pointer-events: none; }
.rv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rv-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rv-legend .rv-lg-mean { width: 22px; height: 4px; border-radius: 2px; background: #ffd166; } .rv-legend .rv-lg-ctx { background: #8a93a8; }
.rv-sticon i { position: absolute; left: -9px; top: -9px; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #7cc4ff; filter: drop-shadow(0 0 2px #0b1020); }
.rv-sticon b { position: absolute; left: 11px; top: -8px; font: 700 12px ui-monospace, Consolas, monospace; color: #a8dcff; white-space: nowrap; text-shadow: 0 0 3px #0b1020, 0 0 3px #0b1020, 0 0 3px #0b1020; }
.rv-sticon.is-on i { left: -13px; top: -14px; border-left-width: 13px; border-right-width: 13px; border-bottom: 23px solid #ffd166; }
.rv-sticon.is-on b { left: 16px; top: -10px; font-size: 14px; color: #ffe29a; }
.rv-lbl span { position: absolute; left: 9px; top: -20px; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #0b1020, 0 0 3px #0b1020, 0 0 3px #0b1020; }
/* Вывод справа */
.rv-side { min-height: 0; overflow: auto; display: grid; gap: 8px; align-content: start; }
.rv-card { --t: #8fa3c0; display: grid; gap: 7px; padding: 10px 12px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--t) 45%, var(--line, #2a2f45)); border-top: 3px solid var(--t); background: color-mix(in srgb, var(--t) 7%, var(--inset, #11152a)); }
.rv-card.is-ok { --t: #4fd18b; } .rv-card.is-do { --t: #ffd166; } .rv-card.is-wait { --t: #8fa3c0; }
.rv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .rv-card-head b { font: 700 18px ui-monospace, Consolas, monospace; }
.rv-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; color: color-mix(in srgb, var(--t) 55%, var(--text, #e8f3ff)); background: color-mix(in srgb, var(--t) 22%, transparent); }
.rv-verdict { margin: 0; font-size: 13px; line-height: 1.35; }
.rv-big { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rv-big div { display: grid; padding: 6px 9px; border-radius: 9px; background: #ffffff08; } .rv-big small { font-size: 10.5px; color: var(--muted, #8fa3c0); }
.rv-big b { font: 700 22px ui-monospace, Consolas, monospace; color: color-mix(in srgb, var(--t) 70%, var(--text, #e8f3ff)); } .rv-big b i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted, #8fa3c0); }
.rv-dl { margin: 0; display: grid; gap: 3px; } .rv-dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.rv-dl dt { color: var(--muted, #8fa3c0); } .rv-dl dd { margin: 0; font-family: ui-monospace, Consolas, monospace; text-align: right; }
.rv-warn { margin: 0; font-size: 11.5px; line-height: 1.35; padding: 6px 8px; border-radius: 8px; color: #ffc3a0; background: #ff8a4a14; border: 1px solid #ff8a4a44; }
.rv-how { margin: 0; font-size: 11px; line-height: 1.35; color: var(--muted, #8fa3c0); }
.rv-acts { display: flex; gap: 6px; } .rv-acts .nt-opt { height: 28px; } .nt-opt.rv-rej { color: #ff9db1; }
/* Ручная правка карточки пункта */
.rv-ed-card input, .rv-ed-card select { min-width: 0; width: 100%; height: 28px; padding: 0 4px; border-radius: 8px; border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); color: inherit; font: 12px ui-monospace, Consolas, monospace; }
.rv-ed-card input:focus, .rv-ed-card select:focus { outline: none; border-color: #ffd166; }
.rv-ed-f { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #8fa3c0); }
.rv-ed-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--muted, #8fa3c0); }
.rv-ed-mode { display: inline-flex; gap: 3px; } .rv-ed-mode .rv-chip { height: 24px; padding: 0 8px; font-size: 11.5px; }
.rv-ed-cat { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 4px; }
.rv-ed-ob { display: grid; grid-template-columns: 46px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr) 18px; gap: 4px; align-items: center; }
.rv-ed-ob small { grid-column: 1 / -1; margin: -1px 0 3px 2px; font-size: 11px; color: var(--muted, #8fa3c0); }
.rv-ed-ob input.is-base { text-transform: uppercase; }
.rv-ed-cols span { min-width: 0; overflow: hidden; font-size: 10.5px; color: var(--muted, #8fa3c0); padding-left: 2px; }
.rv-ed-x { height: 28px; padding: 0; border: 0; background: none; color: #ff9db1; font-size: 17px; cursor: pointer; } .rv-ed-x:disabled { opacity: 0.25; cursor: default; }
.rv-ed-add { justify-self: start; height: 26px; }
.rv-ed { padding: 0 4px; border: 0; background: none; color: var(--muted, #8fa3c0); font-size: 14px; cursor: pointer; } .rv-ed:hover, .rv-ed.is-on { color: #ffd166; }
.rv-near { margin: 0; font-size: 11.5px; color: var(--muted, #8fa3c0); }
.rv-sum { display: grid; gap: 8px; } .rv-sum h3 { margin: 0; font-size: 14px; } .rv-sum > p { margin: 0; font-size: 12px; color: var(--muted, #8fa3c0); line-height: 1.35; }
.rv-grp { --t: #8fa3c0; display: grid; gap: 5px; padding: 8px 10px; border-radius: 11px; border-left: 3px solid var(--t); background: color-mix(in srgb, var(--t) 7%, var(--inset, #11152a)); }
.rv-grp.is-ok { --t: #4fd18b; } .rv-grp.is-do { --t: #ffd166; } .rv-grp > b { font-size: 12px; color: color-mix(in srgb, var(--t) 60%, var(--text, #e8f3ff)); }
.rv-grp > div { display: flex; flex-wrap: wrap; gap: 4px; }
.rv-pill { --c: #8fa3c0; height: 24px; padding: 0 8px; border-radius: 7px; font: 700 11.5px ui-monospace, Consolas, monospace; cursor: pointer; color: var(--text, #e8f3ff); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.rv-pill small { font-weight: 500; color: var(--muted, #8fa3c0); } .rv-pill:hover { background: color-mix(in srgb, var(--c) 25%, transparent); }
.rv-empty { margin: auto; color: var(--muted, #8fa3c0); font-size: 12.5px; }
/* Таблица */
.rv-table { flex: 0 1 auto; max-height: 28vh; overflow: auto; border-radius: 10px; border: 1px solid var(--line, #2a2f45); }
.rv-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rv-table th { position: sticky; top: 0; z-index: 1; background: var(--panel, #161a2e); text-align: left; font-weight: 600; font-size: 11px; color: var(--muted, #8fa3c0); padding: 5px 8px; }
.rv-table td { padding: 4px 8px; border-top: 1px solid #ffffff0d; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.rv-table td:first-child { font-family: inherit; border-left: 3px solid var(--c); }
.rv-table tr[data-rv-key] { cursor: pointer; } .rv-table tr:hover { background: #ffffff0a; }
.rv-table tr.is-off { opacity: 0.4; text-decoration: line-through; } .rv-table tr.is-ctx { color: #9aa5bb; }
.rv-table .rv-plan { color: var(--c); font-weight: 700; } .rv-table .rv-src { font-family: inherit; color: var(--muted, #8fa3c0); } .rv-table .rv-src .rv-new { margin-right: 5px; }
.nt-opt.ci-look { border-color: #7cc4ff88; color: #a8dcff; }
#ctl-dialog h2 .ci-look { height: 24px; margin-left: 10px; }
@media (max-width: 1100px) { .rv-main { grid-template-columns: 190px minmax(0, 1fr); } .rv-side { grid-column: 1 / -1; max-height: 34vh; } }
@media (max-width: 760px) { .rv-main { grid-template-columns: 1fr; } .rv-list { max-height: 22vh; } .rv-mapbox { min-height: 300px; } }
/* Шаг «Сетка NTv2p» модуля: сверху список сетей раздачи (ntvHtml из import.js) */
#sub-dialog .ci-ntv { margin: 4px 0 10px; }
/* Шаг «Сетка NTv2p»: кнопки новых пунктов и разбора */
.gr-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.gr-acts .nt-opt { height: 28px; }
.gr-acts .nt-opt.is-new { border-color: #ff9fd4; color: #ffc6e6; }
.gr-acts .nt-opt b { margin-left: 4px; padding: 0 6px; border-radius: 7px; background: #ff9fd433; font-family: ui-monospace, Consolas, monospace; }
/* Разбор пунктов — режим «Отправки клиентов»: карточки отправок, отметки, общая таблица */
.rv-senders { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-senders[hidden], .rv-main[hidden], .rv-table[hidden] { display: none !important; }
.rv-snd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.rv-snd-q { height: 28px; min-width: 200px; padding: 0 10px; border-radius: 9px; font: inherit; font-size: 12.5px; color: var(--text, #e8f3ff); border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.rv-snd-bar .nt-opt, .rv-snd-bar .bd-big { height: 30px; }
.rv-snd-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; align-content: start; padding-right: 2px; }
.rv-snd { --t: #8fa3c0; position: relative; display: grid; gap: 5px; align-content: start; padding: 10px 12px 10px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--t) 40%, var(--line, #2a2f45)); border-top: 3px solid var(--t); background: color-mix(in srgb, var(--t) 6%, var(--inset, #11152a)); }
.rv-snd.is-ok { --t: #4fd18b; } .rv-snd.is-wait { --t: #ff9fd4; } .rv-snd.is-bad { --t: #ff6b8b; }
.rv-snd.is-pick { box-shadow: 0 0 0 2px #7cc4ff; }
.rv-snd-pick { position: absolute; right: 10px; top: 10px; } .rv-snd-pick input { width: 17px; height: 17px; accent-color: #7cc4ff; cursor: pointer; }
.rv-snd-head { display: flex; align-items: center; gap: 8px; padding-right: 26px; } .rv-snd-head b { font-size: 14px; }
.rv-snd .rv-tag { color: color-mix(in srgb, var(--t) 60%, var(--text, #e8f3ff)); background: color-mix(in srgb, var(--t) 22%, transparent); }
.rv-snd-meta { font-size: 11.5px; color: var(--muted, #8fa3c0); } .rv-snd-meta a { color: #a8dcff; text-decoration: none; }
.rv-snd-big { font-size: 12.5px; } .rv-snd-big b { font: 700 20px ui-monospace, Consolas, monospace; margin-right: 2px; }
.rv-snd-pts { display: flex; flex-wrap: wrap; gap: 3px; }
.rv-snd-pts span { --c: #8fa3c0; font-size: 11px; padding: 1px 6px; border-radius: 6px; border-left: 3px solid var(--c); background: #ffffff0a; }
.rv-snd-note { margin: 0; font-size: 11.5px; color: #cfd8ea; } .rv-snd-note.is-bad { color: #ff9db1; }
.rv-snd-acts { display: flex; gap: 6px; margin-top: 2px; } .rv-snd-acts .nt-opt { height: 26px; }
.rv-snd-bar .bd-big, .rv-acts .bd-big { width: auto; flex: none; margin: 0; padding: 0 14px; }
.rv-snd.is-file { --t: #7cc4ff; }
.rv-snd.is-file .rv-snd-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rv-snd-by { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted, #8fa3c0); }
.rv-snd-by input { flex: 1; min-width: 0; height: 26px; padding: 0 8px; border-radius: 7px; font: inherit; font-size: 12.5px; color: var(--text, #e8f3ff); border: 1px solid var(--line, #2a2f45); background: var(--inset, #11152a); }
.rv-snd-by input:focus { outline: none; border-color: #7cc4ff; }
/* Стрелки отлёта в «Разборе пунктов»: в пикселях экрана, с тёмной обводкой */
.rv-ar svg { position: absolute; overflow: visible; pointer-events: none; }
.rv-ar .rv-ar-halo { stroke: #0b1020; stroke-opacity: 0.75; fill: #0b1020; fill-opacity: 0.75; stroke-linecap: round; stroke-linejoin: round; }
.rv-table tr.is-sel td { background: rgba(124, 196, 255, 0.16); }
.rv-table tr.is-sel td:first-child { box-shadow: inset 3px 0 0 #7cc4ff; }
