/* ==========================================================================
   Red Alert Syria — styles
   ========================================================================== */
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 300; src: url(/fonts/noto-kufi-arabic-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-kufi-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/noto-kufi-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-kufi-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/noto-kufi-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/noto-kufi-arabic-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 900; src: url(/fonts/noto-kufi-arabic-arabic-900-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/noto-kufi-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/noto-kufi-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/noto-kufi-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/noto-kufi-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/noto-kufi-arabic-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-display: swap; font-weight: 900; src: url(/fonts/noto-kufi-arabic-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

:root {
  --font-arabic: 'Noto Kufi Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --bg-primary: #f5f5fa; --bg-secondary: #ededf4; --bg-card: #fff; --bg-card-hover: #f0f0f5; --bg-elevated: #fff; --bg-subtle: #e8e8f0; --bg-glass: #fffffff0;
  --text-primary: #1a1a2e; --text-secondary: #55556a; --text-muted: #88889a; --border: #d0d0da; --border-subtle: #e0e0ea;
  --orange: #ff8c2e; --red: #ff3b4e; --red-strong: #e11d2e; --blue: #3b8eff; --green: #2ee66a; --online: #22c55e; --offline: #ff3b4e; --connecting: #ffa63b;
  --map-circle: #3b8eff14; --map-circle-border: #3b8eff59; --text-on-accent: #fff;
  --shadow-sm: 0 1px 2px #1a1a2e14; --shadow: 0 6px 24px -8px #1a1a2e33, 0 2px 6px -2px #1a1a2e1f; --shadow-lg: 0 24px 60px -12px #1a1a2e55;
  --radius: 10px; --header-h: 56px; --sidebar-w: 340px;
  color-scheme: light;
}
html.dark {
  --bg-primary: #0d0d10; --bg-secondary: #131318; --bg-card: #181820; --bg-card-hover: #1f1f29; --bg-elevated: #1a1a23; --bg-subtle: #20202a; --bg-glass: #181820f2;
  --text-primary: #f0f0f5; --text-secondary: #9a9ab0; --text-muted: #62627a; --border: #2c2c38; --border-subtle: #1f1f28;
  --orange: #e08400; --red: #e5413a; --red-strong: #d4392f; --blue: #4a78d4; --green: #4d9c50; --online: #4d9c50; --offline: #e5413a; --connecting: #c89017;
  --map-circle: #4a78d41a; --map-circle-border: #4a78d48c;
  --shadow: 0 8px 28px -8px #000a, 0 2px 6px -2px #0008; --shadow-lg: 0 24px 60px -12px #000c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow-x: hidden; overscroll-behavior: none; }
/* the page itself never pinch-zooms or slides sideways (the map handles its own pinch/zoom) */
html { touch-action: pan-x pan-y; }
html.dsm { touch-action: manipulation; } /* desktop-site mode on a phone: page pinch-zoom allowed */
.maplibregl-canvas-container, .maplibregl-canvas { touch-action: none; }
body { font-family: var(--font-arabic); background: var(--bg-primary); color: var(--text-primary); -webkit-font-smoothing: antialiased; overflow: hidden; font-size: 14px; line-height: 1.6; }
html[lang='en'] body { letter-spacing: -0.005em; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { flex: none; display: block; }
.flip { display: inline-flex; }
html[dir='ltr'] .flip svg { transform: scaleX(-1); }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.noscript { padding: 2rem; text-align: center; font-weight: 700; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }

.app { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
html.rds .app { height: calc(100dvh / var(--uiz, 1)); }
html.rds, html.rds body { overflow: hidden; }

/* ---------------------------------------------------------------- top bar */
.topbar { height: var(--header-h); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: relative; z-index: 30; }
.brand { display: flex; align-items: center; margin-inline-end: 6px; }
.brand img { height: 40px; width: auto; border-radius: 4px; display: block; }
.tb-btn { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 7px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.tb-btn:hover { background: var(--bg-card-hover); }
.tb-btn:active { transform: translateY(1px); }
.tb-btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.theme-btn .i-sun { display: none; }
html.dark .theme-btn .i-sun { display: block; color: #f5b83b; }
html.dark .theme-btn .i-moon { display: none; }
.theme-btn .i-moon { color: var(--blue); }
.lang-btn { font-family: var(--font-mono); font-weight: 700; letter-spacing: .02em; min-width: 44px; justify-content: center; }
html[lang='en'] .lang-btn { font-family: var(--font-arabic); }
.spacer { flex: 1; }
.tg-btn svg { color: #229ed9; }
.report-btn { background: var(--orange); border-color: transparent; color: #111; }
.report-btn:hover { background: #ff9d4d; }
html.dark .report-btn { color: #fff; }
.status { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 7px; background: var(--bg-elevated); border: 1px solid var(--border); font-family: inherit; color: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.status:hover { background: var(--bg-card-hover); }
.status:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--connecting); position: relative; }
.status .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.status-age { min-width: 3ch; padding-inline-start: 7px; border-inline-start: 1px solid var(--border); color: var(--text-muted); font: 600 10px/1 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; text-align: center; }
.status[data-state='live'] .dot { background: var(--online); color: var(--online); }
.status[data-state='live'] .dot::after { animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.status[data-state='connecting'] .dot { animation: blink 1s ease-in-out infinite; }
.status[data-state='offline'] .dot { background: var(--offline); }
.m-settings { display: none; }

/* ticker */
.ticker { flex: 0 1 420px; min-width: 160px; height: 36px; border-radius: 7px; background: var(--bg-elevated); border: 1px solid var(--border); overflow: hidden; position: relative; }
.ticker-inner { height: 100%; position: relative; }
.tick { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; cursor: pointer; opacity: 0; transform: translateY(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.tick.on { opacity: 1; transform: none; }
.tick.out { opacity: 0; transform: translateY(-100%); }
.tick .t-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.tick .t-time { color: var(--text-muted); font-size: 11px; }
/* the type chip and the time never shrink or wrap: the title (ellipsis) absorbs all
   squeezing, so neither edge of the strip can clip mid-text on narrow phones */
.tick .badge { flex: none; }
.tick .t-time { flex: none; white-space: nowrap; }
/* the tick clips its content to its own box and the chip is width-capped, so
   chip + time always fit beside the ellipsised title: the time element can
   never be painted half off the strip's edge on narrow webview widths */
.tick { box-sizing: border-box; overflow: hidden; }
.tick .badge { max-width: 44%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tick.empty { color: var(--text-muted); font-weight: 500; cursor: default; }
.mobile-ticker { display: none; }

/* ---------------------------------------------------------------- layout */
.layout { flex: 1; min-height: 0; display: flex; position: relative; }
.map-wrap { flex: 1; position: relative; min-width: 0; }
.map { position: absolute; inset: 0; z-index: 0; background: var(--bg-subtle); }
.sidebar { width: var(--sidebar-w); flex: none; background: var(--bg-secondary); border-inline-start: 1px solid var(--border); display: flex; flex-direction: column; position: relative; z-index: 20; transition: margin .3s ease, transform .3s ease; }
.app.sb-hidden .sidebar { margin-inline-end: calc(-1 * var(--sidebar-w)); }
.app.detail-open .sidebar { width: min(500px, 42vw); }
.app.detail-open.sb-hidden .sidebar { margin-inline-end: calc(-1 * min(500px, 42vw)); }
.view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border-subtle); }
.sb-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.sb-title.sm { font-size: 16px; }
.sb-sub { margin: 2px 0 0; font-size: 12px; color: var(--text-secondary); }
.sb-x { width: 32px; height: 32px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); border: 1px solid var(--border); background: var(--bg-elevated); transition: background .15s, color .15s; }
.sb-x:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sb-x:disabled { opacity: .4; cursor: default; }
.sb-x.lg { width: 42px; height: 42px; border-radius: 50%; }
.detail-head { align-items: center; }
.detail-head .nav { display: flex; gap: 6px; }
.sb-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.alert-search { padding: 10px 12px 0; }
.alert-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-subtle); color: var(--text-primary); padding: 9px 11px; font-size: 12px; font-weight: 500; line-height: 1.3; outline: none; }
.alert-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.sheet-handle { display: none; }

/* alert card */
.card { flex-shrink: 0; content-visibility: auto; contain-intrinsic-size: auto 150px; background: color-mix(in srgb, var(--c) 4%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--c) 16%, var(--border-subtle)); border-radius: var(--radius); padding: 12px 12px 10px; cursor: pointer; position: relative; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); overflow: hidden; }
.alert-skeletons { display: flex; flex-direction: column; gap: 8px; padding: 2px 0; }
.card-skeleton { min-height: 122px; padding: 14px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-skeleton i, .card-skeleton b, .card-skeleton span { display: block; position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-subtle); }
.card-skeleton i { width: 82px; height: 20px; margin-bottom: 12px; }
.card-skeleton b { width: 72%; height: 16px; margin-bottom: 10px; }
.card-skeleton span { width: 92%; height: 9px; margin-top: 7px; }
.card-skeleton span:last-child { width: 56%; }
.card-skeleton i::after, .card-skeleton b::after, .card-skeleton span::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg-card-hover) 75%, transparent), transparent); animation: skeletonShimmer 1.25s ease-in-out infinite; }
@keyframes skeletonShimmer { to { transform: translateX(100%); } }
.card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--c); opacity: .9; }
.card:hover { background: color-mix(in srgb, var(--c) 7%, var(--bg-card-hover)); }
.card.sel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.card.inactive { opacity: .62; }
.card.inactive::before { background: var(--text-muted); }
.card.fresh { animation: cardIn .6s cubic-bezier(.2, .8, .2, 1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; margin-bottom: 6px; flex-wrap: wrap; }
.card-top .time { min-width: 0; text-align: end; margin-inline-start: auto; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); white-space: nowrap; }
html.dark .badge { color: color-mix(in srgb, var(--c) 70%, #fff); }
.badge svg { color: var(--symbol-color, currentColor); width: 13px; height: 13px; }
.badge .bemo { color: var(--symbol-color, currentColor); }
.badge.live::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
html[lang='ar'] .time { font-family: var(--font-arabic); direction: rtl; }
.time b { font-family: var(--font-mono); font-weight: 700; color: var(--text-secondary); }
.card-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--text-primary); }
.card-desc { margin: 3px 0 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; color: var(--blue); font-weight: 600; min-width: 0; }
.tags span { white-space: nowrap; }
.card-state { flex: none; color: var(--red); font-size: 10.5px; font-weight: 800; }
.card-state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 4px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.card-state.off { color: var(--text-muted); }
.card-state.off::before { animation: none; }
.card-actions { display: flex; gap: 2px; flex: none; }
.ic-btn { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background .15s, color .15s; }
.ic-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.list-sep { font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 10px 4px 2px; display: flex; align-items: center; gap: 8px; }
.list-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.list-section + .list-section { margin-top: 4px; }
.list-sep { text-transform: none; }
.section-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--bg-subtle); color: var(--text-secondary); font: 700 10px/1 var(--font-mono); }

/* empty state */
.empty { margin: auto; text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty .radar { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; position: relative; background: radial-gradient(circle, color-mix(in srgb, var(--online) 22%, transparent) 0 30%, transparent 31%); border: 1px solid color-mix(in srgb, var(--online) 40%, transparent); overflow: hidden; }
.empty .radar::before { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 300deg, color-mix(in srgb, var(--online) 50%, transparent) 360deg); animation: spin 3s linear infinite; }
.empty .radar::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--online) 45%, transparent); }
.empty h3 { margin: 0 0 4px; font-size: 15px; color: var(--text-primary); }
.empty p { margin: 0; font-size: 12.5px; }
.empty .btn-sm { margin-top: 12px; }

