/* Rom Field Map — עיצוב משותף (חמ"ל, לוחם, מנהל) */
:root {
  --bg: #121417; --surface: rgba(20, 22, 26, .95); --surface-2: #1c1f24; --surface-3: #262a31; --line: #30353d;
  --text: #e9ebee; --muted: #a0a7b1; --subtle: #747c87;
  --accent: #0092CB; --accent-fill: #0079A8; --accent-soft: rgba(0, 146, 203, .18);
  --ok: #2fb36b; --warn: #e0a422; --danger: #e5484d; --laser: #ff7a1a;
  --r: 8px; --r-lg: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, "Segoe UI", Arial, sans-serif; }
#map { position: absolute; inset: 0; background: #0d0f11; }
.panel { position: absolute; z-index: 1000; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ic { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
a.btn { text-decoration: none; }
.btn:hover { background: var(--surface-3); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.btn.primary:hover { background: #0087bb; }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.btn.danger { color: #ff9497; }
.btn.danger:hover { background: #2c1719; border-color: #5c2a2e; }
.btn.danger-fill { background: #b3262b; border-color: #b3262b; color: #fff; }
.btn.ok-fill { background: #1f7a49; border-color: #1f7a49; color: #fff; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; gap: 5px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }
.dot.on { background: var(--ok); } .dot.stale { background: var(--warn); } .dot.off { background: var(--subtle); }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.count:empty { display: none; }
.empty { padding: 24px 16px; color: var(--muted); text-align: center; font-size: 13px; }

/* ---------- סרגל עליון ---------- */
#top { top: 8px; right: 8px; left: 8px; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand i { width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
#event-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.spacer { flex: 1; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.vsep { width: 1px; height: 20px; background: var(--line); }
.role { height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }

/* ---------- סרגל כלים (חמ"ל) ---------- */
#tools { top: 64px; right: 8px; width: 236px; display: none; flex-direction: column; gap: 14px; padding: 12px; max-height: calc(100vh - 136px); overflow: auto; }
.sec-h { font-size: 11px; font-weight: 600; color: var(--subtle); margin: 0 2px 6px; }
.tool-list { display: flex; flex-direction: column; gap: 4px; }
.tool-list .btn { justify-content: flex-start; width: 100%; height: 34px; }
.tool-list .btn .count { margin-inline-start: auto; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ops .btn { justify-content: flex-start; height: 34px; padding: 0 8px; gap: 7px; font-size: 12.5px; min-width: 0; overflow: hidden; }
.ops .btn .sym { flex: none; }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 2px; }
.sw { height: 22px; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sw.sel { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- שורת הנחיה ---------- */
#hint { bottom: 12px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-color: var(--accent); font-weight: 600; white-space: nowrap; }
#hint .msg { padding-inline-start: 6px; }

/* ---------- רחפנים ---------- */
#drones { bottom: 8px; left: 8px; width: 300px; display: none; flex-direction: column; padding: 4px; max-height: 46vh; overflow: auto; }
.dc { padding: 8px 8px 8px; border-radius: var(--r); cursor: pointer; border: 1px solid transparent; }
.dc + .dc { margin-top: 4px; }
.dc:hover { background: var(--surface-2); }
.dc.sel { background: var(--surface-2); border-color: var(--line); }
.dc .dh { display: flex; align-items: center; gap: 8px; }
.dc .dn { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .dh .btn { margin-inline-start: auto; }
.dc .kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.dc .kv div { display: flex; flex-direction: column; gap: 1px; }
.dc .kv small { font-size: 11px; color: var(--subtle); }
.dc .kv b { font-size: 13px; font-weight: 600; }
.dc .kv b.low { color: var(--danger); } .dc .kv b.mid { color: var(--warn); }
.dc .da { display: flex; gap: 4px; margin-top: 8px; }
.dc .da .btn { flex: 1; }
.dc .stale-note { font-size: 11px; color: var(--warn); margin-top: 4px; }

/* ---------- וידאו ---------- */
#video { left: 8px; bottom: 8px; width: 440px; min-width: 260px; padding: 8px; display: none; resize: both; overflow: hidden; }
#video .vh { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
#video .vh b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#video .vw { position: relative; }
#video video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; display: block; }
#v-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; pointer-events: none; }
#v-note { color: var(--warn); font-size: 12px; margin-top: 6px; }
#v-note:empty { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-inline-start: auto; }
.seg button { height: 26px; padding: 0 10px; background: transparent; color: var(--muted); border: 0; font: inherit; font-size: 12px; cursor: pointer; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button:hover { color: var(--text); }
.seg button.sel { background: var(--accent-soft); color: #fff; }

/* ---------- לייזר ---------- */
#target { bottom: 8px; right: 8px; width: 270px; display: none; padding: 12px; }
#target .th { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--laser); }
#target .th small { color: var(--muted); font-weight: 500; margin-inline-start: auto; font-size: 12px; }
#target .coords { font: 600 15px ui-monospace, Consolas, monospace; margin: 8px 0 2px; }
#target .meta { color: var(--muted); font-size: 12px; }
#target .actions { display: flex; gap: 6px; margin-top: 10px; }
#target .actions .btn { flex: 1; }

/* ---------- חלוניות צד ---------- */
.side { top: 64px; left: 56px; width: 330px; max-height: calc(100vh - 140px); display: none; flex-direction: column; padding: 0; }
.side .ph { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px 0 6px; border-bottom: 1px solid var(--line); font-weight: 700; flex: none; }
.side .body { overflow: auto; padding: 6px; }
.le { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 6px 8px; font-size: 13px; border-radius: 6px; }
.le.go { cursor: pointer; } .le.go:hover { background: var(--surface-2); }
.le .t { color: var(--subtle); font-size: 12px; padding-top: 1px; }
.le .w { font-weight: 600; margin-inline-end: 4px; }
.tk { background: var(--surface-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--subtle); border-radius: var(--r); padding: 10px; margin-bottom: 6px; font-size: 13px; }
.tk.open { border-inline-start-color: var(--warn); } .tk.started { border-inline-start-color: var(--accent); } .tk.done { border-inline-start-color: var(--ok); opacity: .65; } .tk.cancelled { opacity: .45; }
.tk .h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.tk .st { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.tk.open .st { color: var(--warn); } .tk.started .st { color: var(--accent); } .tk.done .st { color: var(--ok); }
.tk .d { margin-top: 4px; } .tk .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tk .a { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- לוחם: סרגל תחתון ---------- */
#mine { bottom: 8px; right: 8px; left: 8px; display: none; gap: 6px; padding: 6px; }
#mine .btn { flex: 1; height: 40px; }

/* ---------- התראה ---------- */
#alert { position: absolute; z-index: 2000; top: 64px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--c, var(--danger)); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); font-size: 16px; font-weight: 700; max-width: calc(100vw - 16px); }
#alert .sym { flex: none; }
.toast { top: 64px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 10px 14px; z-index: 2100; font-weight: 600; font-size: 13px; }
.toast.warn { border-color: var(--warn); color: #ffd27a; } .toast.info { color: var(--text); }

/* ---------- חלון דו-שיח ---------- */
#modal { position: absolute; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .55); display: none; place-items: center; }
#modal .box { width: min(92vw, 400px); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.mh { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.mt { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.fl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.in { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: #0f1114; color: var(--text); font: inherit; font-size: 15px; }
textarea.in { height: auto; padding: 10px 12px; resize: vertical; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.help { font-size: 12px; color: var(--subtle); margin-top: 6px; }
.err-t { font-size: 12px; color: #ff9497; margin-top: 6px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; user-select: none; }
.chip:hover { border-color: var(--subtle); }
.chip.sel { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.mrow { display: flex; gap: 8px; margin-top: 18px; justify-content: flex-end; }
.mrow .btn { height: 38px; min-width: 96px; }

/* ---------- מפה: פקדים וחלונות ---------- */
.leaflet-top { top: 64px; }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: var(--r) !important; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .3) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--surface-3) !important; }
.leaflet-control-layers { background: var(--surface) !important; color: var(--text); border: 1px solid var(--line) !important; border-radius: var(--r) !important; }
.leaflet-control-layers-toggle { filter: invert(.88); width: 34px !important; height: 34px !important; }
.leaflet-control-scale-line { background: rgba(20, 22, 26, .75); color: #fff; border-color: #fff; }
.leaflet-control-attribution { background: rgba(20, 22, 26, .65) !important; color: var(--subtle) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.leaflet-popup-content-wrapper { border-radius: var(--r-lg); }
.leaflet-popup-content { margin: 12px 14px; direction: rtl; text-align: right; font-size: 13px; min-width: 220px; line-height: 1.5; }
.leaflet-container .leaflet-popup-content a.btn { color: var(--text); text-decoration: none; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); left: 4px; right: auto; }
/* left/top מפורשים: בדף RTL בלעדיהם התווית נדחפת שמאלה ברוחב שלה */
.leaflet-tooltip { left: 0; top: 0; background: rgba(20, 22, 26, .92); color: #fff; border: 1px solid var(--line); box-shadow: none; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 6px; }
.leaflet-tooltip-top::before { border-top-color: rgba(20, 22, 26, .92); }
.pt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding-inline-end: 16px; }
.pc { font: 600 13px ui-monospace, Consolas, monospace; color: var(--muted); margin-top: 4px; }
.prow { font-size: 13px; margin-top: 2px; }
.pm { color: var(--subtle); font-size: 12px; margin-top: 6px; }
.pa { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.pa + .pa { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.pop-colors { display: flex; gap: 6px; margin-top: 10px; }
.pop-colors span { width: 22px; height: 22px; border-radius: 5px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pop-colors span.sel { outline: 2px solid #fff; outline-offset: 1px; }

/* ---------- סמלים במפה ---------- */
.op-icon, .drone-icon, .target-icon, .txt-icon, .member-icon, .rc-icon, .track-lbl { background: none; border: 0; }
/* העוגן הוא מרכז הסמל עצמו; התווית ממוקמת מתחתיו ולא משנה את נקודת העיגון */
.op-icon .o { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; }
.op-icon .sym { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); overflow: visible; }
.sym .halo { opacity: 0; transform-box: fill-box; transform-origin: center; }
.op-icon .o.pulse .halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.op-icon .o.dim { opacity: .45; }
.op-icon .l { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); line-height: normal; margin-top: 3px; font-size: 11px; font-weight: 700; white-space: nowrap; background: rgba(20, 22, 26, .9); color: #fff; padding: 2px 6px; border-radius: 4px; border-inline-start: 3px solid var(--c); }
.track-lbl div { transform: translate(-50%, -150%); font: 600 10px ui-monospace, Consolas, monospace; color: #fff; background: rgba(20, 22, 26, .85); padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.txt-icon div { transform: translate(-50%, -50%); display: inline-block; white-space: nowrap; font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 4px; background: rgba(20, 22, 26, .85); color: #fff; border-inline-start: 3px solid var(--c); }
.drone-icon .w { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; }
.drone-icon svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.drone-icon .n { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); line-height: normal; margin-top: 1px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 121, 168, .92); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.drone-icon .w.stale svg { opacity: .5; } .drone-icon .w.stale .n { background: rgba(90, 95, 104, .92); }
.member-icon .m { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; }
.member-icon .m b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; line-height: normal; white-space: nowrap; font-size: 11px; font-weight: 700; background: rgba(20, 22, 26, .9); color: #fff; border-radius: 4px; padding: 1px 6px; }
.member-icon .m i { width: 14px; height: 14px; border-radius: 50%; background: #2D8CF0; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.member-icon .m.stale i { background: #8a8f96; }
.member-icon .m.me i { background: #fff; border-color: #2D8CF0; }

@media (max-width: 700px) {
  #top { height: auto; min-height: 48px; flex-wrap: wrap; row-gap: 4px; padding: 6px 8px; }
  #event-name, .hide-sm, #ws-text { display: none; }
  .brand { font-size: 14px; }
  .leaflet-top { top: 64px; }
  #tools { width: 176px; }
  .side { right: 8px; width: auto; top: 64px; max-height: calc(100vh - 150px); }
  #alert { width: calc(100vw - 16px); font-size: 15px; }
  #drones { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 34vh; }
  body.viewer #drones { display: none !important; } /* לוחם בטלפון: הרחפנים במפה בלבד, בלי כרטיסים שמסתירים אותה */
  body.viewer #target { padding: 10px; } body.viewer #target .coords { font-size: 14px; }
  #target { left: 8px; right: 8px; width: auto; }
  body.viewer #target { bottom: 64px; }
}

/* ---------- אזורים ---------- */
.area-lbl { background: none; border: 0; }
.area-lbl div { display: inline-block; transform: translate(-50%, -50%); font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 121, 168, .85); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* ---------- מבנים ---------- */
.fam-lbl { background: none; border: 0; }
.fam-lbl div { display: inline-block; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.map-btn { display: flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 34px; padding: 0 8px; font-size: 12px; font-weight: 700; text-decoration: none; height: 30px !important; line-height: 30px !important; }
.map-btn.on { background: var(--accent-soft) !important; color: #fff !important; }

/* ---------- תצוגת תלת־ממד ---------- */
#v3d { position: fixed; inset: 0; z-index: 3000; display: none; background: var(--bg); }
#v3d-map { position: absolute; inset: 0; }
.v3d-bar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; z-index: 2; }
.v3d-note { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 6px 12px; font-size: 12px; color: var(--muted); z-index: 2; max-width: calc(100vw - 180px); text-align: center; }
.v3d-note:empty { display: none; }
.v3d-fam { font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.v3d-drone { cursor: pointer; display: flex; }
.v3d-drone svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.v3d-drone span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); line-height: normal; margin-top: 1px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 121, 168, .92); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.v3d-drone.stale svg { opacity: .5; } .v3d-drone.stale span { background: rgba(90, 95, 104, .92); }
.v3d-member { display: flex; }
.v3d-member b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; line-height: normal; white-space: nowrap; font-size: 11px; font-weight: 700; background: rgba(20, 22, 26, .9); color: #fff; border-radius: 4px; padding: 1px 6px; }
.v3d-member i { width: 14px; height: 14px; border-radius: 50%; background: #2D8CF0; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.v3d-member.stale i { background: #747c87; }
.v3d-pt { display: flex; }
.v3d-pt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.v3d-pt i.dia { border-radius: 2px; transform: rotate(45deg); width: 14px; height: 14px; }
.v3d-pt i.rect { border-radius: 2px; width: 22px; height: 14px; }
.v3d-pt.alert i { width: 20px; height: 20px; }
.v3d-pt span:not(.t) { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); line-height: normal; margin-top: 5px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(20, 22, 26, .9); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.v3d-pt .t { display: block; line-height: normal; font-size: 13px; font-weight: 800; text-shadow: 0 0 3px #000, 0 0 3px #000; }
#v3d .maplibregl-popup-content { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-family: inherit; direction: rtl; }
#v3d .maplibregl-popup-tip { display: none; }
#v3d .maplibregl-ctrl-group { background: var(--surface-2); border: 1px solid var(--line); }
#v3d .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
#v3d .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
#v3d .maplibregl-ctrl-top-left { top: 56px; }
@media (max-width: 700px) { .v3d-note { bottom: 64px; max-width: calc(100vw - 24px); } }
#v3d .maplibregl-ctrl-attrib { background: rgba(20, 22, 26, .8); color: var(--subtle); }
#v3d .maplibregl-ctrl-attrib a { color: var(--muted); }
#v3d .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.st-lbl { background: none; border: 0; }
.st-lbl div { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; color: #f4f1e8; letter-spacing: .2px; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.bm-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bm-chips button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-3); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bm-chips button i { width: 12px; height: 12px; border-radius: 3px; }
.bm-chips button.sel { border-color: #fff; background: var(--surface-2); }
.bm-chips button:hover { border-color: var(--subtle); }
.pt-icon { background: none; border: 0; }
.pt-icon i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.leaflet-marker-draggable { cursor: grab; }

/* ---------- לוחמים: צוות (צבע) ותפקיד (אות) ---------- */
.fd { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); font-size: 10px; font-weight: 800; font-style: normal; line-height: 1; color: #fff; }
.fd.two { font-size: 8px; letter-spacing: -.3px; }
.fd.idf { border-radius: 3px; width: 22px; }
.fd.sm { width: 10px; height: 10px; border-width: 1.5px; }
.member-icon .m i.fd, .v3d-member i.fd { width: 20px; height: 20px; font-size: 11px; }
.member-icon .m i.fd.idf, .v3d-member i.fd.idf { width: 22px; }
.member-icon .m b small, .v3d-member b small { font-weight: 500; color: var(--muted); font-size: 10px; }
.member-icon .m.stale i.fd, .v3d-member.stale i.fd { filter: grayscale(1); opacity: .6; }
.pt .fd { margin-inline-end: 6px; }
.chip .fd.sm { margin-inline-end: 6px; }
.sq-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin-top: 8px; }
.sq-row { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; background: var(--surface-2); }
.sq-h { display: flex; align-items: center; gap: 8px; }
.sq-h .pm { margin: 0; }
.sq-colors { display: flex; gap: 6px; margin-top: 8px; }
.sq-colors span { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.sq-colors span.sel { border-color: #fff; }

/* סימון שמתעדכן מ-PinPoint של רחפן */
.prow.link-row { display: flex; align-items: center; gap: 6px; color: #0092CB; font-weight: 600; }
