:root {
  --bg: #f1f5f9; --card: #fff; --ink: #0f172a; --muted: #586678; /* 17.11 осмотр: было #64748b — на цветных подложках < 4,5 */ --line: #e2e8f0; --brand: #1f2937; --acc: #1d4ed8;
  --font: "Segoe UI", "Assistant", "Heebo", Arial, "Noto Sans Hebrew", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 15px/1.4 var(--font); font-variant-numeric: tabular-nums; /* 17.11: числа одной ширины — не «скачут» */ color: var(--ink); background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* шапка — компьютер: одна строка (и на 1366×768, и на 1536×864 = Windows 125%) */
.top { grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: var(--brand); color: #fff; flex-wrap: nowrap; position: relative; z-index: 30; min-width: 0; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 18px; white-space: nowrap; flex: none; }
.brand img { width: 28px; height: 28px; }
.brand .muted { color: #cbd5e1; font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.search { position: relative; flex: 1 1 220px; min-width: 170px; max-width: 440px; }
.search input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 0; background: #fff; color: var(--ink); font-size: 16px; }
.sugg { position: absolute; inset-inline: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 8px 24px #0004; z-index: 40; max-height: 60vh; overflow: auto; min-width: 260px; }
.sugg li { padding: 7px 12px; cursor: pointer; }
.sugg li.act, .sugg li:hover { background: #dbeafe; }
.counts { display: flex; gap: 5px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.counts::-webkit-scrollbar { display: none; }
.cnt { border: 2px solid transparent; background: var(--c); color: var(--i); border-radius: 999px; padding: 2px 10px; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.cnt b { font-size: 15px; }
.cnt.on { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
.cnt.ctrap { animation: pulsebg 1.2s infinite alternate; }
@keyframes pulsebg { to { background: #dc2626; } }
.net { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; margin-inline-start: auto; flex: none; }
.net i { width: 11px; height: 11px; border-radius: 50%; background: #94a3b8; flex: none; }
.net.on i { background: #22c55e; } .net.off i { background: #ef4444; } .net.local i { background: #f59e0b; }
.net.wait i { background: #facc15; animation: blink 1s infinite alternate; }
@keyframes blink { to { opacity: .35; } }
/* 22.11 (Алексей): версия была бледной (#94a3b8) — шапка тёмная во всех видах (classic --brand, look-a/look-b --hdr), поэтому белым и пожирнее — читается ясно */
.ver { font-size: 11px; color: #fff; font-weight: 700; opacity: .96; direction: ltr; align-self: flex-end; margin-bottom: 3px; font-variant-numeric: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); } /* версия не «прыгает» — узкие цифры, место шапке */
.queue { font-size: 13px; padding: 2px 9px; border-radius: 999px; background: #166534; color: #fff; white-space: nowrap; flex: none; }
.queue.wait { background: #f59e0b; color: #1f2937; font-weight: 700; }
.menubtn { background: #374151; border: 0; color: #fff; padding: 6px 10px; border-radius: 8px; white-space: nowrap; display: flex; gap: 6px; align-items: center; flex: none; max-width: 190px; }
.menubtn .mb-ico { font-size: 17px; line-height: 1; }
.menubtn .mb-name { overflow: hidden; text-overflow: ellipsis; }
.menu { position: absolute; top: calc(100% + 4px); inset-inline-end: 8px; z-index: 45; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 32px #0005;
  padding: 8px; width: min(320px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 4px; }
.menu .mg > button, .menu .mg > label { text-align: start; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; height: 40px; min-height: 40px; font-size: 15px; display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; flex: none; min-width: 0; }
.menu .mg > button:hover, .menu .mg > label:hover { background: #eef2ff; }
.menu-who { padding: 6px 8px 2px; font-size: 15px; }
.menu-net { padding: 0 8px 6px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
body.field .center-only, .phone-only { display: none !important; }
/* 1366 и уже: подписи у счётчиков короче, имя в меню, код учений — только в меню */
@media (max-width: 1500px) {
  .boardbtn .bb-t { display: none; }
  .top { gap: 10px; }
  .menubtn .mb-name { max-width: 110px; }
  .search { max-width: 360px; }
  /* «מצב מקומי · N סימונים במחשב זה» + «⚠ לכודים» не влезали — длинный текст связи коротко (целиком — в меню) */
  .net span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1300px) { .cnt .cl { display: none; } .cnt { padding: 2px 9px; } } /* 17.11: на 1280 (и 1920 при 150%) подписи не влезали — ряд листался вбок */
@media (max-width: 1100px) { .net span { display: none; } }

/* три колонки: панель дома (справа) · карта · список (слева) */
.main { grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "panel map list" "panel board list"; min-height: 0; }
.panel { grid-area: panel; width: 430px; overflow: auto; background: var(--card); border-inline-end: 1px solid var(--line); padding: 14px 16px 24px; position: relative; }
.mapwrap { grid-area: map; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.list { grid-area: list; background: var(--card); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.list-head select { padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); }
.marks { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.marks:empty { flex: 0; }
.marks li { padding: 8px 12px; border-bottom: 1px solid var(--line); border-inline-start: 6px solid var(--c); cursor: pointer; }
.marks li:hover { background: #f8fafc; }
.m1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.m2 { font-size: 13px; color: var(--muted); }
.m3 { font-size: 13px; margin-top: 2px; }
.pend { color: #b45309; }
.m4 { font-size: 13px; font-weight: 700; color: #991b1b; }
.marks li.trap { background: #fef2f2; border-inline-start-color: #dc2626; }
.marks li.hot { background: #fae8ff; animation: hot 1s ease-in-out 3; }
@keyframes hot { 50% { background: #f0abfc; } }
.new { color: #a21caf; }
.flags { font-weight: 700; color: #991b1b; font-size: 14px; }
.small { font-size: 12px; font-weight: 400; }
.empty { padding: 16px; color: var(--muted); }
.lv { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.lv.big { font-size: 16px; padding: 3px 14px; font-weight: 600; }

.maptools { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 8px; z-index: 2; }
.maptools label, .maptools button { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; box-shadow: 0 1px 4px #0002; display: flex; gap: 6px; align-items: center; }
/* легенда — маленькая, под кнопками сверху (внизу — подпись и масштаб карты), сворачивается */
.legend { position: absolute; top: 52px; inset-inline-start: 10px; background: #fffe; border-radius: 8px; padding: 2px 10px 6px; font-size: 12px; box-shadow: 0 1px 4px #0002; z-index: 2; white-space: nowrap; }
.lg-h { border: 0; background: none; padding: 4px 0; font-weight: 700; font-size: 12px; width: 100%; text-align: start; }
.lg-h::after { content: " ▴"; color: var(--muted); }
.legend.closed .lg-h::after { content: " ▾"; }
.legend.closed { padding-bottom: 2px; width: auto; }
.legend.closed .lg-b { display: none; }
.lg-b { display: flex; flex-direction: column; gap: 3px; }
.lg-b span { display: flex; align-items: center; }
.menu .lg-b { padding: 6px 10px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; }
.menu .lg-b i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 5px; }
.menu .lg-b i.lgdemo { border: 2px dashed #7c3aed; }
.menu .lg-b i.trapi { border-radius: 50%; background: #dc2626; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.legend i.lgdemo { border: 2px dashed #7c3aed; background: transparent; }
.legend i.trapi { border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 2px #fecaca; }
.maphint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; background: #0f172a; color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px #0004; pointer-events: none; white-space: nowrap; }
/* новая версия сайта (задание 4): полоса внизу карты; во время скачивания — без кнопки */
.upd { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px);
  background: #1d4ed8; color: #fff; padding: 7px 8px 7px 16px; padding-inline: 16px 8px; border-radius: 999px; font-size: 15px; font-weight: 700; box-shadow: 0 4px 14px #0005; white-space: nowrap; }
.upd[hidden] { display: none; }
.upd button { flex: none; background: #fff; color: #1d4ed8; border: 0; border-radius: 999px; padding: 6px 16px; font: 700 15px/1.2 var(--font); cursor: pointer; }
.upd button[hidden] { display: none; }
.upd.dl { background: #334155; padding-inline: 16px; font-weight: 500; }
/* 22.11: старый адрес workers.dev закрыт в сети мэрии — полоса над «גרסה חדשה», с переносом строк */
.upd.moved { bottom: 86px; background: #c2410c; white-space: normal; border-radius: 16px; width: max-content; max-width: min(640px, calc(100% - 24px)); line-height: 1.35;
  flex-wrap: wrap; justify-content: center; padding: 10px 14px; row-gap: 8px; }
.upd.moved span { flex: 1 1 240px; min-width: 0; }
.upd.moved a { flex: none; background: #fff; color: #c2410c; border-radius: 999px; padding: 8px 16px; font: 700 15px/1.2 var(--font); text-decoration: none; white-space: nowrap; }
.upd.moved a[hidden] { display: none; }
body.matsav .upd.moved { display: none; }
/* «לכודים» — красная пульсирующая метка (пульс — у ::after, сама кнопка не двигается) */
.flash-ring { width: 18px; height: 18px; border-radius: 50%; background: #c026d3; border: 3px solid #fff; box-shadow: 0 1px 6px #0006; pointer-events: none; } /* без position: relative — иначе перебивает absolute у .maplibregl-marker, и в RTL метка уезжает на ширину карты вправо (v15.11.5) */
.flash-ring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 4px solid #c026d3; animation: ring 0.8s ease-out 4; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: 0 4px 16px #0003; font-size: 17px; z-index: 3; }

/* панель дома */
.panel h2 { margin: 0 0 2px; font-size: 22px; padding-inline-end: 36px; }
.panel h3 { margin: 16px 0 6px; font-size: 15px; color: #334155; }
.close { position: absolute; top: 10px; inset-inline-end: 10px; border: 0; background: #f1f5f9; border-radius: 8px; width: 34px; height: 34px; font-size: 16px; }
.status { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.levels button { background: var(--c); color: var(--i); border: 3px solid transparent; border-radius: 12px; padding: 16px 8px; font-size: 19px; font-weight: 700; }
.levels button.on { border-color: var(--ink); box-shadow: 0 0 0 3px #fff inset; }
.levels button { position: relative; }
.levels .key { position: absolute; top: 4px; inset-inline-start: 8px; font-size: 11px; font-weight: 700; } /* 17.11: без opacity .7 — цифра читается (контраст ≥ 4,5) */
@media (pointer: coarse) { .levels .key { display: none; } }
.inside { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 2px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 15px; font-weight: 600; }
.chip small { font-weight: 400; color: var(--muted); }
.chip.on { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.chip.on small { color: #7f1d1d; }
.trapn { width: 76px; padding: 7px 8px; border: 2px solid #dc2626; border-radius: 10px; font-size: 16px; }
.kbd { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.kbd b { font-weight: 600; color: var(--muted); }
.panel:focus { outline: none; }
.src { display: flex; gap: 8px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 14px; }
.seg button.on { background: var(--acc); color: #fff; }
.src input, textarea { flex: 1; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; width: 100%; }
textarea { resize: vertical; }
.save { width: 100%; margin-top: 10px; background: var(--acc); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-size: 18px; font-weight: 700; }
.save:disabled { background: #94a3b8; cursor: default; }
.hint { min-height: 1.2em; margin: 6px 0 0; color: #166534; font-size: 14px; }
.hint.err { color: #b91c1c; font-weight: 600; }
.files { display: flex; flex-direction: column; gap: 4px; }
.file { text-align: start; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; }
.file .muted { font-size: 12px; }
.attach { display: inline-block; margin-top: 6px; background: #eef2ff; border: 1px dashed #6366f1; color: #3730a3; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.demo { margin-top: 16px; background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 10px; padding: 4px 12px 12px; }
.drill-tag { background: #dc2626; color: #fff; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.demo-sum { margin: 4px 0; }
.needc { color: #b91c1c; }
.res { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.res th, .res td { border-bottom: 1px solid #e9d5ff; padding: 3px 4px; text-align: start; }
.res tr.need td { background: #fee2e2; }
.ghost { margin-top: 10px; width: 100%; background: #fff; border: 1px solid #a78bfa; color: #5b21b6; border-radius: 8px; padding: 9px; font-weight: 600; }

/* окна */
dialog { border: 0; border-radius: 14px; box-shadow: 0 20px 60px #0006; padding: 0; }
dialog::backdrop { background: #0f172acc; }
.login form { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; width: min(420px, 92vw); text-align: center; }
.login h1 { margin: 0; font-size: 24px; }
.login p { margin: 0; }
.login label { display: flex; flex-direction: column; gap: 4px; text-align: start; font-weight: 600; }
.login input:not([type=radio]) { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 400; font-size: 16px; }
.login img { align-self: center; }
.roles { padding: 0; border: 0; gap: 0; }
.roles legend { font-weight: 600; margin-bottom: 4px; text-align: start; width: 100%; }
.roles label { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; font-weight: 400; text-align: center; line-height: 1.25; }
.roles label b { font-size: 17px; font-weight: 700; }
.roles label small { font-size: 12px; opacity: .8; }
.roles label:has(input:checked) { background: var(--acc); color: #fff; }
.roles input { position: absolute; opacity: 0; }
.viewer { width: min(1100px, 96vw); max-height: 94vh; }
.vhead { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.vhead b { flex: 1; }
.vhead a { color: var(--acc); }
.vhead button { border: 0; background: #f1f5f9; border-radius: 8px; width: 32px; height: 32px; }
#vBody { padding: 10px; overflow: auto; max-height: calc(94vh - 60px); }
#vBody img, .svgwrap svg { max-width: 100%; height: auto; display: block; margin: auto; }
#vBody iframe { width: 100%; height: 78vh; border: 0; }

.maplibregl-ctrl-attrib { font-size: 11px; }

/* телефон и узкий экран (≤ 820): шапка = строка «название · связь · меню», поиск, счётчики одной строкой (они же легенда) */
@media (max-width: 820px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; grid-template-areas: "brand board net queue menu" "search search search search search" "counts counts counts counts counts";
    gap: 5px 8px; padding: 5px 8px 6px; align-items: center; }
  .brand { grid-area: brand; font-size: 16px; gap: 6px; min-width: 0; }
  .brand img { width: 24px; height: 24px; }
  .search { grid-area: search; max-width: none; min-width: 0; }
  .search input { padding: 7px 10px; }
  .counts { grid-area: counts; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .cnt { font-size: 12px; padding: 1px 9px; gap: 4px; }
  .cnt .cl { display: none; }
  .cnt b { font-size: 14px; }
  .net { grid-area: net; margin: 0; }
  .net span { display: none; }
  .net i { width: 13px; height: 13px; box-shadow: 0 0 0 2px #fff3; }
  .queue { grid-area: queue; font-size: 12px; padding: 1px 8px; }
  .menubtn { grid-area: menu; padding: 4px 9px; }
  .boardbtn { grid-area: board; padding: 4px 9px; }
  .boardbtn .bb-t { display: none; }
  .menubtn .mb-name { display: none; }
  .phone-only { display: flex !important; }
  .menu .lg-b.phone-only { display: grid !important; }
  .maptools, .legend { display: none; }
  .main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "map" "board" "panel"; }
  .list { display: none; }
  .panel { width: auto; max-height: 55vh; border-radius: 14px 14px 0 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px #0002; z-index: 3; }
  .levels button { padding: 12px 6px; font-size: 17px; }
  .maphint { font-size: 15px; }
}
/* планшет в книжной ориентации — места хватает на подписи у счётчиков */
@media (min-width: 600px) and (max-width: 820px) { .cnt .cl { display: inline; } }

/* ===== שטח — телефон в поле (body.field) ===== */
.cross, .locbtn, .fbar, .fsheet, body:not(.field) #fmine { display: none; }
.toast { position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: auto; max-width: 560px; width: fit-content;
  background: #0f172a; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 16px; box-shadow: 0 8px 24px #0005; display: flex; gap: 12px; align-items: center; }
body.center .toast { bottom: 28px; }
body.center.has-board .toast { bottom: 150px; }
.toast button { flex: none; background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 15px; }
body.field .list, body.field .panel, body.field .legend { display: none !important; }
body.field .cnt { cursor: default; }
body.field .main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "map" "sheet"; }
body.field .mapwrap { grid-area: map; }
body.field .board { grid-area: sheet; }
body.field .maptools { display: none; }
/* масштаб и «ⓘ» — у нижнего края карты: панель кнопок и «לוח חבלים» стоят ПОД картой (своя строка сетки), не поверх неё */
body.field .cross { display: block; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; z-index: 2;
  background: linear-gradient(#0f172a, #0f172a) center/2px 100% no-repeat, linear-gradient(#0f172a, #0f172a) center/100% 2px no-repeat;
  border-radius: 50%; box-shadow: 0 0 0 2px #fff inset; opacity: .75; }
body.field.has-sheet .cross { display: none; }
/* задание 19: крестик — по выключателю «⊕ כוונת במרכז המפה» (nz-crosshair); выключен — только на время «סמן בניין» (body.aiming) */
body.field:not(.cross-on):not(.aiming) .cross { display: none; }
body.loc-on .locbtn { display: block; position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; font-size: 16px; font-weight: 600; box-shadow: 0 2px 8px #0003; }
body.field .fbar { display: grid; grid-area: sheet; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px #0002; z-index: 3; }
body.field .fbar[hidden] { display: none; }
.fmark { background: var(--acc); color: #fff; border: 0; border-radius: 14px; padding: 18px 10px; font-size: 22px; font-weight: 800; }
.fmine { background: #f1f5f9; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; font-weight: 600; }
.fmine b { display: inline-block; min-width: 1.6em; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 6px; }
body.field .fsheet { display: block; grid-area: sheet; position: relative; max-height: 64vh; overflow: auto; background: var(--card);
  border-radius: 16px 16px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px #0002; padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); z-index: 3; }
body.field .fsheet[hidden] { display: none; }
.fsheet h2 { margin: 0 0 2px; font-size: 21px; padding-inline-end: 40px; }
.fsheet .status { margin: 4px 0 10px; }
.levels.flv button { padding: 20px 6px; font-size: 21px; border-radius: 14px; }
.fphotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fphotos:empty { display: none; }
.fphotos figure { margin: 0; position: relative; width: 84px; }
.fphotos img, .fphotos .pdf { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: #e2e8f0; font-weight: 700; }
.fphotos figcaption { font-size: 11px; color: var(--muted); text-align: center; }
.fphotos button { position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #0f172a; color: #fff; font-size: 13px; }
.fadd { display: flex; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.fadd .attach { margin: 0; padding: 12px 14px; font-size: 16px; }
.fadd .cam { background: #1d4ed8; color: #fff; border: 0; font-weight: 700; flex: 1; text-align: center; }
.fsheet textarea { font-size: 16px; }
.fsheet .save { padding: 16px; font-size: 21px; }
#fmine .marks li { cursor: pointer; }

/* ===== задание 6: меню правой кнопки мыши (на телефоне — лист снизу) и «כרטיס בניין» ===== */
.ctx { position: fixed; z-index: 60; width: 360px; max-width: calc(100vw - 16px); background: #fff; color: var(--ink); border-radius: 12px;
  box-shadow: 0 12px 36px #0006, 0 0 0 1px #0001; padding: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ctx > button, .ctx .cx-btn { text-align: start; background: none; border: 0; border-radius: 8px; padding: 8px 10px; display: flex; gap: 8px; align-items: baseline;
  color: inherit; text-decoration: none; cursor: pointer; font-size: 15px; }
.ctx > button:hover, .ctx > button:focus-visible, .ctx .cx-btn:hover { background: #eef2ff; outline: none; }
.ctx small { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.ctx .cx-btn.off { color: #94a3b8; cursor: not-allowed; }
.ctx .cx-btn.off:hover { background: none; }
.cx-head { padding: 6px 10px 8px; border-inline-start: 6px solid var(--c); border-radius: 6px; background: #f8fafc; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-bottom: 2px; }
.cx-head b { font-size: 16px; }
.cx-head .lv { margin-inline-start: auto; }
.cx-head small { flex-basis: 100%; margin: 0; }
.cx-head.plain { border-inline-start-color: #94a3b8; }
.cx-lead { font-size: 13px; color: #1d4ed8; padding: 2px 10px; font-weight: 600; }
.cx-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 2px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.cx-quick button { background: var(--c); color: var(--i); border: 2px solid transparent; border-radius: 8px; padding: 7px 2px; font-size: 13px; font-weight: 700; line-height: 1.15; }
.cx-quick button.cur { border-color: var(--ink); }
.cx-quick .cx-trap { grid-column: 1 / -1; background: #fff; color: #991b1b; border: 2px solid #dc2626; }
.cx-quick .cx-trap.on { background: #fee2e2; }
.ctx-back { position: fixed; inset: 0; z-index: 59; background: #0f172a55; }
.ctx.sheet { inset: auto 0 0 0; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.ctx.sheet > button, .ctx.sheet .cx-btn { padding: 12px 12px; font-size: 17px; }
.ctx.sheet .cx-quick button { padding: 14px 2px; font-size: 15px; }
.bcard { width: min(640px, 96vw); }
.bc-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.facts dt { font-weight: 700; color: #334155; }
.facts dd { margin: 0; }
.facts .idrow { grid-column: 1 / -1; }
.bcard h3 { margin: 16px 0 6px; font-size: 15px; color: #334155; }
.shl { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }
.bc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bc-acts button { flex: 1; background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-weight: 600; white-space: nowrap; }
#bcBody { padding: 12px 18px 16px; overflow: auto; max-height: calc(94vh - 60px); }
@media (max-width: 820px) { .bcard { width: 100vw; max-width: 100vw; max-height: 92vh; margin-bottom: 0; border-radius: 16px 16px 0 0; } #bcBody { padding: 10px 14px 14px; max-height: calc(92vh - 60px); } }
.shl b:last-child { white-space: nowrap; }
/* задание 6б: 3 ближайших укрытия из ГИС мэрии, расстояние — плашкой, Waze к первому; строка «מקלט קרוב» в меню */
.shl li.sh { list-style: none; margin-inline-start: -20px; display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: #f8fafc; }
.shl li.sh.first { background: #ecfdf5; box-shadow: inset 0 0 0 1px #6ee7b7; }
.sh-d { flex: none; min-width: 64px; text-align: center; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sh-t small { display: block; color: var(--muted); font-size: 12px; }
.sh-waze { display: inline-block; margin-top: 8px; background: #1d4ed8; color: #fff; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 8px 12px; }
.sh-waze.off { background: #e2e8f0; color: var(--muted); cursor: not-allowed; }
.sh-waze small { color: inherit; opacity: .8; }
.ctx .sh-lbl { white-space: nowrap; }
.ctx [data-a="shelter"] small { min-width: 0; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== задание 7: хавалим — «чей дом», «החבל שלי», «לוח חבלים» ===== */
.boardbtn { background: #374151; border: 0; color: #fff; padding: 6px 10px; border-radius: 8px; white-space: nowrap; display: flex; gap: 6px; align-items: center; flex: none; font-size: 14px; }
.boardbtn.on { background: #7e22ce; }
.hvpick { flex-wrap: nowrap; }
.hvpick select { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 14.5px; }
.login select { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 400; font-size: 16px; background: #fff; }
.scope { display: flex; gap: 0; margin: 8px 12px 6px; border: 1px solid #c4b5fd; border-radius: 8px; overflow: hidden; flex: none; }
.scope button { flex: 1; border: 0; background: #fff; padding: 6px 8px; font-weight: 600; color: #5b21b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope button + button { border-inline-start: 1px solid #c4b5fd; }
.scope button.on { background: #7e22ce; color: #fff; }
.hvt { display: inline-block; font-size: 11px; font-weight: 600; color: #5b21b6; background: #f3e8ff; border-radius: 999px; padding: 0 7px; margin-inline-end: 2px; }
.sugg .hvs { color: #6b21a8; font-weight: 600; }
.hvline { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #6b21a8; }
.hvline.other { color: #92400e; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; padding: 3px 8px; display: inline-block; }
.hvother { font-size: 12px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 0 7px; }
.board { grid-area: board; background: var(--card); border-top: 1px solid var(--line); min-width: 0; position: relative; }
.bd-head { display: flex; align-items: center; gap: 10px; padding: 5px 12px 3px; }
.bd-head > b { font-size: 15px; }
.bd-head .muted { font-size: 12px; }
.bd-close { position: static; width: 28px; height: 28px; margin-inline-start: auto; font-size: 14px; }
/* задание 12: деление «בחירום» (6) / «בשגרה» (7) — в «לוח חבלים» и у карты */
.bd-set { display: inline-flex; border: 1px solid #c4b5fd; border-radius: 8px; overflow: hidden; flex: none; }
.bd-set[hidden] { display: none; }
.bd-set button { border: 0; background: #fff; padding: 2px 10px; font-size: 13px; font-weight: 600; color: #5b21b6; white-space: nowrap; }
.bd-set button + button { border-inline-start: 1px solid #c4b5fd; }
.bd-set button.on { background: #7e22ce; color: #fff; }
.maptools .hevset { padding: 3px 6px; }
.maptools .hevset select { border: 0; background: transparent; font: inherit; color: #5b21b6; font-weight: 600; cursor: pointer; }
.maptools .hevset[hidden] { display: none; }
.bd-tiles { display: flex; gap: 8px; padding: 2px 12px 10px; overflow-x: auto; }
.tile { flex: 1 1 0; min-width: 0; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; display: flex; gap: 10px; align-items: center; color: inherit; box-shadow: 0 1px 3px #0001; }
.tile:hover { background: #faf5ff; }
.tile.on { border-color: #7e22ce; box-shadow: 0 0 0 2px #7e22ce inset; background: #faf5ff; }
.tile.trap { border-color: #dc2626; }
.tile.trap.on { box-shadow: 0 0 0 2px #7e22ce inset, 0 0 0 1px #dc2626; }
.tile.city { flex: 1.3 1 0; min-width: 0; }
/* 17.11 (осмотр): плитки делят ширину поровну и все видны (на 1920 с списком и на 1366 последняя «רמות הכרמל» пряталась за краем —
   ряд листался вбок, мышью не видно); не влезает строка — переносится */
.tb { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.t1 { display: flex; gap: 6px; align-items: center; min-width: 0; }
.t1 b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1 .mine { flex: none; background: #ede9fe; color: #5b21b6; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700; }
.t2 { font-size: 13px; color: #334155; }
.t2 .pct { white-space: nowrap; }
.t2 .pct { color: var(--muted); }
.bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: #e5e7eb; }
.bar i { display: block; min-width: 3px; }
.t3 { font-size: 12px; font-weight: 700; color: #b91c1c; min-height: 1.25em; }
.donut { flex: none; }
/* «לוח חבלים» на телефоне — лист снизу (строка сетки под картой, не слой поверх — knowledge/maplibre.md) */
@media (max-width: 820px) {
  .board { border-radius: 16px 16px 0 0; box-shadow: 0 -6px 18px #0002; max-height: 62vh; overflow: auto; z-index: 3; padding-bottom: env(safe-area-inset-bottom); }
  .bd-head { padding: 8px 12px 4px; }
  .bd-close { width: 34px; height: 34px; }
  .bd-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: visible; }
  .tile { min-width: 0; padding: 9px 10px; }
  .tile.city { grid-column: 1 / -1; }
  .t2 { white-space: normal; }
  .t1 { flex-wrap: wrap; }
  .t1 b { white-space: normal; }
}

/* ===== задание 8: режим «תרגיל / אירוע אמת», «סיום תרגיל», сброс фильтра, сортировка, окно хевеля ===== */
.modetag { font-size: 14px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; flex: none; letter-spacing: .2px; }
.modetag.drill { background: #facc15; color: #1f2937; }
.modetag.real { background: #dc2626; color: #fff; box-shadow: 0 0 0 2px #fff6; }
.modetag small { font-size: 12px; font-weight: 700; opacity: .8; }
body.mode-drill .top { box-shadow: inset 0 -3px 0 #facc15; }
body.mode-real .top { box-shadow: inset 0 -4px 0 #dc2626; }
body.mode-real .drill-only { display: none !important; }
body.mode-drill .real-only { display: none !important; }
@media (max-width: 820px) {
  .modetag { font-size: 12px; padding: 1px 8px; }
  /* плашка режима всегда видна: название и версия ужимаются первыми */
  .brand > b, .brand .ver { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand .ver { flex-shrink: 1000; } /* 17.11 (осмотр, 360 px): сначала сокращается версия, название «מפת נזקים» — целиком */
  .brand { overflow: hidden; }
}

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.modes legend { font-weight: 600; margin-bottom: 4px; text-align: start; width: 100%; padding: 0; }
.login .modes label { flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; background: #f8fafc; }
.modes label b { font-size: 20px; }
.modes label small { font-weight: 400; font-size: 12px; color: var(--muted); }
.modes input { position: absolute; opacity: 0; }
.modes .m-drill:has(input:checked) { border-color: #ca8a04; background: #fef9c3; box-shadow: 0 0 0 2px #facc15; }
.modes .m-real:has(input:checked) { border-color: #b91c1c; background: #fee2e2; box-shadow: 0 0 0 2px #dc2626; }
.modes label:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.login-old { background: #fef9c3; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.login-old.real { background: #fee2e2; }
.login.real .save { background: #b91c1c; }
#loginHint { margin: -4px 0 0; }

.sortseg { display: flex; margin: 8px 12px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.sortseg button { flex: 1; border: 0; background: #fff; padding: 5px 8px; font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; }
.sortseg button + button { border-inline-start: 1px solid var(--line); }
.sortseg button.on { background: #1f2937; color: #fff; }
.flt { display: flex; align-items: center; gap: 8px; margin: 6px 12px; padding: 6px 6px 6px 10px; padding-inline: 10px 6px; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; flex: none; font-size: 13px; }
.flt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.flt button { flex: none; background: #1f2937; color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; font-weight: 700; font-size: 14px; }

.dbody { padding: 12px 18px 16px; overflow: auto; max-height: calc(94vh - 60px); }
.dbody .bc-acts .primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.end-steps { margin: 8px 0; padding-inline-start: 22px; line-height: 1.7; }
.prevlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prevlist > li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.prevlist > li.on { border-color: #7e22ce; background: #faf5ff; }
.prevlist > li.pv-h { border: 0; padding: 4px 2px 0; font-weight: 800; font-size: 15px; color: #334155; }
.prevlist > li.pv-real { border-inline-start: 4px solid #dc2626; }
/* 15.11: «סיום אירוע» — пароль (защита от случайного нажатия) */
#endDlg.real .vhead { border-bottom: 3px solid #dc2626; }
#endDlg.real .dbody .bc-acts .primary { background: #b91c1c; border-color: #b91c1c; }
.endpass { display: grid; gap: 4px; margin: 10px 0 4px; padding: 10px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; }
.endpass label { font-weight: 700; }
.endpass input { font: inherit; font-size: 18px; padding: 8px 10px; border: 2px solid #fca5a5; border-radius: 8px; max-width: 280px; }
.endpass input:focus { outline: 2px solid #dc2626; outline-offset: 1px; }
.endpass-err { color: #b91c1c; font-weight: 800; }
#endDlg button:disabled { opacity: .45; cursor: not-allowed; }
/* 16.11 «🔑 מנהל» — режим ведущего учений: неприметный пункт внизу меню, метка в шапке, окно имя + пароль */
.menu .mg > button.admitem { background: none; border-color: transparent; color: var(--muted); font-size: 13px; }
.menu .mg > button.admitem:hover { background: #f1f5f9; color: var(--ink); }
.admtag { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #1e3a8a; color: #fff; border: 1px solid #93c5fd; white-space: nowrap; flex: none; }
.admdlg { width: min(420px, 96vw); }
.admdlg form { display: grid; gap: 6px; }
.admdlg label { font-weight: 700; margin-top: 4px; }
.admdlg input { font: inherit; font-size: 18px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 8px; }
.admdlg input:focus { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.adm-err { color: #b91c1c; font-weight: 800; }
@media (max-width: 820px) { .admtag { font-size: 11px; padding: 0 6px; } .admdlg { width: 100vw; } }
.pv1 { font-size: 16px; }
.pv2 { font-size: 13px; margin-top: 2px; }
.pv-acts { display: flex; gap: 8px; margin-top: 8px; }
.pv-acts button { background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.pv-sum:empty { display: none; }
.pv-sum { margin-top: 8px; }
.pv-sum p { margin: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hvt-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.hvt-t th, .hvt-t td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.hvt-t th { background: #f8fafc; font-weight: 700; color: #334155; position: sticky; top: 0; }
.hvt-t td:first-child { white-space: normal; }
.hvt-t tr.trap td { background: #fef2f2; }
.hv-tw { max-height: 38vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.hvcard { width: min(720px, 96vw); }
.hv-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.hv-big { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; }
.hv-big b { font-size: 26px; line-height: 1.1; }
.hv-big span { font-size: 13px; color: var(--muted); }
.hv-bar { height: 14px; border-radius: 7px; margin: 4px 0 8px; }
.hv-lvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hv-lv { background: var(--c); color: var(--i); border-radius: 10px; padding: 6px; text-align: center; display: flex; flex-direction: column; }
.hv-lv b { font-size: 20px; }
.hv-lv span { font-size: 13px; }
.hv-flags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.hv-flags span { background: #f1f5f9; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.hv-flags span.on { background: #fee2e2; color: #991b1b; font-weight: 600; }
.hv-last { flex: none; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 820px) { .dbody { padding: 10px 14px 14px; max-height: calc(92vh - 60px); } .hv-big b { font-size: 21px; } .hv-lv b { font-size: 17px; } }

/* ===== задания 9–10: слои «שכבות» ===== */
.lyctl { position: relative; }
.mapcorner .lybtn.on { background: #eef1fb; border-color: #3446a8; color: #26357f; font-weight: 700; }
.mapcorner .lybtn[aria-expanded="true"] { box-shadow: 0 0 0 2px #3446a855, 0 1px 4px #0002; }
.ly-badge { background: #3446a8; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; line-height: 17px; font-variant-numeric: tabular-nums; }
.ly-badge:empty { display: none; }
/* панель: компьютер — у края карты, под кнопками; карта рядом работает */
.lypanel { position: absolute; top: 54px; inset-inline-start: 10px; z-index: 6; width: 340px; max-height: min(760px, calc(100% - 66px)); display: flex; flex-direction: column;
  background: #fffffff7; backdrop-filter: blur(6px); border: 1px solid #e3e7ee; border-radius: 14px; box-shadow: 0 10px 34px #0f172a2e, 0 1px 3px #0f172a14; overflow: hidden; }
.lypanel[hidden] { display: none; }
.lyp-grip { display: none; }
.lyp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.lyp-ico { width: 22px; height: 22px; fill: none; stroke: #3446a8; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.lyp-ttl { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lyp-ttl b { font-size: 17px; letter-spacing: .2px; }
.lyp-ttl span { font-size: 12px; color: var(--muted); }
.ly-x { margin-inline-start: auto; border: 0; background: none; font-size: 15px; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; flex: none; cursor: pointer; }
.ly-x:hover { background: #eef1f6; color: var(--ink); }
.lyp-tools { display: flex; gap: 8px; padding: 2px 14px 10px; border-bottom: 1px solid #edf0f4; }
.lyp-q { flex: 1; display: flex; align-items: center; gap: 6px; background: #f4f6f9; border: 1px solid transparent; border-radius: 9px; padding: 0 9px; min-width: 0; }
.lyp-q:focus-within { background: #fff; border-color: #3446a888; }
.lyp-q svg { width: 16px; height: 16px; fill: none; stroke: #94a3b8; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.lyp-q input { border: 0; background: none; font: inherit; font-size: 14px; padding: 7px 0; width: 100%; min-width: 0; outline: none; }
.lyp-none { border: 1px solid #e3e7ee; background: #fff; border-radius: 9px; padding: 0 10px; font-size: 13px; color: #334155; cursor: pointer; white-space: nowrap; }
.lyp-none:hover:not(:disabled) { background: #f4f6f9; }
.lyp-none:disabled { color: #b6bfcc; cursor: default; }
.lyp-list { overflow: auto; padding: 6px 8px 4px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.lyp-empty { color: var(--muted); padding: 14px 8px; margin: 0; font-size: 14px; }
.lyg { border-radius: 11px; margin-bottom: 2px; }
.lyg + .lyg { border-top: 1px solid #f0f2f5; border-radius: 0; padding-top: 2px; }
.lyg-h { display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; }
.lyg-tg { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; color: inherit; padding: 9px 4px; border-radius: 8px; cursor: pointer; text-align: start; min-width: 0; }
.lyg-tg:hover { background: #f5f7fa; }
.lyg-tg b { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, #fff); flex: none; }
.lyg-n { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lyg.some .lyg-n { color: var(--c); font-weight: 700; }
.lyg-n small { font-weight: 400; color: var(--muted); }
.lyg-chev { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #94a3b8; transition: transform .18s; flex: none; }
.lyg-chev svg { width: 16px; height: 16px; }
.lyg.open .lyg-chev { transform: rotate(-90deg); }
.lyg-b { display: none; padding: 0 2px 8px; }
.lyg.open .lyg-b { display: block; }
.ly-row { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 6px; margin-inline-start: 22px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.ly-row:hover { background: #f5f7fa; }
.ly-row.on .ly-name { font-weight: 600; }
.ly-name { flex: 1; min-width: 0; }
.ly-n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ly-svg { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 1px 1.5px #0f172a26); }
.ly-svg.big { width: 38px; height: 38px; }
/* галочки — цвета группы */
.ly-chk { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0 6px; border: 1.6px solid #c3cad5; border-radius: 5px; background: #fff; flex: none; cursor: pointer;
  display: inline-grid; place-items: center; transition: background .12s, border-color .12s; }
.ly-chk:hover { border-color: var(--c, #3446a8); }
.ly-chk:checked, .ly-chk:indeterminate { background: var(--c, #3446a8); border-color: var(--c, #3446a8); }
.ly-chk:checked::after { content: ""; width: 9px; height: 5px; border-style: solid; border-color: #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.ly-chk:indeterminate::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 1px; }
.ly-chk:focus-visible { outline: 2px solid var(--c, #3446a8); outline-offset: 2px; }
.ly-src { margin: 0; padding: 8px 14px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid #f0f2f5; }
.ly-src.ly-loc { border-top: 0; padding-top: 0; margin-top: -6px; } /* v18.11.3: «מיקום: … · נבדק 18.11» */
/* карточка объекта */
.lycard { padding: 10px 10px 8px; width: 320px; }
.ly-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; border-bottom: 1px solid #eef1f5; }
.ly-ttl { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ly-head b { font-size: 16.5px; }
.ly-type { font-size: 13px; color: var(--c); font-weight: 600; }
.ly-dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 6px 8px; font-size: 14.5px; }
.ly-dl dt { color: var(--muted); }
.ly-dl dd { margin: 0; font-weight: 600; }
.ly-approx { font-size: 11.5px; font-weight: 500; color: #8a6d1f; background: #fbf4dc; border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.ly-doc { margin: 2px 2px 8px; border: 1px solid #dbe3f3; background: #f6f8fd; border-radius: 10px; padding: 6px 8px; }
.ly-doc-h { font-size: 12px; font-weight: 700; color: #1e3a8a; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ly-doc-r { font-size: 12.5px; line-height: 1.35; padding: 3px 0; border-top: 1px solid #e6ebf6; }
.ly-doc-r:first-of-type { border-top: 0; }
.ly-doc-r small { display: block; color: var(--muted); font-size: 11.5px; }
.ly-more { margin: 2px 2px 8px; border: 1px solid #eef1f5; border-radius: 10px; padding: 4px; max-height: 210px; overflow: auto; }
.ly-more-h { font-size: 12px; color: var(--muted); padding: 2px 6px 4px; }
.ly-more-i { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 4px 6px; border-radius: 7px; cursor: pointer; text-align: start; }
.ly-more-i:hover { background: #f5f7fa; }
.ly-more-i .ly-svg { width: 22px; height: 22px; }
.ly-more-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-more-i small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.lycard .ly-waze { font-weight: 700; }
.lycard .ly-src { border: 0; padding: 4px 6px 0; }
.lycard.sheet { z-index: 61; width: auto; }
.lycard.sheet .ly-head b { font-size: 18.5px; }
.lycard.sheet .ly-dl { font-size: 16.5px; }
/* телефон / שטח: лист снизу */
.lypanel.sheet { position: fixed; inset: auto 0 0 0; top: auto; width: auto; max-height: min(74vh, 640px); z-index: 61; border-radius: 18px 18px 0 0; border: 0;
  box-shadow: 0 -10px 34px #0f172a38; background: #fff; padding-bottom: env(safe-area-inset-bottom); }
.lypanel.sheet .lyp-grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: #d5dbe4; margin: 8px auto 0; }
.lypanel.sheet .lyp-head { padding-top: 6px; }
.lypanel.sheet .lyg-tg { padding: 12px 4px; }
.lypanel.sheet .lyg-tg b { font-size: 16px; }
.lypanel.sheet .ly-row { padding: 8px 8px 8px 6px; font-size: 16px; }
.lypanel.sheet .ly-chk { width: 22px; height: 22px; }
.lypanel.sheet .ly-svg { width: 30px; height: 30px; }
.lypanel.sheet .lyp-q input { font-size: 16px; padding: 9px 0; }
/* v15.11.7 (Алексей, телефон 15.11 19:00): «שכבות» и «תלת ממד» — правый верхний угол карты, одна под другой (сверху «שכבות»),
   36 px, одной ширины, 8 px от края и между собой, под полосой тревог; телефон и компьютер одинаково. Третьим — компас «צפון»
   (только в 3D и когда карта повёрнута, js/view3d.js). «＋/−» — слева; инструменты компьютера и панель «שכבות» — левее угла. */
.mapwrap { --corner-w: 116px; }
.mapcorner { position: absolute; top: 8px; right: 8px; left: auto; z-index: 3; width: var(--corner-w); display: grid; gap: 8px; justify-items: stretch; pointer-events: none; }
.mapcorner > * { pointer-events: auto; }
.mapcorner .lyctl { position: relative; }
.mapcorner :is(.lybtn, .d3btn) { box-sizing: border-box; width: 100%; height: 36px; margin: 0; padding: 0 10px; display: flex; align-items: center; gap: 6px;
  font: 600 14px/1 var(--font); white-space: nowrap; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 4px #0002; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mapcorner .lybtn .ly-badge { margin-inline-start: auto; }
.d3btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
/* (2) включено: синий фон + белый текст — во всех видах и после касания (на телефоне :hover «прилипает» к нажатой кнопке,
   и «стекло» при наведении перекрашивало фон в белый — белое на белом). Наведение — только у мыши, и не у включённой. */
.mapcorner .d3btn.d3btn[aria-pressed="true"] { background: #3446a8 !important; color: #fff !important; border-color: #26357f !important; font-weight: 700; }
.mapcorner .d3btn[aria-pressed="true"] svg { fill: #6d7fd6; }
/* (3) компас «צפון»: стрелка повёрнута к северу (поворот — --nz-bearing из view3d.js); нажатие — север вверх, наклон остаётся */
.mapcorner .d3cmp { justify-self: right; box-sizing: border-box; width: 36px; height: 36px; margin: 0; padding: 0; display: grid; place-items: center;
  background: #fff; color: #0f172a; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 1px 4px #0002; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mapcorner .d3cmp[hidden] { display: none; }
.d3cmp svg { width: 28px; height: 28px; overflow: visible; }
.d3cmp .needle { transform-box: view-box; transform-origin: 12px 15px; transform: rotate(calc(-1deg * var(--nz-bearing, 0))); }
.d3cmp .needle text { font: 700 7px var(--font); fill: #dc2626; }
.d3cmp .needle .n { fill: #dc2626; }
.d3cmp .needle .s { fill: #94a3b8; }
@media (hover: hover) { .mapcorner :is(.lybtn, .d3btn, .d3cmp):hover { background: #f1f5f9; } }
.mapcorner :is(.lybtn, .d3btn, .d3cmp):focus-visible { outline: 3px solid #3446a888; outline-offset: 2px; }
/* компьютер: инструменты карты, легенда и панель «שכבות» — левее угла (панель открывается рядом с кнопкой, не на ней) */
.maptools, .legend, .lypanel { inset-inline-start: calc(16px + var(--corner-w)); }
.lypanel { top: 8px; max-height: min(760px, calc(100% - 16px)); }

/* ===== задание 11: «📺 תמונת מצב» — экран для проектора (js/tmuna.js). Размеры в em от шрифта экрана:
   1920×1080 → ≈18 px, 1366×768 → ≈13 px — одна раскладка, без прокрутки. Телефон — колонка с прокруткой. */
.bd-fs { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 1px 9px; font-size: 16px; line-height: 1.3; margin-inline-start: auto; color: var(--ink); }
.bd-fs:hover { background: #ede9fe; }
.bd-fs + .bd-close { margin-inline-start: 0; }
/* v22.11.10: ступени шрифта «תמונת מצב» — длины (px), не строки: их наследуют потомки, fitNums в js/tmuna.js уменьшает их у элемента */
@property --tm-fs-kpi-xl { syntax: '<length>'; inherits: true; initial-value: 48px; }
@property --tm-fs-kpi { syntax: '<length>'; inherits: true; initial-value: 32px; }
@property --tm-fs-num { syntax: '<length>'; inherits: true; initial-value: 22px; }
@property --tm-fs-h { syntax: '<length>'; inherits: true; initial-value: 18px; }
@property --tm-fs-body { syntax: '<length>'; inherits: true; initial-value: 15px; }
.tmuna {
  --tm-bg: #cfd8e4; --tm-card: #fff; --tm-ink: #0f172a; --tm-muted: #4a5a70; --tm-line: #8797ae; --tm-soft: #edf1f6; --tm-head: #1f2937; --tm-headink: #fff;
  --tm-bar: #64748b; --tm-cur: #334155; --tm-lineC: #4f46e5; --tm-area: #4f46e51f; --tm-ring0: #e5e7eb; --tm-nodata: #e2e8f0; --tm-edge: #fff; --tm-flash: #7c3aed;
  position: fixed; inset: 0; z-index: 48; background: var(--tm-bg); color: var(--tm-ink);
  --tm-u: clamp(11px, min(0.94vw, 1.7vh), 26px); font-size: var(--tm-u); line-height: 1.25;
  /* v22.11.10 единая шкала (Алексей 22.11 12:16): 5 ступеней от шрифта экрана --tm-u, у каждой — одна переменная.
     f1 главное число (3) · f2 KPI карточек и часы (2,25; часы ≥ 40 px на 1920) · f3 числа в строках, значки, название (1,5; ≥ 26 px на 1920) · f4 заголовки модулей (1,15) · f5 текст, подписи, мелкие строки (0,95; ≥ 17 px на 1920×1080).
     Веса — только 400 / 600 / 700 (600 рисуется начертанием Rubik Medium: @font-face «NZ Rubik» 500–600). Таблица шкалы — docs/DESIGN.md, сторож — tests/tm-scale.cjs. Свои em-размеры шрифта в «תמונת מצב» не заводить — только var(--tm-fN). */
  --tm-fs-kpi-xl: calc(var(--tm-u) * 3); --tm-fs-kpi: calc(var(--tm-u) * 2.25); --tm-fs-num: calc(var(--tm-u) * 1.5); --tm-fs-h: calc(var(--tm-u) * 1.15); --tm-fs-body: calc(var(--tm-u) * .95);
  display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden;
}
.tmuna.dark {
  --tm-bg: #02050b; --tm-card: #17223a; --tm-ink: #f1f5fb; --tm-muted: #a7b4c8; --tm-line: #5a7299; --tm-soft: #22314f; --tm-head: #02050b; --tm-headink: #e8eef7;
  --tm-bar: #94a3b8; --tm-cur: #e2e8f0; --tm-lineC: #a5b4fc; --tm-area: #a5b4fc26; --tm-ring0: #2f4064; --tm-nodata: #2f4064; --tm-edge: #02050b; --tm-flash: #c4b5fd;
}
/* 11.11 (Алексей): на мониторах с разной яркостью карточки сливались с фоном — рамки 2 px, фон темнее карточек,
   заголовок каждого блока отделён линией, у карточки хевеля — полоса сверху. */
.tmuna .tm-box > h2, .tmuna .tm-card .c1 { border-bottom: 2px solid var(--tm-line); padding-bottom: .3em; margin-bottom: .35em; }
.tmuna .tm-card { border-top: .3em solid var(--tm-lineC); }
.tmuna.dark .tm-box, .tmuna.dark .tm-card { box-shadow: 0 0 0 1px #00000080, 0 3px 10px #000000a0; }
body.tm-on .upd { position: fixed; z-index: 52; bottom: 1.2em; }
.tmuna h2 { margin: 0 0 .45em; font-size: var(--tm-fs-h); font-weight: 700; display: flex; align-items: baseline; gap: .5em; white-space: nowrap; }
.tmuna h2 small { font-size: var(--tm-fs-body); font-weight: 600; color: var(--tm-muted); }
.tmuna .muted { color: var(--tm-muted); }
/* v22.11.10 (Алексей 22.11 12:16 «часы наезжают на תרגיל»): шапка — один ряд flex, ничего не absolute и не вылезает из своего места.
   Название — сетка: логотип, «מפת נזקים» и «תרגיל N» не сжимаются (колонки auto), «· תמונת מצב» и «מנ״מ — כל העיר» — minmax(0, max-content);
   тесно — сначала «· תמונת מצב», потом «מנ״מ — כל העיר», «עודכן…» и строка тревог сокращаются «…», подписи кнопок — только значок (@container). */
.tm-head { container: tmhead / inline-size; display: flex; align-items: center; gap: .5em; padding: .55em 1.1em; background: var(--tm-head); color: var(--tm-headink); border-bottom: 3px solid #facc15; min-width: 0; }
body.mode-real .tm-head { border-bottom-color: #dc2626; }
.tm-title { display: grid; grid-template-columns: auto auto minmax(0, max-content) auto minmax(0, max-content); align-items: center; column-gap: .45em; flex: 0 1 auto; font-size: var(--tm-fs-num); white-space: nowrap; }
.tm-title > * { white-space: nowrap; grid-row: 1; }
.tm-title > img { grid-column: 1; } .tm-title > b { grid-column: 2; } .tm-title > .tm-sub { grid-column: 3; } .tm-title > .modetag { grid-column: 4; } .tm-title > .tm-who { grid-column: 5; }
.tm-title img { width: 1.4em; height: 1.4em; }
.tm-sub { font-weight: 600; opacity: .85; }
.tm-title > :is(.tm-sub, .tm-who) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-title .modetag { font-size: var(--tm-fs-body); font-weight: 700; padding: .15em .7em; }
.tm-title .modetag small { font-size: var(--tm-fs-body); font-weight: 700; opacity: 1; }
.tm-who { font-size: var(--tm-fs-body); opacity: .75; }
.tm-clock { font-size: var(--tm-fs-kpi); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; direction: ltr; margin-inline-start: auto; padding-inline-start: .6em; line-height: 1; flex: none; white-space: nowrap; }
.tm-clock small { font-size: var(--tm-fs-h); opacity: .6; font-weight: 700; }
.tm-upd { font-size: var(--tm-fs-body); opacity: .85; white-space: nowrap; flex: 0 3 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-inline-start: .6em; }
.tm-net { display: flex; align-items: center; gap: .4em; font-size: var(--tm-fs-body); font-weight: 700; white-space: nowrap; padding: .25em .8em; border-radius: 999px; background: #ffffff14; }
.tm-net i { width: .75em; height: .75em; border-radius: 50%; background: #9ca3af; }
.tm-net.on i { background: #22c55e; } .tm-net.wait i { background: #f59e0b; } .tm-net.off i { background: #ef4444; } .tm-net.local i { background: #60a5fa; }
.tm-net.pend { background: #f59e0b33; }
.tm-acts { display: flex; gap: .45em; flex: none; margin-inline-start: .6em; }
.tm-acts button { border: 0; background: #ffffff1f; color: inherit; border-radius: .5em; padding: .35em .75em; font-size: var(--tm-fs-body); font-weight: 700; white-space: nowrap; }
.tm-acts button:hover { background: #ffffff38; }
.tm-acts .tm-x { font-size: var(--tm-fs-h); padding: .2em .7em; background: #ffffff2e; }
/* тесно — у кнопок только значок, подпись — в подсказке (title); единицы @container — em шапки (шрифт экрана).
   «Тесно» — по ширине шапки или когда в ней ещё «👥 N», строка тревог, «↩ חזרה…» (:has). */
.tm-head:has(#tmPres:not([hidden]), #tmOrefQ:not([hidden]), #tmCityBtn:not([hidden])) .tm-acts :is(#tmXlsx, #tmPrint, #tmDoch) .tl { display: none; }
@container tmhead (max-width: 100em) { .tm-acts :is(#tmXlsx, #tmPrint, #tmDoch) .tl { display: none; } }
@container tmhead (max-width: 90em) { .tm-acts :is(#tmScreen2, #tmArr) .tl, .tm-title > .tm-sub { display: none; } }
@container tmhead (max-width: 112em) { .tm-head:has(#tmPres:not([hidden]), #tmOrefQ:not([hidden]), #tmCityBtn:not([hidden])) :is(.tm-acts :is(#tmScreen2, #tmArr) .tl, .tm-title > .tm-sub) { display: none; } }
.tm-grid { display: grid; grid-template-columns: 23em minmax(0, 1fr) 26em; gap: .8em; padding: .8em; min-height: 0; }
.tm-col { display: flex; flex-direction: column; gap: .8em; min-height: 0; min-width: 0; }
.tm-cards, .tm-oref { font-size: var(--tm-fs-body); }
.tm-box { font-size: var(--tm-fs-body); background: var(--tm-card); border: 2px solid var(--tm-line); box-shadow: 0 2px 8px #0f172a2e; border-radius: .8em; padding: .8em 1em; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
/* город */
.tm-city { flex: none; }
.tm-cityTop { display: flex; align-items: center; gap: 1em; }
.tm-donut { width: 9.5em; height: 9.5em; flex: none; }
.tm-donut .ring0 { stroke: var(--tm-ring0); }
.tm-donut .d1 { font-size: 24px; font-weight: 800; fill: var(--tm-ink); }
.tm-donut .d2 { font-size: 11px; fill: var(--tm-muted); }
.tm-of { display: flex; flex-direction: column; gap: .2em; font-size: var(--tm-fs-body); }
.tm-of b { font-variant-numeric: tabular-nums; }
.tm-of .pc { font-size: var(--tm-fs-kpi-xl); line-height: 1; font-weight: 700; text-align: start; }
.tm-lvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; margin-top: .7em; }
.tm-lvs.big { grid-template-columns: 1fr 1fr; gap: .5em; }
.tm-lv { border-inline-start: .35em solid var(--c); background: var(--tm-soft); box-shadow: inset 0 0 0 1px var(--tm-line); border-radius: .4em; padding: .25em .55em .3em; display: flex; flex-direction: column; min-width: 0; }
.tm-lv b { font-size: var(--tm-fs-num); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-lv span { font-size: var(--tm-fs-body); color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-lvs.big .tm-lv b { font-size: var(--tm-fs-num); }
.tm-lvs.big .tm-lv span { font-size: var(--tm-fs-body); }
.tm-flags { display: flex; flex-wrap: wrap; gap: .35em .5em; margin-top: .7em; }
.tm-flags span { background: var(--tm-soft); border-radius: 999px; padding: .2em .65em; white-space: nowrap; color: var(--tm-muted); }
.tm-flags b { font-size: var(--tm-fs-num); color: var(--tm-ink); font-variant-numeric: tabular-nums; }
.tm-flags .f-trap.on { background: #7f1d1d; color: #fff; } .tm-flags .f-trap.on b { color: #fff; }
.tm-flags .f-inj.on { background: #fde68a; color: #1f2937; } .tm-flags .f-haz.on { background: #fed7aa; color: #1f2937; }
.tm-flags .on b { color: inherit; }
.tm-city .tm-flags { flex-direction: column; align-items: stretch; }
.tm-city .tm-flags span { font-size: var(--tm-fs-body); border-radius: .5em; padding: .3em .7em; }
.tm-city .tm-flags b { font-size: var(--tm-fs-num); }
/* мини-карта */
.tm-map { flex: 1 1 0; }
.tm-mapbox { flex: 1 1 0; min-height: 0; display: flex; }
.tm-mapsvg { width: 100%; height: 100%; }
.tm-mapsvg .hv { stroke: var(--tm-edge); stroke-width: var(--sw); fill: var(--tm-nodata); stroke-linejoin: round; }
.tm-mapsvg .labs text { fill: var(--tm-ink); font-weight: 700; paint-order: stroke; stroke: var(--tm-card); stroke-width: calc(var(--sw) * 2.2); stroke-linejoin: round; }
.tm-mapsvg .dot { stroke: #fff; stroke-width: calc(var(--sw) * .8); }
.tm-mapsvg .d3 { fill: #dc2626; } .tm-mapsvg .dt { fill: #7f1d1d; stroke-width: calc(var(--sw) * 1.1); }
.tm-maplg { display: flex; flex-wrap: wrap; gap: .25em .8em; font-size: var(--tm-fs-body); color: var(--tm-muted); align-items: center; margin-top: .3em; }
.tm-maplg .sev { display: inline-flex; } .tm-maplg .sev i { width: 1.1em; height: .8em; display: inline-block; }
.tm-maplg .d { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-inline-end: .3em; vertical-align: -.05em; }
.tm-maplg .d3 { background: #dc2626; } .tm-maplg .dt { background: #7f1d1d; width: 1em; height: 1em; }
/* хавалим */
.tm-cards { flex: 1.75 1 0; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .8em; }
.tm-cards.n7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* задание 12: «בשגרה» — 7 карточек */
.tm-card { background: var(--tm-card); border: 2px solid var(--tm-line); box-shadow: 0 2px 8px #0f172a2e; border-radius: .8em; padding: .7em .9em; min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: .4em; position: relative; transition: box-shadow .3s; }
.tm-card .c1 { display: flex; align-items: baseline; gap: .5em; font-size: var(--tm-fs-h); white-space: nowrap; overflow: hidden; }
.tm-card .c1 b { overflow: hidden; text-overflow: ellipsis; }
.tm-card .mine { background: #ede9fe; color: #5b21b6; border-radius: 999px; padding: 0 .55em; font-size: var(--tm-fs-body); font-weight: 700; }
.tm-card .c2 { display: flex; align-items: baseline; gap: .6em; white-space: nowrap; }
.tm-card .pc { font-size: var(--tm-fs-kpi); line-height: 1; font-weight: 700; }
.tm-card .nm { display: flex; flex-direction: column; color: var(--tm-muted); font-size: var(--tm-fs-body); line-height: 1.15; min-width: 0; }
.tm-card .nm b, .tm-card .nm .tmm { color: var(--tm-ink); font-weight: 700; }
.tm-prog { display: block; height: .45em; border-radius: 999px; background: var(--tm-ring0); overflow: hidden; }
.tm-prog i { display: block; height: 100%; background: var(--tm-lineC); border-radius: 999px; }
.tm-lvbar { display: flex; height: .9em; border-radius: .25em; overflow: hidden; gap: 2px; background: var(--tm-ring0); }
.tm-lvbar i { display: block; min-width: 3px; } .tm-lvbar i.none { flex: 1; background: transparent; }
.tm-card .tm-lvs { margin-top: 0; gap: .3em; }
.tm-card .tm-lv { padding: .15em .35em; }
.tm-card .tm-lv span { font-size: var(--tm-fs-body); }
.tm-card .tm-flags { margin-top: 0; font-size: var(--tm-fs-body); gap: .3em; flex-wrap: nowrap; overflow: hidden; }
.tm-card .tm-flags span { padding: .1em .5em; }
.tm-card .tm-flags small { display: none; }
.tm-card .tm-flags .f-trap small { display: inline; }
.tm-worst { font-size: var(--tm-fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.tm-worst small { color: var(--tm-muted); }
.tm-card.trap { border-color: #7f1d1d66; }
.tm-card.flash { border-color: var(--tm-flash); box-shadow: 0 0 0 .2em var(--tm-flash), 0 0 1.2em #7c3aed55; animation: tmflash 1.2s ease-in-out 3; }
@keyframes tmflash { 50% { box-shadow: 0 0 0 .35em var(--tm-flash), 0 0 1.6em #7c3aed88; } }
.tm-card.city { border-color: #94a3b8; }
.tm-city .mine { background: #ede9fe; color: #5b21b6; border-radius: 999px; padding: 0 .55em; font-size: var(--tm-fs-body); font-weight: 700; }
.tm-city[data-h]:not([data-h="0"]) { border: .15em solid #7c3aed; }
.tm-city .tm-worst { margin-top: .6em; font-size: var(--tm-fs-body); white-space: normal; }
/* динамика */
.tm-chart { flex: 1 1 0; }
.tm-chartbox { flex: 1 1 0; min-height: 0; position: relative; }
.tm-chartsvg { position: absolute; inset: 0; display: block; }
.tm-chartsvg text { fill: var(--tm-muted); font-family: var(--font); }
.tm-chartsvg .lab { fill: var(--tm-ink); font-weight: 700; }
.tm-chartsvg .v { fill: var(--tm-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-chartsvg .base { stroke: var(--tm-line); stroke-width: 1; }
.tm-chartsvg .bar path { fill: var(--tm-bar); }
.tm-chartsvg .bar.cur path { fill: var(--tm-cur); }
.tm-chartsvg .bar:hover path { opacity: .8; }
.tm-chartsvg .line { fill: none; stroke: var(--tm-lineC); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tm-chartsvg .area { fill: var(--tm-area); }
.tm-chartsvg .end { fill: var(--tm-lineC); stroke: var(--tm-card); stroke-width: 2; }
/* лента и לכודים */
.tm-c3 .tm-feed { flex: 1.55 1 0; } .tm-c3 .tm-trap { flex: 1 1 0; }
/* 11.11 ровные ряды (Алексей: «окошки не ровно»): одна сетка 3×2 вместо трёх колонок — верхний ряд по высоте «כל העיר»,
   нижние блоки до самого низа; карточки хавалим и лента в размер ряда не вмешиваются (contain: size). Телефон — ниже, как было. */
.tm-grid { grid-template-rows: auto minmax(0, 1fr); }
.tm-col { display: contents; }
.tm-grid > .tm-col > * { min-width: 0; }
.tm-city { grid-area: 1 / 1; } .tm-map { grid-area: 2 / 1 / span 2; }
.tm-cards { grid-area: 1 / 2; contain: size; } .tm-chart { grid-area: 2 / 2 / span 2; }
.tm-c3 .tm-feed { grid-area: 1 / 3; contain: size; } .tm-c3 .tm-trap { grid-area: 2 / 3 / span 2; }
.tm-grid:has(.tm-oref:not([hidden])) .tm-c3 .tm-trap { grid-row: 2; }
/* 17.11 (осмотр): с тревогами «לכודים» сжимался до одного заголовка (тревоги брали свою высоту) — делят остаток поровну */
.tm-grid:has(.tm-oref:not([hidden])) { grid-template-rows: auto minmax(0, 1.15fr) minmax(0, 1fr); }
.tm-list.tm-orefl { overflow-y: auto; scrollbar-width: thin; }
.tm-c3 .tm-oref { grid-area: 3 / 3; }
/* v16.11.6 «🧒👴 מוסדות רגישים» — нижний ряд средней колонки рядом с «דינמיקה» (ближе к «לכודים»); лента — как была (≥ 10 строк) */
.tm-c2bot { grid-area: 2 / 2 / span 2; display: flex; gap: .8em; min-height: 0; min-width: 0; }
.tm-c2bot > .tm-chart { flex: 1.2 1 0; min-width: 0; }
.tm-c2bot > .tm-vul { flex: 1 1 0; min-width: 0; }
.tm-vul[hidden] { display: none !important; }
.tm-vul { border-color: #14b8a6; }
.tm-vul h2 small b { color: #b91c1c; }
.tv-gs { display: flex; flex-wrap: nowrap; gap: .25em; margin: .1em 0 .35em; flex: none; } /* v16.11.10: все плашки в одну строку */
.tv-g { display: inline-flex; align-items: baseline; gap: .12em; border: 1px solid var(--tm-line); border-radius: .5em; padding: .05em .35em; font-size: var(--tm-fs-body); color: var(--tm-muted); white-space: nowrap; min-width: 0; }
.tv-g i { font-style: normal; font-size: var(--tm-fs-h); font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.tv-g b { color: var(--tm-ink, inherit); }
.tv-g.on { border-color: #ea580c; background: #fff7ed; color: #9a3412; }
.tv-g.on b { color: #b91c1c; }
.tmuna.dark .tv-g.on { background: #431407; color: #fed7aa; }
.tm-list.tm-vull { overflow-y: auto; scrollbar-width: thin; } /* 17.11: .tm-list ниже глушил прокрутку (overflow: hidden) — у пострадавших учреждений не листалось */
.tm-vull li { cursor: pointer; border-inline-start: .3em solid var(--c); }
.tm-vull .ve { font-style: normal; font-size: var(--tm-fs-num); flex: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.tm-vull .tr { color: #b91c1c; flex: none; white-space: nowrap; }
.tmuna.dark .tm-vull .tr { color: #fca5a5; }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) { .tm-c2bot { display: contents; } .tm-c2bot > .tm-vul { order: 3; flex: none; max-height: none; } .tm-c2bot > .tm-chart { flex: none; } .tm-list.tm-vull { overflow: visible; } }
.tm-list { list-style: none; margin: 0; padding: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tm-trapl { overflow-y: auto; scrollbar-width: thin; }
.tm-list li { display: flex; align-items: center; gap: .5em; padding: .2em .3em; line-height: 1.15; border-bottom: 1px solid var(--tm-line); min-width: 0; flex: none; }
.tm-list li:last-child { border-bottom: 0; }
.tm-list time { font-variant-numeric: tabular-nums; color: var(--tm-muted); flex: none; font-size: var(--tm-fs-body); }
.tm-list .lv { border-radius: 999px; padding: .05em .55em; font-size: var(--tm-fs-body); font-weight: 700; white-space: nowrap; flex: none; min-width: 4.6em; text-align: center; }
.tm-list .a { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tm-list .a b, .tm-list .a small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-list .a small { color: var(--tm-muted); font-size: var(--tm-fs-body); }
.tm-list .fl { flex: none; font-weight: 700; color: #b91c1c; }
.tmuna.dark .tm-list .fl { color: #fca5a5; }
.tm-feedl li.new { animation: tmnew 3s ease-out; }
@keyframes tmnew { from { background: #c4b5fd88; } to { background: transparent; } }
.tm-trapl .n { flex: none; min-width: 2.1em; height: 2.1em; border-radius: .5em; background: #7f1d1d; color: #fff; display: grid; place-items: center; font-size: var(--tm-fs-num); font-weight: 700; }
.tm-trap h2 small { color: #b91c1c; font-weight: 700; }
.tmuna.dark .tm-trap h2 small { color: #fca5a5; }
.tmuna .empty { margin: .3em 0; }

/* средний экран (1366 и т.п.) — та же раскладка (шрифт сам меньше); узкие экраны — колонка */
/* ===== задание 11б: «🖥️ למסך שני» — окно ?view=matsav (js/masach.js): только экран, без шапки и карты */
.tm-acts .scr2 { background: #4f46e5; }
.tm-acts .scr2:hover { background: #6366f1; }
.tm-hint { position: absolute; z-index: 3; inset-inline: 0; bottom: 1.2em; margin: 0 auto; width: max-content; max-width: 92%;
  border: 0; border-radius: 999px; padding: .55em 1.4em; font: inherit; font-size: var(--tm-fs-h); background: #1f2937e6; color: #fff; box-shadow: 0 8px 30px #0005; cursor: pointer; }
.tm-hint b { color: #fde68a; }
.tmuna.dark .tm-hint { background: #e8eef7e6; color: #0b1220; }
.tmuna.dark .tm-hint b { color: #4338ca; }
body.matsav { background: #0b1220; }
body.matsav .top, body.matsav .main > *:not(.upd):not(#loading), body.matsav #board { display: none !important; }
body.matsav.ready #loading { display: none; }
body.matsav #loading { position: fixed; inset: 0; display: grid; place-items: center; font-size: 22px; background: #eef2f7; color: #0f172a; z-index: 60; }
.ms-wait { text-align: center; max-width: 36em; padding: 1em; } .ms-wait b { font-size: 1.4em; } .ms-wait p { margin: .6em 0 0; }
.scrdlg .scr-ask { background: #fef9c3; border: 1px solid #facc15; border-radius: 10px; padding: 10px 12px; }
.scrdlg p { margin: 0 0 10px; line-height: 1.5; }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) {
  .tmuna { --tm-u: 14px; overflow-y: auto; display: block; -webkit-overflow-scrolling: touch; }
  .tm-head { position: sticky; top: 0; z-index: 2; flex-wrap: wrap; gap: .4em .8em; padding: .5em .8em; }
  .tm-title { min-width: 0; font-size: var(--tm-fs-h); flex: 1 1 100%; }
  .tm-who { display: none; }
  .tm-clock { font-size: var(--tm-fs-num); margin-inline-start: 0; }
  .tm-upd { min-width: 0; font-size: var(--tm-fs-body); }
  .tm-net { font-size: var(--tm-fs-body); }
  .tm-acts { margin-inline-start: auto; }
  .tm-acts button { padding: .4em .55em; }
  .tm-acts #tmPrint, .tm-acts .scr2, .menu .scr2 { display: none !important; }
  .tm-hint { font-size: var(--tm-fs-body); bottom: .8em; }
  .tm-grid { display: flex; flex-direction: column; padding: .6em; }
  .tm-col { display: contents; }
  .tm-cards, .tm-c3 .tm-feed { contain: none; }
  .tm-city { order: 1; } .tm-cards { order: 2; } .tm-trap { order: 3; } .tm-feed { order: 4; } .tm-chart { order: 5; } .tm-map { order: 6; }
  .tm-cards { display: grid; grid-template-columns: 1fr; grid-template-rows: none; flex: none; }
  .tm-c3 .tm-feed, .tm-c3 .tm-trap, .tm-c1 .tm-city { flex: none; }
  .tm-trapl { max-height: none; }
  .tm-chart { height: 17em; flex: none; }
  .tm-map { height: 22em; flex: none; }
  .tm-lvs.big .tm-lv b { font-size: var(--tm-fs-kpi); }
}

/* печать: альбомный лист без кнопок, всегда светлый (класс tm-print ставит js/tmuna.js на время печати) */
@page { size: A4 landscape; margin: 8mm; }
body.tm-print .tmuna { position: fixed; inset: 0 auto auto 0; width: 281mm; height: 193mm; --tm-u: 10px; }
@media print {
  body.tm-on { display: block; overflow: visible; background: #fff; height: auto; }
  body.tm-on > *:not(#tm) { display: none !important; }
  body.tm-on .tmuna { position: static; width: 281mm; height: 193mm; --tm-u: 10px; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
  .tmuna, .tmuna.dark { --tm-bg: #fff; --tm-card: #fff; --tm-ink: #0f172a; --tm-muted: #475569; --tm-line: #cbd5e1; --tm-soft: #f1f5f9; --tm-head: #fff; --tm-headink: #0f172a;
    --tm-bar: #64748b; --tm-cur: #334155; --tm-lineC: #4f46e5; --tm-area: #4f46e51f; --tm-ring0: #e5e7eb; --tm-nodata: #e2e8f0; --tm-edge: #fff; }
  .tm-acts, body.tm-on .upd, .toast, .tm-hint { display: none !important; }
  .tm-head { border-bottom: 2px solid #0f172a; padding: .3em .2em .5em; }
  .tm-grid { padding: .6em 0 0; }
  .tm-card.flash { box-shadow: none; animation: none; }
  .tmuna * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- задание 13: «📄 דו״ח מצב» — страницы A4 книжные (раскладывает js/doch.js, мм); на экране не видно, в печати — только они */
@font-face { font-family: 'NZ Rubik'; src: url(fonts/Rubik-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'NZ Rubik'; src: url(fonts/Rubik-Medium.woff2) format('woff2'); font-weight: 500 600; font-display: block; }
@font-face { font-family: 'NZ Rubik'; src: url(fonts/Rubik-Bold.woff2) format('woff2'); font-weight: 700; font-display: block; }
.doch { --dk: #0f172a; --dm: #475569; --dl: #cbd5e1; --ds: #f1f5f9; --dz: #f6f8fb; --dn: #1e3a5f;
  position: fixed; top: 0; left: 0; width: 210mm; z-index: -1; visibility: hidden; pointer-events: none;
  font: 400 9.3pt/1.38 'NZ Rubik', var(--font); color: var(--dk); direction: rtl; background: #fff; }
.doch[hidden] { display: none; }
.doch * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-sizing: border-box; }
.doch .pg { width: 210mm; height: 296mm; padding: 10mm 13mm 8mm; display: flex; flex-direction: column; overflow: hidden; background: #fff; position: relative; }
.doch .pg + .pg { break-before: page; page-break-before: always; }
.doch .dh { display: flex; align-items: center; gap: 3mm; border-bottom: .7mm solid var(--dn); padding-bottom: 2mm; flex: none; }
.doch .dh img { width: 9mm; height: 9mm; }
.doch .dh-t { display: flex; flex-direction: column; line-height: 1.2; }
.doch .dh-t b { font-weight: 700; font-size: 10.5pt; color: var(--dn); }
.doch .dh-t small { color: var(--dm); font-size: 8.5pt; }
.doch .dh-l { margin-inline-start: auto; color: var(--dm); font-size: 8.5pt; text-align: left; }
.doch .plate { display: inline-block; padding: .6mm 3mm; border-radius: 1.2mm; font-weight: 700; font-size: 9pt; border: .3mm solid rgba(0,0,0,.25); }
.doch .plate.drill { background: #facc15; color: #1f2937; }
.doch .plate.real { background: #b91c1c; color: #fff; }
.doch .plate.big { font-size: 15pt; padding: 1.5mm 5mm; border-radius: 2mm; }
.doch .pg-b { flex: 1 1 auto; min-height: 0; overflow: hidden; padding-top: 4mm; }
.doch .df { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: .3mm solid var(--dl); padding-top: 1.6mm; font-size: 7.8pt; color: var(--dm); }
.doch .df .ver { text-align: left; }
.doch .df .warn { font-weight: 700; color: #92400e; letter-spacing: .02em; }
.doch .ic { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-inline-end: .2em; }
.doch .muted { color: var(--dm); }
.doch .small { font-size: 8pt; }
.doch .empty { padding: 3mm 0; font-size: 10pt; }
.doch h2.ds { margin: 0 0 3mm; font-size: 15pt; font-weight: 700; color: var(--dn); border-inline-start: 1.6mm solid var(--dn); padding-inline-start: 2.5mm; line-height: 1.2; }
.doch h2.ds small { font-size: 9pt; font-weight: 400; color: var(--dm); margin-inline-start: 2mm; }
.doch h3.tt { margin: 4mm 0 1.5mm; font-size: 10.5pt; font-weight: 700; display: flex; align-items: center; gap: 1.5mm; }
.doch h3.tt small { font-weight: 400; color: var(--dm); }
.doch .tw:first-child h3.tt { margin-top: 0; }
.doch .sw { display: inline-flex; align-items: center; gap: 1mm; }
.doch h2 .sw.l3, .doch h2 .sw.l2 { width: 4mm; height: 4mm; border-radius: .8mm; margin-inline-end: 2mm; vertical-align: -.3mm; }
.doch .sw.l3 { background: #dc2626; } .doch .sw.l2 { background: #f97316; }
/* таблицы: шапка тёмная, зебра, числа слева, строка не режется */
.doch table.dt { width: 100%; border-collapse: collapse; font-size: 8.6pt; }
.doch table.dt th { background: var(--dn); color: #fff; font-weight: 500; text-align: right; padding: 1.3mm 1.6mm; white-space: nowrap; }
.doch table.dt th .ic { filter: drop-shadow(0 0 .3mm #fff); }
.doch table.dt td { padding: 1.1mm 1.6mm; border-bottom: .2mm solid #e2e8f0; vertical-align: top; }
.doch table.dt tbody tr:nth-child(even) td { background: var(--dz); }
.doch table.dt tr { break-inside: avoid; page-break-inside: avoid; }
.doch table.dt .n { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doch table.dt th.n { text-align: left; }
.doch table.dt th.l3 { box-shadow: inset 0 -1mm 0 #dc2626; } .doch table.dt th.l2 { box-shadow: inset 0 -1mm 0 #f97316; }
.doch table.dt th.l1 { box-shadow: inset 0 -1mm 0 #eab308; } .doch table.dt th.l0 { box-shadow: inset 0 -1mm 0 #16a34a; }
.doch table.dt td.l3 { color: #b91c1c; font-weight: 700; } .doch table.dt td.l2 { color: #c2410c; font-weight: 500; }
.doch table.dt tr.tot td { background: #e2e8f0 !important; font-weight: 700; border-top: .5mm solid var(--dn); }
.doch table.dt td small { color: var(--dm); font-weight: 400; }
.doch table.dt td.note { color: #334155; font-size: 8pt; }
.doch table.dt td.ppl b { font-size: 10.5pt; color: #111827; }
.doch table.ttr tbody tr td { border-bottom-color: #cbd5e1; }
/* v16.11.2: «אזור סטטיסטי» — номер жирно, название мелко под ним */
.doch td.st small { display: block; font-size: .82em; line-height: 1.15; color: #475569; }
.doch table.tlog { font-size: 7.6pt; } .doch table.tlog td { padding: .7mm 1.3mm; } .doch table.tlog th { padding: 1mm 1.3mm; }
.doch .lvc { display: inline-block; padding: 0 1.6mm; border-radius: .8mm; font-size: .92em; font-weight: 500; white-space: nowrap; }
.doch .fg { white-space: nowrap; font-size: .95em; margin-inline-end: 1.2mm; }
/* обложка */
.doch .cover { display: flex; flex-direction: column; gap: 4.5mm; }
.doch .ct { display: flex; align-items: flex-start; justify-content: space-between; gap: 4mm; border-bottom: .3mm solid var(--dl); padding-bottom: 3mm; }
.doch .ct h1 { margin: 0; font-size: 34pt; font-weight: 700; line-height: 1; color: var(--dn); letter-spacing: -.01em; }
.doch .ct .cs { margin: 2mm 0 0; font-size: 13pt; color: #334155; }
.doch dl.meta { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2mm 5mm; }
.doch dl.meta div { border-inline-start: .8mm solid var(--dl); padding-inline-start: 2mm; }
.doch dl.meta dt { font-size: 7.8pt; color: var(--dm); }
.doch dl.meta dd { margin: 0; font-weight: 500; font-size: 10pt; }
.doch dl.meta dd small { color: var(--dm); font-weight: 400; }
.doch .hero { display: flex; align-items: center; gap: 8mm; background: var(--ds); border: .3mm solid var(--dl); border-radius: 2.5mm; padding: 4mm 6mm; }
.doch .donut .d1 { font: 700 19px 'NZ Rubik', var(--font); fill: var(--dk); }
.doch .donut .d2 { font: 400 9px 'NZ Rubik', var(--font); fill: var(--dm); }
.doch .hn { display: flex; flex-direction: column; gap: 2mm; flex: 1; }
.doch .hn .r1, .doch .hn .r2 { display: flex; align-items: center; gap: 4mm; }
.doch .hn span { font-size: 11pt; color: #334155; line-height: 1.3; }
.doch .hn b.big { font-size: 38pt; line-height: 1; color: var(--dk); }
.doch .hn b.pc { font-size: 26pt; line-height: 1; color: var(--dn); }
.doch .prog { height: 3mm; background: #e2e8f0; border-radius: 1.5mm; overflow: hidden; margin-top: 1mm; }
.doch .prog i { display: block; height: 100%; background: var(--dn); }
.doch .lvt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.doch .lvt > div { border: .3mm solid var(--dl); border-top: 2.2mm solid var(--c); border-radius: 1.5mm; padding: 2mm 3mm; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 2mm; }
.doch .lvt b { font-size: 24pt; line-height: 1.1; grid-row: span 2; }
.doch .lvt span { font-weight: 500; font-size: 10pt; }
.doch .lvt small { color: var(--dm); font-size: 8.5pt; }
.doch .lvt.sm b { font-size: 17pt; }
.doch .flt { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3mm; }
.doch .flt > div { border: .3mm solid var(--dl); border-radius: 1.5mm; padding: 2mm 3mm; display: flex; align-items: center; gap: 2mm; color: var(--dm); }
.doch .flt > div .ic { width: 6mm; height: 6mm; flex: none; }
.doch .flt > div > b { font-size: 18pt; color: var(--dk); }
.doch .flt > div span { font-size: 8.8pt; line-height: 1.25; }
.doch .flt > div.on { border-color: #94a3b8; background: #fff7ed; color: #1f2937; }
.doch .flt > div[data-f="trap"].on { background: #fef2f2; border: .5mm solid #b91c1c; }
.doch .exec { border: .5mm solid var(--dn); border-radius: 2mm; padding: 3mm 5mm; background: #f8fafc; }
.doch .exec h3, .doch .toc h3 { margin: 0 0 1.5mm; font-size: 11.5pt; color: var(--dn); }
.doch .exec ol { margin: 0; padding-inline-start: 5mm; display: grid; gap: 1.2mm; font-size: 10.2pt; line-height: 1.42; }
.doch .toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 8mm; font-size: 9pt; }
.doch .toc li { display: flex; align-items: baseline; gap: 1.5mm; break-inside: avoid; padding: .25mm 0; } /* 18.11: +1 строка оглавления */
.doch .toc li i { flex: 1; border-bottom: .3mm dotted #94a3b8; }
.doch .toc li b { font-variant-numeric: tabular-nums; }
/* карта */
.doch .mapbox { height: 150mm; border: .3mm solid var(--dl); border-radius: 2mm; background: #fbfdff; padding: 2mm; }
.doch .mapbox.own { height: 135mm; }
.doch svg.dmap { width: 100%; height: 100%; display: block; }
.doch svg.dmap .labs text { font-family: 'NZ Rubik', var(--font); font-weight: 700; fill: #0f172a; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.doch svg.dmap .labs text.oth { fill: #94a3b8; font-weight: 500; }
.doch svg.dmap .dt3 { fill: #7f1d1d; stroke: #fff; }
.doch svg.dmap .dtt { fill: #111827; stroke: #facc15; }
.doch .mlg { display: flex; flex-wrap: wrap; gap: 1.5mm 4mm; align-items: center; font-size: 8pt; color: var(--dm); margin: 2mm 0 1mm; }
.doch .mlg i { width: 4mm; height: 3mm; border-radius: .6mm; border: .2mm solid #94a3b8; display: inline-block; }
.doch .mlg i.d3 { width: 2.4mm; height: 2.4mm; border-radius: 50%; background: #7f1d1d; border: 0; }
.doch .mlg i.dt { width: 3mm; height: 3mm; border-radius: 50%; background: #111827; border: .5mm solid #facc15; }
/* страница хевеля */
.doch .hvtop { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 3mm; margin-bottom: 3mm; }
.doch .kp { border: .3mm solid var(--dl); border-radius: 1.5mm; padding: 2mm 3mm; display: flex; flex-direction: column; }
.doch .kp span { font-size: 8pt; color: var(--dm); }
.doch .kp b { font-size: 19pt; line-height: 1.15; }
.doch .kp small { font-size: 8pt; color: var(--dm); }
.doch .kp.worst b { font-size: 13pt; color: #b91c1c; }
.doch .lvbar { display: flex; height: 4mm; border-radius: 1mm; overflow: hidden; background: #e2e8f0; margin-bottom: 3mm; }
.doch .lvbar i { display: block; height: 100%; } .doch .lvbar i.none { flex: 1; }
.doch .pg-b > .flt, .doch .pg-b > .lvt { margin-bottom: 3mm; }
/* динамика */
.doch .kps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; margin-bottom: 4mm; }
.doch .kps .kp b { font-size: 15pt; }
.doch .chartbox { border: .3mm solid var(--dl); border-radius: 2mm; padding: 3mm 2mm 1mm; }
.doch svg.dchart { width: 100%; display: block; font-family: 'NZ Rubik', var(--font); }
.doch svg.dchart .lab { font-weight: 700; fill: var(--dn); }
.doch svg.dchart .t { fill: var(--dm); font-size: .85em; }
.doch svg.dchart .v { fill: var(--dk); font-size: .8em; font-weight: 500; }
.doch svg.dchart .g { stroke: #e2e8f0; stroke-width: .2; }
.doch svg.dchart .base { stroke: #64748b; stroke-width: .3; }
.doch svg.dchart .b { fill: #475569; }
.doch svg.dchart .line { fill: none; stroke: var(--dn); stroke-width: .6; stroke-linejoin: round; }
.doch svg.dchart .area { fill: #1e3a5f22; }
.doch svg.dchart .end { fill: var(--dn); }
@media print {
  body.doch-on { display: block !important; overflow: visible !important; height: auto !important; background: #fff !important; }
  html:has(body.doch-on) { height: auto !important; overflow: visible !important; background: #fff !important; }
  body.doch-on > *:not(#doch) { display: none !important; }
  body.doch-on.doch-on > #doch { display: block !important; position: static; visibility: visible; z-index: auto; }
}

/* ===== задание 15: тревоги Службы тыла (js/oref.js) — полоса над картой, контуры зон, лента, карточка ===== */
.mapwrap { --oref-h: 0px; }
.maptools { top: calc(10px + var(--oref-h)); }
.legend { top: calc(52px + var(--oref-h)); }
.lypanel { top: calc(8px + var(--oref-h)); max-height: min(760px, calc(100% - 16px - var(--oref-h))); }
.mapcorner { top: calc(8px + var(--oref-h)); }
.maphint { top: calc(12px + var(--oref-h)); }
.mapwrap .maplibregl-ctrl-top-left, .mapwrap .maplibregl-ctrl-top-right { top: var(--oref-h); }
body.loc-on .locbtn { top: calc(10px + var(--oref-h)); }
.oref { position: absolute; top: 0; inset-inline: 0; z-index: 7; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0;
  padding: 3px 12px; font-size: 13px; line-height: 1.25; background: #f8fafcf2; color: #334155; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 4px #0001; cursor: default; }
.oref[hidden] { display: none; }
.oref button { font: inherit; border: 1px solid #cbd5e1; background: #fff; color: inherit; border-radius: 999px; padding: 1px 10px; cursor: pointer; white-space: nowrap; }
.oref .or-feed b { background: #e11d48; color: #fff; border-radius: 999px; padding: 0 6px; font-size: .9em; }
.oref .or-ico { font-size: 1.15em; flex: none; }
.oref .or-kind { white-space: nowrap; }
.oref .or-none { color: var(--muted); }
.oref .or-conn { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .92em; margin-inline-start: auto; white-space: nowrap; }
.oref .or-conn i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none; }
.oref .or-conn.off { color: #92400e; font-weight: 700; }
.oref .or-conn.off i { background: #f59e0b; }
.oref.idle.off { background: #fffbeb; border-bottom-color: #fcd34d; }
.oref .or-real { background: #fff; color: #b91c1c; border: 2px solid #fff; border-radius: 6px; padding: 0 7px; font-size: .92em; white-space: nowrap; box-shadow: 0 0 0 1px #b91c1c; }
.oref.compact { background: #1e293bf2; color: #fff; border-bottom: 0; font-size: 14px; padding: 4px 12px; }
.oref.compact .or-zones { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 34%; }
.oref.compact .or-time { color: #fde68a; font-weight: 700; white-space: nowrap; }
.oref.compact .or-conn, .oref.big .or-conn { color: #e2e8f0; }
.oref.compact .or-conn.off, .oref.big .or-conn.off { color: #fde68a; }
.oref.compact button, .oref.big button { background: #ffffff1f; border-color: #ffffff66; color: #fff; }
.oref.big { --k: #b91c1c; display: block; background: var(--k); color: #fff; padding: 8px 16px 7px; font-size: 15px; border-bottom: 3px solid #fff; box-shadow: 0 4px 16px #7f1d1d66; cursor: pointer; }
.oref.big.k-earthquake { --k: #7c2d12; } .oref.big.k-tsunami { --k: #075985; } .oref.big.k-prealert { --k: #b45309; }
.oref.big.k-hazmat { --k: #854d0e; } .oref.big.k-radiological { --k: #3f6212; } .oref.big.k-infiltration { --k: #9f1239; }
.oref.big::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 #fff; animation: orPulse 1.6s ease-in-out infinite; }
@keyframes orPulse { 50% { box-shadow: inset 0 0 0 4px #ffffffaa; } }
@media (prefers-reduced-motion: reduce) { .oref.big::before { animation: none; } }
.oref.stale { filter: saturate(.35); }
.oref.stale::before { animation: none; }
.or-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.oref.big .or-ico { font-size: 34px; line-height: 1; }
.or-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.oref.big .or-kind { font-size: 26px; font-weight: 800; letter-spacing: .2px; white-space: normal; }
.oref.big .or-zones { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-side { display: flex; flex-direction: column; align-items: flex-end; text-align: end; flex: none; }
.oref.big .or-time { font-size: 20px; font-weight: 800; white-space: nowrap; }
.or-side small { font-size: 13px; opacity: .95; }
.or-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 13.5px; }
.or-do { background: #ffffff26; border-radius: 6px; padding: 1px 8px; }
.or-also { background: #0f172a66; border-radius: 6px; padding: 1px 8px; }
/* телефон / שטח — полоса компактная */
@media (max-width: 820px) {
  .oref { font-size: 12px; gap: 6px; padding: 3px 8px; }
  .oref .or-conn span { max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
  .oref.idle, .oref.compact { flex-wrap: nowrap; }
  .oref.idle .or-kind, .oref.idle .or-none { display: none; }
  .oref.idle .or-conn { margin-inline-start: 0; min-width: 0; flex: 1; }
  .oref.compact .or-conn span { display: none; }
  .oref.compact .or-kind { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .oref.compact .or-zones { display: none; }
  .oref.big { padding: 6px 10px 5px; font-size: 13px; }
  .oref.big .or-ico { font-size: 24px; }
  .oref.big .or-kind { font-size: 18px; }
  .oref.big .or-zones { font-size: 13px; }
  .oref.big .or-time { font-size: 15px; }
  .or-main { gap: 8px; }
  .or-sub { gap: 6px; margin-top: 3px; font-size: 12px; }
}
/* лента «שעה אחרונה» */
.oreffeed { position: absolute; top: calc(var(--oref-h) + 6px); inset-inline-end: 10px; z-index: 8; width: 400px; max-width: calc(100% - 20px); max-height: calc(100% - var(--oref-h) - 20px); overflow: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 32px #0004; padding: 0 0 6px; font-size: 14px; }
.oreffeed[hidden] { display: none; }
.oreffeed.sheet { position: fixed; inset: auto 0 0 0; top: auto; width: auto; max-width: none; max-height: 70vh; border-radius: 18px 18px 0 0; z-index: 61; }
.of-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.of-h b { flex: 1; }
.of-x { border: 0; background: #f1f5f9; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; flex: none; }
.oreffeed h4 { margin: 8px 14px 2px; font-size: 12.5px; color: var(--muted); }
.oreffeed ol { list-style: none; margin: 0; padding: 0 8px; }
.oreffeed li { display: flex; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid #f1f5f9; border-inline-start: 4px solid transparent; }
.oreffeed li.loc { border-inline-start-color: var(--c); background: #fff1f2; }
.oreffeed li.loc .a b { color: color-mix(in srgb, var(--c) 72%, #000); } /* 17.11: оранжевый/малиновый на розовом < 4,5 */
.oreffeed li time { font-variant-numeric: tabular-nums; color: var(--muted); flex: none; }
.oreffeed li .i { flex: none; }
.oreffeed li .a { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.oreffeed li .a small { color: #475569; }
.oreffeed li .s { flex: none; font-size: 12px; color: var(--muted); }
.oreffeed li.on .s b { color: #b91c1c; }
.oreffeed .muted { padding: 10px 14px; margin: 0; }
.of-f { margin: 8px 14px 4px; font-size: 12px; line-height: 1.5; }
.of-f .off, .oc-f .off { color: #b45309; font-weight: 700; }
/* карточка зоны */
.orefcard { position: fixed; z-index: 55; width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px #0004; font-size: 14px; overflow: hidden; }
.orefcard[hidden] { display: none; }
.orefcard.sheet { inset: auto 0 0 0; width: auto; border-radius: 18px 18px 0 0; z-index: 61; }
.oc-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 5px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.oc-h .i { font-size: 26px; }
.oc-h .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.oc-h .t b { font-size: 16.5px; }
.oc-h .t small { color: var(--muted); }
.oc-dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 14px 6px; }
.oc-dl dt { color: var(--muted); }
.oc-dl dd { margin: 0; display: flex; flex-direction: column; }
.oc-dl dd small { color: #475569; }
.oc-desc { margin: 4px 14px; font-size: 13px; color: #334155; }
.oc-f { margin: 6px 14px 12px; font-size: 12.5px; line-height: 1.5; }
.oc-f .or-real { color: #b91c1c; border: 1px solid #b91c1c; border-radius: 6px; padding: 0 6px; margin-inline-end: 6px; }
/* выключатель в «שכבות» */
/* v17.11.3 «רקע: מפה · צילום אוויר» сверху панели «שכבות» */
.ly-bm { display: flex; align-items: center; gap: 6px; margin: 6px 12px 0; flex-wrap: wrap; }
.ly-bm-t { font-weight: 700; color: #334155; font-size: 13px; }
.ly-bm button { border: 1px solid #cbd5e1; background: #fff; color: #1e293b; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.ly-bm button.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; font-weight: 700; }
.ly-bm button:disabled { opacity: .45; cursor: not-allowed; }
.ly-bm small { color: var(--muted); font-size: 11.5px; margin-inline-start: auto; }
/* 17.11 осмотр: панель «שכבות» в «לילה» светлая — подпись «רקע:» тёмная, как в остальных видах (была #cbd5e1, контраст 1,4) */
body.look-a .ly-bm button:not(.on) { background: #0f172a; color: #e2e8f0; border-color: #334155; }
.ly-oref { display: flex; align-items: center; gap: 8px; margin: 6px 12px 2px; padding: 8px 10px; border: 1px solid #fecdd3; background: #fff1f2; border-radius: 10px; cursor: pointer; }
.ly-oref[hidden] { display: none; }
.ly-oref input { accent-color: #e11d48; width: 17px; height: 17px; }
.ly-oref .ly-name { font-weight: 700; color: #9f1239; }
.ly-oref small { color: var(--muted); margin-inline-start: auto; font-size: 11.5px; }
/* «תמונת מצב» — блок тревог за час */
.tm-c3 .tm-oref { flex: 0 1 auto; max-height: 15em; }
.tm-oref[hidden] { display: none !important; }
.tm-oref h2 small.on { color: #fff; background: #dc2626; border-radius: .4em; padding: 0 .4em; font-weight: 700; }
.tm-oref.live { border-color: #dc2626; }
.tm-orefl li { border-inline-start: .3em solid transparent; }
.tm-orefl li.loc { border-inline-start-color: var(--c); }
.tm-orefl li.loc .a b { color: color-mix(in srgb, var(--c) 72%, #000); }
.tmuna.dark .tm-orefl li.loc .a b { color: color-mix(in srgb, var(--c) 70%, #fff); }
.tm-oref .tm-of { margin: .3em 0 0; font-size: var(--tm-fs-body); color: var(--tm-muted); }
/* «דו״ח מצב» */
.doch table.dt.tor tr.loc td { background: #fff1f2; }
.tmuna .tm-oref > h2 { font-size: var(--tm-fs-h); display: flex; flex-wrap: wrap; align-items: center; gap: .2em .5em; white-space: normal; }
.tm-oref h2 small.on { white-space: nowrap; font-size: var(--tm-fs-body); }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) { .tm-oref { order: 3; flex: none; max-height: none; } }

/* ===== задание 16: «📲 התקינו את מפת נזקים בטלפון» — строка сетки между картой и нижними кнопками (не поверх карты и кнопок) ===== */
.inst { --inst-ok: 1; display: none; }
.inst-step { display: inline-flex; align-items: center; gap: 3px; background: #fff; border: 1px solid #bfdbfe; border-radius: 7px; padding: 0 6px; white-space: nowrap; font-weight: 600; line-height: 1.6; }
.inst-i { width: 17px; height: 17px; fill: none; stroke: #1d4ed8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 820px) {
  .main { grid-template-rows: minmax(0, 1fr) auto auto auto; grid-template-areas: "map" "inst" "board" "panel"; }
}
body.field .main { grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "map" "inst" "sheet"; }
.inst:not([hidden]) { grid-area: inst; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #eff6ff; border-top: 2px solid #3b82f6;
  box-shadow: 0 -4px 12px #0001; position: relative; z-index: 3; min-width: 0; }
body.has-sheet .inst, body.has-panel .inst, body.has-board .inst { display: none !important; } /* открыт лист / панель / «לוח חבלים» — карточка ждёт */
.inst-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.inst-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.inst-txt b { font-size: 15px; }
.inst-txt span { font-size: 13px; color: #1e40af; }
.inst-how { margin: 5px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.inst-how[hidden] { display: none; }
.inst-acts { display: flex; flex-direction: column; gap: 4px; flex: none; align-items: stretch; }
.inst-go { background: #1d4ed8; color: #fff; border: 0; border-radius: 10px; padding: 9px 18px; font: 700 16px/1.2 var(--font); }
.inst-go[hidden] { display: none; }
.inst-later { background: none; border: 0; color: #475569; font-size: 13.5px; padding: 4px 6px; text-decoration: underline; }
.instdlg .inst-how { font-size: 15px; gap: 6px; }
.instdlg h3 { margin: 14px 0 4px; }
#instBtn:disabled { opacity: .7; cursor: default; }

/* ===== задание 17А → 18: лист дома на телефоне (js/sheet.js) — сначала свёрнут (адрес + 4 уровня), вверх — большой ===== */
.sh-grip { display: none; }
@media (max-width: 820px) {
  .main { position: relative; }
  .panel { max-height: 55vh; max-height: 55dvh; }
  .panel .sh-grip { display: flex; margin: -14px -16px 2px; top: -14px; }
}
body.field .main { position: relative; }
body.field .fsheet { max-height: 55vh; max-height: 55dvh; }
body.field .fsheet .sh-grip { display: flex; margin: -12px -14px 2px; top: -12px; }
.sh-grip { position: sticky; z-index: 4; padding: 7px 0 5px; flex-direction: column; align-items: center; gap: 1px; background: var(--card);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: inherit; }
.sh-grip i { display: block; width: 46px; height: 5px; border-radius: 3px; background: #cbd5e1; }
.sh-grip:active i, .sh-drag .sh-grip i { background: #64748b; }
.sh-grip:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.sh-lbl { font-size: 12.5px; color: #475569; font-weight: 700; line-height: 1.2; }
.sh-lbl:empty { display: none; }
.panel > .close, .fsheet > .close { z-index: 5; }
.panel h2, .fsheet h2 { touch-action: none; }
@media (min-width: 821px) { body:not(.field) .panel h2 { touch-action: auto; } }
/* тянут — высота по пальцу (её ставит js/sheet.js) */
.sh-drag { max-height: none !important; transition: none; }
/* большой: до «высота под шапкой − полоска карты» (--sh-max ставит js/sheet.js), «שמור» прибит к низу экрана */
.panel.sh-big, .fsheet.sh-big { max-height: var(--sh-max, 80dvh) !important; }
.sh-big .save { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -10px 0 2px var(--card), 0 -16px 14px -6px #0002; }
.sh-big .save:disabled { box-shadow: 0 -10px 0 2px var(--card); }
.fsheet.sh-big { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.fsheet.sh-big .fadd { margin: 8px 0 6px; }
.fsheet.sh-big .levels.flv button { padding: 14px 6px; font-size: 19px; }
/* свёрнут: адрес + кнопки уровней в ряд (+ «שמור», когда уровень выбран) */
.sh-min > :not(.sh-grip):not(h2):not(.levels):not(.close):not(.save):not(.vulline) { display: none !important; }
.sh-min .save:disabled { display: none; }
.sh-min .levels.levels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.sh-min .levels.levels button { padding: 12px 2px; font-size: 15.5px; border-radius: 12px; }
.sh-min .save { margin-top: 8px; padding: 12px; font-size: 18px; }
/* ===== задание 17Б: карта страны — «🏠 חזרה לחיפה», точка тревоги «מיקום משוער» ===== */
/* задание 20: на 18 px выше — в одном ряду с «📍», над подписью «OpenStreetMap · Protomaps» (раньше касалась её), 44 px под палец */
.backhaifa { position: absolute; z-index: 4; bottom: 52px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 11px 20px; min-height: 44px;
  background: #0f172a; color: #fff; font: 700 16px/1.2 var(--font); box-shadow: 0 6px 20px #0f172a55; cursor: pointer; white-space: nowrap; }
.backhaifa[hidden] { display: none; }
.backhaifa:hover { background: #1e293b; }
.backhaifa .bh-m { display: none; }
.backhaifa .bh-i { margin-inline-end: 6px; }
/* 15.11 (v15.11.4): телефон — постоянная кнопка «🏠 כל העיר» того же вида, что «📍» (белая, 44 px, тень), в одном ряду с ней,
   слева от неё; видна всегда — без ожидания конца движения карты и без анимации. Нет «📍» — на её месте. */
@media (max-width: 820px) {
  #backHaifa.backhaifa { left: auto; right: 62px; bottom: 40px; transform: none; min-height: 44px; height: 44px; padding: 0 14px 0 12px;
    display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0f172a; border: 1px solid #cbd5e1; box-shadow: 0 2px 8px #0003;
    font: 700 15px/1 var(--font); transition: none; animation: none; }
  #backHaifa.backhaifa[hidden] { display: none; }
  body:not(.loc-on) #backHaifa.backhaifa { right: 10px; }
  .backhaifa .bh-t { display: none; }
  .backhaifa .bh-m { display: inline; }
  .backhaifa .bh-i { margin: 0; font-size: 19px; line-height: 1; }
  #backHaifa.backhaifa:hover, #backHaifa.backhaifa:active { background: #f1f5f9; }
  /* v16.11.18 (Алексей 19:30 «ата овед бе хевель…», не больше прежнего): свой хевель — две строки в тех же 44 px, шрифт мельче */
  #backHaifa.backhaifa.own { padding: 0 12px 0 10px; }
  #backHaifa.own .bh-m { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
  #backHaifa.own .bh-m small { font: 600 10.5px/1.1 var(--font); color: var(--muted); }
  #backHaifa.own .bh-m b { font: 700 14px/1.1 var(--font); }
}
.oc-est { margin: 4px 14px 6px; font-size: 13.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 5px 9px; }

/* ===== задание 17Б — «вау»-вид (меню «🎨 מראה המפה»): b — «בהיר», a — «לילה מבצעי». Размеры и раскладка — прежние, меняются цвет, стекло, тени. ===== */
body.look-b { --glass: rgba(255, 255, 255, .84); --glass-ink: #0f172a; --glass-line: rgba(15, 23, 42, .09); --glass-hover: rgba(255, 255, 255, .97);
  --glass-shadow: 0 8px 24px rgba(15, 23, 42, .16), 0 1px 3px rgba(15, 23, 42, .1); --hdr: linear-gradient(100deg, #0a1020 0%, #121d3b 52%, #1c3270 100%);
  --hdr-btn: rgba(255, 255, 255, .1); --hdr-btn-line: rgba(255, 255, 255, .16); --sheet-shadow: 0 -10px 34px rgba(15, 23, 42, .2); --bg: #e9eef4; }
body.look-a { --glass: rgba(12, 20, 36, .8); --glass-ink: #e6eefa; --glass-line: rgba(148, 163, 184, .24); --glass-hover: rgba(22, 34, 58, .92);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 1px rgba(96, 165, 250, .08); --hdr: linear-gradient(100deg, #03060d 0%, #081224 55%, #0d1d3d 100%);
  --hdr-btn: rgba(148, 163, 184, .12); --hdr-btn-line: rgba(148, 163, 184, .22); --sheet-shadow: 0 -10px 34px rgba(0, 0, 0, .45); --bg: #0a1120; }
:is(body.look-a, body.look-b) .top { background: var(--hdr); }
:is(body.look-a, body.look-b) .brand b { letter-spacing: .3px; text-shadow: 0 1px 10px rgba(96, 165, 250, .35); }
:is(body.look-a, body.look-b) .search input { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 10px rgba(0, 0, 0, .18); }
:is(body.look-a, body.look-b) :is(.menubtn, .boardbtn) { background: var(--hdr-btn); box-shadow: inset 0 0 0 1px var(--hdr-btn-line); border-radius: 10px; }
:is(body.look-a, body.look-b) :is(.menubtn, .boardbtn):hover { background: rgba(255, 255, 255, .18); }
:is(body.look-a, body.look-b) .boardbtn.on { background: linear-gradient(135deg, #7e22ce, #6d28d9); }
:is(body.look-a, body.look-b) .cnt { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 4px rgba(0, 0, 0, .25); }
/* кнопки на карте — «стекло» */
:is(body.look-a, body.look-b) :is(.maptools label, .maptools button, .mapcorner button, .legend, .locbtn, .maplibregl-ctrl-group, .maplibregl-ctrl-attrib, .maplibregl-ctrl-scale) {
  background: var(--glass) !important; color: var(--glass-ink); border: 1px solid var(--glass-line) !important; box-shadow: var(--glass-shadow) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
:is(body.look-a, body.look-b) :is(.maptools label, .maptools button) { border-radius: 12px; font-weight: 600; }
:is(body.look-a, body.look-b) :is(.mapcorner .lybtn, .mapcorner .d3btn) { border-radius: 12px; }
:is(body.look-a, body.look-b) .mapcorner :is(.lybtn, .d3btn, .d3cmp) { color: var(--glass-ink); }
@media (hover: hover) { :is(body.look-a, body.look-b) :is(.maptools label, .maptools button, .mapcorner button:not([aria-pressed="true"])):hover { background: var(--glass-hover) !important; } }
:is(body.look-a, body.look-b) .legend { border-radius: 12px; }
:is(body.look-a, body.look-b) .lg-h { color: var(--glass-ink); }
:is(body.look-a, body.look-b) .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; }
body.look-a .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
body.look-a .maplibregl-ctrl-group button + button { border-top-color: var(--glass-line); }
body.look-a .maplibregl-ctrl-attrib a, body.look-a .maplibregl-ctrl-scale { color: #cbd5e1 !important; }
body.look-a .maplibregl-ctrl-scale { border-color: #94a3b8 !important; }
:is(body.look-a, body.look-b) .locbtn { border-radius: 999px; font-weight: 700; }
/* v15.11.6–7: «תלת ממד» включено — синяя, белый текст, поверх «стекла» (и его наведения) */
:is(body.look-a, body.look-b) .mapcorner .d3btn.d3btn[aria-pressed="true"] { background: #3446a8 !important; color: #fff !important; border-color: #26357f !important; }
body.look-a .d3cmp .needle .s { fill: #64748b; }
:is(body.look-a, body.look-b) .mapcorner .lybtn.on { border-color: #3446a8 !important; box-shadow: inset 0 0 0 1px #3446a8, var(--glass-shadow) !important; }
:is(body.look-a, body.look-b) .backhaifa { background: linear-gradient(135deg, #1d4ed8, #4338ca); box-shadow: 0 10px 28px rgba(29, 78, 216, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
/* листы и панель дома */
:is(body.look-a, body.look-b) :is(.fsheet, .panel, .board, .fbar) { box-shadow: var(--sheet-shadow); }
@media (max-width: 820px) { :is(body.look-a, body.look-b) :is(.panel, .board) { border-radius: 22px 22px 0 0; } }
body.field:is(.look-a, .look-b) .fsheet { border-radius: 22px 22px 0 0; }
:is(body.look-a, body.look-b) .sh-grip i { width: 52px; background: linear-gradient(90deg, #cbd5e1, #94a3b8, #cbd5e1); }
:is(body.look-a, body.look-b) .levels button { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 3px 10px rgba(15, 23, 42, .14);
  transition: transform .12s ease, box-shadow .12s ease; }
:is(body.look-a, body.look-b) .levels button:active { transform: translateY(1px) scale(.985); }
:is(body.look-a, body.look-b) .levels button.on { border-color: #0f172a; box-shadow: 0 0 0 3px #fff inset, 0 0 0 3px rgba(29, 78, 216, .35), 0 6px 16px rgba(15, 23, 42, .25); }
:is(body.look-a, body.look-b) .save:not(:disabled) { background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #4338ca); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
:is(body.look-a, body.look-b) .fmark { background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #4338ca); box-shadow: 0 8px 22px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
:is(body.look-a, body.look-b) .marks li { transition: background .15s; }
/* тёмный вариант: фон под картой и пустые места — тёмные (карта не «мигает» белым при загрузке) */
body.look-a .mapwrap, body.look-a #map { background: #0a1120; }
body.look-a .loading { color: #cbd5e1; }
body.look-b .mapwrap, body.look-b #map { background: #e9eef3; }

.sh-min h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== задание 18: «📍 המיקום שלי» — круглая кнопка-мишень 44 px у края карты (как в Google Maps), без надписи ===== */
body.loc-on .locbtn.locbtn { display: grid; place-items: center; position: absolute; top: auto; bottom: 40px; right: 10px; left: auto; z-index: 2;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; color: #475569; border: 1px solid #cbd5e1; box-shadow: 0 2px 8px #0003; cursor: pointer; }
.locbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.locbtn svg .dot { fill: currentColor; stroke: none; opacity: 0; }
body.loc-on .locbtn[aria-pressed="true"] { color: #1a73e8; border-color: #1a73e8; }
.locbtn[aria-pressed="true"] svg .dot { opacity: 1; }
.locbtn:focus-visible { outline: 3px solid #1a73e888; outline-offset: 2px; }
/* пункт меню — первым, с состоянием словами */
.menu .mg > label.locitem { font-weight: 600; background: #eff6ff; border-color: #bfdbfe; }
.locitem .loc-st { margin-inline-start: auto; font-weight: 700; border-radius: 999px; padding: 1px 10px; font-size: 13.5px; background: #e2e8f0; color: #475569; }
.locitem .loc-st.on { background: #1a73e8; color: #fff; }
/* ===== задание 20: «לצאת בלי לשמור?» ===== */
.leavedlg { max-width: min(440px, calc(100vw - 24px)); }
.leavedlg #leaveText { margin: 4px 0 12px; font-size: 16.5px; line-height: 1.45; }

/* ===== v15.11.8: «איך הבניין נראה באמת» — ссылки в карточке дома (realview.js) ===== */
.rview { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.rv-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rv-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 7px 8px;
  border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; color: #1e3a8a; text-decoration: none; font-weight: 600; font-size: 14px; text-align: center; line-height: 1.2; }
.rv-btn:hover { background: #e0e7ff; }
.rv-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.rv-btn .rv-off { display: none; font-weight: 400; font-size: 12px; }
.rv-btn.off { background: #f1f5f9; border-color: var(--line); color: #94a3b8; cursor: not-allowed; }
.rv-btn.off .rv-off { display: block; color: var(--muted); }
.fsheet .rv-btn { min-height: 48px; font-size: 15px; }

/* v15.11.9: высота дома в карточке — «N קומות (ידני/משוער)» */
.hgt { margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }

/* ===== 16.11 (Алексей 08:08, после показа начальству): v16.11.2 ===== */
/* меню: «⚙️ + имя» — пилюля с обводкой (не похожа на фильтр списка под ней) */
body .menubtn.menubtn { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); border-radius: 999px; padding: 5px 14px 5px 12px; font-weight: 600; }
body .menubtn.menubtn:hover, body .menubtn.menubtn[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.menubtn .mb-ico { font-size: 16px; }
/* меню группами: заголовок группы, строки одной высоты, без пустот; длинное меню — прокрутка внутри, не за край экрана */
.menu { width: min(340px, calc(100vw - 16px)); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; gap: 2px; }
.mg { display: flex; flex-direction: column; gap: 3px; }
.mg + .mg { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 2px; }
.mg-h { font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 4px 1px; letter-spacing: .3px; }
.menu .mg > label.lookpick select { flex: 1; min-width: 0; height: 30px; margin-inline-start: auto; }
.menu .mg > button.mg-end { background: #c2410c; border-color: #9a3412; color: #fff; font-weight: 800; }
.menu .mg > button.mg-end:hover { background: #9a3412; }
.menu .mg > button#endRealBtn { background: #dc2626; border-color: #b91c1c; }
.menu .mg > button#endRealBtn:hover { background: #b91c1c; }
.menu .lg-b { flex: none; }
/* фильтр списка — явно фильтр, маленький, внутри панели */
.list-head { padding: 12px 12px 8px; gap: 8px; }
.fltpick { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: #475569; background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 0 2px 0 7px; height: 26px; white-space: nowrap; flex: none; cursor: pointer; }
.fltpick select, .list-head .fltpick select { border: 0; background: transparent; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 0 2px; height: 24px; border-radius: 4px; cursor: pointer; }
.fltpick:has(select:focus-visible) { outline: 2px solid var(--acc); outline-offset: 1px; }
/* «לוח חבלים»: «📺 תמונת מצב» — заметная кнопка с подписью рядом с заголовком; «🏙️ כל העיר» / «↩ חזרה לחבל שלי» */
.bd-tm { border: 0; border-radius: 8px; padding: 3px 12px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7e22ce, #6d28d9); box-shadow: 0 2px 6px #6d28d955; white-space: nowrap; flex: none; }
.bd-tm:hover { background: linear-gradient(135deg, #6b21a8, #5b21b6); }
.bd-city { border: 1px solid #c4b5fd; background: #faf5ff; color: #5b21b6; border-radius: 8px; padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.bd-city:hover { background: #ede9fe; }
.maptools #homeBtn { gap: 5px; }
/* свой хевель подробно (חמ״ל хевеля) */
.bd-tiles.ownmode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: visible; } /* 18.11: без соседних хавалим */
.bd-own { display: grid; grid-template-columns: 250px repeat(3, minmax(0, 1fr)); gap: 8px; border: 2px solid #7e22ce; border-radius: 12px; background: #faf5ff; padding: 7px; height: 196px; min-width: 0; }
.bd-own section { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.bd-own h4 { margin: 0 0 4px; font-size: 13.5px; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; flex: none; }
.bd-own h4 small { color: var(--muted); font-weight: 600; }
.bd-own h4 .mine { background: #ede9fe; color: #5b21b6; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700; }
.bo-top { display: flex; gap: 8px; align-items: center; }
.bo-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bo-top .donut { width: 58px; height: 58px; }
.bo-lvs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.bo-lv { border-inline-start: 4px solid var(--c); background: #f8fafc; border-radius: 6px; padding: 1px 5px; font-size: 11px; color: #475569; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; }
.bo-lv b { font-size: 17px; color: var(--ink); line-height: 1.15; }
.bo-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
.bo-list li { display: flex; gap: 6px; align-items: baseline; padding: 3px 2px; border-bottom: 1px solid #f1f5f9; font-size: 13px; min-width: 0; }
.bo-list li[data-b] { cursor: pointer; }
.bo-list li[data-b]:hover { background: #f5f3ff; }
.bo-list li > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.bo-list li > span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; margin-inline-start: auto; flex: none; }
.bo-list li.trap > span:last-child { color: #b91c1c; font-weight: 700; }
.bo-list li.nb > b { color: #475569; }
.bo-list .lv { border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700; flex: none; }
.bd-others { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.tile.mini { flex: none; min-width: 0; padding: 5px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; font-size: 12.5px; align-items: center; }
.tile.mini > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.mini .bar { grid-column: 1 / -1; height: 6px; grid-row: 2; }
.tile.mini .t2 { font-size: 12px; grid-row: 1; grid-column: 2; }
.tile.mini .t3 { font-size: 11.5px; min-height: 0; grid-column: 1 / -1; }
.tile.mini .t3:empty { display: none; }
@media (max-width: 820px) {
  .bd-head { flex-wrap: wrap; row-gap: 6px; }
  .bd-tiles.ownmode { grid-template-columns: minmax(0, 1fr); }
  .bd-own { grid-template-columns: minmax(0, 1fr); height: auto; }
  .bd-own section { max-height: 230px; }
  .bo-list li { font-size: 14px; padding: 6px 2px; }
  .menu .mg > button, .menu .mg > label { height: 42px; min-height: 42px; }
}
/* «📺 תמונת מצב»: кликабельные карточки / строки, вид хевеля */
.tm-acts .tm-citybtn { background: #7c3aed; }
.tm-acts .tm-citybtn:hover { background: #8b5cf6; }
.tm-card { cursor: pointer; }
.tm-card:hover, .tm-card:focus-visible { box-shadow: 0 0 0 .18em var(--tm-lineC), 0 2px 8px #0f172a2e; outline: none; }
.tm-card .go { margin-inline-start: auto; color: var(--tm-muted); font-weight: 700; }
.tmuna .tm-list li[data-b] { cursor: pointer; }
.tmuna .tm-list li[data-b]:hover, .tmuna .tm-list li[data-b]:focus-visible { background: var(--tm-soft); outline: none; }
.tmuna .tm-list li.hl { background: #fef3c7; box-shadow: inset 0 0 0 .15em #f59e0b; }
.tmuna.dark .tm-list li.hl { background: #78350f; }
.tm-mapsvg .hv[data-h], .tm-mapsvg circle[data-b] { cursor: pointer; }
.tm-mapsvg .hv[data-h]:hover { opacity: .8; }
.tm-hvmap .oth { fill: var(--tm-nodata); opacity: .5; }
.tm-hvmap .me { fill: var(--tm-soft); stroke: #7c3aed; stroke-width: calc(var(--sw) * 1.6); }
.tm-hvmap .dot { stroke: var(--tm-card); stroke-width: calc(var(--sw) * .45); }
.tm-hvmap .dt { fill: #7f1d1d; stroke: #fff; stroke-width: calc(var(--sw) * .8); }
.tm-hvmap .nx { fill: none; stroke: #7c3aed; stroke-width: calc(var(--sw) * .9); }
.tm-maplg .d.nx { background: none; border: 2px solid #7c3aed; box-sizing: border-box; }
.tm-cards.tm-hv { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.tm-blk { background: var(--tm-card); border: 2px solid var(--tm-line); box-shadow: 0 2px 8px #0f172a2e; border-radius: .8em; padding: .6em .9em; min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.tmuna.dark .tm-blk { box-shadow: 0 0 0 1px #00000080, 0 3px 10px #000000a0; }
.tm-blk h3 { margin: 0 0 .35em; font-size: var(--tm-fs-h); font-weight: 700; border-bottom: 2px solid var(--tm-line); padding-bottom: .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.tm-blk h3 small { font-size: var(--tm-fs-body); color: var(--tm-muted); font-weight: 600; }
.tm-rank .rk { flex: none; width: 1.55em; height: 1.55em; border-radius: 50%; background: #e11d48; color: #fff; display: grid; place-items: center; font-size: var(--tm-fs-body); }
.tm-nb { margin: .35em 0 0; display: flex; flex-wrap: wrap; gap: .15em .9em; font-size: var(--tm-fs-body); }
.tm-nb small { color: var(--tm-muted); }
.tm-next li .a small { color: var(--tm-muted); }
.tm-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; }
.tm-kv li { display: flex; justify-content: space-between; align-items: baseline; background: var(--tm-soft); border-radius: .4em; padding: .2em .6em; font-size: var(--tm-fs-body); }
.tm-kv b { font-size: var(--tm-fs-num); font-variant-numeric: tabular-nums; }
.tm-roads { margin: .35em 0 0; font-size: var(--tm-fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-note { font-size: var(--tm-fs-body); margin: auto 0 0; padding-top: .3em; }
.tm-zones { display: flex; flex-wrap: wrap; gap: .3em; margin: 0 0 .4em; }
.tm-zones span { background: var(--tm-soft); border-radius: 999px; padding: .05em .6em; font-size: var(--tm-fs-body); }
.tm-suboref.live { border-color: #dc2626; }
.tm-flagl .n.inj { background: #fde68a; color: #1f2937; font-size: var(--tm-fs-num); }
.tm-flagl .n.haz { background: #fed7aa; color: #1f2937; font-size: var(--tm-fs-num); }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) {
  .tm-cards.tm-hv { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tm-blk { max-height: 22em; }
  .tm-acts .tm-citybtn { order: -1; }
}

/* v16.11.6 — «מוסדות רגישים»: крупный значок у адреса, имя учреждения, строка карточки, «לוח חבלים» */
.vulb { font-size: 22px; line-height: 1; flex: none; margin-inline-end: auto; margin-inline-start: 4px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.m1 > b { min-width: 0; }
.m5 { font-size: 12.5px; font-weight: 700; color: #0e7c74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marks li.vulhit { background: #fff7ed; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.marks li.vulhit.trap { background: #fef2f2; }
.vulline { margin: 2px 0 6px; padding: 6px 10px; border-radius: 10px; background: #ecfeff; border: 1px solid #99f6e4; font-size: 16px; line-height: 1.35; color: #134e4a; display: flex; flex-direction: column; gap: 2px; }
.vulline[hidden] { display: none; }
.vulline .vl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vulline .ve { font-size: 20px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.vulline .more { font-size: 13px; color: var(--muted); }
.sh-min .vulline { margin: 0 0 4px; padding: 3px 8px; font-size: 14px; }
.sh-min .vulline .vl:not(:first-child) { display: none; }
.t4.vulc { display: block; font-size: 12px; font-weight: 700; color: #0e7c74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } /* 17.11: в одну строку, число первым */
.tile.mini .t4.vulc { grid-column: 1 / -1; font-size: 11.5px; }
.bd-own:has(.bo-vul) { grid-template-columns: 250px repeat(4, minmax(0, 1fr)); }
/* 17.11 (осмотр): חמ״ל хевеля на 1366/1440 — 5 колонок по ~100 px, адреса в списках срезались до одной буквы.
   Узко (место под «לוח חבלים» < 1350 px) — сводка слева на две строки, списки 2×2; телефон/планшет стоя — одна колонка */
.bd-tiles.ownmode { container: bdown / inline-size; }
@container bdown (max-width: 1350px) {
  .bd-own, .bd-own:has(.bo-vul) { grid-template-columns: 230px repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: 250px; }
  .bd-own > :first-child { grid-row: 1 / span 2; }
}
@media (max-width: 820px) { .bd-own, .bd-own:has(.bo-vul) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; } .bd-own > :first-child { grid-row: auto; } }
.bo-vul { border-color: #99f6e4 !important; }
.bo-list li .vulb { font-size: 17px; margin: 0; }
.bo-list li.vulhit > span:last-child i { font-style: normal; font-weight: 700; }
.doch .ve { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }

/* 16.11 (Алексей): пустое имя на входе — подсветка, чтобы его не пропускали */
.login .namefield small { font-weight: 400; color: var(--muted); font-size: 13px; }
.login .namefield input.need { border: 2px solid #f97316; background: #fff7ed; box-shadow: 0 0 0 4px rgba(249, 115, 22, .22); animation: nzNeed 1.6s ease-in-out infinite; }
@keyframes nzNeed { 50% { box-shadow: 0 0 0 7px rgba(249, 115, 22, .08); } }
@media (prefers-reduced-motion: reduce) { .login .namefield input.need { animation: none; } }

/* v16.11.10: ⚠ / 🩹 / 🔥 в «אחרונים» — три постоянные колонки, ровно под друг другом */
.tm-list .fl3 { flex: none; display: grid; grid-template-columns: 3.4em 1.5em 1.5em; align-items: center; font-weight: 700; color: #b91c1c; }
.tm-list .fl3 i { font-style: normal; text-align: center; white-space: nowrap; cursor: default; }
.tm-list .fl3 .f3t { text-align: start; }
.tmuna.dark .tm-list .fl3 { color: #fca5a5; }


/* 16.11: запасной адрес в подсказках поиска — «= адрес мэрии» */
#sugg .alias { color: #0f766e; font-weight: 600; font-size: .9em; }

/* 16.11 (Алексей 17:26): «אחרונים» прокручивается; хевель — своей плашкой-колонкой после времени */
.tm-feedl { overflow-y: auto; scrollbar-width: thin; }
.tm-list .hvb { flex: none; width: 4.4em; line-height: 1.05; text-align: center; font-size: var(--tm-fs-body); font-weight: 700; padding: .1em .3em; border-radius: .4em; background: #ede9fe; color: #5b21b6; }
.tmuna.dark .tm-list .hvb { background: #2e1065; color: #ddd6fe; }

/* v16.11.15 (Алексей 18:23): «מה בפנים» в списках — цветные плашки */
.marks .m4 { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 1px; }
.flc { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.25; padding: 2px 8px; border-radius: 999px; }
.flc-t { background: #dc2626; color: #fff; }
.flc-i { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.flc-h { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* v16.11.16: «מה שסומן» — отметки вне своего хевеля по кнопке */
#fMineList li.mine-out { border: 0; padding: 10px 0 4px; text-align: center; background: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#fMineList li.mine-out button { font: 600 15px/1.2 var(--font); color: #3446a8; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
#fMineList .byme { color: #0f766e; }
#fMineList .byo { color: #475569; }
#fMineList .hvt { font-size: 12.5px; padding: 1px 8px; vertical-align: 1px; }
/* v16.11.20 (снимок Алексея 20:08): лист дома раскрыт — карта узкая, «🏠» и «📍» залезали на «שכבות»/«תלת ממד» — прячем */
@media (max-width: 820px) { body:has(.sh-big) :is(#backHaifa, #locBtn) { display: none !important; } }

/* v17.11.2: «דיווח קודם: <уровень>» — отдельной строкой под дивуахом, серым, мелко, обычным весом (не цвет уровня).
   В «תמונת מצב» строки нет. */
.was { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.3; }
.bo-list li:has(> .was) { flex-wrap: wrap; row-gap: 0; }
.bo-list li > .was { order: 9; flex-basis: 100%; font-size: 11.5px; }
.doch table.dt td small.was { font-weight: 400; color: var(--dm); }

/* v17.11.5 Shift — несколько домов: панель, список, рамка выбора */
.mpanel .mp-how { margin: 2px 0 8px; }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mp-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.mp-list li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mp-list .lv { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.mp-rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.mp-more { margin-top: 4px; border: 0; background: none; color: #1d4ed8; cursor: pointer; font: inherit; font-size: 13px; padding: 2px 0; }
.mpanel .inside .trapn { display: none !important; }
#mpSave.warn { background: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
.mp-clear { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); background: var(--card); color: #334155; border-radius: 10px; padding: 8px; font: inherit; cursor: pointer; }
.mbox { position: absolute; z-index: 3; border: 2px dashed #1d4ed8; background: rgba(37, 99, 235, .12); pointer-events: none; }
/* 17.11: «מוסדות רגישים» — полоса над списком (свёрнута) и плашки-фильтр в «תמונת מצב» */
#marks li.vstrip { display: flex; align-items: center; justify-content: space-between; gap: .5em; cursor: pointer; background: #f0fdfa; border: 1px solid #99f6e4; border-inline-start: 4px solid #14b8a6; border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; font-size: 14px; color: #115e59; }
#marks li.vstrip b { color: #b91c1c; }
#marks li.vstrip i { font-style: normal; font-size: 12.5px; color: #0f766e; white-space: nowrap; }
#marks li.vstrip:hover { background: #ccfbf1; }
#marks li.vin { margin-inline-start: 10px; }
#marks li.vstrip.open + li.vin, #marks li.vin + li.vin { border-top-color: #99f6e4; }
.tv-g[data-g] { cursor: pointer; }
.tv-g[data-g]:hover { border-color: #14b8a6; }
.tv-g.sel { outline: 2px solid #14b8a6; outline-offset: 1px; }
.tv-sel { display: flex; align-items: center; gap: .5em; font-size: var(--tm-fs-body); color: var(--tm-muted); margin: 0 0 .3em; flex: none; }
.tv-x { font: inherit; font-size: var(--tm-fs-body); border: 1px solid var(--tm-line); background: transparent; color: inherit; border-radius: .5em; padding: .05em .45em; cursor: pointer; }
.tv-none { color: var(--tm-muted); font-size: var(--tm-fs-body); margin: .3em 0; }
body.look-a #marks li.vstrip { background: #042f2e; border-color: #115e59; color: #99f6e4; }

/* ---------- 17.11 «⚠️ סמן תשתית» (js/infra.js): кнопка на телефоне, выбор места, окно, «תמונת מצב», «לוח חבלים» */
body.field .fbar { grid-template-columns: 3fr 2fr 1.5fr; } /* 19.11 (Алексей): «סמן בניין» шире всех, «סמן תשתית» уже, «מה שסומן» — самая узкая */
.finf { background: #fff7ed; color: #9a3412; border: 2px solid #fb923c; border-radius: 14px; font-size: 16px; font-weight: 800; padding: 6px 4px; line-height: 1.15; }
.infaim { display: none; }
body.field .infaim:not([hidden]) { display: grid; grid-area: sheet; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 3px solid #f97316; box-shadow: 0 -4px 14px #0002; z-index: 3; }
.infaim .ia-t { grid-column: 1 / -1; font-weight: 700; color: #9a3412; font-size: 15px; }
.infaim .ia-go { background: #ea580c; color: #fff; border: 0; border-radius: 14px; padding: 16px 10px; font-size: 21px; font-weight: 800; }
.infaim .ia-no { background: #f1f5f9; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 16px; font-weight: 600; }
body.inf-aiming .cross { display: block !important; }
/* 18.11 «📍 סמן סוף הקטע» на компьютере: крестик в центре карты и полоса снизу по центру карты (клик по карте — тоже конец) */
body.inf-aiming-end:not(.field) .cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; z-index: 2;
  background: linear-gradient(#0f172a, #0f172a) center/2px 100% no-repeat, linear-gradient(#0f172a, #0f172a) center/100% 2px no-repeat;
  border-radius: 50%; box-shadow: 0 0 0 2px #fff inset; opacity: .8; }
body.inf-aiming-end:not(.field) .infaim:not([hidden]) { display: grid; position: fixed; z-index: 30; bottom: 64px; left: 50%; transform: translateX(-50%);
  width: min(560px, 92vw); grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; background: var(--card);
  border: 2px solid #f97316; border-radius: 16px; box-shadow: 0 8px 24px #0003; }
body.inf-aiming-end:not(.field) .infaim .ia-go { padding: 10px 14px; font-size: 17px; }
body.inf-aiming-end:not(.field) .infaim .ia-no { padding: 10px 14px; }
body.inf-aiming-end:not(.field) .maplibregl-canvas { cursor: crosshair; }
/* 18.11 «קטע» в окне «⚠️ סמן תשתית» (только «כביש» / «גשר») */
.inf-seg { margin: 12px 0 2px; padding: 10px 12px 12px; border: 2px solid #fdba74; border-radius: 14px; background: #fffaf5; }
.inf-seg[hidden] { display: none; }
.inf-seg h3 { margin: 0 0 8px; color: #9a3412; }
.inf-seg h3 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.inf-seg h4 { margin: 10px 0 6px; font-size: 14px; color: #334155; }
.inf-seg label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: 13.5px; color: #334155; min-width: 0; }
.inf-seg select, .inf-seg input { font: inherit; font-size: 17px; font-weight: 600; min-height: 44px; box-sizing: border-box; width: 100%; border: 1px solid #94a3b8; border-radius: 10px; padding: 6px 10px; background: #fff; color: #0f172a; }
.inf-seg input::placeholder { color: #64748b; font-weight: 400; }
.is-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.is-endrow { display: flex; gap: 6px; margin-top: 8px; }
.is-end { flex: 1; min-height: 44px; border: 2px dashed #ea580c; background: #fff; color: #9a3412; border-radius: 12px; font-weight: 700; font-size: 15px; padding: 6px 10px; }
.is-endx { flex: none; width: 44px; min-height: 44px; border: 1px solid #cbd5e1; background: #f1f5f9; border-radius: 12px; font-size: 16px; }
.is-dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.is-dirs button { min-height: 48px; border: 2px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 12px; font-size: 14px; font-weight: 600; padding: 4px 6px; line-height: 1.2; overflow-wrap: anywhere; }
.is-dirs button b { font-weight: 800; }
.is-dirs button.on { border-color: #b91c1c; background: #fef2f2; box-shadow: 0 0 0 2px #b91c1c inset; color: #7f1d1d; }
.is-dirs button:disabled { opacity: .5; }
.is-sum { margin: 10px 0 0; font-weight: 800; font-size: 15.5px; color: #0f172a; background: #fff; border-radius: 10px; padding: 6px 10px; border: 1px solid #fed7aa; }
.is-sum:empty { display: none; }
.inf-segc { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 17px; padding: 8px 10px; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; }
.inf-segc .isd { font-weight: 700; color: #7f1d1d; }
.inf-segc small { color: var(--muted); }
@media (max-width: 820px) { .is-dirs { grid-template-columns: minmax(0, 1fr); } .is-dirs button { min-height: 46px; font-size: 16px; } }
/* 18.11 «לוח חבלים»: «🚧 N חסומים» раскрывается списком улиц */
.infc[data-infx] { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.bd-inf { margin: 0 12px 10px; padding: 8px 10px; border: 2px solid #fdba74; border-radius: 12px; background: #fffaf5; }
.bd-inf[hidden] { display: none; }
.bd-inf h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: #9a3412; }
.bd-inf h4 .bi-x { margin-inline-start: auto; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; min-width: 40px; min-height: 40px; font-size: 15px; }
.bd-inf ol { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.bd-inf li { display: flex; gap: 6px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid #fde4cc; font-size: 14px; cursor: pointer; min-width: 0; border-inline-start: 4px solid var(--c); padding-inline-start: 8px; }
.bd-inf li:hover { background: #fff7ed; }
.bd-inf li b { min-width: 0; overflow-wrap: anywhere; }
.bd-inf li .lv { flex: none; }
.bd-inf li small { color: var(--muted); }
.ctx .cx-inf { color: #9a3412; font-weight: 700; }
.infdlg { width: min(600px, 96vw); }
.infdlg h3 { margin: 12px 0 6px; font-size: 15px; color: #334155; }
.inf-where { margin: 2px 0 6px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.inf-where small { color: var(--muted); }
.inf-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inf-types button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid #cbd5e1; border-radius: 12px; padding: 10px 6px; font-size: 14.5px; font-weight: 700; color: #0f172a; line-height: 1.2; min-height: 64px; }
.inf-types button i { font-style: normal; font-size: 24px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.inf-types button.on { border-color: #ea580c; background: #fff7ed; box-shadow: 0 0 0 2px #ea580c inset; }
.inf-sts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inf-sts button { background: var(--c); color: var(--i); border: 3px solid transparent; border-radius: 12px; padding: 14px 6px; font-size: 17px; font-weight: 800; }
.inf-sts button.on { border-color: #0f172a; box-shadow: 0 0 0 3px #fff inset; }
.inf-noteL { display: block; margin: 12px 0 4px; font-weight: 700; color: #334155; font-size: 14px; }
.infdlg textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; resize: vertical; }
.inf-ph { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inf-ph:empty { display: none; }
.inf-ph figure { margin: 0; position: relative; width: 72px; }
.inf-ph img, .inf-ph .pdf { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: #e2e8f0; font-weight: 700; }
.inf-ph figcaption { font-size: 11px; color: var(--muted); text-align: center; }
.inf-ph button { position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #0f172a; color: #fff; font-size: 13px; }
.inf-add { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.inf-cam { flex: 1; text-align: center; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 10px; padding: 10px; font-weight: 600; cursor: pointer; }
.infdlg .bc-acts .primary:disabled { opacity: .45; }
.infdlg .inf-done { background: #e2e8f0; border-color: #94a3b8; font-weight: 700; }
.inf-den { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; font-weight: 700; font-size: 14px; }
.inf-pend { margin: 6px 0; color: #92400e; font-weight: 600; font-size: 14px; }
.pend.den { color: #b91c1c; font-weight: 700; }
.lv.ifs { white-space: nowrap; }
.ly-inf { border-color: #fed7aa; background: #fff7ed; }
.ly-inf input { accent-color: #ea580c; }
.ly-inf .ly-name { color: #9a3412; }
body.look-a .ly-inf { background: #1c1917; border-color: #7c2d12; }
body.look-a .ly-inf .ly-name { color: #fdba74; }
body.look-a .ly-inf small { color: #d6d3d1; } /* 17.11 осмотр: на тёмном #586678 давал контраст 2,99 */
.tile .infc, .bo-sum .infc { display: block; font-size: 12.5px; font-weight: 600; color: #9a3412; }
.tile.mini .infc { grid-column: 1 / -1; font-size: 11.5px; }
.infc small { font-weight: 400; color: var(--muted); }
/* «תמונת מצב»: блок «תשתיות» внизу правого столбца над тревогами (обёртка .tm-c3bot — ряд 3; «לכודים» — ряд 2); точек нет — блока нет */
.tm-infra[hidden] { display: none !important; }
.tm-c3bot { grid-area: 3 / 3; display: flex; flex-direction: column; gap: .8em; min-height: 0; min-width: 0; }
.tm-c3bot:not(:has(> :not([hidden]))) { display: none; }
.tm-grid:has(.tm-infra:not([hidden])) .tm-c3 .tm-trap { grid-row: 2; }
.tm-c3bot > .tm-infra { flex: 0 1 auto; max-height: 11.5em; border-color: #fb923c; }
.tm-c3bot > .tm-oref { flex: 0 1 auto; }
/* 18.11 (осмотр 1366×768, вид хевеля): «תשתיות» + тревоги в одном столбце — тревога не сжимается (её низ срезался),
   «תשתיות» уступает место (заголовок со счётом виден всегда, строки — своей прокруткой); не влезло и так — столбец прокручивается */
@media (min-width: 1001px), (min-width: 821px) and (min-height: 481px) {
  .tm-c3bot { overflow-y: auto; scrollbar-width: thin; }
  .tm-c3bot > .tm-oref { flex-shrink: 0; }
  .tm-c3bot > .tm-infra { flex-shrink: 1; min-height: 2.9em; }
  .tm-c3bot:has(> .tm-oref:not([hidden])) > .tm-infra { max-height: 8.2em; }
}
.tm-infl { overflow-y: auto; scrollbar-width: thin; }
.tm-infl li { cursor: pointer; border-inline-start: .3em solid var(--c); }
.tm-infl .ie { font-style: normal; font-size: var(--tm-fs-num); flex: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.tm-infra h2 small b { color: #b91c1c; }
.tm-infl small .dir { font-weight: 700; }
.tm-infl small .dir.one { color: #b91c1c; }
.tmuna.dark .tm-infl small .dir.one { color: #fca5a5; }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) { .tm-c3bot { display: contents; } .tm-c3bot > .tm-infra { order: 3; flex: none; max-height: none; } .tm-infl { overflow: visible; } }
/* «דו״ח מצב»: точки «טופל» — серым */
.doch tr.done td { color: var(--muted); }
.doch .tif td small { color: #475569; font-size: .9em; }
.doch .tif td small.dir1 { color: #b91c1c; font-weight: 700; }
/* 17.11 (осмотр): телефон, открыт «לוח חבלים» — от карты остаётся полоска, «🏠»/«📍» ложились на полосу тревог */
@media (max-width: 820px) { body.has-board :is(#backHaifa, #locBtn, #mapCorner, .maplibregl-ctrl-bottom-left) { display: none !important; } }

/* 17.11 осмотр: масштабная линейка «2 km», а не «km 2» (RTL переворачивал) */
.maplibregl-ctrl-scale { direction: ltr; }

/* ===== 17.11 осмотр перед учениями: на сенсорном экране всё нажимаемое — не меньше 40 px (tests/osmotr.cjs) ===== */
.lyg-ck { display: grid; place-items: center; flex: none; cursor: pointer; }
@media (pointer: coarse) {
  .close, .of-x, .ly-x, .vhead > button, .inst-x, .scr-x { min-width: 40px; min-height: 40px; }
  .maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }
  .mapcorner :is(.lybtn, .d3btn) { height: 40px; }
  .search input { min-height: 40px; }
  .menu select { min-height: 40px; }
  #fMineList li.mine-out button { min-height: 40px; }
  .inst-go { position: relative; } .inst-go::after { content: ''; position: absolute; inset: -2px 0; } /* 37 → 41 px пальцу, карточка той же высоты */
  .inst-later { position: relative; } .inst-later::after { content: ''; position: absolute; inset: 0 0 -13px; } /* вниз: сверху «התקנה» */
  .lyg-ck { min-width: 40px; min-height: 40px; margin: -9px -9px -9px -6px; }
  .sh-grip, #srcKind button, #srcWho, #pInside .chip, #fInside .chip, .sh-waze { min-height: 40px; }
  /* шапка и полоса тревог: вид прежний, место для пальца — невидимая рамка до 40 px */
  #counts { padding-block: 7px; margin-block: -7px; }
  :is(.cnt, .boardbtn, .menubtn, .oref .or-feed) { position: relative; }
  :is(.cnt, .boardbtn, .menubtn)::after { content: ''; position: absolute; inset: -7px -2px; }
  .oref .or-feed::after { content: ''; position: absolute; inset: -11px -2px; }
  :is(.bd-head button, .bd-set button, .tm-acts button, .tm-head button):not(.close) { position: relative; }
  :is(.bd-head button, .bd-set button, .tm-acts button, .tm-head button):not(.close)::after { content: ''; position: absolute; inset-inline: min(0px, calc(50% - 20px)); inset-block: min(0px, calc(50% - 20px)); }
  /* 18.11: «🚧 N חסומים ▾» в плитке «לוח חבלים» раскрывает список улиц — место пальцу 40 px (плитка чуть выше, только если есть точки) */
  .infc[data-infx] { display: flex !important; align-items: center; gap: 4px; min-height: 40px; }
  .bd-inf li { min-height: 40px; align-items: center; }
}
/* 17.11 (осмотр): низкая карта (телефон 360×640 с тревогой и карточкой установки) — «תלת ממד» прячется, чтобы кнопки не налезали (app.js map-short) */
body.map-short :is(#d3Btn, #d3Compass, .maplibregl-ctrl-bottom-left) { display: none !important; }
/* 18.11 (осмотр 1366×768: тревога + «לוח חבלים» с раскрытым списком «🚧») — «מקרא» свёрнут до заголовка, не ложится на подпись источников */
body.map-short .legend .lg-b { display: none; }
body.map-short .legend .lg-h::after { content: " ▾"; }
/* 17.11 (осмотр): телефон боком (844×390) — от карты оставалось ~120 px (крупная полоса тревог, высокие нижние кнопки),
   с карточкой установки — ~15 px. Боком: полоса тревог — как в телефоне стоя, нижние кнопки ниже, карточки установки нет (она — стоя). */
@media (max-height: 480px) and (pointer: coarse) {
  .oref.big { padding: 4px 10px 4px; font-size: 13px; }
  .oref.big .or-ico { font-size: 22px; }
  .oref.big .or-kind { font-size: 17px; }
  .oref.big .or-zones { font-size: 13px; }
  .oref.big .or-time { font-size: 15px; }
  .oref.big .or-main { gap: 8px; }
  .oref.big .or-sub { gap: 6px; margin-top: 2px; font-size: 12px; }
  .oref.big .or-also, .oref.big .or-conn span { display: none; }
  body.field .fbar { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  body.field .fbar .fmark { padding: 9px 10px; font-size: 19px; }
  body.field .fbar .fmine { padding: 6px 10px; }
  .inst { display: none !important; }
}
/* 17.11 (осмотр): узкая карта на компьютере (app.js map-narrow: 1024×768 и открыт дом) — полоса тревог как у телефона,
   кнопки «חבלים»/«🏠»/«מקרא» прячутся (не налезают друг на друга и на список); закрыли дом — всё на месте */
body.map-narrow .oref.big { padding: 4px 8px; font-size: 12px; }
body.map-narrow .oref.big .or-ico { font-size: 20px; }
body.map-narrow .oref.big .or-kind { font-size: 16px; }
body.map-narrow .oref.big .or-zones { font-size: 12px; }
body.map-narrow .oref.big .or-time { font-size: 14px; }
body.map-narrow .oref.big .or-main { gap: 6px; }
body.map-narrow .oref.big .or-sub { gap: 5px; margin-top: 2px; font-size: 11.5px; }
body.map-narrow .oref :is(.or-also, .or-conn span, .or-side small) { display: none; }
body.map-narrow :is(.maptools, #legend) { display: none !important; }
@media (pointer: coarse) {
  :is(.maptools label, .maptools button, #legendBtn, #filter, #sort button, #lySearch, #lyNone, .lyg-tg, .ly-row, #lyBm button, #marks li.vstrip) { min-height: 40px; }
}
.adr { display: inline-flex; max-width: 100%; min-width: 0; vertical-align: bottom; }
.adr-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adr-n { flex: none; white-space: pre; } /* номер дома (с пробелом перед ним) — всегда целиком */
/* 17.11 (осмотр): «לוח חבלים» на узком месте (1024×768 со списком — ~680 px): плитки в две строки по 4, «כל העיר» — на две клетки
   (в одну строку по 85 px текст ломался по словам и вылезал из плиток) */
.board { container: board / inline-size; }
@container board (max-width: 1150px) { /* 1280/1366 со списком: одна строка, короче — «586/3,627 (16.2%)», «🧒👴 9» */
  .bd-tiles:not(.ownmode) .tile .w { display: none; }
  .bd-tiles:not(.ownmode) .tile .t2 .tm::before { content: '/\200B'; } /* после «/» можно перенести: «2,914/» и «20,049» */
  .bd-tiles:not(.ownmode) .tile { padding: 6px 8px; gap: 6px; }
}
@container board (max-width: 760px) { /* 1024 со списком: две строки по 4 */
  .bd-tiles:not(.ownmode) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
  .bd-tiles:not(.ownmode) .tile.city { grid-column: span 2; }
}
@media (max-width: 820px) { .bd-tiles:not(.ownmode) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bd-tiles:not(.ownmode) .tile.city { grid-column: 1 / -1; } }
/* «מוסדות רגישים» в «תמונת מצב»: плашки в одну строку (v16.11.10) — не налезают друг на друга, шрифт ряда уменьшается (tmuna.js fitNums) */
.tv-gs { overflow: hidden; }
.tv-g { flex: none; }
.tmuna .tm-box > h2 { overflow: hidden; flex: none; }
@media (max-height: 480px) and (pointer: coarse) { body:has(.sh-big) :is(#backHaifa, #locBtn) { display: none !important; } }
@media (pointer: coarse) { .tm-hint { min-height: 40px; } }
.counts.nolab .cl { display: none; } /* 17.11: подписи счётчиков не влезли (app.js) — только числа и цвет */
.legend { max-height: calc(100% - 60px - var(--oref-h, 0px)); overflow: auto; } /* 17.11: низкая карта (1280×720, тревога, «לוח חבלים») — «מקרא» не вылезает на доску */
@media (max-height: 480px) and (pointer: coarse) { body.map-short :is(#locBtn, #backHaifa) { display: none !important; } } /* боком, низкая карта: «📍»/«🏠» налезали на «שכבות» */
/* 17.11 (осмотр): חמ״ל хевеля 2×2 (1366/1440) — числа в заголовках разделов не срезаются (перенос), строки списков не шире раздела */
.bd-own h4 { flex-wrap: wrap; white-space: normal; row-gap: 0; }
.bd-own h4 small { white-space: nowrap; }
.bo-list { overflow-x: hidden; }
.bo-list li > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 821px) and (max-width: 1100px) { .menubtn .mb-name { display: none; } } /* 17.11: 1024×768 — в шапке не помещался «לא נבדק»; имя — в самом меню */
/* 17.11 (осмотр): חמ״ל хевеля при узкой доске (1093 = 1366 при 125 %, 1024) — «שאר החבלים» под своим хевелем, а не колонкой 300 px сбоку */
@container board (max-width: 1000px) {
  .bd-tiles.ownmode { grid-template-columns: minmax(0, 1fr); }
  .bd-tiles.ownmode .bd-others { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/* 17.11 (осмотр): на низком экране (1366×768 при 125 % = 1093×614) «לוח חבלים» не выше половины окна — карта и полоса тревог не исчезают; остальное — прокруткой доски */
@media (min-width: 821px) { .board { max-height: 48vh; overflow-y: auto; } }
.tv-gs.wrap { flex-wrap: wrap; row-gap: .25em; }
body.look-a #marks li.vstrip b { color: #fca5a5; } body.look-a #marks li.vstrip i { color: #5eead4; } /* 17.11 осмотр: на тёмной полосе красное/бирюзовое не читалось (2,2–2,6) */
/* 17.11 осмотр × «⚠️ תשתיות»: телефон боком (844×390) — шапка, фон, тревоги и инфраструктура не влезали, подпись «מקור» срезалась:
   при низком экране листается вся панель целиком */
@media (max-height: 480px) { .lypanel { overflow-y: auto; } .lypanel .lyp-list { flex: none; overflow: visible; } }
/* 17.11 «👥 מחוברים עכשיו» (js/presence.js): значок в шапке у связи, окно со списком, строка в «תמונת מצב» */
/* 17.11 19:28 (Алексей: «плохо видно из-за цветов») — светлая плашка с тёмным текстом, как остальные кнопки шапки */
.presbtn { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 4px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; flex: none; font-size: 14px; font-weight: 600; margin-inline-start: auto; }
.presbtn b { font-size: 16px; font-weight: 800; color: #0f172a; }
.presbtn .pr-d { color: #1e293b; font-size: 13.5px; font-weight: 600; }
.presbtn.none { color: #475569; }
.presbtn:hover { background: #f1f5f9; }
.presbtn:not([hidden]) + .net { margin-inline-start: 0; }
@media (max-width: 1500px) { .presbtn .pr-d { display: none; } }
@media (max-width: 820px) { .presbtn { display: none !important; } }
.presdlg .dbody { padding: 10px 18px 16px; overflow: auto; max-height: calc(90vh - 60px); }
.pr-sum { font-size: 17px; margin: 4px 0 10px; }
.pr-sum b { font-size: 22px; }
.pr-g h3 { margin: 12px 0 4px; font-size: 15px; color: #334155; }
.pr-g ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pr-g li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); }
.pr-g li:first-child { border-top: 0; }
.pr-g li.me { background: #eff6ff; }
.pr-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pr-r { font-size: 13px; color: #334155; background: #f1f5f9; border-radius: 999px; padding: 1px 9px; }
.pr-m { font-size: 12px; color: #7f1d1d; background: #fee2e2; border-radius: 999px; padding: 1px 8px; }
.pr-dv { font-size: 17px; }
.pr-t { font-size: 13px; color: var(--muted); min-width: 4.8em; text-align: end; }
.pr-note { margin: 14px 0 0; }
/* v22.11.3 «🔌 נתק» — кнопка отключения у строки человека (видна только тому, кто вправе: מנ״מ «כל העיר» или «מנהל») */
.pr-kick { font: inherit; font-size: 13px; font-weight: 600; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.pr-kick:hover { background: #fee2e2; }
/* 22.11 «🔄 רענן» (штаб): обновить застрявшее устройство — рядом с «🔌 נתק», те же права */
.pr-reload { font: inherit; font-size: 13px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.pr-reload:hover { background: #dbeafe; }
.pr-reload.saved, .pr-kick.saved { background: #15803d !important; color: #fff !important; border-color: #15803d !important; }
/* 22.11: версия устройства мелко; старее текущей — оранжевая плашка «⚠ גרסה ישנה» */
.pr-v { font-size: 11.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-v.old { color: #9a3412; }
.pr-oldtag { font-size: 11.5px; font-weight: 700; color: #9a3412; background: #ffedd5; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
@media (pointer: coarse) { .pr-kick, .pr-reload { min-height: 40px; padding: 6px 12px; } }
.tm-nets { display: flex; align-items: center; gap: .6em; flex: 0 2 auto; flex-wrap: nowrap; min-width: 0; margin-inline-start: .6em; }
.tm-nets > * { flex: none; }
.tm-nets > .tm-orefq { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-pres { font-size: var(--tm-fs-body); font-weight: 700; white-space: nowrap; padding: .25em .8em; border-radius: 999px; background: #ffffff14; }
@media (max-width: 820px) { .tm-pres { font-size: var(--tm-fs-body); } }

/* v17.11.18 «מנהל לחימה א' / ב'» (Алексей 17.11 19:23): один цвет на хевель везде (плашка, точка, полоса), сектор — 3 хевеля, «חלוקה זמנית» */
.hvt.hvc, .hvb.hvc { font-weight: 700; }
.hvt.hvc.other { opacity: .75; }
.hvdot { display: inline-block; width: .72em; height: .72em; border-radius: 50%; margin-inline-end: .4em; vertical-align: .02em; background: var(--hc, #64748b); flex: none; }
#pHevel .hvdot, #fHevel .hvdot { box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #0002; }
.tmp { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tmp::before { content: '· '; }
.tile[style*="--hc"] { border-top: 4px solid var(--hc); }
.tile .sectag { flex: none; font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tile .t5 { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t5.secsum { display: flex; flex-wrap: wrap; gap: 0 10px; color: #334155; }
.tile .t5.secsum .sl { white-space: nowrap; border-radius: 6px; padding: 0 3px; }
.tile .t5.secsum .sl:hover { background: #e2e8f0; }
.tile .t5.secsum .sl b { font-weight: 700; }
.tile .t5.secsum .tmp { flex-basis: 100%; }
.tile.sect { border-color: #0c4a6e; }
/* «תמונת מצב» — цвет хевеля на карточке, строки секторов у מנ״מ, вид сектора */
.tmuna .tm-card[style*="--hc"] { border-top-color: var(--hc); }
.tm-card .c1 .hvdot { background: var(--hc); align-self: center; }
.tm-cards.grp { grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr); row-gap: .45em; }
.tm-cards.n3 { grid-template-rows: minmax(0, 1fr); }
.tm-sech { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .4em 1.1em; flex-wrap: wrap; font-size: var(--tm-fs-body); padding: .15em .6em; border-radius: .5em; background: var(--tm-card); border: 1px solid var(--tm-line); cursor: pointer; white-space: nowrap; overflow: hidden; }
.tm-sech > b { font-size: var(--tm-fs-body); }
.tm-sech .l3 b { color: #b91c1c; } .tm-sech .l2 b { color: #c2410c; } .tm-sech .tr b { color: #7f1d1d; }
.tmuna.dark .tm-sech .l3 b, .tmuna.dark .tm-sech .l2 b, .tmuna.dark .tm-sech .tr b { color: #fca5a5; }
.tm-sech:hover, .tm-sech:focus-visible { box-shadow: 0 0 0 .15em var(--tm-lineC); outline: none; }
.tm-sech .tmp { font-size: var(--tm-fs-body); }
.tm-secl { display: flex; flex-wrap: wrap; gap: .3em; align-items: center; margin: 0 0 .4em; }
.tm-secl .hvb { font-size: var(--tm-fs-body); font-weight: 700; border-radius: .4em; padding: .1em .5em; }
.tm-secl .tmp, .tm-city .tmp { font-size: var(--tm-fs-body); }
.tm-mapsvg path.hv.oth { fill: var(--tm-nodata); opacity: .45; }
.tm-mapsvg text.oth { opacity: .45; }
.tm-list .a small .hvb { display: inline; width: auto; font-size: var(--tm-fs-body); padding: 0 .4em; border-radius: .35em; line-height: 1.3; }
@media (max-width: 820px) { .tm-cards.grp { grid-template-rows: none; } .tm-cards.n3 { grid-template-rows: none; } }
.tile.sect .t5 { white-space: normal; overflow: visible; }
/* v17.11.18: строки секторов у מנ״מ отнимают высоту — карточки плотнее (на 1920 с тысячами отметок ⚠/🩹/🔥 не срезаются) */
.tm-cards.grp { row-gap: .35em; }
.tm-cards.grp .tm-card { gap: .26em; padding-top: .45em; padding-bottom: .45em; }
.tm-cards.grp .tm-card .pc { font-size: var(--tm-fs-kpi); }
.tm-cards.grp .tm-sech { padding: 0 .6em; font-size: var(--tm-fs-body); }
@media (pointer: coarse) { .tm-cards .tm-sech { min-height: 44px; align-items: center; } } /* осмотр: на сенсорном нажимаемое ≥ 40 px */
@media (max-width: 820px) { .tm-cards .tm-sech { white-space: normal; } }
/* v17.11.23 (Алексей 21:38): своё окно выбора «מנ״מ / מנהל לחימה / חבל» (js/picker.js) — системный select спрятан, но остаётся */
.pk-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.pk-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid #94a3b8;
  border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 15px; font-weight: 600; text-align: start; cursor: pointer; }
.pk-btn .pk-full, .pk-btn .pk-short { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.pk-btn .pk-short { display: none; }
.pk-btn.tight .pk-full { display: none; }
.pk-btn.tight .pk-short { display: block; text-overflow: ellipsis; }
.pk-btn .pk-ar { flex: none; color: #475569; font-size: 13px; }
.hvpick { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.hvpick .pk-btn { flex: 1 1 auto; }
.pk-dlg { border: 0; border-radius: 18px; padding: 0; width: min(440px, 94vw); max-height: 86vh; box-shadow: 0 18px 50px #0f172a55; color: #0f172a; background: #f8fafc; }
.pk-dlg::backdrop { background: #0f172a66; }
.pk-h { padding: 14px 18px 6px; font-weight: 700; color: #334155; font-size: 15px; }
.pk-list { overflow: auto; max-height: calc(86vh - 50px); padding: 4px 0 10px; }
.pk-list h4 { margin: 10px 18px 2px; font-size: 14px; color: #475569; font-weight: 700; }
.pk-o { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-bottom: 1px solid #e2e8f0;
  background: transparent; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.pk-o:hover { background: #eef2ff; }
.pk-o .pk-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pk-o .pk-t b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.pk-o .pk-t small { font-size: 12.5px; color: #475569; white-space: nowrap; }
.pk-r { flex: none; width: 22px; height: 22px; border: 2px solid #475569; border-radius: 50%; display: grid; place-items: center; }
.pk-o.on .pk-r { border-color: #1d4ed8; }
.pk-o.on .pk-r::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #1d4ed8; }
.pk-o.on { background: #eff6ff; }
body.look-a .pk-btn { background: #1f2937; color: #f8fafc; border-color: #475569; }

/* ===== v18.11 «תמונת מצב» v2 (Алексей 18.11 08:24–08:28, план claude-hub plans/nezakim-tmuna-v2.md) =====
   Левый столбец (третий в RTL): «⚠ לכודים» ≈ 60 % сверху, «אחרונים» ≈ 40 % под ним, тревоги — внизу (если были);
   нижний ряд середины: «דינמיקה» · «מוסדות רגישים» · «🚧 תשתיות»; у каждого списка — своя прокрутка с видимой полосой. */
.tm-grid, .tm-grid:has(.tm-oref:not([hidden])) { grid-template-rows: auto minmax(0, 1fr); }
.tm-c3 { display: flex; flex-direction: column; gap: .8em; grid-column: 3; grid-row: 1 / -1; min-height: 0; min-width: 0; }
.tm-c3 > .tm-trap { flex: 6 1 0; min-height: 0; } /* столбец — flex: grid-area у детей больше не действует */
.tm-c3 > .tm-feed { flex: 4 1 0; contain: none; min-height: 0; }
.tm-c3 > .tm-c3bot { flex: 0 1 auto; max-height: 25%; }
.tm-c3bot > .tm-oref { flex: 1 1 auto; min-height: 0; }
.tm-c2bot > .tm-chart { flex: .85 1 0; }
.tm-c2bot > .tm-vul { flex: 1.1 1 0; }
.tm-c2bot > .tm-infra { flex: 1.1 1 0; min-width: 0; max-height: none; border-color: #fb923c; }
.tm-c2bot > .tm-infra.none { flex: .55 1 0; }
.tm-infra .empty { color: var(--tm-muted); }
/* полосы прокрутки видны (Windows/Chrome — классическая, тонкая) */
.tmuna .tm-list, .tmuna .vrs { scrollbar-width: thin; scrollbar-color: var(--tm-line) transparent; }
.tm-feed .tm-feedl, .tm-trap .tm-trapl, .tm-infra .tm-infl, .tm-vul .tm-vull { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
/* «⚠ לכודים» */
.tm-trap { border-color: #7f1d1d; }
.tm-trap.has { border-width: 2px; box-shadow: 0 0 0 1px #7f1d1d55, 0 2px 8px #0f172a2e; }
.tm-trap h2 { flex: none; }
.tm-trap h2 small b { font-size: var(--tm-fs-h); font-variant-numeric: tabular-nums; }
.tm-trap h2 .unk { color: var(--tm-muted); font-weight: 600; }
.tm-trap h3, .tm-trapl li.sep { margin: 0 0 .2em; font-size: var(--tm-fs-body); font-weight: 700; color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-trap h3 small, .tm-trapl li.sep small { font-weight: 600; }
/* части «לכודים» делят высоту: список — всегда ≥ 3 строк (flex 1 1 0 + min-height); «איפה הכי הרבה» (≥ 4 строк) и учреждения (≥ 1 строки) сжимаются со своей прокруткой */
.tm-where { flex: 0 1 auto; min-height: 6.8em; overflow-y: auto; margin-bottom: .45em; scrollbar-width: thin; scrollbar-color: var(--tm-line) transparent; }
.tm-where h3 { position: sticky; top: 0; background: var(--tm-card); z-index: 1; }
.tm-trap > .tm-trapl { flex: 1 1 0; min-height: 8.2em; }
.tm-where .wr { display: grid; grid-template-columns: minmax(0, 8.6em) minmax(2em, 1fr) auto auto; align-items: center; gap: .45em; padding: 0 .15em; border-radius: .35em; font-size: var(--tm-fs-body); line-height: 1.22; }
.tm-where .wr[data-h] { cursor: pointer; }
.tm-where .wr[data-h]:hover, .tm-where .wr[data-h]:focus-visible { background: var(--tm-soft); outline: none; }
.tm-where .wl { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-start: .3em solid var(--hc); padding-inline-start: .3em; }
.tm-where .wb { height: .8em; background: var(--tm-ring0); border-radius: .2em; overflow: hidden; display: block; }
.tm-where .wb i { display: block; height: 100%; background: var(--hc); border-radius: .2em; }
.tm-where .wn { font-size: var(--tm-fs-body); font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; min-width: 2.6em; color: #7f1d1d; }
.tmuna.dark .tm-where .wn { color: #fca5a5; }
.tm-where .wbn { color: var(--tm-muted); font-size: var(--tm-fs-body); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 5.6em; }
.tm-vtr { flex: 0 1 auto; min-height: 4.4em; display: flex; flex-direction: column; overflow: hidden; margin-bottom: .45em; border: 2px solid #0d9488; border-radius: .55em; padding: .2em .45em .25em; background: #f0fdfa; }
.tmuna.dark .tm-vtr { background: #042f2e; }
.tm-vtr h3 { color: #0f766e; }
.tmuna.dark .tm-vtr h3 { color: #5eead4; }
.tm-vtr .vrs { flex: 1 1 auto; min-height: 0; max-height: 6.6em; overflow-y: auto; }
.tm-vtr h3 { flex: none; }
.tm-where.st .wl small { font-weight: 600; color: var(--tm-muted); }
.tm-vtr .vr { display: flex; align-items: center; gap: .45em; padding: .12em .1em; border-top: 1px solid #99f6e4; cursor: pointer; line-height: 1.15; min-width: 0; }
.tmuna.dark .tm-vtr .vr { border-top-color: #115e59; }
.tm-vtr .vr:first-child { border-top: 0; }
.tm-vtr .ve, .tm-trapl .ve { font-style: normal; font-size: var(--tm-fs-num); flex: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.tm-vtr .a { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tm-vtr .a b, .tm-vtr .a small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-vtr .a small { color: var(--tm-muted); font-size: var(--tm-fs-body); }
.tm-vtr .n { flex: none; min-width: 2em; padding: 0 .3em; height: 1.7em; border-radius: .45em; background: #7f1d1d; color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-trapl li.tr { cursor: pointer; }
.tm-trapl .n { font-variant-numeric: tabular-nums; padding: 0 .25em; height: 1.85em; min-width: 2.3em; font-size: var(--tm-fs-num); }
.tm-trapl li.tr { padding-block: .12em; }
.tm-feedl .hvb { width: 5.6em; } /* «עיר תחתית והדר» — в две строки, не в три (строка ленты ниже) */
.tm-trapl li.unk .n { background: #b91c1c; }
.tm-trapl li.vul { border-inline-start: .3em solid #0d9488; background: #f0fdfa; }
.tmuna.dark .tm-trapl li.vul { background: #042f2e; }
.tm-trapl .a small .lvs { border-radius: 999px; padding: 0 .45em; font-weight: 700; font-size: var(--tm-fs-body); }
.tm-trapl li.sep { display: block; padding-top: .45em; border-bottom: 1px solid var(--tm-line); }
.tm-trapl .n.inj, .tm-trapl .n.haz { background: var(--tm-soft); color: inherit; font-size: var(--tm-fs-num); }
/* мини-карта: круги לכודים по числу людей, число внутри у больших */
.tm-mapsvg .dt { fill: #7f1d1d; fill-opacity: .72; stroke: #fff; }
.tm-mapsvg .dtn { fill: #fff; font-weight: 700; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) {
  .tm-c3 { display: contents; }
  .tm-c3 > .tm-trap, .tm-c3 > .tm-feed { flex: none; }
  .tm-c2bot > .tm-infra { order: 4; flex: none; }
  .tm-c2bot > .tm-vul, .tm-c2bot > .tm-infra.none { flex: none; }
  .tm-c3bot { max-height: none; }
  .tm-trap .tm-trapl, .tm-infra .tm-infl { overflow: visible; }
  .tm-vtr .vrs { max-height: none; }
  .tm-where, .tm-vtr { flex: none; overflow: visible; }
  .tm-trap > .tm-trapl { flex: none; min-height: 0; }
}
/* печать (A4 альбом): списки без прокрутки — первые N + «ועוד N» (js/tmuna.js printClip) */
body.tm-print .tmuna .tm-list, body.tm-print .tmuna .vrs { overflow: hidden !important; scrollbar-width: none; }
.tm-list li.more { color: var(--tm-muted); font-weight: 700; justify-content: center; border-bottom: 0; }
@media print { .tmuna .tm-list, .tmuna .vrs { overflow: hidden !important; } }
.doch table.ttr tr.vul td { background: #f0fdfa; }
.doch table.ttr tr.vul td small { color: #0f766e; }
.doch table.ttg { width: auto; min-width: 60%; }
/* окно хевеля: «⚠ לכודים בחבל» (v18.11) */
.hv-traps li { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hv-traps .tn { flex: none; min-width: 30px; height: 28px; padding: 0 5px; border-radius: 7px; background: #7f1d1d; color: #fff; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.hv-traps .ve { font-size: 20px; flex: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.hv-traps .ta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hv-traps .ta small { color: #0f766e; }
.hv-traps .lv { flex: none; }
.hv-traps li.vul { border-inline-start: 4px solid #0d9488; }
.tm-where.st .wr { grid-template-columns: minmax(0, 12em) minmax(2em, 1fr) auto auto; }

/* ===== v18.11.6 «תמונת מצב» из модулей (js/tmlayout.js, план claude-hub plans/nezakim-tmuna-modules.md, эскизы W1–W5).
   3 колонки × слоты; слот — модуль (+ вид) и доля высоты (--h; .auto — по содержимому); ряд (.row) — 2–3 модуля рядом;
   «לשוניות» (.tabs). Отступы 12 px (≈ .67em), скругления 16 px (≈ .9em), Rubik, текст ≥ 17 px на 1920×1080, числа tabular-nums. */
.tmuna { --g: .67em; --r: .9em; font-family: 'NZ Rubik', var(--font); font-variant-numeric: tabular-nums;
  --tm-bg: #dfe6ef; --tm-card: #fff; --tm-panel: linear-gradient(180deg, #ffffff, #f7f9fc); --tm-ink: #0f172a; --tm-muted: #475569; --tm-line: #c3cedd; --tm-row: #e3e9f1; --tm-soft: #eef2f7; --tm-kpi: #f1f5f9;
  --tm-trapbg: #7f1d1d; --tm-trapink: #fff; --tm-glow: none; grid-template-rows: auto auto minmax(0, 1fr); }
.tmuna.dark { --tm-bg: #070b14; --tm-card: #121c2e; --tm-panel: linear-gradient(180deg, #141f33, #0f1828); --tm-ink: #eef3fb; --tm-muted: #a8b6ca; --tm-line: #2b3a55; --tm-row: #1f2b42; --tm-soft: #1a2640; --tm-kpi: #0b1322;
  --tm-trapbg: #991b1b; --tm-glow: 0 0 .5em #ef444488; background: radial-gradient(70% 55% at 50% -10%, #16233b 0, #070b14 70%) #070b14; }
.tmuna > .tm-head { grid-row: 1; } .tmuna > .tm-edbar { grid-row: 2; } .tmuna > .tm-grid { grid-row: 3; }
.tmuna.dark .tm-head { background: transparent; box-shadow: 0 .45em 1.3em -.9em #facc15; }
.tm-park { display: none !important; }
.tmuna .tm-grid.mods { display: grid; grid-template-columns: 22.5em minmax(0, 1fr) 26em; grid-template-rows: minmax(0, 1fr); gap: var(--g); padding: var(--g) .9em .9em; min-height: 0; }
.tmuna .tm-grid.mods > .tm-col { display: flex; flex-direction: column; gap: var(--g); min-height: 0; min-width: 0; }
.tm-slot { flex: var(--h, 1) 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative; }
.tm-slot.auto { flex: none; }
.tm-slot[hidden], .tm-cell[hidden] { display: none !important; }
.tm-slot.row { flex-direction: row; gap: var(--g); }
.tm-cell { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.tmuna .tm-slot > .tm-box, .tmuna .tm-slot > .tm-cards, .tmuna .tm-cell > .tm-box, .tmuna .tm-cell > .tm-cards { flex: 1 1 0; min-height: 0; max-height: none; min-width: 0; grid-area: auto; }
.tmuna .tm-slot.auto > .tm-box, .tmuna .tm-slot.auto > .tm-cards, .tmuna .tm-slot.auto .tm-cell > * { flex: none; contain: none; }
.tmuna .tm-slot.auto { overflow: hidden; }
/* панели — как в эскизах: мягкий градиент, рамка 1 px, скругление 16 px */
.tmuna .tm-box, .tmuna .tm-card, .tmuna .tm-blk { background: var(--tm-panel); border: 1px solid var(--tm-line); border-radius: var(--r); box-shadow: 0 1px 2px #0f172a14, inset 0 1px 0 #ffffff10; padding: .65em .8em; }
.tmuna.dark .tm-box, .tmuna.dark .tm-card, .tmuna.dark .tm-blk { box-shadow: inset 0 1px 0 #ffffff10, 0 .4em 1.2em -.8em #000; }
.tmuna .tm-box > h2 { font-size: var(--tm-fs-h); font-weight: 700; border-bottom: 1px solid var(--tm-line); padding-bottom: .3em; margin: 0 0 .4em; gap: .55em; flex: none; overflow: hidden; }
.tmuna .tm-box > h2 small { font-size: var(--tm-fs-body); font-weight: 600; color: var(--tm-muted); margin-inline-start: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tmuna .tm-box > h2 small + small { margin-inline-start: .4em; }
.tmuna .tm-box > h2 small.hint { flex: 0 1 auto; }
.tmuna .tm-box > h2 small ~ small:not(.hint) { margin-inline-start: 0; }
/* хевель — точка + короткое имя */
.tmuna .hvn, .tmuna .tm-list .hvb.hvn, .tmuna .tm-list .a small .hvb.hvn { display: inline-flex; align-items: center; gap: .35em; width: auto; background: none !important; color: var(--tm-muted) !important; font-size: var(--tm-fs-body); font-weight: 600; padding: 0; border-radius: 0; line-height: 1.2; white-space: nowrap; flex: none; }
.tmuna .hvn > i { width: .66em; height: .66em; border-radius: 50%; background: var(--hc); flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc) 25%, transparent); }
.tmuna .glow { text-shadow: var(--tm-glow); }
body.gpu-low .tmuna .glow, body.tm-print .tmuna .glow { text-shadow: none; }
.tmuna .bump { transition: color .3s; color: #f59e0b !important; }
/* ---- כל העיר / גזרה / חבל (W1): кольцо + большой %, уровни строками, 3 плитки ⚠ 🩹 🔥 */
.tmuna .tm-city .tm-cityTop { gap: .9em; }
.tmuna .tm-city .tm-donut { width: 7.4em; height: 7.4em; filter: drop-shadow(0 0 .9em #ef444433); }
.tmuna .tm-city .tm-of { gap: .15em; min-width: 0; }
.tmuna .tm-city .tm-of .pc { font-size: var(--tm-fs-kpi-xl); }
.tmuna .tm-city .tm-of .of2 { color: var(--tm-muted); font-size: var(--tm-fs-body); }
.tmuna .tm-city .tm-of .of2 b { color: var(--tm-ink); font-weight: 600; }
.tmuna .tm-city .tm-lvs.big { display: flex; flex-direction: column; gap: 0; margin-top: .45em; }
.tmuna .tm-city .tm-lvs.big .tm-lv { flex-direction: row-reverse; justify-content: space-between; align-items: center; background: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--tm-row); border-radius: 0; padding: .06em .2em; }
.tmuna .tm-city .tm-lvs.big .tm-lv::after { content: ''; width: .78em; height: .78em; border-radius: 50%; background: var(--c); flex: none; margin-inline-start: .1em; order: 2; }
.tmuna .tm-city .tm-lvs.big .tm-lv span { flex: 1; color: var(--tm-ink); font-size: var(--tm-fs-body); margin-inline-start: .5em; order: 1; }
.tmuna .tm-city .tm-lvs.big .tm-lv b { font-size: var(--tm-fs-num); order: 0; line-height: 1.1; }
.tmuna .tm-city .tm-flags { flex-direction: row; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; margin-top: .5em; }
.tmuna .tm-city .tm-flags span { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .25em; text-align: center; border-radius: .6em; padding: .2em .3em; font-size: var(--tm-fs-body); line-height: 1.12; white-space: normal; background: var(--tm-kpi); color: var(--tm-muted); }
.tmuna .tm-city .tm-flags span b { order: -1; flex-basis: 100%; font-size: var(--tm-fs-num); line-height: 1.05; }
.tmuna .tm-city .tm-flags span small { font-size: var(--tm-fs-body); }
.tmuna .tm-city .tm-flags .f-trap.on { background: var(--tm-trapbg); color: #fff; }
.tmuna .tm-city .tm-flags .f-inj.on { background: #fde68a; color: #1f2937; } .tmuna .tm-city .tm-flags .f-haz.on { background: #fed7aa; color: #1f2937; }
.tmuna .tm-city .tm-flags .on b { color: inherit; }
.tmuna .tm-city .tm-worst { font-size: var(--tm-fs-body); margin-top: .45em; }
.tmuna .tm-city[data-h]:not([data-h="0"]) { border: 1px solid #7c3aed; box-shadow: 0 0 0 1px #7c3aed55; }
.tmuna .tm-secl { margin: 0 0 .3em; display: flex; flex-wrap: wrap; gap: .35em .8em; }
/* ---- график хавалим (W1) */
.hg-rows { display: grid; grid-template-columns: max-content minmax(2em, 1fr) auto auto; row-gap: .16em; }
.hg-r { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; column-gap: .45em; font-size: var(--tm-fs-body); cursor: pointer; border-radius: .4em; padding: .05em .2em; }
.hg-r:hover, .hg-r:focus-visible, .hg-r.cur { background: var(--tm-soft); outline: none; }
.hg-r .hvn { color: var(--tm-ink) !important; font-size: var(--tm-fs-body); overflow: hidden; }
.hg-t { height: 1.1em; background: var(--tm-row); border-radius: .35em; overflow: hidden; display: block; }
.hg-in { display: flex; height: 100%; border-radius: .35em; overflow: hidden; gap: 1px; }
.hg-in i { display: block; min-width: 2px; }
.hg-n { text-align: end; font-weight: 600; color: var(--tm-muted); }
.hg-p { text-align: end; font-weight: 700; }
.hg-note { margin: .2em 0 0; font-size: var(--tm-fs-body); color: var(--tm-muted); }
/* ---- карточки хавалим (W1) */
.tmuna .tm-cards { gap: var(--g); }
.tmuna .tm-card { padding: .55em .75em; gap: .4em; border-top: .3em solid var(--hc, var(--tm-line)); }
.tmuna .tm-card .c1 { font-size: var(--tm-fs-h); border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.tmuna .tm-card .c1 .hvdot { width: .7em; height: .7em; }
.tmuna .tm-card .c2 { align-items: center; gap: .55em; }
.tmuna .tm-card .pc { font-size: var(--tm-fs-kpi); }
.tmuna .tm-card .nm { flex-direction: row; flex-wrap: wrap; gap: 0 .3em; font-size: var(--tm-fs-body); }
.tmuna .tm-card .tm-prog { display: none; }
.tmuna .tm-card .tm-lvbar { height: .7em; border-radius: .35em; }
.tmuna .tm-card .tm-lvs { gap: .35em; }
.tmuna .tm-card .tm-lv { background: var(--tm-kpi); box-shadow: none; border: 0; border-bottom: .22em solid var(--c); border-radius: .5em; padding: .15em .3em .1em; align-items: center; text-align: center; }
.tmuna .tm-card .tm-lv b { font-size: var(--tm-fs-num); }
.tmuna .tm-card .tm-lv span { font-size: var(--tm-fs-body); }
.tmuna .tm-card .tm-flags { font-size: var(--tm-fs-body); gap: .3em; }
.tmuna .tm-card .tm-flags span { border-radius: .45em; padding: .05em .45em; background: var(--tm-kpi); }
.tmuna .tm-card .tm-flags b { font-size: var(--tm-fs-body); }
.tmuna .tm-card .tm-flags small, .tmuna .tm-worst small { font-size: var(--tm-fs-body); }
.tmuna.dark .tv-g.on b { color: #fed7aa; }
.tmuna.dark .tm-vul h2 small b, .tmuna.dark .tm-infra h2 small b { color: #fca5a5; }
.tmuna .tm-card .tm-flags .f-trap.on { background: var(--tm-trapbg); color: #fff; }
.tmuna .tm-card .tm-flags .f-inj.on { background: #fde68a; } .tmuna .tm-card .tm-flags .f-haz.on { background: #fed7aa; }
.tmuna .tm-card .tm-worst { font-size: var(--tm-fs-body); color: var(--tm-muted); }
.tmuna .tm-card .tm-worst b { color: var(--tm-ink); }
.tmuna .tm-cards.grp .tm-sech, .tmuna .tm-sech { background: var(--tm-panel); border: 1px solid var(--tm-line); border-radius: .6em; font-size: var(--tm-fs-body); padding: .1em .7em; gap: .3em 1.2em; }
.tmuna .tm-sech > b { font-size: var(--tm-fs-body); }
.tmuna .tm-sech .tr small { color: var(--tm-muted); font-weight: 600; }
/* «חבלים» строками */
.tmuna .tm-cards.rowsv { display: flex; flex-direction: column; contain: none; }
.tmuna .tm-hrows { flex: 1 1 auto; gap: .15em; overflow-y: auto; scrollbar-width: thin; }
.tm-hrow { display: grid; grid-template-columns: minmax(6em, 1.3fr) 3.6em minmax(3em, 2fr) 2.6em 2.4em 2.4em 3.6em; align-items: center; gap: .55em; padding: .2em .35em; border-radius: .45em; cursor: pointer; font-size: var(--tm-fs-body); border-inline-start: .25em solid transparent; }
.tm-hrow:hover, .tm-hrow:focus-visible { background: var(--tm-soft); outline: none; }
.tm-hrow.cur { background: var(--tm-soft); border-inline-start-color: var(--hc); }
.tm-hrow.flash { box-shadow: 0 0 0 .15em var(--tm-flash); }
.tm-hrow .hvn { color: var(--tm-ink) !important; font-weight: 600; }
.tm-hrow .hvn .mine { color: #6d28d9; font-weight: 700; }
.tm-hrow .hp { font-weight: 700; text-align: end; }
.tm-hrow .tm-lvbar { height: .8em; }
.tm-hrow .hn { color: var(--tm-muted); text-align: end; }
.tm-hrow .h3 { color: #b91c1c; font-weight: 700; text-align: end; } .tm-hrow .h2 { color: #c2410c; font-weight: 700; text-align: end; } .tm-hrow .ht { color: #b91c1c; font-weight: 700; white-space: nowrap; }
.tmuna.dark .tm-hrow .h3, .tmuna.dark .tm-hrow .ht { color: #fca5a5; } .tmuna.dark .tm-hrow .h2 { color: #fdba74; }
/* ---- списки: строки по 17 px+, ровные колонки */
.tmuna .tm-list li { gap: .55em; padding: .32em .3em; border-bottom: 1px solid var(--tm-row); line-height: 1.2; }
.tmuna .tm-list .a b { font-weight: 600; }
.tmuna .tm-list .a small, .tmuna .tm-list time, .tmuna .tm-list .lv { font-size: var(--tm-fs-body); }
.tmuna .tm-list .lv { border-radius: .45em; min-width: 4.2em; padding: .05em .5em; }
.tmuna .tm-list .ve, .tmuna .tr-top .ve { font-style: normal; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; flex: none; }
.tmuna .tm-list.tm-feedl li { border-inline-start: 0; }
.tmuna .tm-feedl li.new, .tmuna .tm-trapl li.new { animation: tmnew2 2s ease-out; }
@keyframes tmnew2 { 0% { background: color-mix(in srgb, #facc15 45%, transparent); } 100% { background: transparent; } }
/* ---- «אחרונים»: фильтр, «שורה», «ציר זמן» */
.rc-f { display: flex; flex-wrap: wrap; gap: .3em; margin: 0 0 .35em; flex: none; align-items: center; }
.rc-b, .rc-s, .rc-hv { font: inherit; font-size: var(--tm-fs-body); border: 1px solid var(--tm-line); background: transparent; color: var(--tm-ink); border-radius: 999px; padding: .08em .7em; cursor: pointer; line-height: 1.3; }
.rc-b.on { background: var(--tm-ink); color: var(--tm-card); border-color: var(--tm-ink); font-weight: 700; }
.rc-s { margin-inline-start: auto; color: var(--tm-muted); }
.rc-hv { border-radius: .5em; padding: .05em .3em; max-width: 7.5em; }
.tmuna.dark .rc-hv option { background: #121c2e; }
.tm-feedl li > .a { flex-direction: row; align-items: center; gap: .3em; overflow: hidden; }
.tm-feedl li > .a > b { overflow: hidden; text-overflow: ellipsis; }
.tm-feedl .fl3 { grid-template-columns: 2.9em 1.3em 1.3em; }
.tmuna .tm-feedl .lv { min-width: 3.2em; }
.tm-feedl .hvn { min-width: 4.6em; }
.tm-feedl.tml li { align-items: flex-start; padding-inline-start: .2em; }
.tm-feedl.tml li time { min-width: 3em; padding-inline-end: .55em; border-inline-end: .2em solid var(--c); align-self: stretch; padding-top: .05em; }
.tm-feedl.tml .a { flex-direction: column; align-items: stretch; gap: .15em; }
.tm-feedl.tml .l1 { display: flex; align-items: center; gap: .3em; min-width: 0; }
.tm-feedl.tml .l1 > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-feedl.tml .l1 .fl3 { margin-inline-start: auto; }
.tm-feedl.tml .l2 { display: flex; align-items: center; gap: .5em; min-width: 0; }
.tm-feedl.tml .l2 small { color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--tm-fs-body); }
/* ---- «⚠ לכודים» (W1–W4) */
.tr-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; margin: 0 0 .45em; flex: none; }
.tr-kpi > div { background: var(--tm-kpi); border: 1px solid var(--tm-line); border-radius: .7em; padding: .3em .55em; min-width: 0; }
.tr-kpi b { display: block; font-size: var(--tm-fs-kpi); font-weight: 700; line-height: 1.05; }
.tr-kpi span { font-size: var(--tm-fs-body); color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tr-kpi span small { font-size: var(--tm-fs-body); }
.tr-kpi .k1 b { color: #b91c1c; } .tmuna.dark .tr-kpi .k1 b { color: #fb7185; }
.tr-kpi .k3 b { color: #0f766e; } .tmuna.dark .tr-kpi .k3 b { color: #5eead4; }
.tmuna .tm-trap .tm-where { min-height: 0; flex: 0 1 auto; margin-bottom: .4em; }
.tmuna .tm-where h3 { font-size: var(--tm-fs-body); margin: 0 0 .2em; }
.tmuna .tm-where { display: grid; grid-template-columns: minmax(0, max-content) minmax(2em, 1fr) auto; align-content: start; }
.tmuna .tm-where > h3, .tmuna .tm-where > .tm-of { grid-column: 1 / -1; }
.tmuna .tm-where .wr, .tmuna .tm-where.st .wr { grid-column: 1 / -1; grid-template-columns: subgrid; font-size: var(--tm-fs-body); padding: .06em .15em; }
.tmuna .tm-where .wl { border: 0; padding: 0; display: flex; align-items: center; gap: .35em; }
.tmuna .tm-where .wl > i { width: .66em; height: .66em; border-radius: 50%; background: var(--hc); flex: none; }
.tmuna .tm-where .wb { height: .75em; border-radius: .4em; background: var(--tm-row); }
.tmuna .tm-where .wb i { border-radius: .4em; }
.tmuna .tm-where .wn { font-size: var(--tm-fs-body); min-width: 2.4em; }
.tmuna .tm-where .wbn { display: none; }
.tmuna .tm-trapl li { padding: .3em .2em; }
.tmuna .tm-trapl .n { min-width: 2.6em; height: 1.85em; border-radius: .5em; font-size: var(--tm-fs-num); font-weight: 700; background: var(--tm-trapbg); }
.tmuna .tm-trapl li.unk .n { opacity: .85; }
.tmuna .tm-trapl li .a small { display: flex; align-items: center; gap: .45em; overflow: hidden; }
.tmuna .tm-trapl li .a small .vn { color: #0f766e; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tmuna.dark .tm-trapl li .a small .vn { color: #5eead4; }
.tmuna .tm-trapl li .a small .lvs { border-radius: .4em; padding: 0 .45em; font-weight: 600; flex: none; font-size: var(--tm-fs-body); }
.tmuna .tm-trapl li.sep small { font-size: var(--tm-fs-body); }
.tmuna .tm-box > h2 small.mine, .tmuna .tm-city .mine, .tmuna .tm-card .mine { color: #5b21b6; background: #ede9fe; font-size: var(--tm-fs-body); padding: 0 .55em; border-radius: 999px; flex: none; margin-inline-start: .2em; }
.tm-hrow .hvn .mine { font-size: var(--tm-fs-body); }
.tmuna.dark .tm-hrow .hvn .mine { color: #c4b5fd; }
.tmuna .tm-trapl li.vul { border-inline-start: .25em solid #14b8a6; background: color-mix(in srgb, #14b8a6 8%, transparent); }
.tmuna .tm-trapl .ve { font-size: var(--tm-fs-num); }
.tmuna .tm-trapl.ladder li { position: relative; isolation: isolate; border-bottom: 0; margin-bottom: .22em; border-radius: .5em; background: var(--tm-kpi); }
.tmuna .tm-trapl.ladder li::before { content: ''; position: absolute; inset: 0 0 0 auto; width: var(--w); z-index: -1; border-radius: .5em; background: linear-gradient(270deg, color-mix(in srgb, #dc2626 38%, transparent), color-mix(in srgb, #7c3aed 22%, transparent)); }
.tmuna .tm-trapl.ladder li .n { background: none; color: inherit; font-size: var(--tm-fs-num); min-width: 2.3em; }
.tr-top { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-bottom: .4em; flex: none; }
.tr-top .tt { background: linear-gradient(160deg, #991b1b, #7f1d1d); color: #fff; border-radius: .75em; padding: .4em .6em; cursor: pointer; display: flex; flex-direction: column; gap: .1em; min-width: 0; box-shadow: inset 0 1px 0 #ffffff22; }
.tr-top .tt .n { font-size: var(--tm-fs-kpi); font-weight: 700; line-height: 1; }
.tr-top .tt .n small { font-size: var(--tm-fs-body); font-weight: 600; margin-inline-start: .3em; }
.tr-top .tt .a { display: flex; flex-direction: column; min-width: 0; }
.tr-top .tt .a > b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-top .tt .a small { display: flex; gap: .4em; align-items: center; overflow: hidden; }
.tr-top .tt .hvn { color: #fde2e2 !important; }
.tr-top .tt .vn { color: #fecaca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-top .tt:hover, .tr-top .tt:focus-visible { outline: .15em solid #fecaca; }
.tmuna .tm-trap[data-v="compact"] .tm-where { flex: 1 1 auto; overflow-y: auto; }
/* ---- מוסדות / תשתיות / הכי פגועים / לבדוק / אזורים — ровные строки */
.tmuna .tm-vul { border-color: var(--tm-line); }
.tmuna .tv-g { font-size: var(--tm-fs-body); border-radius: .5em; padding: .05em .45em; }
.tmuna .tv-g small, .tmuna .tm-sech small, .tmuna .tv-sel { font-size: var(--tm-fs-body); }
.tmuna .tm-infra, .tmuna .tm-c2bot > .tm-infra { border-color: var(--tm-line); }
.tmuna .tm-infl li, .tmuna .tm-vull li { border-inline-start-width: .25em; }
.tmuna .tm-infl .a small, .tmuna .tm-vull .a small { font-size: var(--tm-fs-body); }
.tm-rank li { gap: .5em; }
.tm-rank .dn { display: flex; gap: .5em; flex: none; font-size: var(--tm-fs-body); font-weight: 700; }
.tm-rank .dn .l3 { color: #b91c1c; } .tm-rank .dn .l2 { color: #c2410c; } .tm-rank .dn .tr { color: #7f1d1d; }
.tmuna.dark .tm-rank .dn .l3, .tmuna.dark .tm-rank .dn .tr { color: #fca5a5; } .tmuna.dark .tm-rank .dn .l2 { color: #fdba74; }
.tmuna .tm-nb { font-size: var(--tm-fs-body); margin: 0 0 .3em; display: flex; flex-wrap: wrap; gap: .1em 1em; flex: none; }
.tmuna .tm-nb .l3 { color: #b91c1c; font-weight: 700; } .tmuna .tm-nb .l2 { color: #c2410c; font-weight: 700; }
.tmuna.dark .tm-nb .l3 { color: #fca5a5; } .tmuna.dark .tm-nb .l2 { color: #fdba74; }
.tm-statl li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(2em, 5em) 2.4em 2em 3.4em; align-items: center; }
.tm-statl .a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-statl .a b small { color: var(--tm-muted); font-weight: 400; }
.tm-statl .sn { color: var(--tm-muted); text-align: end; } .tm-statl .s3 { color: #b91c1c; font-weight: 700; text-align: end; } .tm-statl .st { color: #b91c1c; font-weight: 700; white-space: nowrap; }
.tmuna.dark .tm-statl .s3, .tmuna.dark .tm-statl .st { color: #fca5a5; }
.tmuna .tm-rank, .tmuna .tm-next, .tmuna .tm-statl { overflow-y: auto; scrollbar-width: thin; flex: 1 1 auto; min-height: 0; }
.tmuna .tm-box .tm-next li { cursor: pointer; }
.tmuna .tm-map { gap: .3em; }
.tmuna .tm-maplg { font-size: var(--tm-fs-body); }
/* ---- «לשוניות» (W5) */
.tmuna .tm-tabs { padding-top: .45em; }
.tm-tabbar { display: flex; gap: .35em; align-items: center; flex-wrap: wrap; padding-bottom: .4em; border-bottom: 1px solid var(--tm-line); margin-bottom: .4em; flex: none; }
.tm-tab { font: inherit; font-size: var(--tm-fs-body); border: 1px solid var(--tm-line); background: transparent; color: var(--tm-ink); border-radius: 999px; padding: .12em .75em; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.tm-tab i { font-style: normal; }
.tm-tab .tn { font-weight: 700; }
.tm-tab.on { background: var(--tm-ink); color: var(--tm-card); border-color: var(--tm-ink); }
.tm-tab[hidden] { display: none; }
.tm-tabauto { font: inherit; font-size: var(--tm-fs-body); margin-inline-start: auto; border: 0; background: none; color: var(--tm-muted); cursor: pointer; padding: .1em .3em; }
.tm-tabauto.on { color: #0f766e; font-weight: 700; } .tmuna.dark .tm-tabauto.on { color: #5eead4; }
.tmuna .tm-tabs > .tm-box, .tmuna .tm-tabs > .tm-cards, .tmuna .tm-tabs > .tm-oref { flex: 1 1 0; min-height: 0; border: 0; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.tmuna .tm-tabs > .tm-box > h2 { display: none; }
.tmuna .tm-tabs > .tab-off { display: none !important; }
/* ---- «⚙️ סידור» */
.tm-acts .tm-arr.on { background: #facc15; color: #111; }
.tm-edbar { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; padding: .45em .9em; background: #facc15; color: #111; font-size: var(--tm-fs-body); }
.tm-edbar[hidden] { display: none; }
.tm-edbar .ed-pre { display: flex; gap: .35em; flex-wrap: wrap; }
.tm-edbar button { font: inherit; border: 1px solid #a16207; background: #fef9c3; color: #111; border-radius: 999px; padding: .1em .75em; cursor: pointer; }
.tm-edbar .ed-p.on { background: #111; color: #facc15; border-color: #111; font-weight: 700; }
.tm-edbar .ed-reset { margin-inline-start: auto; }
.tm-edbar .ed-done { background: #111; color: #fff; border-color: #111; font-weight: 700; }
.tm-grid.editing .tm-slot { outline: 2px dashed #facc15; outline-offset: 2px; border-radius: var(--r); }
.tm-grid.editing .tm-slot.empty::after, .tm-grid.editing .tm-cell.empty::after { content: 'אין מה להראות כרגע — יופיע כשיהיה'; color: var(--tm-muted); font-size: var(--tm-fs-body); padding: .5em; text-align: center; }
.tm-ed { display: flex; flex-wrap: wrap; gap: .3em; align-items: center; background: #fef9c3; color: #111; border-radius: .6em; padding: .25em .35em; margin-bottom: .3em; font-size: var(--tm-fs-body); flex: none; z-index: 2; box-shadow: 0 .2em .6em #0005; }
.tm-ed select, .tm-ed button { font: inherit; border: 1px solid #a16207; background: #fff; color: #111; border-radius: .45em; padding: .1em .4em; min-height: 1.9em; cursor: pointer; }
.tm-ed button[disabled] { opacity: .35; cursor: default; }
.tm-ed .ed-h { display: inline-flex; align-items: center; gap: .15em; } .tm-ed .ed-h b { min-width: 2.4em; text-align: center; }
.tm-ed .ed-x, .tm-ed .ed-cx, .tm-ed .ed-tx { color: #b91c1c; }
.tm-ed .ed-t { font-weight: 700; }
.tm-ed .ed-tab { display: inline-flex; gap: .15em; align-items: center; background: #fde68a; border-radius: .45em; padding: .1em; }
.tm-ed.sub { background: #fef3c7; box-shadow: none; }
.tm-add { font: inherit; border: 2px dashed #facc15; background: transparent; color: var(--tm-ink); border-radius: var(--r); padding: .4em; cursor: pointer; flex: none; }
.tm-grip { position: absolute; inset-inline: 20%; bottom: calc(-1 * var(--g) / 2 - .35em); height: .7em; border-radius: 999px; background: #facc15; cursor: ns-resize; z-index: 3; touch-action: none; box-shadow: 0 0 0 .2em #0004; }
@media (pointer: coarse) { .tm-ed select, .tm-ed button, .tm-edbar button, .rc-b, .rc-s, .rc-hv, .tm-tab { min-height: 44px; } .tm-grip { height: 1.4em; bottom: -1em; } }
@media (prefers-reduced-motion: reduce) { .tmuna .tm-feedl li.new { animation: none; } .tmuna .bump { transition: none; } }
/* ---- телефон: одна колонка, места по важности (как было: итог, хавалим, לכודים, אחרונים, потом остальное) */
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) {
  .tmuna .tm-grid.mods { display: flex; flex-direction: column; padding: .6em; }
  .tmuna .tm-grid.mods > .tm-col { display: contents; }
  .tmuna .tm-slot, .tmuna .tm-slot.auto { flex: none; overflow: visible; }
  .tmuna .tm-slot.row { flex-direction: column; }
  .tmuna .tm-slot > .tm-box, .tmuna .tm-slot > .tm-cards, .tmuna .tm-cell > .tm-box, .tmuna .tm-cell > .tm-cards { flex: none; contain: none; }
  .tm-slot[data-m~="scope"] { order: 1; } .tm-slot[data-m~="hevels"] { order: 2; } .tm-slot[data-m~="traps"] { order: 3; } .tm-slot[data-m~="recent"] { order: 4; }
  .tm-slot[data-m~="tabs"] { order: 4; } .tm-slot[data-m~="vul"], .tm-slot[data-m~="infra"] { order: 5; } .tm-slot { order: 6; } .tm-slot[data-m~="map"] { order: 7; }
  .tmuna .tm-map { height: 22em; } .tmuna .tm-chart { height: 17em; }
  .tmuna .tm-trapl { max-height: none; overflow: visible; } .tmuna .tm-list.tm-feedl { max-height: 34em; overflow-y: auto; } .tmuna .tm-tabs { max-height: 40em; }
  .tmuna .tm-feedl li > .a { flex-wrap: wrap; }
  .tmuna .tm-hrow { grid-template-columns: minmax(5em, 1fr) 3.4em minmax(2em, 1fr) 2.4em 2.2em 2.2em 3em; }
  .tmuna .tm-tabs > .tm-box { max-height: none; }
  .tm-edbar { font-size: var(--tm-fs-body); }
}
/* печать: один лист, без правки, без анимаций */
body.tm-print .tm-edbar, body.tm-print .tm-ed, body.tm-print .tm-add, body.tm-print .tm-grip, body.tm-print .rc-f, body.tm-print .tm-tabauto { display: none !important; }
body.tm-print .tm-grid.editing .tm-slot { outline: 0; }
@media print { .tm-edbar, .tm-ed, .tm-add, .tm-grip, .rc-f { display: none !important; } .tmuna { background: #fff !important; } .tmuna .tm-box, .tmuna .tm-card { background: #fff; } }
.tmuna .a small .hvn, .tmuna .tm-where .wl small, .tmuna .tm-statl .a b small { font-size: var(--tm-fs-body); }
/* хевель внутри подписи (small) — того же размера, что подпись (≥ 17 px на 1920) */
.tmuna .tm-list .a small .hvb.hvn, .tmuna .tr-top .tt .a small .hvb.hvn, .tmuna .tm-list .l2 .hvb.hvn { font-size: var(--tm-fs-body); }
.tmuna .tr-top .tt .a small { font-size: var(--tm-fs-body); }
.tmuna .tm-rank .rk { font-size: var(--tm-fs-body); width: 1.7em; height: 1.7em; }
/* «⚙️ סידור»: панели правки занимают место — колонка листается, места не наезжают друг на друга */
.tmuna .tm-grid.mods.editing > .tm-col { overflow-y: auto; scrollbar-width: thin; padding: 3px; }
.tmuna .tm-grid.mods.editing .tm-slot { min-height: 7em; }
.tmuna .tm-grid.mods.editing .tm-slot.auto { overflow: visible; }
/* «אחרונים» строкой: колонки общие для всех строк (subgrid) — ⚠🩹🔥, хевель и уровень ровно под друг другом, адресу — всё остальное */
.tmuna .tm-list.tm-feedl:not(.tml) { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content; align-content: start; column-gap: .55em; }
.tmuna .tm-list.tm-feedl:not(.tml) > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.tmuna .tm-feedl:not(.tml) .hvn { min-width: 0; }
@media (max-width: 820px), (max-height: 480px) and (max-width: 1000px) { .tmuna .tm-acts { flex-wrap: wrap; justify-content: flex-end; row-gap: .3em; min-width: 0; } .tm-acts .tm-arr .tl { display: none; } }

/* ===== v18.11.12 — телефон «для самого простого работника» (Алексей 18.11 13:04, вариант B + C; claude-hub plans/nezakim-phone-tabs.md):
   вкладки внизу «מפה · חבלים · מה שסומן · עוד», значок + слово у каждой кнопки, счётчики со словами (= фильтр карты),
   «לוח חבלים» и «מה שסומן» — во весь экран, меню — листом снизу. Только ≤ 820 px и body.ptabs (js/tabs.js); компьютер не меняется. */
.ptabbar, .pnet, .mflt, .ptip { display: none; }
@media (max-width: 820px) {
  body.ptabs { --tabs-h: calc(62px + env(safe-area-inset-bottom)); }
  body.ptabs .main { grid-template-rows: minmax(0, 1fr) auto auto auto; grid-template-areas: "map" "inst" "panel" "tabs"; }
  body.ptabs.field .main { grid-template-rows: minmax(0, 1fr) auto auto auto; grid-template-areas: "map" "inst" "sheet" "tabs"; }

  /* --- вкладки --- */
  body.ptabs .ptabbar { display: grid; grid-area: tabs; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: var(--tabs-h); padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); border-top: 1px solid #cbd5e1; box-shadow: 0 -4px 14px #0002; position: relative; z-index: 8; }
  #tabs > .tab { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; min-height: 62px; padding: 7px 2px 6px; color: #334155; font: 600 14px/1.15 var(--font); text-align: center; cursor: pointer;
    border-top: 4px solid transparent; -webkit-tap-highlight-color: transparent; }
  #tabs > .tab > :not(.tb-i):not(.tb-t):not(#fMineN) { display: none !important; }
  #tabs > .tab::after, #tabs > .tab::before { content: none !important; } /* невидимая рамка «для пальца» шапки — у вкладки не нужна (вылезала за край → телефон отдалял страницу) */
  #tabs > .tab .tb-i { display: block; line-height: 0; }
  #tabs > .tab .tb-i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  #tabs > .tab .tb-t { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #tabs > .tab.on { color: #1d4ed8; border-top-color: #1d4ed8; background: #eff6ff; font-weight: 800; }
  #tabs > .tab:active { background: #e2e8f0; }
  #tabs > .tab:focus-visible { outline: 3px solid #1d4ed888; outline-offset: -3px; }
  #tabs #fMineN { position: absolute; top: 5px; inset-inline-start: calc(50% + 8px); min-width: 22px; height: 21px; padding: 0 6px; border-radius: 999px;
    background: #1f2937; color: #fff; font: 700 13px/21px var(--font); font-variant-numeric: tabular-nums; text-align: center; }
  body.ptabs.look-a .ptabbar { background: #0f172a; border-top-color: #334155; }
  body.ptabs.look-a #tabs > .tab { color: #cbd5e1; }
  body.ptabs.look-a #tabs > .tab.on { color: #93c5fd; border-top-color: #60a5fa; background: #1e293b; }
  body.ptabs.look-a #tabs #fMineN { background: #e2e8f0; color: #0f172a; }
  /* дом открыт (панель / лист), выбор места «⚠️ תשתית» — вкладки прячутся, место — дому */
  body.ptabs:has(#panel:not([hidden])) .ptabbar, body.ptabs:has(#fsheet:not([hidden])) .ptabbar, body.ptabs.inf-aiming .ptabbar { display: none; }

  /* --- шапка: название + версия, плашка состояния словом, поиск, счётчики со словами --- */
  body.ptabs .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand pnet" "search search" "counts counts"; }
  body.ptabs .top > .net, body.ptabs .top > .queue, body.ptabs .top > .presbtn { display: none !important; }
  body.ptabs .brand { flex-wrap: wrap; row-gap: 2px; }
  body.ptabs .brand .ver { font-size: 12px; }
  body.ptabs .pnet { display: inline-flex; grid-area: pnet; align-items: center; justify-self: end; max-width: 52vw; padding: 5px 11px; border-radius: 999px;
    font: 700 13px/1.25 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; background: #dcfce7; color: #14532d; }
  body.ptabs .pnet.wait { background: #fef3c7; color: #422006; }
  body.ptabs .pnet.off { background: #fee2e2; color: #7f1d1d; white-space: normal; text-align: center; }
  body.ptabs .pnet.local { background: #e2e8f0; color: #0f172a; }
  body.ptabs .counts { flex-wrap: wrap; overflow: visible; gap: 8px 6px; }
  body.ptabs .cnt { position: relative; min-height: 40px; padding: 0 12px; gap: 5px; font-size: 14px; font-weight: 600; border: 2px solid rgba(255, 255, 255, .8); }
  body.ptabs .cnt .cl { display: inline; }
  body.ptabs .cnt b { order: 1; font-size: 15px; }
  body.ptabs .cnt::after { content: ''; position: absolute; inset: -5px -3px; } /* место для пальца 48 px, ряды не наезжают (зазор 8) */
  body.ptabs .cnt.on { border-color: #fff; box-shadow: 0 0 0 3px #fff8; }
  body.ptabs .cnt.nob { background: transparent; color: #e2e8f0; border-color: transparent; cursor: default; padding-inline: 4px; }
  body.ptabs .cnt.nob::after { content: none; }
  body.ptabs.field .cnt:not(.nob) { cursor: pointer; }

  /* --- фильтр карты по счётчику --- */
  body.ptabs .mflt:not([hidden]) { display: inline-flex; position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 20px);
    align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px 4px 16px; border-radius: 999px; background: #0f172a; color: #fff; border: 2px solid #fff;
    font: 600 15px/1.2 var(--font); box-shadow: 0 4px 14px #0006; cursor: pointer; white-space: nowrap; }
  body.ptabs .mflt i { font-style: normal; flex: none; background: #fff; color: #0f172a; border-radius: 999px; padding: 8px 12px; font-weight: 800; }

  /* --- «לוח חבלים» — вкладка во весь экран (поверх карты, карта живёт под ней) --- */
  /* под полосой тревоги (она поверх карты) — не под ней: прокручиваемое иначе уезжало под полосу */
  body.ptabs .main > .board { grid-area: map; max-height: none; height: auto; align-self: stretch; margin-top: var(--oref-h, 0px); border-radius: 0; box-shadow: none; border-top: 0; z-index: 6; overflow: auto;
    padding-bottom: 16px; }
  body.ptabs #boardClose { display: none; }
  body.ptabs .bd-head { padding: 12px 14px 6px; flex-wrap: wrap; }
  body.ptabs .bd-head > b { font-size: 19px; }
  body.ptabs .tile { padding: 11px 12px 9px; }
  body.ptabs .tile .tgo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  body.ptabs .tile .tgo > span, body.ptabs .bd-own .tgo > span { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px; border-radius: 10px;
    font: 700 14px/1.2 var(--font); background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
  body.ptabs .tile .tgo .tg-det, body.ptabs .bd-own .tgo .tg-det { background: #fff; color: #0f172a; border-color: #94a3b8; }
  body.ptabs .bd-own .tgo { display: flex; margin-top: 10px; }
  body.ptabs .infc[data-infx], body.ptabs .vulc[data-vulx] { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: 6px; padding: 4px 10px;
    border-radius: 10px; border: 1px solid #94a3b8; background: #fff; text-decoration: none; cursor: pointer; white-space: normal; }
  body.ptabs .vulc[data-vulx]::after { content: '‹'; font-weight: 800; margin-inline-start: 4px; }
  body.ptabs .bd-tiles:not(.ownmode) .tile .w { display: inline; } /* слова у чисел: «נבדקו 12 מתוך 3,169», «מוסדות רגישים שנפגעו» */
  body.ptabs .bd-tiles:not(.ownmode) .tile .t2 .tm::before { content: none; }
  body.ptabs .bd-tiles:not(.ownmode) .tile { padding: 11px 12px 9px; gap: 10px; }
  body.ptabs .t4.vulc { font-size: 14px; }
  body.ptabs .bd-tiles:not(.ownmode) { grid-template-columns: minmax(0, 1fr); gap: 10px; } /* одна колонка: плитка во всю ширину, кнопки в ряд */
  body.ptabs .tile .t1 b { font-size: 17px; }
  body.ptabs .tile .t2 { font-size: 14px; }
  body.ptabs .secsum .sl { display: inline-flex; align-items: center; min-height: 40px; padding: 2px 10px; border-radius: 10px; border: 1px solid #94a3b8; background: #fff; cursor: pointer; }
  body.ptabs .secsum .sl::after { content: ' ‹'; font-weight: 800; white-space: pre; }
  body.ptabs .bd-tiles .secsum .sl .w { display: none; } /* «לחימה א' 6 · ⚠ 1» — без «/10,627» (числа рядом путались местами) */
  body.ptabs .tile.mini::after { content: '‹'; position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); font: 800 18px/1 var(--font); color: #475569; }
  body.ptabs .tile.mini { position: relative; padding-inline-end: 22px; }

  /* --- «מה שסומן»: у שטח — #fmine, у מנ״מ/חמ״ל — список «סימונים אחרונים» во весь экран --- */
  body.ptabs.field #fmine:not([hidden]) { grid-area: map; max-height: none; height: auto; align-self: stretch; margin-top: var(--oref-h, 0px); border-radius: 0; box-shadow: none; border-top: 0; z-index: 6; }
  body.ptabs #fMineClose { display: none; }
  body.ptabs.center.tab-list .main > .list { display: flex !important; grid-area: map; z-index: 6; border: 0; min-height: 0; margin-top: var(--oref-h, 0px); }
  body.ptabs .list .marks li, body.ptabs #fMineList li[data-b] { position: relative; padding-inline-end: 30px; min-height: 48px; }
  body.ptabs .list .marks li[data-b]::after, body.ptabs #fMineList li[data-b]::after { content: '‹'; position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%);
    font: 800 22px/1 var(--font); color: #475569; }
  body.ptabs .list .marks li.vstrip { min-height: 48px; }
  body.ptabs .bd-own li[data-b] { position: relative; padding-inline-end: 26px; min-height: 44px; cursor: pointer; }
  body.ptabs .bd-own li[data-b]::after { content: '‹'; position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); font: 800 20px/1 var(--font); color: #475569; }
  body.ptabs .list-head b { font-size: 18px; }
  body.ptabs .sortseg button, body.ptabs .scope button, body.ptabs #fltReset, body.ptabs #fMineList .mine-out button { min-height: 44px; font-size: 14px; }

  /* --- «עוד» — меню листом снизу над вкладками --- */
  body.ptabs .menu { position: fixed; top: auto; bottom: var(--tabs-h); inset-inline: 0; width: auto; max-width: none; margin: 0; padding: 12px 12px 14px;
    max-height: calc(100dvh - var(--tabs-h) - 48px) !important; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px #0005, 0 0 0 100vmax #0f172a66; z-index: 45; }
  body.ptabs .menu .mg > button, body.ptabs .menu .mg > label { height: 48px; min-height: 48px; font-size: 16px; }
  body.ptabs .menu .mg-h { font-size: 14px; }
  body.ptabs .menu select { min-height: 44px; }
  body.ptabs .menu .pk-btn { min-height: 48px; } /* как строки меню (одна высота — tests/feedback1.cjs) */

  /* --- карта: у каждой кнопки слово --- */
  body.ptabs.loc-on .locbtn.locbtn { width: auto; padding: 0 14px 0 11px; border-radius: 999px; grid-auto-flow: column; gap: 6px; color: #0f172a; font: 700 15px/1 var(--font); }
  body.ptabs .locbtn::after { content: 'המיקום שלי'; white-space: nowrap; }
  body.ptabs.look-a.loc-on .locbtn.locbtn { color: var(--glass-ink, #e6eefa); }
  body.ptabs.loc-on #backHaifa.backhaifa { right: calc(10px + var(--locw, 44px) + 8px); }
  body.ptabs .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in, body.ptabs .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out {
    width: auto !important; min-width: 48px; height: 48px !important; display: flex; align-items: center; gap: 2px; padding: 0 10px 0 4px; }
  body.ptabs .maplibregl-ctrl-group button .maplibregl-ctrl-icon { flex: none; width: 30px; height: 30px; }
  body.ptabs .maplibregl-ctrl-zoom-in::after, body.ptabs .maplibregl-ctrl-zoom-out::after { font: 700 14px/1 var(--font); color: #0f172a; white-space: nowrap; }
  body.ptabs .maplibregl-ctrl-zoom-in::after { content: 'הגדלה'; }
  body.ptabs .maplibregl-ctrl-zoom-out::after { content: 'הקטנה'; }
  body.ptabs.look-a .maplibregl-ctrl-zoom-in::after, body.ptabs.look-a .maplibregl-ctrl-zoom-out::after { color: #e6eefa; }
  /* низкая карта (360×640 + полоса тревоги): +/− без слов, узкие — иначе налезают на «🏠 כל העיר» */
  body.ptabs.map-short .maplibregl-ctrl-zoom-in::after, body.ptabs.map-short .maplibregl-ctrl-zoom-out::after { content: none; }
  body.ptabs.map-short .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in, body.ptabs.map-short .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out { width: 48px !important; padding: 0 9px; }
  body.ptabs .d3cmp:not([hidden])::after { content: 'צפון'; font: 700 12px/1 var(--font); }
  body.ptabs .mapcorner :is(.lybtn, .d3btn) { height: 48px; font-size: 15px; }
  body.ptabs .locbtn::before, body.ptabs #backHaifa::before { content: ''; position: absolute; inset: -3px -2px; } /* место для пальца 48 px, вид прежний (44) */
  /* ✕ листов — со словом */
  body.ptabs .fsheet > .close, body.ptabs .panel > .close { width: auto; padding: 0 12px; min-width: 48px; min-height: 44px; font-weight: 700; }
  body.ptabs .fsheet > .close::after, body.ptabs .panel > .close::after { content: ' סגירה'; font-size: 14px; white-space: pre; }

  /* --- «סמן בניין» / «⚠️ תשתית» над вкладками: ниже прежнего (место карте), отступ снизу — у вкладок --- */
  body.ptabs.field .fbar { padding: 8px 10px; }
  body.ptabs .fmark { padding: 12px 10px; font-size: 21px; min-height: 52px; }
  body.ptabs .finf { white-space: nowrap; min-height: 52px; font-size: 16px; }
  /* низкий экран (360×640 …): шапка и кнопки плотнее — карте остаётся больше */
  @media (max-height: 700px) {
    body.ptabs .top { padding-block: 4px 5px; row-gap: 4px; }
    body.ptabs .search input { padding-block: 6px; }
    body.ptabs .counts { gap: 6px; }
    body.ptabs .cnt { min-height: 36px; }
    body.ptabs .cnt::after { inset: -6px -3px; }
    #tabs > .tab { min-height: 56px; padding-block: 5px 4px; }
    #tabs > .tab .tb-i svg { width: 24px; height: 24px; }
    body.ptabs.field .fbar { padding: 6px 10px; }
    body.ptabs .fmark, body.ptabs .finf { min-height: 48px; padding-block: 8px; }
    /* низкий экран и полоса тревоги над картой: счётчики одной строкой (листаются вбок, слова остаются) — карта не меньше прежней */
    body.ptabs:has(#oref:not([hidden])) .counts { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-block: 5px; margin-block: -5px; }
  }
  @media (max-width: 380px) { body.ptabs .brand img { display: none; } }

  /* --- тост — над вкладками (и над «סמן בניין») --- */
  body.ptabs #toast { bottom: calc(var(--tabs-h) + 12px); }
  body.ptabs.field:has(#fbar:not([hidden])) #toast { bottom: calc(var(--tabs-h) + 100px); }
  body.ptabs:has(#panel:not([hidden])) #toast, body.ptabs:has(#fsheet:not([hidden])) #toast { bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* --- подсказки первого входа --- */
  body.ptabs .ptip:not([hidden]) { display: block; position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(var(--tabs-h) + 14px); margin: auto; max-width: 520px;
    background: #0f172a; color: #fff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 12px 32px #0007; font: 500 16px/1.45 var(--font); font-variant-numeric: tabular-nums; }
  body.ptabs .ptip p { margin: 0 0 10px; }
  body.ptabs .ptip .pt-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  body.ptabs .ptip button { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; font: 700 16px/1.2 var(--font); cursor: pointer; }
  body.ptabs .ptip .pt-ok { background: #fff; color: #0f172a; }
  body.ptabs .ptip .pt-skip { background: transparent; color: #e2e8f0; border: 1px solid #64748b; }
  body.ptabs .ptip .pt-n { margin-inline-start: auto; font-size: 14px; color: #cbd5e1; }
  body.ptabs .ptip-hl { outline: 3px solid #f59e0b !important; outline-offset: -3px; }
  body.ptabs #tabs.ptip-hl { outline-offset: -2px; }
}
.tmuna .tm-trapl li.sep, .tmuna .tm-trap h3 { font-size: var(--tm-fs-body); }
.tmuna .tv-g { padding: .05em .3em; } .tmuna .tv-gs { gap: .2em; }
.tmuna .tm-hrow .hvn, .tmuna .hg-r .hvn { font-size: var(--tm-fs-body); }
/* «סידור»: у ряда панель — сверху во всю ширину, модули ряда — под ней */
.tmuna .tm-grid.editing .tm-slot.row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); }
.tmuna .tm-grid.editing .tm-slot.row > .tm-ed { grid-column: 1 / -1; }
.tmuna .tm-grid.editing .tm-slot.row > .tm-cell { grid-row: 2; }
/* тревоги: своя доля колонки, список листается; карта не сжимается в ноль */
.tmuna .tm-slot[data-m="map"] { min-height: 9em; }
.tmuna .tm-slot[data-m="oref"] { min-height: 6.5em; }
.tmuna .tm-slot > .tm-oref { display: flex; flex-direction: column; }
.tmuna .tm-oref .tm-orefl { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.tmuna .tm-oref .tm-of { flex: none; }
.tmuna .tm-oref h2 small.on { color: #fff; background: #dc2626; }
.tmuna .tm-grid.mods.editing .tm-slot { min-height: 11em; }
.tmuna #tmWorst .wscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.tmuna #tmWorst .wscroll .tm-rank { overflow: visible; }
/* правая колонка с тревогами: «גרף חבלים» уступает место (своя прокрутка), карта и тревоги — не меньше 7 / 5 строк */
.tmuna .tm-slot.auto[data-m="hgraph"] { flex: 0 1 auto; min-height: 6em; }
.tmuna .tm-slot[data-m="hgraph"] > .tm-hg { flex: 0 1 auto; min-height: 0; }
.tmuna .tm-hg .hg-rows { min-height: 0; overflow-y: auto; scrollbar-width: thin; flex: 0 1 auto; }
.tmuna .tm-hg .hg-note { flex: none; }
.tmuna .tm-slot[data-m="map"] { min-height: 7em; }
.tmuna .tm-slot[data-m="oref"] { min-height: 5em; }
.tmuna .tm-grid.mods.editing .tm-slot[data-m="hevels"] { min-height: 24em; }
.tmuna .tm-oref .tm-of { margin-bottom: .1em; line-height: 1.3; }
.tmuna .tm-slot[data-m="oref"] { min-height: 8em; }
.tmuna .tm-oref > h2 { flex: none; }
.tmuna .tm-grid.mods.editing .tm-card .tm-flags { flex-wrap: wrap; }
.tmuna .tm-grid.mods.editing .tm-slot[data-m="hevels"] { min-height: 30em; }

/* ---------- 18.11 «🏠 מבני קליטה» (js/kelita.js) и «🦺 צוותי חילוץ» (js/teams.js) ---------- */
.khead b { font-weight: 800; }
.ksub, .kel-sub-live { font-weight: 500; color: var(--muted); font-size: .82em; }
.ly-kel { border-color: #bbf7d0; background: #f0fdf4; cursor: default; padding: 4px 6px 4px 10px; }
.ly-kel label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; min-height: 32px; }
.ly-kel input { accent-color: #16a34a; }
.ly-kel .ly-name { color: #14532d; }
.ly-kel small { margin-inline-start: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kel-pen { border: 0; background: transparent; font-size: 16px; padding: 4px 6px; border-radius: 8px; min-width: 36px; min-height: 36px; }
.kel-pen:hover { background: #dcfce7; }
.kbox { margin: 8px 0 2px; }
.kline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  border: 2px solid var(--c, #64748b); background: color-mix(in srgb, var(--c, #64748b) 8%, #fff); }
.kline .kl-t { grid-column: 1 / -1; font-size: 13.5px; }
.kline .kl-n { font-weight: 800; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kline .kl-s { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kline .kl-go, .kline.rm button { grid-row: 2 / span 2; grid-column: 2; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid #94a3b8; background: #fff; font-weight: 700; }
.kline.rm { --c: #94a3b8; grid-template-columns: minmax(0, 1fr) auto; }
.kline.rm button { grid-row: auto; }
.kline.st2 { box-shadow: 0 0 0 3px #bbf7d0; }
.kadd { border: 1px dashed #16a34a; background: #f0fdf4; color: #14532d; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 13.5px; min-height: 36px; }
.lv.kst, .lv.tst { white-space: nowrap; }
.keldlg .kel-head { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 16px; }
.kel-sts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kel-sts button { display: flex; gap: 6px; align-items: center; justify-content: center; background: #fff; color: #0f172a; border: 2px solid var(--c); border-radius: 12px; padding: 10px 6px; font-size: 15.5px; font-weight: 800; min-height: 52px; }
.kel-sts button i { font-style: normal; }
.kel-sts button.on { background: var(--c); color: var(--i); box-shadow: 0 0 0 3px #fff inset; }
.kel-info { margin-top: 12px; padding: 4px 12px 10px; border-radius: 14px; border: 1px solid #cbd5e1; background: #f8fafc; }
.kel-info.open { border: 2px solid #16a34a; background: #f0fdf4; }
.kel-dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.kel-dl dt { color: #334155; font-weight: 700; font-size: 13.5px; }
.kel-dl dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kel-pp .kel-n { font-size: 24px; }
.kel-q { display: inline-flex; gap: 6px; }
.kel-q button { min-width: 56px; min-height: 40px; border-radius: 10px; border: 2px solid #16a34a; background: #fff; font-weight: 800; font-size: 16px; color: #14532d; }
.kel-q button:disabled { opacity: .4; }
.kel-help { display: flex; flex-wrap: wrap; gap: 4px; }
.kh { background: #fff; border: 1px solid #86efac; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 14px; }
.kel-needs { color: #991b1b; font-weight: 700; }
a.tel { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 2px 10px; border-radius: 999px; background: #eff6ff; border: 1px solid #93c5fd; color: #1d4ed8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kel-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 10px; }
.kel-form label, .kel-subf { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: 13.5px; color: #334155; min-width: 0; }
.kel-form small { font-weight: 400; color: var(--muted); }
.kel-form input, .kel-subf input, .kel-helpf input { font: inherit; font-size: 16px; min-height: 44px; border: 1px solid #94a3b8; border-radius: 10px; padding: 6px 10px; background: #fff; color: #0f172a; width: 100%; box-sizing: border-box; }
.kel-helpf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.khf { display: grid; grid-template-columns: auto minmax(0, 1fr) 78px; gap: 6px; align-items: center; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-weight: 700; }
.khf.on { border-color: #16a34a; background: #f0fdf4; }
.khf input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: #16a34a; }
.khf input[type=number] { min-height: 38px; padding: 4px 6px; }
#kfOther { grid-column: 1 / -1; }
.keldlg .kel-rm { background: #fff; border-color: #fca5a5; color: #991b1b; font-weight: 700; }
.keldlg .bc-acts { flex-wrap: wrap; }
/* צוותים */
.ttag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 9px; background: var(--c); color: var(--i); font-weight: 800; font-size: 13.5px;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); white-space: nowrap; line-height: 1.3; }
.tf-sts { margin: 10px 0 2px; font-weight: 700; color: #15803d; }
/* 22.11 (штаб): зелёное «✓ נשמר» после записи — у команд (форма/статус), «מבני קליטה» (статус), «תשתיות» (עדכן/טופל), «צוותים במקום» (kh-q) */
#tfSave.saved, .tc-sts button.saved, .kel-sts button.saved, #infSave.saved, #infDone.saved, .kh-q.saved { background: #15803d !important; color: #fff !important; border-color: #15803d !important; box-shadow: none !important; }
.kh-q.saved span, .kh-q.saved { color: #fff !important; }
.ttag .rsc { width: 18px; height: 18px; background: #fff; color: var(--c); border-radius: 50%; padding: 1px; flex: none; }
.ttag span { font-weight: 600; }
.tline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 2px solid #5eead4; background: #f0fdfa; }
.tline.need { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.tline .tl-t { grid-column: 1 / -1; font-size: 14px; }
.tline .tl-l { display: flex; flex-direction: column; gap: 6px; }
.tline .tl-r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tline .tl-a { display: flex; flex-direction: column; gap: 6px; }
.tline .tl-a button { min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid #94a3b8; background: #fff; font-weight: 700; white-space: nowrap; }
.tsend { border: 2px solid #0f766e !important; background: #0f766e !important; color: #fff; font-weight: 800; border-radius: 10px; padding: 8px 12px; min-height: 40px; }
.tsend.small { background: #fff !important; color: #0f766e; border-width: 1px !important; font-size: 13.5px; padding: 6px 10px; min-height: 36px; }
.tline.need .tsend { border-color: #b91c1c !important; background: #b91c1c !important; }
/* v22.11.10 (Алексей 22.11 12:16): три типа — в один ряд, справа налево סע"ר · 02 · פקע"ר (порядок TEAM_TYPES), равной ширины; телефон ≤ 420 px — столбиком */
.tm-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tm-types button { min-width: 0; text-align: center; }
.tm-types button small { overflow-wrap: anywhere; }
@media (max-width: 420px) { .tm-types { grid-template-columns: minmax(0, 1fr); } .tm-types button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; column-gap: 10px; row-gap: 2px; text-align: start; padding: 8px 12px; } .tm-types button > :first-child { grid-row: span 2; } .tm-types button > :not(:first-child) { grid-column: 2; } }
.tm-types button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; font-weight: 800; font-size: 15px; color: #0f172a; }
.tm-types button small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.tm-types button.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; }
.tc-sts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
#tfSts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-sts button { min-height: 44px; border: 2px solid var(--c); background: #fff; color: #0f172a; border-radius: 10px; font-weight: 800; font-size: 14.5px; padding: 6px 4px; }
.tc-sts button.on { background: var(--c); color: var(--i); }
.tcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcard { border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 10px; background: #fff; }
.tcard.st0 { border: 2px dashed #1d4ed8; } .tcard.st1 { border: 2px solid #15803d; }
.tc-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tc-p { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tc-trap { color: #b91c1c; }
.tc-need { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fef2f2; border: 2px solid #dc2626; color: #991b1b; font-weight: 800; }
.tdone { margin-top: 10px; } .tdone summary { cursor: pointer; font-weight: 700; color: #334155; min-height: 36px; display: flex; align-items: center; }
/* «לוח חבלים» */
.tile .kelc, .bo-sum .kelc { display: block; font-size: 12.5px; font-weight: 600; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .kelc.on, .bo-sum .kelc.on { color: #15803d; }
.tile .tmc, .bo-sum .tmc { display: block; font-size: 12.5px; font-weight: 600; color: #0f766e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tmc .nd { color: #b91c1c; }
.tile.mini .kelc, .tile.mini .tmc { grid-column: 1 / -1; font-size: 11.5px; }
body.ptabs .t4.kelc, body.ptabs .t4.tmc { font-size: 14px; white-space: normal; }
/* «תמונת מצב»: модули kelita / teams */
.tm-kel h2 small, .tm-teams h2 small { font-weight: 600; }
.tm-kel .tk-sum { display: flex; flex-wrap: wrap; gap: .3em .9em; margin: .1em 0 .4em; font-size: var(--tm-fs-body); }
.tm-kel .tk-sum b { font-size: var(--tm-fs-num); }
.tm-kel .tk-sum .o b { color: #16a34a; } .tm-kel .tk-sum .w b { color: #64748b; } .tm-kel .tk-sum .c b { color: #dc2626; }
.tmuna.dark .tm-kel .tk-sum .o b { color: #4ade80; } .tmuna.dark .tm-kel .tk-sum .w b { color: #cbd5e1; } .tmuna.dark .tm-kel .tk-sum .c b { color: #f87171; }
.tm-kel .tk-big { display: flex; flex-wrap: wrap; gap: .1em .7em; justify-content: space-between; }
.tm-kel .tk-big span { display: flex; align-items: baseline; gap: .25em; white-space: nowrap; }
.tm-kel .tk-big b { color: var(--c); }
.tmuna.dark .tm-kel .tk-big b { color: color-mix(in srgb, var(--c) 55%, #fff); }
.tm-kel .tk-big b { font-size: var(--tm-fs-h); line-height: 1.15; }
.tm-kel h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-kel h2 .tk-subl { font-weight: 600; color: var(--tm-muted, var(--muted)); font-size: var(--tm-fs-body); }
.tm-list .tk-st { width: .75em; height: .75em; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 2px #fff; }
.tm-list li.tk2 { background: color-mix(in srgb, #22c55e 12%, transparent); }
.tm-teams .tt-need { margin: .1em 0 .45em; padding: .35em .6em; border-radius: .5em; background: #fee2e2; color: #991b1b; font-weight: 700; border: 2px solid #dc2626; }
.tmuna.dark .tm-teams .tt-need { background: #450a0a; color: #fecaca; }
.tm-teams .tt-need ol { margin: .2em 0 0; padding: 0; list-style: none; font-weight: 600; display: flex; flex-wrap: wrap; gap: .2em .8em; }
.tm-teams .tt-need li { cursor: pointer; }
.tm-teams .ttag { font-size: var(--tm-fs-body); }
.tm-teams .tt-min { margin-inline-start: auto; font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) {
  .kel-sts { grid-template-columns: minmax(0, 1fr); }
  .kel-sts button { justify-content: flex-start; padding: 10px 14px; }
  .kel-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kel-dl dd { margin-bottom: 6px; }
  .kel-form, .kel-helpf { grid-template-columns: minmax(0, 1fr); }
  .tc-sts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tline { grid-template-columns: minmax(0, 1fr); }
  .tline .tl-a { flex-direction: row; flex-wrap: wrap; }
}
/* 18.11 осмотр: на сенсорном всё нажимаемое ≥ 40 px (tel:, ✏️, «➕ הוסף», поля צוותים במקום) */
.kel-pen, .kadd, a.tel, .tsend.small, .tdone summary { min-height: 44px; }
.kel-pen { min-width: 44px; }
.khf input[type=number] { min-height: 44px; }
.ly-kel label { min-height: 40px; }
/* 18.11: «מבני קליטה» в правой колонке — как можно ниже по высоте (карта над ним) */
.tm-kel h2 { margin-bottom: .25em; padding-bottom: .2em; }
.tm-kel .tk-big b { font-size: var(--tm-fs-h); line-height: 1.1; }

/* ---------- v19.11.2 «מכלול — צפייה בלבד» (js/viewer.js): вход по ?m=1 — только список מכלולים; body.viewonly — без кнопок записи */
.viewtag { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #0f766e; color: #fff; border: 1px solid #5eead4; white-space: nowrap; flex: none; }
@media (max-width: 820px) { .viewtag { font-size: 11px; padding: 0 6px; } }
.login.viewer-login .roles, .login.viewer-login .hvfield { display: none !important; }
.login .mich { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.login .mich legend { font-weight: 700; margin-bottom: 4px; text-align: start; width: 100%; padding: 0; }
.login .mich legend small { font-weight: 400; color: var(--muted); font-size: 13px; }
.login .mich-l { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.login .mich-l label { flex-direction: row; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: center; font-weight: 600; background: #f8fafc; line-height: 1.2; }
.login .mich-l label:has(input:checked) { background: #0f766e; border-color: #0f766e; color: #fff; }
.login .mich-l label:has(input:focus-visible) { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.login .mich-l input { position: absolute; opacity: 0; pointer-events: none; }
.login .mich-l label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rohint { display: none; }
body.viewonly .rohint { display: block; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #ccfbf1; color: #134e4a; font-weight: 700; font-size: 14px; }
body.viewonly .ed, body.viewonly .cx-quick, body.viewonly .cx-inf, body.viewonly #kelSubBtn, body.viewonly #kelPen,
body.viewonly #kelDlg .kel-sts, body.viewonly #kelDlg .kel-q, body.viewonly #kelUpd, body.viewonly #kelRm, body.viewonly #kelBack,
body.viewonly .kadd, body.viewonly .kline [data-kel], body.viewonly #infUpd, body.viewonly #infDone, body.viewonly .tsend, body.viewonly #tmSend,
body.viewonly .tc-sts, body.viewonly #endDrillBtn, body.viewonly #endRealBtn, body.viewonly .mvbtn, body.viewonly .mv-back { display: none !important; }

/* ---------- v19.11.2 «📍 שינוי מקום ידני» (js/places.js) */
.mvline { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 4px 8px; }
.mvline.orig { color: #334155; background: #f1f5f9; }
.mvbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mvbtns button { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; cursor: pointer; }
.mvbtns .mvbtn { border-color: #1d4ed8; color: #1d4ed8; }
.mvbtns button:hover { background: #eff6ff; }
.mvbar { position: absolute; z-index: 30; top: 12px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 8px 30px rgba(15, 23, 42, .28); border: 2px solid #1d4ed8; }
.mvbar .mv-t { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.mvbar .mv-t b { font-size: 15px; }
.mvbar .mv-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvbar .mv-a { display: flex; gap: 8px; }
.mvbar button { font: inherit; font-weight: 800; min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid #cbd5e1; background: #fff; cursor: pointer; }
.mvbar button.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.mvpin { cursor: grab; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .45)); }
.mvpin:active { cursor: grabbing; }
.mvpin .mvp-i, .mvcross .mvc-i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid #1d4ed8; font-size: 24px; line-height: 1; }
.mvpin .mvp-i svg, .mvcross .mvc-i svg { width: 30px; height: 30px; }
.mvpin i { width: 3px; height: 16px; background: #1d4ed8; border-radius: 2px; }
.mvcross { position: absolute; z-index: 20; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.mvcross::before, .mvcross::after { content: ''; position: absolute; background: #1d4ed8; box-shadow: 0 0 0 1.5px #fff; }
.mvcross::before { left: -22px; top: -1.5px; width: 44px; height: 3px; }
.mvcross::after { top: -22px; left: -1.5px; width: 3px; height: 44px; }
.mvcross .mvc-i { position: absolute; left: -23px; bottom: 26px; opacity: .92; }
body.mv-on .maptools, body.mv-on #lyPanel { visibility: hidden; }
@media (max-width: 820px) { .mvbar { top: 8px; padding: 8px 10px; } .mvbar .mv-a { width: 100%; } .mvbar .mv-a button { flex: 1; } }
body.viewonly .sh-min > #pRo { display: block !important; margin: 6px 0 2px; } /* телефон, свёрнутый лист: вместо уровней — «👁️ צפייה בלבד» */
body.mv-on #fbar, body.mv-on #tabs { visibility: hidden; } /* v19.11.2: во время «שינוי מקום» — только «שמור / ביטול» */
/* 19.11 (Алексей 07:30): «לוח חבלים» — «🦺 מחלצים» и «🏠 מבני קליטה» вместо «בשגרה · 7»; окно-список */
.bd-pop { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 34px; }
.bd-pop:hover { background: #f1f5f9; }
.bd-pop b { font-size: 15px; }
.bd-pop i { font-style: normal; font-size: 11px; color: #64748b; }
.bd-pop .w { font-weight: 400; color: #475569; }
.bd-pop .rsc { width: 18px; height: 18px; color: #0f766e; }
.bd-tmb { border-color: #0f766e; }
.bd-tmb.need { border-color: #dc2626; }
.bd-tmb .nd { color: #b91c1c; font-weight: 700; }
.bd-kelb { border-color: #16a34a; }
.bd-kelb.on { background: #f0fdf4; }
.bdpopdlg { width: min(760px, 96vw); }
.bdpopdlg .vhead .rsc { width: 20px; height: 20px; vertical-align: -3px; color: #0f766e; }
.bp-h { margin: 10px 0 6px; font-size: 15px; } .bp-h small { font-weight: 400; color: var(--muted, #586678); }
.bp-h.nd { color: #b91c1c; }
.bp-sum { margin: 4px 0 6px; }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; cursor: pointer; background: #fff; }
.bp-list > li:hover { background: #f8fafc; }
.bp-list > li.bp-need { border-color: #fca5a5; background: #fef2f2; }
.bp-list > li.bp-kel.st2 { border-color: #86efac; background: #f0fdf4; }
.bp-m { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bp-m small { flex-basis: 100%; color: var(--muted, #586678); }
.bp-list button { font: inherit; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; padding: 5px 10px; cursor: pointer; min-height: 32px; }
.bp-send { background: #0f766e !important; color: #fff; border-color: #0f766e !important; font-weight: 700; }
.bp-more { color: #1d4ed8; }
.kh-row { display: flex; flex-wrap: wrap; gap: 4px; }
.kh-q { display: inline-flex; align-items: center; gap: 3px; font-size: 13px !important; padding: 3px 8px !important; color: #94a3b8; filter: grayscale(1); opacity: .75; }
.kh-q span { font-size: 12px; }
.kh-q.on { filter: none; opacity: 1; color: #14532d; background: #dcfce7 !important; border-color: #16a34a !important; font-weight: 700; }
.kh-q:disabled { cursor: default; }

/* 19.11: «צוותי חילוץ» в «תמונת מצב» — три переключателя; «פיקוד העורף: שקט» в шапке */
.tt-f .rc-b { --tc: #0f766e; }
.tt-f .rc-b.on { background: var(--tc); border-color: var(--tc); color: #fff; }
.tt-f .rc-b.nd { --tc: #b91c1c; }
.tm-needl li.nd { border-inline-start: 4px solid #dc2626; }
.tm-needl .tt-tr { font-weight: 700; color: #b91c1c; white-space: nowrap; }
.tm-orefq { font-size: var(--tm-fs-body); color: #15803d; white-space: nowrap; }

/* 19.11 09:33: «מחלצים» — 02 / פקע״ר на кнопке и вкладками в окне */
.bd-tmb .tt-c { color: var(--tc); font-weight: 600; } .bd-tmb .tt-c b { color: var(--tc); }
.bp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; position: sticky; top: -1px; background: #fff; padding: 4px 0; z-index: 1; }
.bp-tab { font: inherit; font-size: 15px; border: 2px solid var(--tc); color: var(--tc); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 38px; }
.bp-tab.on { background: var(--tc); color: #fff; }
.bp-tab.on b { color: #fff; }
.tmuna.dark .tm-needl .tt-tr { color: #fca5a5; }

/* 19.11 10:50 (Алексей): кнопки шапки — один вид; на телефоне две кнопки в ряд, только название; список «צוותי חילוץ» листается; строки «שכבות» не ломаются */
.bd-pop, .bd-tmb, .bd-kelb, .bd-tmb.need, .bd-kelb.on { border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; }
.bd-pop:hover { background: #f1f5f9; }
.bd-pop .bp-n { font-weight: 700; }
.bd-pop .bp-x { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; color: #334155; }
.bd-pop .bp-x b { font-weight: 700; color: #0f172a; }
.bd-pop .tt-c, .bd-tmb .tt-c, .bd-tmb .tt-c b { color: inherit; }
.bd-pop .nd, .bd-pop .nd b { color: #b91c1c; font-weight: 700; }
.bd-pop .rsc { color: #0f766e; }
.bd-pop .bp-x > * + *::before { content: '·'; margin-inline-end: 8px; color: #94a3b8; }
@media (max-width: 820px) {
  .bd-head { flex-wrap: wrap; row-gap: 6px; }
  .bd-head .bd-pop { order: 5; flex: 1 1 40%; justify-content: center; min-height: 40px; font-size: 15px; }
  .bd-head .bd-pop .bp-x, .bd-head .bd-pop i { display: none; }
  .bd-head .bd-close { order: 2; margin-inline-start: auto; }
}
#tmTeams { display: flex; flex-direction: column; min-height: 0; }
#tmTeams > .tm-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ly-oref { flex-wrap: wrap; row-gap: 0; }
.ly-oref .ly-name { white-space: nowrap; }
.ly-oref > small, .ly-kel label > small { flex: 1 0 100%; margin-inline-start: 0; padding-inline-start: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-kel label { flex-wrap: wrap; row-gap: 0; }

/* 19.11 12:03: телефон — «לוח חבלים» и ✕ первой строкой, «מחלצים» и «מבני קליטה» — второй, ровно пополам */
@media (max-width: 820px) {
  .bd-head > b { flex: 1 1 auto; }
  .bd-head .bd-pop { flex: 0 0 calc(50% - 4px); max-width: calc(50% - 4px); min-height: 42px; padding: 6px 8px; font-size: 15px; border-radius: 12px; gap: 6px; }
  .bd-head { column-gap: 8px; }
  .bd-head .bd-pop .rsc { width: 20px; height: 20px; }
}
/* 19.11 12:15 (Алексей: «на одной строчке»): телефон — сетка 2 колонки: «לוח חבלים» | ✕, ниже «מחלצים» | «מבני קליטה» — всегда одна строка */
@media (max-width: 820px) {
  .bd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6px 8px; }
  .bd-head > b { grid-area: 1 / 1; }
  .bd-head .bd-close { grid-area: 1 / 2; justify-self: end; margin: 0; }
  .bd-head #bdTeamB { grid-area: 2 / 1; }
  .bd-head #bdKelB { grid-area: 2 / 2; }
  .bd-head .bd-pop { max-width: none; width: 100%; flex: none; }
  .bd-head > :not(b):not(.bd-close):not(.bd-pop) { grid-column: 1 / -1; justify-self: start; }
  .bd-head > [hidden] { display: none; }
}
/* 19.11 13:02 (Алексей: вариант 3 «табло», «не воровать место»; «תמונת מצב» — в том же стиле): шапка доски — одна высота 38 px */
.bd-head .bd-tm, .bd-head .bd-pop { height: 38px; min-height: 38px; box-sizing: border-box; border-radius: 10px; }
.bd-tm { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 14px; font-weight: 700; color: #6d28d9; background: #fff; border: 1px solid #d6dde6; box-shadow: none; }
.bd-tm:hover { background: #f5f3ff; border-color: #c4b5fd; }
.bd-tm .bp-ico { width: 18px; height: 18px; color: #6d28d9; }
.bd-pop { display: inline-flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid #d6dde6; background: #fff; box-shadow: none; }
.bd-pop:hover { background: #fff; border-color: #b8c4d2; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.bd-pop .bp-h { display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; background: #f8fafc; border-inline-end: 1px solid #e2e8f0; }
.bd-pop .bp-n { font-weight: 700; font-size: 14px; color: #0f172a; }
.bd-pop .rsc, .bd-pop .bp-ico { width: 18px; height: 18px; color: #0f766e; }
.bd-kelb .bp-ico { color: #4338ca; }
.bd-pop .bp-x { display: inline-flex; align-items: stretch; gap: 0; }
.bd-pop .bp-x > * + *::before { content: none; }
.bd-pop .bp-s { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; padding: 0 9px; line-height: 1; }
.bd-pop .bp-s + .bp-s { border-inline-start: 1px solid #eef2f6; }
.bd-pop .bp-s b { font-size: 16px; font-weight: 700; color: #0f172a; }
.bd-pop .bp-s small { font-size: 10.5px; font-weight: 500; color: #64748b; margin-top: 2px; white-space: nowrap; }
.bd-pop .bp-s.z b, .bd-pop .bp-s.z small { color: #a3afbf; }
.bd-pop .bp-s.bad { background: #fef2f2; }
.bd-pop .bp-s.bad b, .bd-pop .bp-s.bad small { color: #b91c1c; }
.bd-pop .bp-s.ok b { color: #15803d; }
.bd-pop.need { border-color: #f3c4c4; }
@media (max-width: 820px) {
  .bd-head .bd-pop { height: 42px; min-height: 42px; justify-content: center; }
  .bd-head .bd-pop .bp-h { flex: 1; justify-content: center; border: 0; background: #fff; }
  .bd-head .bd-pop .bp-x { display: none; }
  .bd-head .bd-pop .bp-n { font-size: 15px; }
}

/* ===== v22.11.10 «תמונת מצב»: строки списков — В ОДНУ строку (штаб 22.11 14:00: перенос адреса на 2 строки ломал ряд —
   номер дома уезжал отдельной строкой). Улица режется «…», номер дома (`.adr-n`) виден всегда — `adr()` в common.js.
   Подпись заголовка модуля («6 בשטח · ⚠ 11 בלי צוות») — тесно — своей строкой под заголовком. */
.tmuna .tm-box > h2 { flex-wrap: wrap; row-gap: .1em; }
.tmuna .tm-box > h2 small { flex: 0 1 auto; }
.tmuna :is(.tm-infl, .tm-vull) .a small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmuna .tm-needl .tt-send { font: inherit; font-size: var(--tm-fs-body); font-weight: 700; flex: none; white-space: nowrap; border: 1px solid #b91c1c; background: #fee2e2; color: #7f1d1d; border-radius: 999px; padding: .05em .65em; cursor: pointer; }
.tmuna.dark .tm-needl .tt-send { background: #7f1d1d; color: #fff; border-color: #fca5a5; }
.tmuna .tm-needl .tt-send:hover { filter: brightness(1.08); }
body.tm-print .tmuna .tt-send { display: none; }
@media print { .tmuna .tt-send { display: none; } }
.tmuna .tm-kel > h2 { flex-wrap: nowrap; } /* «מבני קליטה (מבנים לבדיקה…)» — подпись длинная и второстепенная: «…», место — карте над ней */

/* ===== v22.11.12 «⚙️ ההגדרות שלי» (מנהל על): окно #setDlg, раздел «👁️ מכלולים» */
.menu .mg > button.setitem { font-weight: 700; }
#admTag.click { cursor: pointer; }
.setdlg { width: min(900px, 96vw); }
.setdlg .bc-acts { position: sticky; bottom: 0; background: var(--card, #fff); padding: 8px 0 4px; z-index: 1; }
.set-tabs { display: flex; gap: 6px; padding: 8px 16px 0; border-bottom: 1px solid var(--line, #e2e8f0); overflow-x: auto; }
.set-tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.set-tabs button.on { color: var(--ink); border-bottom-color: #2563eb; }
.set-help { margin: 0 0 10px; }
.set-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; margin-bottom: 12px; }
.snd { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid #cbd5e1;
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.snd:hover { background: #eff6ff; border-color: #93c5fd; }
.mich-ed { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.mich-ed li { display: grid; grid-template-columns: minmax(9em, 1fr) auto auto auto; grid-template-areas: "name send ord del";
  gap: 6px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.mich-ed .mi-name { grid-area: name; font: inherit; font-weight: 700; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 0; min-height: 40px; }
.mich-ed .mi-ord { grid-area: ord; display: inline-flex; gap: 4px; }
.mich-ed .mi-ord button, .mich-ed .mi-del { min-width: 40px; min-height: 40px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.mich-ed .mi-ord button:disabled { opacity: .35; cursor: default; }
.mich-ed .mi-del { grid-area: del; }
.mich-ed .mi-del:hover { background: #fee2e2; border-color: #fca5a5; }
.mich-ed .mi-send { grid-area: send; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
@media (max-width: 820px) { .mich-ed li { grid-template-columns: minmax(9em, 1fr) auto auto; grid-template-areas: "name ord del" "send send send"; } }
.mich-add { font: inherit; font-weight: 700; min-height: 40px; padding: 6px 14px; border: 1px dashed #94a3b8; border-radius: 10px; background: none; cursor: pointer; }
.mich-add:disabled { opacity: .5; cursor: default; }
.set-msg { display: block; min-height: 1.4em; margin-top: 6px; font-weight: 700; }
.set-msg.ok { color: #15803d; } .set-msg.bad { color: #b91c1c; }
.set-owa { margin: 8px 0 0; }
@media (max-width: 520px) { .setdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .mich-ed li { grid-template-columns: 1fr auto; grid-template-areas: "name name" "ord del" "send send"; } }

/* v22.11.13 «📍 שיתוף המיקום שלי» — включено: заметно */
.menu .mg > button.locshare.on { color: #0369a1; font-weight: 700; }

/* ===== v22.11.13 «אחרונים» — улица целиком: один значок, хевель словом, плашка уровня уже (строка ленты .r1) */
.tm-feedl li.r1 .fl1 { flex: none; min-width: 2.6em; font-style: normal; text-align: center; font-weight: 700; color: #b91c1c; white-space: nowrap; }
.tmuna.dark .tm-feedl li.r1 .fl1 { color: #fca5a5; }
.tm-feedl li.r1 .hvw { flex: none; min-width: 3.9em; text-align: center; font-size: var(--tm-fs-body); font-weight: 700; padding: .05em .4em; border-radius: .35em; white-space: nowrap;
  background: #f1f5f9; color: #1e293b; border-inline-start: .3em solid var(--hc); }
.tmuna.dark .tm-feedl li.r1 .hvw { background: #1e293b; color: #e2e8f0; }
.tm-feedl li.r1 .lv { min-width: 3.3em; padding: .05em .4em; }
.tm-feedl li.r1 .a { flex: 1 1 auto; min-width: 0; }

/* v22.11.13 «⚙️» — вкладка «📍 מיקום אנשי שטח» */
.set-sw { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #eff6ff; cursor: pointer; }
.set-sw input { width: 22px; height: 22px; }
.ppl-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.ppl-l li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; cursor: pointer; }
.ppl-l li:hover { background: #f8fafc; } .ppl-l li b { flex: 1; } .ppl-l li small { color: var(--muted); white-space: nowrap; }

/* v22.11.17 «🔐 קוד כניסה» (js/entry.js): поле на входе, «כניסת מנהל», вкладка в «⚙️» */
.login .codefield[hidden], .login .loginadm[hidden], #loginCodeErr[hidden] { display: none !important; }
.login .codefield input { font-size: 20px; letter-spacing: .15em; text-align: center; font-variant-numeric: tabular-nums; }
.login #loginCodeErr { margin: -6px 0 0; color: #b91c1c; font-weight: 700; text-align: start; }
.login .loginadm { align-self: center; min-height: 40px; padding: 6px 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.login .loginadm:hover { color: var(--ink); }
.entpane .ent-st { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #f1f5f9; color: #1e293b; }
.entpane .ent-st.on { background: #dcfce7; color: #14532d; }
.entpane .ent-code { font-size: 15px; margin: 4px 0; }
.entpane #entCodeV { font-size: 30px; letter-spacing: .2em; font-variant-numeric: tabular-nums; margin-inline-start: 6px; }
.entpane #entLink { display: block; flex-basis: 100%; direction: ltr; text-align: left; font-size: 13px; overflow-wrap: anywhere; margin: 4px 0; }
.entpane .ent-snd { display: flex; flex-wrap: wrap; gap: 6px; }
.entpane #entOnBox[hidden], .entpane #entSend[hidden] { display: none; }