/* detail */
.detail-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.d-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.d-card .card-title { font-size: 17px; margin-top: 4px; }
.d-card .card-desc { -webkit-line-clamp: unset; font-size: 13.5px; color: var(--text-primary); opacity: .85; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); margin-top: 10px; }
.pill-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.pill-status.off { color: var(--text-muted); border-color: var(--border); }
.pill-status.off::before { animation: none; }
.rows { display: grid; gap: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--text-secondary); }
.row .v { font-weight: 700; text-align: end; }
.sec-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); margin: 2px 2px -4px; text-transform: uppercase; }
.coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.update-history { display: grid; gap: 10px; padding: 4px 2px 8px; }
.update-item { display: grid; grid-template-columns: 10px 1fr; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.update-item b { color: var(--text-primary); margin-inline-end: 8px; }
.update-item time { color: var(--text-muted); font-size: 10px; }
.update-item p { margin: 4px 0 0; line-height: 1.6; }
.update-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.coord { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 12px; }
.coord .k { font-size: 11px; color: var(--text-muted); }
.coord .v { font-family: var(--font-mono); font-size: 14px; font-weight: 700; direction: ltr; text-align: start; }
.btn-dark { width: 100%; height: 46px; border-radius: 10px; background: var(--text-primary); color: var(--bg-primary); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s, transform .1s; }
.btn-dark:hover { opacity: .9; }
.btn-dark:active { transform: translateY(1px); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-ghost { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-ghost:hover { background: var(--bg-card-hover); }
.share-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.share-menu button, .share-menu a { height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 12.5px; border: 1px solid var(--border); background: var(--bg-elevated); }
.share-menu .wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-menu .tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-menu .fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-ctrl { color: #ff3b4e; }
.site-share { position: absolute; bottom: 64px; inset-inline-start: 60px; z-index: 13; width: 280px; padding: 12px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow); }
.site-share .ss-head { display: grid; gap: 2px; margin-bottom: 10px; }
.site-share .ss-head b { font-size: 14px; }
.site-share .ss-head span { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 767px) { .site-share { bottom: 104px; inset-inline-start: 56px; width: min(280px, calc(100vw - 72px)); } }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--border); background: var(--bg-elevated); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- map tools */
.map-btn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 13px; transition: background .15s; }
.map-btn:hover, .map-btn[aria-expanded='true'] { background: var(--bg-card-hover); }
.alnaba-map-btn { color: inherit; text-decoration: none; white-space: nowrap; }
.notif-map-btn.on { color: var(--online); border-color: color-mix(in srgb, var(--online) 48%, var(--border)); background: color-mix(in srgb, var(--online) 10%, var(--bg-elevated)); }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-family: var(--font-mono); display: inline-flex; align-items: center; justify-content: center; }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 268px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; animation: pop .18s cubic-bezier(.2, .8, .2, 1); transform-origin: top; max-height: calc(100vh - 140px); overflow-y: auto; }
.dd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dd-head b { font-size: 12px; color: var(--text-secondary); font-weight: 800; }
.link-btn { font-size: 12px; font-weight: 700; color: var(--red); }
.link-btn:disabled { color: var(--text-muted); cursor: default; }
.filter-governorate { display: grid; gap: 6px; padding: 2px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.filter-governorate > span { font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.filter-governorate select.sel { width: 100%; }
.grp { border-top: 1px solid var(--border-subtle); padding: 6px 0; }
.grp:first-of-type { border-top: 0; }
.chk { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 7px; cursor: pointer; font-size: 13px; user-select: none; }
.chk:hover { background: var(--bg-card-hover); }
.chk input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border); background: var(--bg-card); display: grid; place-content: center; margin: 0; flex: none; transition: background .15s, border-color .15s; cursor: pointer; }
.chk input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.chk input:checked { background: var(--red); border-color: var(--red); }
.chk input:checked::after { opacity: 1; }
.chk input:indeterminate { background: var(--red); border-color: var(--red); }
.chk input:indeterminate::after { width: 8px; height: 0; border: 0; border-top: 2px solid #fff; transform: none; opacity: 1; }
.chk .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.chk .type-ico { width: 16px; height: 16px; display: grid; place-items: center; flex: none; }
.chk .name { flex: 1; }
.chk .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.chk.grp-h { font-weight: 800; }
.chk.sub { padding-inline-start: 30px; font-size: 12.5px; color: var(--text-secondary); }
.radio { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.radio:hover { background: var(--bg-card-hover); }
.radio input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); margin: 0; display: grid; place-content: center; cursor: pointer; }
.radio input::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .15s; }
.radio input:checked { border-color: var(--red); }
.radio input:checked::after { transform: scale(1); }
.radio .thumb { width: 38px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background-size: cover; flex: none; }
.thumb.std { background: linear-gradient(135deg, #e9e5dc 0 40%, #cfe3c4 40% 62%, #a9cfe8 62%); }
.thumb.sat { background: linear-gradient(135deg, #39462e 0 35%, #6b6a4b 35% 60%, #1f3a4d 60%); }
.radio .soon { margin-inline-start: auto; font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.tgl:hover { background: var(--bg-card-hover); }
.tgl .txt { display: flex; flex-direction: column; }
.tgl .txt small { font-weight: 500; color: var(--text-muted); font-size: 11.5px; }
.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--border); position: relative; margin: 0; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0004; transition: inset-inline-start .2s cubic-bezier(.2, .8, .2, 1); }
.switch:checked { background: var(--red); }
.switch:checked::after { inset-inline-start: 19px; }
.dd-sec { font-size: 11px; font-weight: 800; color: var(--text-muted); margin: 10px 6px 4px; letter-spacing: .03em; }

.map-ctrls { position: absolute; top: 12px; bottom: auto; inset-inline-start: 12px; z-index: 12; display: flex; flex-direction: column; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.ctrl-btn { width: 38px; height: 38px; display: grid; place-content: center; color: var(--text-primary); border-bottom: 1px solid var(--border-subtle); transition: background .15s; }
#mapControlsToggle .map-tools-icon svg { width: 21px; height: 21px; }
.ctrl-btn:last-child { border-bottom: 0; }
.ctrl-btn:hover { background: var(--bg-card-hover); }
.map-flight-status { position: absolute; top: 54px; left: 12px; z-index: 15; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: min(290px, calc(100% - 24px)); padding: 8px 10px; border: 1px solid color-mix(in srgb, #3b82f6 45%, var(--border)); border-radius: 12px; background: var(--bg-glass); color: var(--text-primary); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.map-flight-main { display: flex; align-items: center; gap: 8px; }
.map-flight-label { font-size: 12px; font-weight: 800; }
.map-flight-flow { display: inline-flex; align-items: center; gap: 5px; padding-inline-start: 8px; border-inline-start: 1px solid var(--border); color: #3b82f6; font-weight: 900; white-space: nowrap; }
.map-flight-plane, .map-flight-plane svg { display: block; width: 24px; height: 24px; }
.map-flight-destination { color: var(--text-primary); font-size: 12px; }
.map-flight-note { color: var(--text-muted); font-size: 9px; line-height: 1.3; }
.map-flight-track-marker { position: absolute; z-index: 31; display: grid; place-items: center; width: 60px; height: 64px; pointer-events: auto; cursor: pointer; touch-action: manipulation; --track-color: #2476c9; --aircraft-color: #2476c9; }
.map-flight-track-marker:hover { filter: brightness(1.18); }
.map-flight-track-marker:focus-visible { outline: 2px solid var(--track-color); outline-offset: 2px; border-radius: 50%; }
.map-flight-track-visual { position: relative; display: block; width: 60px; height: 64px; transform: scale(calc(var(--mks, .5) * 1.3)); transform-origin: center; }
.map-flight-track-squad { position: absolute; left: 2px; top: 10px; width: 56px; height: 44px; animation: flightTrackTravel 7s linear infinite; }
.map-flight-track-marker.is-toward-syria .map-flight-track-squad { animation: flightTrackApproach 5s linear infinite; }
/* Icon motion is schematic; any geographic line uses only separately selected endpoints, never live tracking. */
.map-flight-track-marker.is-entering-syria .map-flight-track-squad { animation: flightTrackEnterFromEast 5s linear infinite; }
.map-flight-track-airframe { position: absolute; display: grid; place-items: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.map-flight-track-airframe.is-lead { left: 50%; top: 0; width: 24px; height: 24px; transform: translateX(-50%); }
.map-flight-track-airframe.is-left { left: 0; top: 20px; width: 24px; height: 24px; opacity: .85; }
.map-flight-track-airframe.is-right { right: 0; top: 20px; width: 24px; height: 24px; opacity: .85; }
.map-flight-track-svg { display: block; width: 100%; height: 100%; fill: var(--aircraft-color); }
.map-flight-track-marker.is-plane .map-flight-track-svg { transform: rotate(-45deg); }
@keyframes flightTrackTravel { 0% { transform: translateY(32px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateY(-32px); opacity: 0; } }
@keyframes flightTrackApproach { 0% { transform: translateY(40px); opacity: 0; } 15% { opacity: 1; } 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes flightTrackEnterFromEast { 0% { transform: translateX(44px); opacity: 0; } 15% { opacity: 1; } 85% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.map-flight-track-marker.is-plane .map-flight-track-visual { height: 200px; transform: none; }
.map-flight-track-marker.is-plane .map-flight-track-squad { top: 50%; }
.map-flight-track-marker.is-plane.is-toward-syria .map-flight-track-squad { left: 50%; }
.map-flight-track-marker.is-plane.is-entering-syria .map-flight-track-squad { left: 50%; }
.map-flight-track-formation { position: absolute; inset: 0; }
.map-flight-track-marker.is-plane .map-flight-track-formation { transform: scale(calc(var(--mks, .5) * 1.3)); transform-origin: top center; }
.map-flight-track-marker.is-plane.is-toward-syria .map-flight-track-visual::before, .map-flight-track-marker.is-plane.is-entering-syria .map-flight-track-visual::before { content: ''; position: absolute; left: 50%; top: 50%; height: 135px; border-left: 1.5px dashed rgba(59,142,255,.45); pointer-events: none; }
.map-flight-track-marker.is-plane:not(.is-toward-syria):not(.is-entering-syria) .map-flight-track-squad { animation-name: flightTrackPlaneTravel; }
.map-flight-track-marker.is-plane.is-toward-syria .map-flight-track-squad { animation-name: flightTrackPlaneApproach; }
.map-flight-track-marker.is-plane.is-entering-syria .map-flight-track-squad { animation-name: flightTrackPlaneApproach; }

@keyframes flightTrackPlaneTravel { 0% { transform: translateY(110px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateY(-110px); opacity: 0; } }
@keyframes flightTrackPlaneApproach { 0% { transform: translate(-50%, 150px); opacity: 0; } 15% { opacity: 1; } 85% { transform: translate(-50%, 76px); opacity: 1; } 100% { transform: translate(-50%, 76px); opacity: 0; } }
@keyframes flightTrackPlaneEnterFromEast { 0% { transform: translateX(150px); opacity: 0; } 15% { opacity: 1; } 85% { transform: translateX(76px); opacity: 1; } 100% { transform: translateX(76px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-flight-track-squad { animation: none !important; transform: none; opacity: 1; } }
.is-moving .map-flight-track-squad, .is-zooming .map-flight-track-squad { animation-play-state: paused !important; }
.map-bottom-controls { position: absolute; left: 50%; bottom: 14px; z-index: 12; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 20px); transform: translateX(-50%); }
.reset-view-btn { width: 40px; height: 40px; flex: none; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-glass); color: var(--text-secondary); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.reset-view-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.about-pill { position: static; z-index: auto; height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--bg-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.about-pill b { color: var(--text-primary); font-weight: 800; }
.about-pill .sep { width: 1px; height: 16px; background: var(--border); }
.about-pill .chev { color: var(--text-muted); }
.about-pill:hover { color: var(--text-primary); }

.list-fab { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 12; height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 13px; }
.fab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: 12px; display: inline-grid; place-content: center; }

/* map legend: collapsed by default; sits above the scale control in the
   bottom-inline-start corner, clear of the tools stack and the bottom pill */
.map-legend { position: absolute; bottom: 40px; inset-inline-start: 12px; z-index: 11; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.legend-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--bg-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.legend-btn:hover { color: var(--text-primary); }
/* the legend label never truncates: it stays on one line at any width */
.legend-btn, .legend-btn > span { white-space: nowrap; }
.legend-btn svg { width: 16px; height: 16px; }
.legend-card { width: 232px; max-height: min(46vh, 350px); overflow-y: auto; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px 12px; scrollbar-width: thin; }
.legend-row { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 12px; line-height: 1.55; color: var(--text-secondary); }
.lg-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.lg-civdot { flex: none; width: 9px; height: 9px; margin: 0 1px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 6px 1px color-mix(in srgb, var(--c) 70%, transparent); }
html.dark .lg-civdot { box-shadow: 0 0 0 1.5px rgba(10, 14, 22, .9), 0 0 7px 1px color-mix(in srgb, var(--c) 80%, transparent); }
.lg-cluster { flex: none; min-width: 17px; height: 17px; padding: 0 4px; margin-inline-start: -3px; border: 1.5px solid var(--bg-elevated); border-radius: 9px; background: var(--red); color: #fff; font: 700 10.5px/14px system-ui, sans-serif; text-align: center; }
.lg-ring { flex: none; width: 13px; height: 13px; margin: 0 -1px; border-radius: 50%; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }

/* breaking banner */
.breaking-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 14; width: min(640px, calc(100% - 330px)); display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-elevated); border: 1px solid var(--red); animation: slideDown .5s cubic-bezier(.2, .8, .2, 1); }
.bb-tag { background: var(--red); color: #fff; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; letter-spacing: .02em; animation: flash 1.2s ease-in-out 4; }
.bb-text { flex: 1; text-align: start; padding: 9px 12px; font-weight: 700; font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-close { width: 36px; display: grid; place-content: center; color: var(--text-muted); }

/* ---------------------------------------------------------------- markers */
.mk { position: absolute; top: 0; left: 0; width: 0; height: 0; cursor: pointer; --c: #ff3b4e; }
.mk-count { position: absolute; z-index: 3; left: -15px; top: -15px; min-width: 19px; height: 19px; padding: 0 4px; box-sizing: border-box; border: 2px solid var(--ring, var(--c)); border-radius: 50%; background: #141A24; color: #fff; font: 800 11px/15px system-ui, sans-serif; text-align: center; cursor: pointer; pointer-events: auto; }
/* scale wrapper: icons shrink as the map zooms in (--mks set by map.js) */
.mk-s { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: scale(var(--mks, 0.5)); transform-origin: 0 0; transition: transform .2s ease; }
/* aircraft / vehicles have no disc, so they get a little more size to stay readable */
.mk-squad .mk-s, .mk-fly .mk-s { transform: scale(calc(var(--mks, 0.5) * 1.5)); }
.mk-movement .mk-s { transform: scale(calc(var(--mks, 0.5) * 1.5)); }
.flight-movement { position: absolute; left: 0; top: 0; width: 40px; height: 40px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 2px solid var(--c); border-radius: 50%; background: var(--bg-elevated); box-shadow: 0 0 15px color-mix(in srgb, var(--c) 58%, transparent), 0 2px 8px rgba(0,0,0,.35); animation: flightMovementGlow 2s ease-in-out infinite; transition: transform .16s ease; }
.flight-movement::before { content: ''; position: absolute; inset: -6px; border: 2px solid color-mix(in srgb, var(--c) 78%, transparent); border-radius: 50%; opacity: 0; pointer-events: none; animation: flightMovementPulse 2s ease-out infinite; }
.flight-aircraft { display: grid; place-items: center; width: 28px; height: 28px; }
.flight-svg { display: block; width: 24px; height: 24px; }
.flight-squad { position: absolute; left: -8px; top: -7px; width: 56px; height: 52px; pointer-events: none; }
.flight-airframe { position: absolute; display: grid; place-items: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.flight-airframe.is-lead { left: 50%; top: 0; width: 24px; height: 24px; transform: translateX(-50%); }
.flight-airframe.is-left { left: 3px; top: 25px; width: 24px; height: 24px; }
.flight-airframe.is-right { right: 3px; top: 25px; width: 24px; height: 24px; }
.flight-arrow { position: absolute; right: -7px; bottom: -5px; display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid var(--bg-elevated); border-radius: 50%; background: var(--c); color: #fff; font: 900 12px/1 system-ui, sans-serif; }
.mk:hover .flight-movement, .mk.sel .flight-movement { transform: translate(-50%, -50%) scale(1.15); }
.mk.inactive .flight-movement { opacity: .55; }
@keyframes flightMovementPulse { 0% { transform: scale(.88); opacity: .72; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes flightMovementGlow { 50% { box-shadow: 0 0 20px color-mix(in srgb, var(--c) 72%, transparent), 0 2px 8px rgba(0,0,0,.35); } }
@media (prefers-reduced-motion: reduce) { .flight-movement, .flight-movement::before { animation: none; } .flight-movement::before { opacity: .5; } }
.mk-breaking-news .mk-s { transform: scale(var(--mks, .5)); transition: transform .2s ease; }
.mk::before { content: ''; position: absolute; left: 0; top: 0; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: transparent; pointer-events: auto; }
.news-pulse-ring { position: absolute; left: 0; top: 0; width: 25px; height: 25px; box-sizing: border-box; transform: translate(-50%, -50%) scale(var(--mks, .5)); border: 1.4px solid var(--c, #e11d2e); border-radius: 50%; background: color-mix(in srgb, var(--c, #e11d2e) 5%, transparent); box-shadow: 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 20%, transparent), inset 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 10%, transparent); animation: newsPulseGlow 2.5s ease-in-out infinite; pointer-events: none; }
.news-pulse-ring::after { content: ''; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--c, #e11d2e) 34%, transparent); border-radius: inherit; animation: newsPulseWave 2.5s ease-out infinite; }
.mk-breaking-news .news-pulse-ring { width: 34px; height: 34px; border-color: #ef233c; background: transparent; box-shadow: 0 0 5px rgba(239,35,60,.28); }
.mk-breaking-news .news-pulse-ring::after { border-color: #ef233c; animation: urgentPulseWave 2s ease-out infinite; }
@keyframes urgentPulseWave { 0% { transform: scale(.7); opacity: .72; } 100% { transform: scale(1.5); opacity: 0; } }
.mk.inactive .news-pulse-ring { animation: none; opacity: .55; }
.is-moving .news-pulse-ring, .is-zooming .news-pulse-ring { animation-play-state: paused; }
@keyframes newsPulseWave { 0%, 100% { transform: scale(1); opacity: 0; } 35% { opacity: .28; } }
@keyframes newsPulseGlow { 0%, 100% { box-shadow: 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 20%, transparent), inset 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 8%, transparent); } 50% { box-shadow: 0 0 4px color-mix(in srgb, var(--c, #e11d2e) 38%, transparent), inset 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 15%, transparent); } }
@media (prefers-reduced-motion: reduce) { .news-pulse-ring, .news-pulse-ring::after { animation: none !important; } .news-pulse-ring { box-shadow: 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 24%, transparent), inset 0 0 2px color-mix(in srgb, var(--c, #e11d2e) 10%, transparent); } }
/* The regular drone glyph is 24px; its center follows the alert perimeter at detail zoom. */
.mk-orbit .mk-s { transform: none; }
/* The one unified pin (owner-approved symbols, 2026-11-17): dark roundel disc,
   a ring in the type's own colour (--ring), and the type's white glyph centred.
   One construction at every zoom: 20px mini with glyph at country view,
   32px standard, 38px near; selected/hover adds a halo in the ring colour. */
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; background: #141A24; border: 3px solid var(--ring, #64748b); box-shadow: 0 0 0 1px rgba(6,10,16,.65), 0 2px 6px rgba(2,6,12,.45); display: flex; align-items: center; justify-content: center; color: #fff; transition: box-shadow .18s ease; }
.pin svg { display: block; width: 20px; height: 20px; }
.maplibregl-map.zoom-far .pin { width: 20px; height: 20px; border-width: 2px; }
.maplibregl-map.zoom-far .pin svg { width: 13px; height: 13px; }
.maplibregl-map.zoom-detail .pin { width: 38px; height: 38px; }
.maplibregl-map.zoom-detail .pin svg { width: 24px; height: 24px; }
.mk:hover .pin, .mk.sel .pin { box-shadow: 0 0 0 1px rgba(6,10,16,.65), 0 0 0 5px color-mix(in srgb, var(--ring, #64748b) 35%, transparent), 0 0 18px color-mix(in srgb, var(--ring, #64748b) 55%, transparent), 0 2px 6px rgba(2,6,12,.45); }
.mk.inactive .pin { opacity: .55; }
.mk.focus-arrival::after { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; box-sizing: border-box; border: 1.5px solid color-mix(in srgb, var(--c) 82%, white); border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 18%, transparent); transform: translate(-50%, -50%) scale(.55); opacity: 0; pointer-events: none; animation: mapArrivalRipple 1.15s cubic-bezier(.18,.72,.28,1) 2; }
@keyframes mapArrivalRipple { 0% { transform: translate(-50%, -50%) scale(.55); opacity: 0; } 18% { opacity: .78; } 100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk.focus-arrival::after { animation: none; transform: translate(-50%, -50%) scale(1); opacity: .5; } }
/* Glyph micro-animations, keyed by the pin's glyph class (pin-<glyph>). */
.mk.inactive .pin * { animation: none !important; }
.pin-tank .tk-body { animation: tkRecoil 2.6s ease-out infinite; transform-box: fill-box; }
.pin-tank .tk-flash { fill: #facc15; opacity: 0; animation: tkFlash 2.6s ease-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes tkRecoil { 0%, 100% { transform: none; } 4% { transform: translateX(-6%); } 14% { transform: none; } }
@keyframes tkFlash { 0% { opacity: 0; transform: scale(.4); } 3% { opacity: 1; transform: scale(1.15); } 12% { opacity: 0; transform: scale(.9); } 100% { opacity: 0; } }
.pin-missile_ic svg { animation: msDive 1.8s ease-in-out infinite; }
.pin-missile_ic .ms-flame { fill: #fb923c; animation: blink .25s linear infinite; }
@keyframes msDive { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, 3px); } }
.pin-ambulance .amb-siren { animation: siren .9s steps(1) infinite; }
@keyframes siren { 0% { fill: #ef4444; } 50% { fill: #3b82f6; } }
.pin-fire .fire-g { animation: fireFlick 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.pin-fire .fire-in { animation: fireIn .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes fireFlick { 0%,100% { transform: scale(1, 1) skewX(0deg); } 30% { transform: scale(.96, 1.06) skewX(-3deg); } 60% { transform: scale(1.03, .95) skewX(2deg); } }
@keyframes fireIn { from { transform: scale(.9, .85); opacity: .85; } to { transform: scale(1.05, 1.08); opacity: 1; } }
.pin-car_crash .cc-burst, .pin-car_crash .cc-core { animation: ccBurst 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ccBurst { 0%,100% { transform: scale(.8) rotate(0deg); opacity: .75; } 50% { transform: scale(1.12) rotate(12deg); opacity: 1; } }
.pin-protest svg { animation: prBob 1.2s ease-in-out infinite; }
@keyframes prBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.pin-alert_tri svg { animation: brkPulse 1.6s ease-in-out infinite; }
@keyframes brkPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.pin-explosion svg { animation: exBurst 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pin-explosion .ex-in, .pin-explosion .ex-core { animation: exCore .65s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes exCore { from { transform: scale(.8); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
@keyframes exBurst { 0%, 100% { transform: scale(.88) rotate(0deg); } 45% { transform: scale(1.1) rotate(8deg); } }
/* Drone — fixed-size type-colored airframe; its existing orbit behavior is unchanged. */
.uav-box { position: absolute; width: 88px; height: 88px; left: -44px; top: -44px; }
.uav { position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; will-change: transform; }
/* Country and mid zoom rely on the impact circle alone; reveal the orbiting drone only at detail zoom. */
.maplibregl-map .mk-orbit:not(.mk-sat) .uav { animation: uavOrbit 9s linear infinite; }
.maplibregl-map:not(.zoom-detail) .mk-orbit:not(.mk-sat) .uav { visibility: hidden; }
.maplibregl-map.zoom-detail .mk-orbit:not(.mk-sat) .uav { visibility: visible; }
.maplibregl-map:not(.zoom-detail) .mk-orbit.mk-sat { visibility: hidden; }
.maplibregl-map.zoom-detail .mk-sat .uav { animation: uavOrbit 9s linear infinite; animation-delay: var(--delay, 0s); }
.maplibregl-map .mk-sat.drone-secondary { visibility: hidden; }
.maplibregl-map.zoom-detail .mk-sat.drone-secondary.sel { visibility: visible; }
/* the airframe circles the target and turns with its heading */
@keyframes uavOrbit { from { transform: rotate(0deg) translateX(var(--orb, 20px)); } to { transform: rotate(-360deg) translateX(var(--orb, 20px)); } }
@media (prefers-reduced-motion: reduce) {
  .maplibregl-map .mk-orbit:not(.inactive) .uav,
  .maplibregl-map .mk-sat:not(.inactive) .uav {
    animation: uavOrbit 18s linear infinite !important;
    animation-delay: var(--delay, 0s) !important;
  }
}
.uav-svg { display: block; width: 24px; height: 24px; fill: var(--c, #6b7280); filter: drop-shadow(0 0 1px rgba(0,0,0,.85)) drop-shadow(0 0 .5px rgba(0,0,0,.85)); }
html.dark .uav-svg { fill: color-mix(in srgb, var(--c, #6b7280) 72%, #fff); filter: drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 .5px rgba(0,0,0,.95)); }
.mk.sel .uav-svg { fill: var(--c); }
html.dark .mk.sel .uav-svg { fill: color-mix(in srgb, var(--c, #6b7280) 72%, #fff); }
.t-uav_strike .uav-svg { fill: var(--c); }
.signal-sweep-uav-svg { display: block; fill: #6b7280; color: #1a1a2e; filter: drop-shadow(0 0 1px rgba(0,0,0,.85)); }
html.dark .signal-sweep-uav-svg { fill: color-mix(in srgb, #6b7280 72%, #fff); color: #e2e8f0; filter: drop-shadow(0 0 1px rgba(0,0,0,.95)); }
/* warplanes — squad of three flying across the zone */
.squad { position: absolute; width: 72px; height: 200px; left: -36px; top: -100px; pointer-events: none; }
.squad .sq { position: absolute; animation: squadFly 7s linear infinite; pointer-events: auto; }
.sq-svg { display: block; fill: var(--c, #2476c9); transform: rotate(-45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.7)) drop-shadow(0 1px 2px rgba(255,255,255,.65)); }
html.dark .sq-svg { filter: drop-shadow(0 0 1px rgba(255,255,255,.4)) drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
/* civil — single craft-sized icon (same size as the drone) passing across the zone like the warplanes */
.squad.solo .sq { left: 50% !important; margin-left: -11px; }
.fly-svg { display: block; filter: drop-shadow(0 0 1px rgba(0,0,0,.75)) drop-shadow(0 1px 2px rgba(255,255,255,.6)); }
html.dark .fly-svg { filter: drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 1px 2px rgba(0,0,0,.9)); }
.fly-svg .amb-siren { animation: siren .9s steps(1) infinite; }
@keyframes squadFly { 0% { transform: translateY(110px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-110px); opacity: 0; } }
@keyframes squadFlyCompact { 0% { transform: translateY(12px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-12px); opacity: 0; } }
/* Helicopters orbit the report as an illustration only; neither the alert nor its coordinates move. */
.mk-helicopter .mk-s { transform: none; }
.maplibregl-map .mk-helicopter { visibility: visible; }
.heli-route { --heli-orbit-radius: max(18px, var(--orb, 24px)); position: absolute; left: 0; top: 0; width: calc(var(--heli-orbit-radius) + var(--heli-orbit-radius)); height: calc(var(--heli-orbit-radius) + var(--heli-orbit-radius)); transform: translate(-50%, -50%); pointer-events: none; }
.heli-orbit-guide { position: absolute; inset: 1px; border: 1px dashed rgba(59,142,255,.4); border-radius: 50%; pointer-events: none; }
.maplibregl-map:not(.zoom-detail) .mk-helicopter .heli-route { visibility: hidden; }
.maplibregl-map.zoom-detail .mk-helicopter .heli-route { visibility: visible; }
.heli-craft { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; transform: translate(-50%, -50%) rotate(0deg) translateX(var(--heli-orbit-radius)); transform-origin: center; animation: heliOrbit 9s linear infinite; pointer-events: auto; filter: drop-shadow(0 0 1px rgba(15,23,42,.84)) drop-shadow(0 1px 1.5px rgba(255,255,255,.42)); }
.heli-craft-second { animation-delay: -4.5s; }
.helicopter-svg { display: block; width: 24px; height: 24px; overflow: visible; fill: #13283d; filter: drop-shadow(0 0 1px rgba(3,7,18,.95)) drop-shadow(0 0 1.4px rgba(190,207,223,.55)); }
.helicopter-svg .heli-body { fill: #13283d; stroke: #091725; stroke-width: 9; stroke-linejoin: round; }
.helicopter-svg .heli-body-highlight { fill: #243d56; }
.helicopter-svg .heli-glass { fill: #0a1b2b; stroke: #9aafc1; stroke-width: 5; }
.helicopter-svg .heli-main-rotor { fill: #203851; stroke: #091a29; stroke-width: 8; opacity: 1; }
.helicopter-svg .heli-tail-rotor { fill: #203851; stroke: #091a29; stroke-width: 8; opacity: 1; }
.helicopter-svg .heli-tail-boom, .helicopter-svg .heli-tail-fin { fill: #13283d; stroke: #091725; stroke-width: 7; stroke-linejoin: round; }
.helicopter-svg .heli-skids { fill: none; stroke: #526b85; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.helicopter-svg .heli-mast { fill: none; stroke: #1d374f; stroke-width: 4; }
.helicopter-svg .heli-cockpit { fill: #0b2034; }
.helicopter-svg .heli-window { fill: #061523; }
.helicopter-svg .heli-hub { fill: #8298ab; stroke: #0b1d2e; stroke-width: 8; }
.mk-helicopter .helicopter-svg, .mk-helicopter.sel .helicopter-svg { fill: #13283d; }
html.dark .heli-craft { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.92)) drop-shadow(0 0 3px rgba(59,142,255,.94)); }
@keyframes heliRotor { to { transform: rotate(1turn); } }
@keyframes heliOrbit { from { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--heli-orbit-radius)); } to { transform: translate(-50%, -50%) rotate(-360deg) translateX(var(--heli-orbit-radius)); } }
.mk.inactive .heli-craft, .mk.inactive .helicopter-svg .heli-main-rotor, .mk.inactive .helicopter-svg .heli-tail-rotor { animation: none !important; }
.is-moving .heli-craft, .is-zooming .heli-craft { animation-play-state: paused !important; }
.mk.inactive { filter: grayscale(1); opacity: .55; }
.mk.inactive .uav, .mk.inactive .sq, .mk.inactive .squad { animation: none !important; }
.mk.inactive .squad { transform: none; opacity: 1; }
.mk.inactive .sq { opacity: 1 !important; }
.mk.dim { opacity: .25; }

/* popup */
.maplibregl-popup { z-index: 15; max-width: min(290px, calc(100% - 24px)) !important; }
.maplibregl-popup.pp-alert-popup { max-width: min(360px, calc(100% - 16px)) !important; }
.maplibregl-popup-content { overflow-wrap: anywhere; }
.maplibregl-popup-content { background: var(--bg-elevated); color: var(--text-primary); border-radius: 12px; padding: 12px 12px 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); font-family: var(--font-arabic); width: 270px; }
.pp-alert-popup .maplibregl-popup-content { box-sizing: border-box; width: min(360px, calc(100vw - 24px)); max-height: min(65vh, 520px); max-height: min(65dvh, 520px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg-elevated); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--bg-elevated); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--bg-elevated); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--bg-elevated); }
.maplibregl-popup-close-button { inset-inline-end: 6px; inset-inline-start: auto; top: 6px; width: 24px; height: 24px; border-radius: 6px; color: var(--text-muted); font-size: 18px; }
html[dir='rtl'] .maplibregl-popup-close-button { left: 6px; right: auto; }
.maplibregl-popup-close-button:hover { background: var(--bg-subtle); }
.pp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-inline-end: 30px; flex-wrap: wrap; row-gap: 4px; }
.pp-title { font-weight: 800; font-size: 13px; line-height: 1.5; margin: 0; }
.pp-desc { display: block; overflow: visible; overflow-wrap: anywhere; font-size: 11px; line-height: 1.55; color: var(--text-secondary); margin: 3px 0 0; white-space: pre-line; }
.pp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; padding-inline-end: 34px; }
.pp-title-row .pp-title { flex: 1; min-width: 0; }
.pp-media-actions { display: flex; width: 100%; max-width: 100%; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px; margin: 8px 0 0; }
.pp-media-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 58px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); font: 800 10.5px/1.2 var(--font-arabic); cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.pp-media-action[aria-pressed='true'] { border-color: color-mix(in srgb, var(--blue) 70%, var(--border-subtle)); background: color-mix(in srgb, var(--blue) 18%, var(--bg-elevated)); color: var(--text-primary); }
.pp-media-action svg { width: 14px; height: 14px; flex: none; }
.pp-media-panel { display: block; min-height: 120px; margin-top: 10px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 13px; background: #080b10; padding: 7px; box-sizing: border-box; }
.pp-news-panel[hidden], .pp-media-panel[hidden] { display: none !important; }
.pp-news-panel { min-width: 0; }
.pp-media-content { display: grid; place-items: center; min-height: 104px; }
.ras-media-frame { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #35445a; border-radius: 12px; background: #0b1220; box-shadow: 0 4px 16px rgba(0, 0, 0, .22); }
.ras-media-frame-head { display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 4px 9px; border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(100deg, #101c2d, #172337); border-inline-start: 3px solid #ed1c24; box-sizing: border-box; }
.ras-media-frame-head img { display: block; width: 86px; height: 28px; flex: none; object-fit: contain; }
.ras-media-frame-label { margin-inline-start: auto; color: #dbe4ef; font: 800 9px/1.2 var(--font-arabic); letter-spacing: .04em; text-align: end; }
.ras-media-frame-stage { display: grid; place-items: center; min-height: 104px; padding: 7px; background: radial-gradient(ellipse at center, #121b29, #06090f 80%); box-sizing: border-box; }
.pp-media-image, .pp-media-video { display: block; width: 100%; max-height: min(30dvh, 270px); object-fit: contain; border-radius: 5px; }
.ras-media-frame-note { padding: 6px 9px 7px; border-top: 1px solid rgba(255,255,255,.08); background: #0d1726; color: #9fb0c3; font: 600 9px/1.5 var(--font-arabic); text-align: start; }
.pp-media-video { background: #080b10; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pp-group-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.pp-group-nav button { display: inline-grid; place-items: center; width: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text-secondary); font: 600 15px/1 system-ui, sans-serif; cursor: pointer; touch-action: manipulation; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.pp-group-nav button:hover:not(:disabled), .pp-group-nav button:focus-visible { color: var(--blue); background: var(--bg-subtle); }
.pp-group-nav button:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 1px; }
.pp-group-nav button:active:not(:disabled) { transform: scale(.94); }
.pp-group-nav button:disabled { opacity: .34; cursor: default; }
.pp-group-nav-count { color: var(--text-muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-share { height: 30px; padding: 0 12px; border-radius: 8px; background: #25d366; color: #fff; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pp-more { font-size: 12px; font-weight: 700; color: var(--red); }
.maplibregl-popup.pp-alert-popup { max-width: min(392px, calc(100% - 16px)) !important; }
.pp-alert-popup .maplibregl-popup-content { position: relative; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: min(62vh, 600px); max-height: min(62dvh, 600px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 17px 17px 14px; border: 1px solid var(--border-subtle); border-radius: 18px; background: color-mix(in srgb, var(--bg-elevated) 98%, var(--red) 2%); box-shadow: 0 20px 56px rgba(17, 24, 39, .24), 0 5px 16px rgba(17, 24, 39, .13); scrollbar-gutter: stable; }
.pp-alert-popup .maplibregl-popup-content::before { content: ''; position: absolute; top: 0; inset-inline: 14px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--blue), var(--red)); opacity: .9; pointer-events: none; }
.maplibregl-popup.pp-group-popup { max-width: min(360px, calc(100vw - 24px)) !important; }
.pp-group-popup .maplibregl-popup-content { box-sizing: border-box; width: min(360px, calc(100vw - 32px)); max-height: min(58vh, 480px); max-height: min(58dvh, 480px); overflow: hidden; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.alert-group-chooser { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-alert-popup .pp, .pp-group-popup .alert-group-chooser { transform-origin: 50% 100%; animation: popupEmergesFromEvent 380ms cubic-bezier(.2,.85,.25,1) both; }
@keyframes popupEmergesFromEvent { 0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.94); } 68% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.012); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.maplibregl-popup.pp-alert-popup .maplibregl-popup-tip, .maplibregl-popup.pp-group-popup .maplibregl-popup-tip { filter: drop-shadow(0 1px 0 var(--border-subtle)) drop-shadow(0 3px 4px rgba(15,23,42,.22)); transform-origin: 50% 0; animation: popupTipFromEvent 240ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes popupTipFromEvent { 0% { opacity: 0; transform: translateY(-4px) scale(.72); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .pp-alert-popup .pp, .pp-group-popup .alert-group-chooser, .maplibregl-popup.pp-alert-popup .maplibregl-popup-tip, .maplibregl-popup.pp-group-popup .maplibregl-popup-tip { animation: none !important; transform: none; } }
.alert-group-heading { margin: 0; padding-inline-end: 32px; color: var(--text-primary); font-size: 14px; font-weight: 900; line-height: 1.5; }
.alert-group-list { display: grid; gap: 7px; max-height: min(48vh, 390px); max-height: min(48dvh, 390px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.alert-group-item { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); text-align: start; cursor: pointer; }
.alert-group-item:hover, .alert-group-item:focus-visible { border-color: var(--blue); background: var(--bg-card-hover); }
.alert-group-title { font-size: 12px; font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.alert-group-meta { color: var(--text-muted); font-size: 10.5px; line-height: 1.4; }
html.dark .pp-alert-popup .maplibregl-popup-content { box-shadow: 0 18px 46px rgba(0, 0, 0, .68), 0 4px 12px rgba(0, 0, 0, .42); }
.maplibregl-popup-close-button { inset-inline-end: 9px; inset-inline-start: auto; top: 8px; width: 28px; height: 28px; border: 1px solid var(--border-subtle); border-radius: 50%; background: var(--bg-subtle); color: var(--text-muted); font-size: 17px; line-height: 24px; }
html[dir='rtl'] .maplibregl-popup-close-button { left: 9px; right: auto; }
.pp-top { margin-bottom: 11px; padding-inline-end: 34px; row-gap: 6px; }
.pp-top .badge { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; }
.pp-top .time { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--bg-secondary); font-size: 10.5px; }
.pp-title { margin: 0; color: var(--text-primary); font-weight: 900; font-size: clamp(14px, 1.05rem, 16px); line-height: 1.6; letter-spacing: -.01em; }
.pp-media-image, .pp-media-video { max-height: min(32dvh, 280px); }
.pp .dist-chip { margin-top: 7px; }
.pp-areas { display: block; max-width: 100%; width: fit-content; margin: 7px 0 0; padding: 6px 9px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 11.5px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.pp-desc { margin: 9px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.8; }
.pp-foot { gap: 9px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--border-subtle); }
.pp-share { display: inline-flex; align-items: center; justify-content: center; min-width: 102px; min-height: 36px; padding: 0 11px; border: 1px solid color-mix(in srgb, #25d366 28%, var(--border-subtle)); border-radius: 10px; background: color-mix(in srgb, #25d366 11%, var(--bg-elevated)); color: #16743a; transition: background .15s, transform .15s; }
.pp-share svg { flex: none; }
.pp-share:hover { background: color-mix(in srgb, #25d366 18%, var(--bg-elevated)); transform: translateY(-1px); }
html.dark .pp-share { color: #94e2ac; }
.pp-more { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--red-strong); border-radius: 10px; background: var(--red-strong); color: #fff; font-family: var(--font-arabic); font-size: 12px; font-weight: 800; box-shadow: 0 3px 9px color-mix(in srgb, var(--red) 22%, transparent); transition: filter .15s, transform .15s; }
.pp-more:hover { filter: brightness(.96); transform: translateY(-1px); }
@media (max-width: 480px) {
  .maplibregl-popup.pp-alert-popup { max-width: calc(100vw - 20px) !important; }
  .pp-alert-popup .maplibregl-popup-content { width: min(420px, calc(100vw - 20px)); max-height: min(44vh, 400px); max-height: min(44dvh, 400px); padding: 14px 13px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; }
  .pp-title { font-size: 14px; line-height: 1.6; }
  .pp-title-row { gap: 6px; }
  .pp-media-actions { gap: 4px; margin-top: 8px; }
  .pp-media-action { min-width: 52px; min-height: 36px; gap: 4px; padding: 4px 6px; font-size: 10px; }
  .pp-media-panel { padding: 5px; }
  .ras-media-frame-head { min-height: 32px; padding: 3px 7px; }
  .ras-media-frame-head img { width: 76px; height: 25px; }
  .ras-media-frame-label, .ras-media-frame-note { font-size: 8.5px; }
  .ras-media-frame-stage { min-height: 92px; padding: 5px; }
  .pp-media-image, .pp-media-video { max-height: min(24dvh, 210px); }
  .pp-desc { font-size: 11.5px; line-height: 1.7; }
  .pp-foot { position: sticky; bottom: -12px; gap: 8px; margin-inline: -13px; padding: 10px 13px max(10px, env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg-elevated) 96%, transparent); backdrop-filter: blur(12px); }
  .pp-more, .pp-share { min-height: 42px; }
}
.maplibregl-map.zoom-detail .mk-sat .uav { animation: uavOrbit 9s linear infinite; animation-delay: var(--delay, 0s); }
@keyframes squadFlyCompact { 0% { transform: translateY(2px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-2px); opacity: 0; } }
.maplibregl-map .mk-fly .squad .sq { animation: squadFlyCompact 7s linear infinite; }
.maplibregl-ctrl-scale { background: var(--bg-glass); color: var(--text-secondary); border-color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; }
.maplibregl-ctrl-attrib { background: var(--bg-glass) !important; color: var(--text-muted); font-size: 10px; font-family: var(--font-arabic); }
.maplibregl-ctrl-attrib a { color: var(--text-secondary); }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { z-index: 11; }
.peak-label { pointer-events: none; }

/* ---------------------------------------------------------------- drawer (settings) */
.drawer-backdrop, .sheet-backdrop { position: fixed; inset: 0; background: #0b0b14a6; z-index: 60; animation: fade .2s; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(560px, 100%); background: var(--bg-primary); z-index: 61; transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
html[dir='ltr'] .drawer { transform: translateX(-105%); }
.drawer.open { transform: none !important; }
.drawer, .about-sheet { pointer-events: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 28px 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-weight: 800; font-size: 12.5px; letter-spacing: .03em; }
.eyebrow .line { width: 28px; height: 2px; background: var(--red); }
.drawer-title { margin: 6px 0 0; font-size: 44px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 28px 40px; display: flex; flex-direction: column; gap: 14px; }
.s-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.s-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.s-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--red); width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center; background: color-mix(in srgb, var(--red) 10%, transparent); }
.s-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.s-head p { margin: 0; font-size: 12px; color: var(--text-muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-subtle); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { height: 34px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.field-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin: 12px 2px 6px; display: block; }
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.sel-wrap { display: flex; gap: 8px; }
select.sel { flex: 1; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font: inherit; font-weight: 600; padding: 0 10px; }
input[type='range'].range { width: 100%; accent-color: var(--red); }
.about-us p { margin: 0 0 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.about-links .wa-channel-btn svg { color: #25d366; }
.drawer-foot { font-size: 11.5px; color: var(--text-muted); text-align: center; padding-top: 6px; }
.drawer-foot a { text-decoration: underline; }

/* ---------------------------------------------------------------- about sheet */
.about-sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: min(760px, 100%); max-height: 82vh; background: var(--bg-primary); border-radius: 18px 18px 0 0; z-index: 61; transition: transform .38s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; border: 1px solid var(--border); border-bottom: 0; }
.about-sheet.open { transform: translate(-50%, 0); }
.about-inner { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px 24px 28px; }
.about-inner h2 { margin: 4px 0 8px; font-size: 26px; font-weight: 900; }
.about-inner p { color: var(--text-secondary); line-height: 1.85; margin: 0 0 12px; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.lg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-subtle); font-weight: 700; font-size: 12.5px; }
.lg-dot { position: relative; width: 26px; height: 26px; flex: none; }
.lg-dot .pin { left: 50%; top: 50%; width: 26px; height: 26px; border-width: 2px; }
.lg-dot .pin svg { width: 16px; height: 16px; }
.sources { font-size: 12px; color: var(--text-muted); line-height: 1.9; }
.sources a { text-decoration: underline; color: var(--text-secondary); }
.disclaimer { font-size: 12px; background: color-mix(in srgb, var(--orange) 10%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); border-radius: 10px; padding: 10px 12px; color: var(--text-secondary); margin: 12px 0; }
.verify-pill { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 800; background: color-mix(in srgb, var(--text-muted) 14%, transparent); color: var(--text-secondary); }
.verify-pill.official { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.verify-pill.attributed { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.support-card { margin: 14px 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--red) 5%, var(--bg-card)); }
.support-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.support-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.support-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.support-card p { margin: 3px 0 0; font-size: 12px; }
.support-wallet { display: grid; gap: 4px; margin: 12px 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-card); }
.support-wallet small { color: var(--text-muted); font-size: 11px; }
.support-wallet b { font-size: 14px; }
.support-wallet code { direction: ltr; unicode-bidi: isolate; font: 700 16px var(--font-mono); overflow-wrap: anywhere; }
.support-names { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.support-names > b { display: block; margin-bottom: 7px; font-size: 12px; }
.support-names > div { display: flex; flex-wrap: wrap; gap: 6px; }
.support-names span { padding: 4px 9px; border-radius: 99px; background: var(--bg-subtle); color: var(--text-secondary); font-size: 11px; }
.support-modal .btn-red { width: 100%; justify-content: center; gap: 7px; }
.support-modal .fine { margin-top: 12px; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 10px auto 0; }

/* ---------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: #08080fcc; display: grid; place-items: center; padding: 16px; animation: fade .25s; pointer-events: auto; }
.modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg-primary); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2, .8, .2, 1); border: 1px solid var(--border); pointer-events: auto; }
.welcome-hero { background: #ED1C24; color: #fff; padding: 26px 24px 22px; text-align: center; position: relative; overflow: hidden; }
.welcome-hero::before, .welcome-hero::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid #ffffff2e; width: 260px; height: 260px; left: -90px; bottom: -150px; }
.welcome-hero::after { width: 380px; height: 380px; left: -150px; bottom: -210px; }
.welcome-hero img { height: 66px; width: auto; display: block; margin: 0 auto 14px; position: relative; }
.welcome-hero h2 { margin: 0; font-size: 22px; font-weight: 900; position: relative; }
.welcome-hero p { margin: 4px 0 0; font-size: 13px; opacity: .9; font-weight: 600; position: relative; }
.welcome-body { padding: 20px 22px 22px; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.feat .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-content: center; flex: none; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.feat b { display: block; font-size: 14px; }
.feat span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
.btn-red { width: 100%; height: 48px; border-radius: 11px; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; box-shadow: 0 8px 20px -8px var(--red); transition: transform .1s, filter .15s; }
.btn-red:hover { filter: brightness(1.05); }
.btn-red:active { transform: translateY(1px); }
.btn-text { width: 100%; margin-top: 8px; height: 36px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.fine { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin: 10px 0 0; text-align: center; }
.page-modal { padding: 22px; }
.page-modal h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; }
.page-modal p { color: var(--text-secondary); line-height: 1.9; }

/* ---------------------------------------------------------------- tour */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px #08080fb3, 0 0 0 3px var(--red); transition: all .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tour-spot.center { width: 0 !important; height: 0 !important; left: 50% !important; top: 50% !important; box-shadow: 0 0 0 9999px #08080fb3; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); background: var(--bg-elevated); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px 14px; transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1); border: 1px solid var(--border); overflow: hidden; }
.tour-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--red); }
.tour-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.tour-card p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.tour-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.tour-btns { display: flex; gap: 6px; }
.tour-btns button { height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 800; font-size: 12.5px; border: 1px solid var(--border); background: var(--bg-card); }
.tour-btns .primary { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 24px)); }
.toast { pointer-events: auto; width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; display: flex; gap: 10px; align-items: center; animation: slideDown .4s cubic-bezier(.2, .8, .2, 1); cursor: pointer; position: relative; overflow: hidden; }
.toast::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--c, var(--red)); }
.toast .ti { position: relative; width: 34px; height: 34px; flex: none; }
.toast .ti .pin { left: 50%; top: 50%; width: 34px; height: 34px; }
.toast .ti .pin svg { width: 21px; height: 21px; }
.toast .tt { flex: 1; min-width: 0; }
.toast .tt small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; }
.toast .tt b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.simple { justify-content: center; font-weight: 700; font-size: 13px; cursor: default; }
.toast.simple::before { display: none; }
.toast.hide { animation: fadeOut .3s forwards; }

/* ---------------------------------------------------------------- animations */
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes mkPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -14px); } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--c) 18%, var(--bg-card)); } }
@keyframes flash { 50% { filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .tg-btn .lbl { display: none; }
  .tg-btn { width: 36px; padding: 0; justify-content: center; }
  .ticker { flex-basis: 300px; }
}
@media (max-width: 960px) {
  #btnSettings .lbl { display: none; }
  #btnSettings { width: 36px; padding: 0; justify-content: center; }
  :root { --sidebar-w: 310px; }
  .breaking-banner { width: calc(100% - 24px); top: 60px; }
}
@media (max-width: 767px) {
  :root { --header-h: 54px; }
  .topbar { padding: 0 8px; gap: 6px; }
  .brand img { height: 34px; }
  #btnSettings, .theme-btn, .tg-btn, .ticker { display: none; }
  .m-settings { display: inline-flex; }
  .refresh-btn { width: 36px; padding: 0; justify-content: center; }
  .refresh-btn .lbl { display: none; }
  .lang-btn { min-width: 38px; padding: 0 8px; }
  .report-btn { padding: 0 10px; }
  .status { padding: 0 9px; }
  .mobile-ticker { display: block; height: 34px; flex: none; background: var(--bg-elevated); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
  .mobile-ticker .tick { font-size: 12px; }
  .layout { display: block; }
  .map-wrap { position: absolute; inset: 0; }
  .sidebar { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 72%; border-inline-start: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px -10px #0005; transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); margin: 0 !important; }
  .app.detail-open .sidebar { width: 100%; height: 88%; }
  .app.sheet-open .sidebar { transform: none; }
  .sheet-handle { display: block; padding: 8px 0 0; cursor: grab; }
  .sheet-handle span { display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto; }
  .sb-head { padding: 6px 14px 10px; cursor: pointer; }
  .sb-title { font-size: 17px; }
  #sbClose { display: none; }
  .app.sheet-open #sbClose { display: inline-flex; }
  .list-fab { position: static; inset: auto; width: 44px; height: 36px; min-height: 36px; flex: none; justify-content: center; gap: 2px; padding: 0 4px; border-radius: 8px; }
  .list-fab .lbl { display: none; }
  .list-fab .fab-count { min-width: 16px; height: 16px; padding: 0 2px; border-radius: 9px; font-size: 9px; }
  .map-btn { height: 36px; padding: 0 11px; font-size: 12.5px; }
  .map-ctrls { top: 12px; bottom: auto; inset-inline-start: 10px; }
  .ctrl-btn { width: 36px; height: 36px; }
  .map-bottom-controls { bottom: calc(23px + env(safe-area-inset-bottom, 0px)); left: auto; inset-inline-end: 10px; gap: 6px; transform: none; }
  /* raised one row above the bottom bar: the legend pill no longer shares the
     bottom row with the brand pill + globe button, which crowded at ~390px
     and clipped the legend label («مفتاح الخر…») */
  .map-legend { bottom: calc(67px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 10px; }
  .legend-card { width: min(232px, calc(100vw - 130px)); }
  .about-pill { height: 36px; padding: 0 12px; max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; }
  .reset-view-btn { width: 38px; height: 38px; }
  .about-pill > span[data-t='aboutMap'], .about-pill .sep { display: none; }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { bottom: 140px; }
  .maplibregl-ctrl-scale { display: none; }
  .breaking-banner { top: 56px; width: calc(100% - 20px); }
  .toasts { top: calc(var(--header-h) + 42px); }
  .drawer-top { padding: 20px 18px 12px; }
  .drawer-title { font-size: 34px; }
  .drawer-body { padding: 0 14px 30px; }
  .dd-panel { width: min(280px, calc(100vw - 20px)); }
  .types-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .report-btn .lbl { display: none; }
  .report-btn { width: 36px; padding: 0; justify-content: center; }
}
/* civil sub-type icons: thin white halo so they stay readable over busy city maps */
.pin-car_crash svg, .pin-protest svg, .pin-fire svg, .pin-explosion svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

/* performance: pause marker effects during both pan and zoom gestures */
.is-moving .mk *, .is-moving .mk::before, .is-moving .mk::after, .is-zooming .mk *, .is-zooming .mk::before, .is-zooming .mk::after { animation-play-state: paused !important; }
.uav, .squad .sq { will-change: transform; }
.maplibregl-canvas-container .maplibregl-popup.pp-gest { z-index: 60; }
/* ---------------------------------------------------------------- contact links (owner-controlled) */
.ct-btn[hidden] { display: none !important; }
.wa-btn svg { color: #25d366; }
html.dark .wa-btn svg { color: #2fe079; }
#btnContact svg { color: var(--blue); }
.ct-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.ct-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-card); transition: background .15s; min-height: 56px; }
.ct-row:hover { background: var(--bg-card-hover); }
.ct-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-content: center; flex: none; }
.ct-row.wa .ct-ic { background: #25d3661f; color: #1fae55; border: 1px solid #25d36659; }
.ct-row.tel .ct-ic { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.ct-row.tgs .ct-ic { background: #229ed91f; color: #229ed9; border: 1px solid #229ed959; }
.ct-txt { display: flex; flex-direction: column; min-width: 0; }
.ct-txt b { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.ct-txt small { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
.ct-modal .ct-list { margin-top: 14px; }
.about-us .ct-list { margin-top: 6px; }
/* ---------------------------------------------------------------- install the app (PWA) */
.inst-card { position: fixed; z-index: 58; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; width: min(380px, calc(100vw - 24px)); background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px 12px; overflow: hidden; opacity: 0; transform: translate(-50%, 24px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.inst-card.show { opacity: 1; transform: translate(-50%, 0); }
.inst-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--red); }
.inst-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center; color: var(--text-muted); }
.inst-x:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.inst-head { display: flex; align-items: center; gap: 12px; padding-inline-end: 30px; }
.inst-head img { width: 46px; height: 46px; border-radius: 11px; flex: none; box-shadow: 0 2px 8px #ff3b4e40; }
.inst-eyebrow { display: block; font-size: 11px; font-weight: 800; color: var(--red); letter-spacing: .04em; text-transform: uppercase; }
.inst-head h4 { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.3; }
.inst-sub { margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.inst-steps { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; background: var(--bg-card); }
.inst-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; }
.inst-step + .inst-step { border-top: 1px solid var(--border-subtle); }
.inst-step .si { width: 32px; height: 32px; border-radius: 8px; display: grid; place-content: center; flex: none; }
.inst-step .si.blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.inst-step .si.red { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.inst-step b { display: block; font-size: 13px; font-weight: 800; }
.inst-step span:not(.si) { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.7; }
.inst-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.8; padding: 10px 12px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.inst-btns { display: flex; flex-direction: column; }
.inst-btns .btn-red { height: 44px; margin-top: 12px; }
.inst-btns .btn-text { margin-top: 4px; height: 34px; }
#sInstall .btn-red { margin-top: 4px; }
#sInstall .inst-steps { margin-top: 2px; }
@media (min-width: 768px) {
  .inst-card { left: auto; inset-inline-end: calc(var(--sidebar-w) + 20px); transform: translateY(24px); }
  .inst-card.show { transform: translateY(0); }
  .sb-hidden .inst-card { inset-inline-end: 20px; }
}
@media (max-width: 767px) {
  .ct-btn { display: none !important; }
  .inst-card { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 14px 16px 10px; }
}

/* ---- pulsing glow over every affected area of a live alert (one ring set per circle) ----
   transform + opacity only -> runs on the compositor; the map canvas is never redrawn for it */
.zp { width: var(--d, 16px); height: var(--d, 16px); pointer-events: none !important; contain: layout style; }
.zp-fill {
  position: absolute; inset: 0; border-radius: 50%; background: var(--c, #ef233c);
  opacity: .045; animation: zfillPulse 3.2s ease-in-out infinite; will-change: opacity; pointer-events: none;
}
@keyframes zfillPulse { 0%, 100% { opacity: .045; } 50% { opacity: .12; } }
.zp::before, .zp::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--c, #ef233c);
  background: radial-gradient(circle, transparent 68%, color-mix(in srgb, var(--c, #ef233c) 14%, transparent) 100%);
  opacity: 0; transform: scale(1);
  animation: zpulse 3.2s cubic-bezier(.2, .6, .35, 1) infinite;
  will-change: transform, opacity;
}
.zp::after { animation-delay: 1.6s; }
@keyframes zpulse {
  0% { transform: scale(1); opacity: .4; }
  100% { transform: scale(1.85); opacity: 0; }
}
/* Preserve the original blue aircraft-circle glow and pulse cadence for warplanes. */
.zp.zp-aircraft .zp-fill { opacity: .12; animation: zfillPulseAircraft 2.6s ease-in-out infinite; }
@keyframes zfillPulseAircraft { 0%, 100% { opacity: .12; } 50% { opacity: .32; } }
.zp.zp-aircraft::before, .zp.zp-aircraft::after {
  border-width: 2px;
  background: radial-gradient(circle, transparent 52%, color-mix(in srgb, var(--c, #3b8eff) 30%, transparent) 100%);
  animation: zpulseAircraft 2.6s cubic-bezier(.2, .6, .35, 1) infinite;
}
.zp.zp-aircraft::after { animation-delay: 1.3s; }
@keyframes zpulseAircraft { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.15); opacity: 0; } }
.zp.zp-selected .zp-fill { opacity: .22; }
.zp.zp-selected::before, .zp.zp-selected::after { border-width: 2.6px; animation-duration: 1.9s; }
.zp.zp-selected::after { animation-delay: .95s; }
.map-wrap.is-zooming .zp, .is-zooming .zp { visibility: hidden; }
.is-moving .zp::before, .is-moving .zp::after, .is-moving .zp-fill { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .zp-fill { animation: none; opacity: .04; }
  .zp::before { animation: none; opacity: .22; transform: scale(1.06); }
  .zp::after { display: none; }
  .zp.zp-aircraft .zp-fill { animation: none; opacity: .20; }
  .zp.zp-aircraft::before { animation: none; opacity: .55; transform: scale(1.25); }
  .zp.zp-selected::before { animation: none; opacity: .85; transform: scale(1.12); }
  .helicopter-svg .heli-main-rotor, .helicopter-svg .heli-tail-rotor { animation: none !important; }
  .maplibregl-map.zoom-detail .mk-helicopter:not(.inactive) .heli-craft { animation: heliOrbit 18s linear infinite !important; }
  .maplibregl-map.zoom-detail .mk-helicopter:not(.inactive) .heli-craft-second { animation-delay: -9s !important; }
}
.pp-areas { display: block; overflow: visible; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; line-height: 1.55; margin: 3px 0 0; }

/* ---------------------------------------------------------------- services sheet (public/js/services.js) */
.svc-sheet .about-inner { padding-top: 6px; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; }
.svc-head h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 900; }
.svc-head p { margin: 0; font-size: 13px; }
.svc-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 14px 0 12px; position: sticky; top: -6px; background: var(--bg-primary); padding: 6px 0; z-index: 2; }
.svc-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); font-weight: 800; font-size: 12.5px; color: var(--text-secondary); }
.svc-tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.px-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.px-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.px-h b { font-size: 14px; font-weight: 900; }
.px-h span { font-size: 11.5px; color: var(--text-muted); }
.px-row { display: grid; grid-template-columns: 1fr auto auto 18px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.px-row:first-of-type { border-top: 0; }
.px-th { font-size: 11.5px; color: var(--text-muted); font-weight: 700; padding: 2px 0; border-top: 0; }
.px-k { font-weight: 700; }
.px-k small { color: var(--text-muted); font-weight: 500; }
.px-v { font-family: var(--font-mono); font-weight: 800; text-align: end; min-width: 64px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.px-v small { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.px-ch { font-size: 11px; text-align: center; color: var(--text-muted); }
.px-ch.up { color: #e11d48; } .px-ch.dn { color: #059669; }
.svc-note { font-size: 12px; color: var(--text-muted) !important; line-height: 1.7 !important; margin: 8px 0 !important; }
.svc-note a { text-decoration: underline; }
.svc-empty { padding: 18px 10px; text-align: center; color: var(--text-muted); font-size: 13.5px; background: var(--bg-card); border-radius: 12px; border: 1px dashed var(--border); margin-bottom: 10px; }
.svc-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.svc-item[data-road] { cursor: pointer; }
.svc-item p { margin: 0 !important; font-size: 13.5px; color: var(--text-primary) !important; white-space: pre-line; line-height: 1.7 !important; }
.svc-it-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.svc-it-top .time, .svc-dim { font-size: 11.5px; color: var(--text-muted); }
.svc-sel { margin-bottom: 10px; }
.svc-report { margin-top: 6px; }
.svc-q { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); padding: 0 12px; font: inherit; font-size: 14px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.svc-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font-size: 12.5px; font-weight: 700; }
.svc-chip.on { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.jobs-intro { margin-top: 0 !important; }
.jobs-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.jobs-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; min-height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: var(--text-secondary); text-align: start; font: inherit; cursor: pointer; }
.jobs-option.on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: color-mix(in srgb, var(--red) 8%, var(--bg-card)); color: var(--text-primary); }
.jobs-option > svg { flex: none; color: var(--red); margin-top: 2px; }
.jobs-option > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jobs-option b { font-size: 12.5px; line-height: 1.5; }
.jobs-option small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.jobs-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; }
.jobs-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.jobs-empty h3 { margin: 0; color: var(--text-primary); font-size: 15px; }
.jobs-empty p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.jobs-list { display: grid; gap: 10px; }
.job-card { padding: 13px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); }
.job-card-head { display: grid; gap: 5px; }
.job-card-head b { color: var(--text-primary); line-height: 1.55; }
.job-card-head small { color: var(--text-muted); font-size: 11.5px; }
.job-location { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; color: var(--red); font-size: 12px; font-weight: 700; line-height: 1.5; }
.job-location svg { flex: none; margin-top: 2px; }
.job-card-text { margin: 10px 0; color: var(--text-secondary); line-height: 1.75; overflow-wrap: anywhere; }
.job-read-toggle { display: inline-flex; align-items: center; min-height: 34px; margin: -4px 0 10px; padding: 4px 10px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--red) 8%, var(--bg-card)); color: var(--red); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.job-read-toggle:hover { background: color-mix(in srgb, var(--red) 14%, var(--bg-card)); }
.job-card-links { display: flex; flex-wrap: wrap; gap: 7px; }
.job-card-links .btn-sm, .job-request { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.job-share-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border-subtle); }
.job-share-actions .btn-sm { min-height: 34px; justify-content: center; gap: 6px; }
.job-share-native { color: var(--red); }
.army-intro { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid color-mix(in srgb, #2563eb 30%, var(--border)); border-radius: 13px; background: color-mix(in srgb, #2563eb 6%, var(--bg-card)); margin-bottom: 11px; }
.army-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; color: #2563eb; background: color-mix(in srgb, #2563eb 13%, transparent); }
.army-intro h3 { margin: 0 0 4px; color: var(--text-primary); font-size: 15px; font-weight: 900; }
.army-intro p { margin: 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.7; }
.army-follow { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; margin-bottom: 11px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); }
.army-follow > b { font-size: 12.5px; }
.army-follow-links { display: flex; flex-wrap: wrap; gap: 7px; }
.army-follow-link { display: inline-flex; align-items: center; gap: 6px; }
.army-no-channels { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11.5px; }
.army-chips { margin-top: 4px; }
.army-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.army-cat-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 0; }
.army-cat-icon svg { display: block; width: 14px; height: 14px; }
.army-list { display: grid; gap: 9px; }
.army-card { min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-inline-start: 3px solid #2563eb; border-radius: 12px; background: var(--bg-card); }
.army-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.army-card-top > small { color: var(--text-muted); font-size: 10.5px; text-align: end; }
.army-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: #1d4ed8; background: color-mix(in srgb, #2563eb 10%, transparent); font-size: 11.5px; font-weight: 800; }
.army-card h3 { margin: 9px 0 5px; color: var(--text-primary); font-size: 14px; line-height: 1.6; }
.army-card > p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.army-card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.army-card-links > b { width: 100%; color: var(--text-secondary); font-size: 11.5px; }
.army-card-source { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: #2563eb; font-size: 11.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.army-sources { display: grid; gap: 6px; }
.army-source { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); }
.army-source > svg:first-child { flex: none; color: #2563eb; }
.army-source > svg:last-child { flex: none; margin-inline-start: auto; color: var(--text-muted); }
.army-source > span { display: flex; flex-direction: column; min-width: 0; }
.army-source b { font-size: 12.5px; }
.army-source small { color: var(--text-muted); font-size: 10.5px; }
.army-empty { display: grid; justify-items: center; gap: 7px; }
.army-empty p { margin: 0; line-height: 1.7; }
.svc-loc { width: 100%; justify-content: center; margin-bottom: 8px; }
.svc-res { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.svc-poi { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-subtle); text-align: start; width: 100%; }
.svc-pn { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.svc-pn b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-pn small { font-size: 11.5px; color: var(--text-muted); }
.svc-d { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--text-secondary); white-space: nowrap; }
.svc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); margin-inline-end: 7px; flex: none; vertical-align: middle; }
.svc-pp .pp-foot a { display: inline-flex; align-items: center; gap: 5px; }
.dist-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #3b8eff; background: color-mix(in srgb, #3b8eff 12%, transparent); border-radius: 999px; padding: 2px 8px; margin: 2px 0 4px; width: fit-content; }
.ctrl-btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .svc-sheet { max-height: 88vh; }
  .svc-tab { font-size: 12px; padding: 7px 2px; }
  #btnSvc { padding: 0 10px; }
}
.svc-lbl { display: inline-flex; align-items: center; }
.px-k { white-space: normal; min-width: 0; }
.px-row { gap: 8px; }
.px-v small { font-family: var(--font-arabic); letter-spacing: 0; }

/* alert distance (location kept on the device) */
.dist-chip.near { color: #fff; background: #dc2626; }
.card.near { box-shadow: inset 0 0 0 2px #dc2626, 0 6px 18px -8px rgba(220, 38, 38, .55); }
.card.near .card-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; margin-inline-end: 6px; vertical-align: middle; animation: nearPulse 1.4s ease-in-out infinite; }
@keyframes nearPulse { 50% { opacity: .25; } }
.svc-forget { background: none; border: 0; color: var(--muted, #94a3b8); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px 0; margin: 2px 0 6px; }

/* border crossings */
.bd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.bd-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.bd-row:hover { border-color: #94a3b8; }
.bd-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bd-main small { color: var(--text-secondary); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-st { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; font-weight: 700; color: var(--c); white-space: nowrap; }
.bd-st small { font-weight: 400; color: var(--text-secondary); font-size: 11px; }

/* phones: filter / layers panels as a bottom sheet (above the list sheet and pills, scrollable) */
.dd-back { z-index: 62; }
.dd-panel.dd-sheet { position: fixed; top: auto; bottom: 0; left: 0; right: 0; inset-inline-start: 0; width: 100%; max-width: 100%; max-height: min(80vh, calc(100dvh - 72px)); z-index: 63; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; animation: ddUp .22s cubic-bezier(.2, .8, .2, 1); box-sizing: border-box; }
.dd-panel.dd-sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 10px; }
.dd-panel.dd-sheet .tgl, .dd-panel.dd-sheet .radio { min-height: 44px; }
@keyframes ddUp { from { transform: translateY(40%); opacity: .4; } }
@keyframes ddDown { from { transform: translateY(-12px); opacity: .4; } }
/* services map mode hides news, except the requested always-visible orbiting helicopter marker. */
.news-off .mk:not(.mk-helicopter), .news-off .zp { display: none !important; }
.news-off .mk-helicopter { display: block !important; visibility: visible !important; }

/* services map mode */
.svc-bar { position: absolute; z-index: 16; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 5px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .18s; }
.svc-bar[hidden] { display: none; }
.svc-bar button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.svc-bar-main { padding: 0 8px 0 4px; min-width: 0; text-align: start; }
.svc-bar-main > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.svc-bar-main b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.svc-bar-main small { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-bar-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1.5px solid var(--c); }
.svc-bar-x { height: 34px; padding: 0 12px; border-radius: 999px !important; background: var(--c) !important; color: #fff !important; font-size: 12.5px; font-weight: 800; white-space: nowrap; flex: none; }
.svc-bar-credit { flex: none; padding: 4px 5px; color: var(--text-secondary); font-size: 9.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.wx-credit { margin: 8px 0 0; color: var(--text-muted); font-size: 10.5px; line-height: 1.55; }
.wx-credit a { color: var(--text-secondary); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) { .svc-bar { top: 56px; } }
body.svc-on .breaking-banner { display: none; }
.svc-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.svc-mbtn { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: start; }
.svc-mbtn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg-secondary)); box-shadow: inset 0 0 0 1px var(--c); }
.svc-mbtn .svc-dot { --c: inherit; }
.svc-mexit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 10px; border: 1px dashed var(--border); background: none; color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; margin-bottom: 4px; }
.svc-mwide { width: 100%; justify-content: center; margin: 8px 0 12px; border-color: var(--c) !important; color: var(--c) !important; }
.svc-mwide.on { background: color-mix(in srgb, var(--c) 12%, transparent) !important; }

/* phones: service cards may use a bottom dock; alert details stay anchored to their map markers */
.pp-dock { position: absolute; z-index: 17; left: 10px; right: 10px; bottom: 10px; max-width: 520px; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; box-shadow: var(--shadow-lg); animation: ddUp .2s cubic-bezier(.2, .8, .2, 1); }
.pp-dock .pp-dock-body { border-radius: 14px; padding: 12px 12px 10px; }
.pp-dock .pp-dock-x { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--bg-subtle); color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; }

body.pp-docked .about-pill, body.pp-docked .maplibregl-ctrl-bottom-left, body.pp-docked .maplibregl-ctrl-bottom-right { visibility: hidden; }
.pp-dock .pp-dock-body.maplibregl-popup-content { width: auto; max-width: none; box-shadow: none; }
.pp-dock { background: var(--bg-elevated); border: 1px solid var(--border); }
.pp-dock .pp-dock-body.maplibregl-popup-content { border: 0; }

/* Reference-style pass with medium, bright-blue airframes that stay readable at detail zoom. */
.mk-squad .mk-s { transform: none; transition: none; }
.mk-squad .squad {
  position: absolute; width: 84px; height: 200px; left: -42px; top: -100px;
}
.mk-squad .squad .sq { width: 24px; height: 24px; scale: 1; animation: squadFly 7s linear infinite; }
.mk-squad .squad .sq:first-child { left: 30px !important; top: calc(50% - 12px) !important; }
.mk-squad .squad .sq:first-child .sq-svg { width: 24px; height: 24px; }
.mk-squad .squad .sq:nth-child(2) { left: 8px !important; top: calc(50% + 16px) !important; width: 22px; height: 22px; }
.mk-squad .squad .sq:nth-child(3) { left: 54px !important; top: calc(50% + 16px) !important; width: 22px; height: 22px; }
.mk-squad .squad .sq:nth-child(2) .sq-svg, .mk-squad .squad .sq:nth-child(3) .sq-svg { width: 22px; height: 22px; }
/* Match the reference blue, without the dark drop-shadow muddying the small silhouettes. */
.mk-squad .sq-svg, html.dark .mk-squad .sq-svg { fill: #3b8eff; filter: none; }
.mk-squad .mk-s { transform: none; }
.mk-squad .sq-svg { transform: scale(calc(var(--mks, .5) * 1.5)) rotate(-45deg); transform-origin: center; }
.maplibregl-map:not(.zoom-detail) .mk-squad:not(.t-warplane) .squad { visibility: hidden; }
.maplibregl-map .mk-squad.t-warplane .squad { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .mk-squad .squad .sq { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* 3D terrain: flat DOM pulse rings cannot tilt with the ground (the drawn circles do), so they are hidden */
.is-3d .zp { display: none !important; }
.is-3d.is-moving .mk { will-change: transform; }
.badge .bemo { font-size: 13px; line-height: 1; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }

/* ---------- weather mode (services) ---------- */
.svc-tabs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 420px) { .svc-tab { font-size: 11px; padding: 7px 1px; } .svc-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } }
.wx-ic { display: inline-block; flex: none; vertical-align: middle; }
.wx-now { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.wx-now > b { font-size: 30px; font-weight: 800; line-height: 1; white-space: nowrap; flex: none; }
.wx-now > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.wx-now em { font-style: normal; font-weight: 800; font-size: 14px; }
.wx-now small { color: var(--text-muted); font-size: 12px; }
.wx-days { border-top: 1px solid var(--border); padding-top: 6px; }
.wx-d { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-top: 4px; }
.wx-dn { font-weight: 800; min-width: 42px; }
.wx-dl { flex: 1; min-width: 0; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-t { font-weight: 800; white-space: nowrap; }
.wx-t small { color: var(--text-muted); font-weight: 700; }
.wx-dx { font-size: 11.5px; color: var(--text-muted); padding-inline-start: 49px; margin-bottom: 2px; }
.wx-warn { margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.wx-warn small { display: block; color: var(--text-muted); font-size: 11.5px; }
.wx-row .wx-ic { width: 30px; height: 30px; }
.wx-rt { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.wx-rt b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.wx-rt small, .wx-t { unicode-bidi: isolate; }
.wx-rt small { font-size: 11.5px; color: var(--text-muted); }
.wx-row .svc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); vertical-align: middle; }

/* weather / services cards: keep each value on one line; in the phone dock the card uses the full width */
.svc-pp .nw { white-space: nowrap; }
.pp-dock.svc-dock .svc-pp { width: auto; max-width: none; }
.pp-dock.svc-dock .pp-dock-body { padding-top: 10px; }
.pp-dock.svc-dock .pp-top { padding-inline-end: 34px; }
/* desktop popup slid back inside the map while zooming / panning: the tip no longer points at its spot */
.maplibregl-popup.pp-clamped .maplibregl-popup-tip { opacity: 0; visibility: hidden; animation: none !important; }
.maplibregl-popup .maplibregl-popup-content { transition: none; }

/* ⛽ fuel card: since / last-checked / staleness / diesel grades */
.px-fuel .px-warn { margin: 6px 0 4px; padding: 6px 8px; border-radius: 8px; background: rgba(245, 158, 11, .12); color: #b45309; font-size: 12.5px; line-height: 1.5; }
html[data-theme="dark"] .px-fuel .px-warn, .dark .px-fuel .px-warn { color: #fbbf24; }
.px-fuel .px-sub { margin: 8px 0 2px; font-size: 12px; font-weight: 700; opacity: .7; }
.px-fuel .px-foot { margin-top: 6px; font-size: 11.5px; opacity: .65; line-height: 1.5; }
.px-fuel .px-k small { white-space: nowrap; }
.px-fuel .px-foot span[dir="ltr"] { white-space: nowrap; display: inline-block; }


/* ---------------------------------------------------------------- final map UI pass */
.topbar {
  gap: 9px;
  padding-inline: 14px;
  background: color-mix(in srgb, var(--bg-secondary) 94%, var(--bg-primary));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent);
}
.brand img { height: 36px; }
.tb-btn, .status { border-radius: 10px; }
.ticker { border-radius: 10px; }
.status {
  background: color-mix(in srgb, var(--online) 6%, var(--bg-elevated));
  border-color: color-mix(in srgb, var(--online) 20%, var(--border));
}
.mobile-ticker { background: var(--bg-card); }
.map-btn {
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  gap: 7px;
  padding-inline: 13px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 12.5px;
}
.map-btn svg { width: 18px; height: 18px; flex: none; }
.map-btn:hover, .map-btn[aria-expanded='true'] {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
}
.dd-panel { max-height: min(72vh, calc(100dvh - 132px)); }
.map-ctrls {
  inset-inline-start: 14px;
  padding: 2px;
  border-radius: 13px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ctrl-btn { width: 42px; height: 42px; }
.about-pill {
  min-height: 40px;
  padding-inline: 15px;
  border-color: color-mix(in srgb, var(--border) 85%, var(--text-muted));
}
.sidebar { background: var(--bg-secondary); }
.sb-head { padding: 18px 18px 14px; }
.sb-list { padding: 12px; gap: 10px; }
.card { border-radius: 12px; padding: 13px 13px 11px; }

@media (min-width: 768px) and (max-width: 1080px) {
  :root { --sidebar-w: 300px; }
  .topbar { gap: 6px; padding-inline: 8px; }
  .brand img { height: 32px; }
  .ticker { flex-basis: 220px; min-width: 120px; }
  .tb-btn { padding-inline: 9px; }
}

@media (max-width: 767px) {
  :root { --header-h: 54px; }
  .topbar { height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0; gap: 4px; }
  .brand img { height: 32px; }
  .report-btn { width: 36px; padding: 0; justify-content: center; }
  .report-btn .lbl { display: none; }
  .mobile-ticker { height: 36px; }
  .map-btn {
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    justify-content: center;
    gap: 6px;
    padding: 5px 6px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }
  .map-btn > span:not(.badge-count) { min-width: 0; }
  .map-btn svg { width: 18px; height: 18px; flex: none; }
  .notif-map-label { overflow-wrap: anywhere; }
  .map-ctrls {
    top: 12px;
    bottom: auto;
    inset-inline-start: 12px;
  }
  .ctrl-btn { width: 40px; height: 40px; }
  .map-bottom-controls { bottom: calc(23px + env(safe-area-inset-bottom, 0px)); left: auto; inset-inline-end: 10px; transform: none; }
  .reset-view-btn { width: 38px; height: 38px; }
  .about-pill { height: 38px; min-height: 38px; max-width: calc(100% - 48px); padding-inline: 12px; }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  .maplibregl-ctrl-attrib {
    box-sizing: border-box;
    width: min(260px, calc(100vw - 96px));
    max-width: calc(100vw - 96px);
    max-height: min(24dvh, 160px);
    margin: 8px 10px;
    padding: 8px !important;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner {
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
    text-align: start;
  }
  .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline: auto;
    left: 0;
    right: auto;
    width: min(420px, 58vw);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    transform: translateX(-105%);
    margin: 0 !important;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 61;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  }
  .app.sheet-open .sidebar { transform: none; }
  .sheet-handle { display: none; }
  .sb-head { padding: 16px 16px 12px; }
  #sbClose { display: inline-flex; }
  .detail-head { align-items: center; }
  .detail-head .nav { gap: 6px; }
  .dd-panel.dd-sheet { max-height: min(78dvh, calc(100dvh - 84px)); }
  .site-share { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .breaking-banner { top: 56px; }
}

@media (max-width: 380px) {
  .map-btn { gap: 5px; padding-inline: 4px; font-size: 11.5px; }
  .about-pill { max-width: calc(100% - 48px); }
}

/* Drones keep a light outline; warplanes match the clean blue silhouette used by the reference map. */
.uav-svg {
  stroke: rgba(255,255,255,.94);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
html.dark .uav-svg {
  stroke: rgba(255,255,255,.98);
}
.sq-svg { transform: rotate(-45deg); }

/* Map tools open from one compact button; secondary tools and map actions stay together. */
.map-ctrls { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.map-ctrls > .ctrl-btn, .map-ctrl-panel .ctrl-btn { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow); transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.map-ctrls > .ctrl-btn:hover, .map-ctrl-panel .ctrl-btn:hover { transform: translateY(-2px); background: var(--bg-card-hover); box-shadow: var(--shadow-lg); }
.map-ctrl-panel { position: absolute; top: calc(100% + 9px); bottom: auto; inset-inline-start: 0; z-index: 16; display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-elevated); box-shadow: var(--shadow-lg); animation: ddDown .18s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.map-ctrl-panel[hidden] { display: none !important; }
.map-ctrl-panel { box-sizing: border-box; width: min(370px, calc(100vw - 28px)); max-width: calc(100vw - 20px); }
.map-ctrl-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 13px; }
.map-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.map-tool-grid > .dd, .map-tool-grid > .map-btn { min-width: 0; }
.map-tool-grid > .dd > .map-btn, .map-tool-grid > .map-btn { width: 100%; min-height: 44px; height: auto; justify-content: flex-start; padding: 7px 10px; border-radius: 10px; box-shadow: none; }
.map-tool-grid > .dd > .map-btn > span:not(.badge-count), .map-tool-grid > .map-btn > span:not(.badge-count) { min-width: 0; }
.map-tool-grid > #btnNotifications { grid-column: 1 / -1; }
.map-tool-grid .badge-count { margin-inline-start: auto; }
.map-control-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.map-ctrl-panel .map-control-actions .ctrl-btn { width: 42px; height: 42px; flex: none; }
.map-tools-close-icon { display: none; }
#mapControlsToggle[aria-expanded='true'] .map-tools-icon { display: none; }
#mapControlsToggle[aria-expanded='true'] .map-tools-close-icon { display: inline-flex; }
#filterPanel, #layersPanel { z-index: 22; width: min(320px, calc(100vw - 34px)); max-height: min(48vh, 380px); }
#filterPanel.dd-sheet, #layersPanel.dd-sheet { z-index: 63; }
.dd-panel-nav { margin: -2px 0 9px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.dd-back-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.dd-back-btn:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: var(--bg-card-hover); }
#mapControlsToggle[aria-expanded='true'] { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.mk-event-emoji { display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--ic, #7c3aed); border-radius: 50%; background: #fff; color: #111827; font: 20px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; box-shadow: 0 2px 7px rgba(15, 23, 42, .3); }
html.dark .mk-event-emoji { background: #f8fafc; }

/* Softer, slower general-purpose alert pulse; aircraft retain their legacy blue cadence and glow. */
.zp-fill { animation: none; opacity: .035; will-change: auto; }
.zp::before, .zp::after { border-width: 1.25px; background: radial-gradient(circle, transparent 72%, color-mix(in srgb, var(--c, #ef233c) 8%, transparent) 100%); animation-duration: 3.6s; }
@keyframes zpulse { 0% { transform: scale(1); opacity: .27; } 100% { transform: scale(1.65); opacity: 0; } }

/* Alert cards stay near the visual center, while the MapLibre tip remains attached to the exact event point. */
.maplibregl-popup.pp-alert-popup { z-index: 60; }
.pp-alert-popup .maplibregl-popup-content { max-height: min(62dvh, 600px); }
.maplibregl-popup.pp-group-popup { z-index: 60; }
.maplibregl-popup.pp-alert-popup .maplibregl-popup-tip { opacity: 1; filter: drop-shadow(0 2px 2px rgba(17, 24, 39, .12)); }
.maplibregl-popup.pp-alert-popup.pp-clamped .maplibregl-popup-tip { opacity: 0; visibility: hidden; animation: none !important; }
.pp-popup-connector { position: fixed; z-index: 59; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.pp-popup-connector line { stroke: color-mix(in srgb, var(--bg-elevated) 72%, var(--text-muted)); stroke-width: 2; stroke-dasharray: 3 3; }
.pp-popup-connector path { fill: var(--bg-elevated); stroke: var(--border-subtle); stroke-width: 1; stroke-linejoin: round; }
.pp-popup-connector circle { fill: var(--red); stroke: var(--bg-elevated); stroke-width: 2; }
@media (max-width: 767px) {
  .brand img { height: 28px; width: auto; }
  .map-ctrls { top: 12px; bottom: auto; gap: 7px; }
  .map-ctrls > .ctrl-btn { width: 44px; height: 44px; border-radius: 14px; }
  .map-ctrl-panel .ctrl-btn { width: 44px; height: 44px; }
  .map-ctrl-panel { width: min(370px, calc(100vw - 20px)); max-height: min(70dvh, calc(100dvh - 105px)); overflow-y: auto; overscroll-behavior: contain; }
  .map-tool-grid { gap: 6px; }
  .map-tool-grid > .dd > .map-btn, .map-tool-grid > .map-btn { min-height: 46px; padding-inline: 9px; font-size: 12px; }
  #filterPanel, #layersPanel { max-height: min(56dvh, 420px); }
  html[dir='rtl'] .maplibregl-ctrl-bottom-left { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); left: calc(50% + 50px); right: auto; transform: translateX(-50%); }
  html[dir='ltr'] .maplibregl-ctrl-bottom-right { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); left: calc(50% - 50px); right: auto; transform: translateX(-50%); }
  .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) { box-sizing: border-box; width: 24px; height: 24px; max-width: 24px; max-height: 24px; margin: 0; padding: 0 !important; border-radius: 50%; overflow: hidden; }
  .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button { position: static; width: 24px; height: 24px; margin: 0; }
  .maplibregl-popup.pp-alert-popup { max-width: calc(100vw - 20px) !important; }
  .pp-alert-popup .maplibregl-popup-content { width: min(420px, calc(100vw - 20px)); max-height: min(44dvh, 400px); }
  .pp-alert-popup .pp-more, .pp-alert-popup .pp-share { min-height: 44px; }
}
@media (max-width: 340px) {
  .about-pill { max-width: calc(100vw - 170px); gap: 6px; padding-inline: 8px; overflow: hidden; }
  .about-pill b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html[dir='rtl'] .maplibregl-ctrl-bottom-left { left: calc(100% - 132px); }
  html[dir='ltr'] .maplibregl-ctrl-bottom-right { left: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-ctrl-panel { animation: none; }
}

.job-deadline, .army-deadline { display: block; margin: 7px 0; padding: 5px 8px; border-radius: 8px; background: rgba(37, 99, 235, .08); color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.job-deadline b, .army-deadline b { color: var(--text-primary); }


/* Share preview card: keep the map image fully visible and the direct alert URL easy to copy. */
.share-card-modal { padding: 16px; display: grid; gap: 12px; }
.share-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-card-head h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.share-card-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 12.5px; }
.share-card-map { display: grid; place-items: center; min-height: 110px; max-height: 330px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 13px; background: #0c1220; }
.share-card-map img { display: block; width: 100%; max-height: 330px; object-fit: contain; }
.share-card-map img[hidden] { display: none; }
.share-card-fallback { padding: 20px; color: #fff; text-align: center; font-size: 13px; }
.share-card-info { display: grid; gap: 7px; }
.share-card-info h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.share-card-meta { display: flex; align-items: flex-start; gap: 7px; color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }
.share-card-meta svg { flex: none; margin-top: 2px; }
.share-card-meta b { color: var(--text-primary); }
.share-card-link label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.share-card-link > div { display: flex; gap: 6px; }
.share-card-link input { min-width: 0; flex: 1; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elevated); color: var(--text-primary); font: 12px/1.4 ui-monospace, monospace; }
.share-card-link a { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 9px; color: var(--text-primary); background: var(--bg-elevated); }
.share-card-actions { display: flex; gap: 8px; }
.share-card-actions > * { flex: 1; }
.share-card-modal .share-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.share-card-modal .share-menu a { text-decoration: none; }
@media (max-width: 420px) {
  .share-card-modal { padding: 12px; gap: 10px; }
  .share-card-map, .share-card-map img { max-height: 260px; }
  .share-card-modal .share-menu { grid-template-columns: 1fr; }
  .share-card-modal .share-menu a { min-height: 38px; }
}

/* Area-follow controls. Area choice is local; only push preferences are sent to the server when enabled. */
.follow-area-search { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; outline: none; background: var(--bg-elevated); color: var(--text-primary); font: inherit; font-size: 13px; }
.follow-area-search:focus { border-color: color-mix(in srgb, var(--red) 62%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
.follow-area-status { min-height: 18px; margin-top: 6px; color: var(--text-muted); font-size: 11.5px; }
.follow-area-results { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; overscroll-behavior: contain; }
.follow-area-result { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-elevated); color: var(--text-primary); text-align: start; cursor: pointer; }
.follow-area-result:hover, .follow-area-result:focus-visible { border-color: color-mix(in srgb, var(--red) 55%, var(--border)); outline: none; }
.follow-area-result span { font-size: 13px; font-weight: 700; }
.follow-area-result small { color: var(--text-muted); font-size: 11px; }
.follow-area-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.follow-area-selected > div { display: grid; flex: 1 1 100%; gap: 2px; }
.follow-area-selected b { font-size: 12px; }
.follow-area-selected span { color: var(--text-muted); font-size: 12px; }
.follow-area-note { margin: 7px 0 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.6; }

/* ---------------------------------------------------------------- «المباشر» live strip + sheet */
.live-strip { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle); min-height: 30px; }
.live-chip { flex: none; color: var(--red); padding: 2px 2px; font-weight: 800; font-size: 12px; }
.live-x { flex: none; border: 0; background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 2px 4px; }
.live-marquee { flex: 1; min-width: 0; overflow: hidden; cursor: pointer; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.live-track { display: flex; width: max-content; direction: ltr; animation: live-scroll 60s linear infinite; }
.live-marquee:hover .live-track, .live-marquee:active .live-track { animation-play-state: paused; }
.live-run { display: flex; align-items: center; }
.live-tick { direction: rtl; unicode-bidi: plaintext; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text-primary); padding: 0 4px; }
.live-tick .live-src { color: var(--red); font-weight: 800; margin-inline-end: 6px; }
.live-dot { color: var(--text-muted); padding: 0 6px; }
.live-empty { color: var(--text-muted); font-weight: 500; }
@keyframes live-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .live-track { animation: none; } .live-marquee { overflow-x: auto; } }
/* Marquee halves: the track is exactly two identical halves, so the 50%
   keyframe loop is seamless at any content width. Direction reversed at the
   owner's request (2026-11-17): the track runs -50% -> 0, so headlines flow
   rightward across the RTL page; at the loop point the second half sits
   exactly where the first half started, so the wrap is invisible. A still
   track (empty feed) never animates; a touch holds the scroll. */
.live-half { display: flex; align-items: center; }
.live-track { will-change: transform; }
.live-track.still { animation: none; }
.live-marquee.paused .live-track { animation-play-state: paused; }

/* «مباشر» map button: lives in the top map-tools cluster (#mapCtrls), clear of
   the topbar and of the bottom row; always present even when the live strip
   was dismissed; opens the Live window on the World news view. */


/* Vertical auto-scroll for the Live window's news list (Crucix-style):
   the list is duplicated once for a seamless upward loop at ~30px/s; it pauses
   on hover or while touched/dragged, never runs while the sheet is closed,
   and reduced-motion users get a plain scrollable list instead. */
.live-scroll { position: relative; overflow: hidden; max-height: min(46vh, 460px); }
.live-vtrack { display: flex; flex-direction: column; will-change: transform; }
.live-vtrack.anim { animation: live-vscroll linear infinite; }
.live-scroll:hover .live-vtrack.anim, .live-scroll.paused .live-vtrack.anim { animation-play-state: paused; }
.live-sheet:not(.open) .live-vtrack.anim { animation: none; }
@keyframes live-vscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .live-vtrack.anim { animation: none; } .live-scroll { overflow-y: auto; } }
.live-head { display: flex; align-items: center; justify-content: space-between; }
.live-head h2 { margin: 0; }
.live-close { border: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--text-secondary); }
.live-sub { color: var(--text-secondary); font-size: 13px; line-height: 1.8; margin: 6px 0 4px; }
.live-sec { margin: 14px 0 8px; font-size: 15px; font-weight: 900; }
.live-item { display: flex; align-items: baseline; gap: 8px; padding: 9px 10px; border: 1px solid var(--border-subtle); background: var(--bg-card); border-radius: 10px; margin-bottom: 7px; text-decoration: none; color: var(--text-primary); }
.live-badge { flex: none; font-size: 11px; font-weight: 800; color: var(--red); border: 1px solid var(--red); border-radius: 999px; padding: 1px 8px; }
.live-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.live-time { flex: none; font-size: 11px; color: var(--text-muted); }
.live-none { color: var(--text-muted); padding: 14px 0; }
.live-foot { color: var(--text-muted); font-size: 11.5px; margin-top: 12px; }
