:root {
  color-scheme: dark;
  --bg: #090e14;
  --tile-bg: #0b1219;
  --panel: rgba(14, 21, 29, .94);
  --panel-solid: #101821;
  --surface: rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.085);
  --line: rgba(157,181,202,.14);
  --line-2: rgba(157,181,202,.25);
  --text: #edf3f7;
  --muted: #91a2b2;
  --dim: #657686;
  --ink: #eef5f8;
  --ink-text: #0a1118;
  --accent: #66d9ef;
  --ok: #55d6a7;
  --warn: #ffd166;
  --err: #ff6470;
  --shadow: 0 12px 34px rgba(0,0,0,.28);
  --blur: none;
  --r: 16px;
  --r-s: 11px;
  --gap: 16px;
  --sidebar: 326px;
  --header: 58px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.2,.8,.2,1);
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--sans);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e8edef;
  --tile-bg: #e9edee;
  --panel: rgba(250,252,252,.95);
  --panel-solid: #fbfdfd;
  --surface: #edf1f2;
  --surface-hover: #e3e9eb;
  --line: rgba(22,39,48,.11);
  --line-2: rgba(22,39,48,.2);
  --text: #132029;
  --muted: #5c6e78;
  --dim: #86949c;
  --ink: #14232b;
  --ink-text: #f4f8fa;
  --accent: #087f9b;
  --ok: #218b63;
  --warn: #a87508;
  --err: #cf424e;
  --shadow: 0 10px 30px rgba(30,48,56,.13);
}
@property --feed-height { syntax: "<length>"; inherits: true; initial-value: 0px; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: #66d9ef55; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.brand, .top-actions, .topbar-status, .map-dock, .activity-panel, .detail-panel, .legend, .search-results, .map-message,
.leaflet-control-zoom, .uav-tools, .mh-ctl, .mh-bar, .rl-ctl, .rl-bar, .mx-ctl, .hm-ctl, .map-tooltip {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}
.map-shell { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; isolation: isolate; }
.map-canvas { position: absolute; inset: 0; background: var(--tile-bg); }
.leaflet-container.map-canvas { background: var(--tile-bg); font: inherit; }
.map-canvas .leaflet-interactive:focus:not(:focus-visible) { outline: none; }
.base-tiles { filter: saturate(.5) contrast(.96) brightness(1.02); }
:root[data-theme="dark"] .base-tiles { filter: invert(.94) hue-rotate(180deg) brightness(.55) contrast(1.16) saturate(.32); }
.leaflet-tile-pane { will-change: transform; }
.leaflet-overlay-pane, .leaflet-marker-pane, .leaflet-tooltip-pane { will-change: auto; }

.topbar { position: absolute; z-index: 800; top: var(--gap); left: var(--gap); right: var(--gap); height: var(--header); display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 11px; height: var(--header); padding: 0 16px 0 10px; border-radius: var(--r); text-decoration: none; flex-shrink: 0; pointer-events: auto; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand-copy strong { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand-copy small { display: block; margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.topbar-status { position: fixed; top: calc(var(--gap) + var(--header) + 10px); left: var(--gap); display: flex; align-items: center; min-height: 46px; padding: 5px 6px 5px 13px; border-radius: 14px; pointer-events: auto; }
.connection { display: flex; align-items: center; gap: 8px; padding-right: 13px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.connection[data-state="online"] .status-dot, .activity-foot .status-dot { background: var(--ok); box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 50%, transparent); }
.connection[data-state="retry"] .status-dot { background: var(--warn); }
.connection[data-state="error"] .status-dot { background: var(--err); }
.summary { display: flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 8px 11px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; white-space: nowrap; }
.summary b { display: inline-block; min-width: 1ch; color: var(--text); font-family: var(--mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-uav b { color: #ffae35; }
.bump { animation: bump .3s var(--ease-out); }
@keyframes bump { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; min-height: var(--header); padding: 7px; border-radius: var(--r); pointer-events: auto; }
.theme-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.theme-switch button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-hover); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); }
.icon-button:hover { background: var(--surface-hover); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.game-button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: var(--ink-text); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.game-button:hover { background: var(--accent); color: #07151b; }
.game-button .gb-short { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; color: var(--muted); font-size: 11.5px; text-decoration: none; }
.text-link:hover { color: var(--text); }
.vpn-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.map-dock { position: absolute; z-index: 760; left: calc((100% - var(--sidebar) - var(--gap)) / 2); bottom: var(--gap); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 15px; }
.place-search { position: relative; width: 270px; color: var(--text); }
.place-search::before { content: ""; position: absolute; z-index: 1; left: 13px; top: 13px; width: 15px; height: 15px; pointer-events: none; opacity: .6; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") center/contain no-repeat; }
.place-search input { width: 100%; height: 40px; border: 0; border-radius: 10px; padding: 0 12px 0 38px; background: var(--surface); color: var(--text); font-size: 12.5px; outline: none; -webkit-appearance: none; appearance: none; }
.place-search input::placeholder { color: var(--muted); }
.place-search input:focus { box-shadow: 0 0 0 1px var(--accent); }
.search-results { position: absolute; left: 0; right: 0; bottom: calc(100% + 13px); max-height: min(420px, 55vh); overflow: auto; border-radius: 13px; padding: 5px; color: var(--muted); font-size: 13px; }
.search-results button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; }
.search-results button:hover, .search-results button:focus { background: var(--surface-hover); outline: none; }
.search-results strong { display: block; font-weight: 500; font-size: 13px; }
.search-results small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mobile-map-actions { display: flex; gap: 4px; pointer-events: none; }
.mobile-map-actions button { min-height: 40px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; pointer-events: auto; }
.mobile-map-actions button:hover { background: var(--surface-hover); color: var(--text); }
.mobile-map-actions button[aria-pressed="true"] { background: color-mix(in srgb, #ffae35 13%, transparent); color: #ffae35; }

.legend { position: absolute; z-index: 700; left: var(--gap); bottom: var(--gap); max-width: min(430px, calc(100% - var(--sidebar) - 40px)); padding: 0; border-radius: 13px; overflow: hidden; }
.legend summary { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.legend summary::-webkit-details-marker { display: none; }
.legend summary::after { content: "+"; margin-left: auto; font-size: 16px; font-weight: 300; }
.legend[open] summary::after { content: "−"; }
.legend-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; padding: 3px 14px 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 11px; white-space: nowrap; }
.swatch { width: 9px; height: 9px; display: inline-block; flex-shrink: 0; border-radius: 3px; }
.swatch.warning { background: #ffd166; }
.swatch.danger { background: #ff4d5a; }
.swatch.fixation { background: #ffae35; border-radius: 50%; box-shadow: 0 0 0 3px #ffae3525; }
.swatch.missile-warning { background: #ff8a3d; }
.swatch.missile-danger { background: #ff3d9a; }
.swatch.destroyed { background: #4adea3; }
.swatch.air-defense { background: #a78bfa; }

.activity-panel { position: absolute; z-index: 750; top: calc(var(--gap) + var(--header) + 10px); right: var(--gap); bottom: var(--gap); width: var(--sidebar); display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; }
.activity-head { display: flex; align-items: flex-end; gap: 10px; padding: 20px 18px 0; }
.eyebrow { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.activity-head h1 { margin: 7px 0 0; font-size: 25px; line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.feed-count { margin-left: auto; min-width: 32px; height: 25px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.feed-toggle { display: none; }
.activity-sub { margin: 10px 18px 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.activity-feed { flex: 1; min-height: 0; overflow: auto; padding: 2px 8px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.feed-empty { margin: 4px 8px; padding: 20px 15px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.feed-item { --tone: var(--muted); position: relative; display: block; width: 100%; margin: 0 0 5px; padding: 13px 13px 13px 17px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); text-align: left; overflow: hidden; transition: background .16s, border-color .16s; }
.feed-item::before { content: ""; position: absolute; left: 7px; top: 15px; bottom: 15px; width: 2px; border-radius: 3px; background: var(--tone); }
.feed-item:hover, .feed-item:focus-visible { background: var(--surface-hover); border-color: var(--line); outline: none; }
.feed-item.enter { animation: feed-in .35s var(--ease-out) both; animation-delay: var(--d,0s); }
.feed-item.fresh { animation: fresh 1.8s ease-out; }
@keyframes feed-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes fresh { 0%,35% { background: color-mix(in srgb, var(--tone) 15%, transparent); } 100% { background: transparent; } }
.feed-time-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feed-item time, .feed-time-row em { color: var(--muted); font-family: var(--mono); font-size: 9px; font-style: normal; letter-spacing: .01em; }
.feed-time-row em { color: var(--dim); }
.feed-item strong { display: block; margin: 7px 0 3px; font-size: 13.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.feed-item small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.feed-tags, .tooltip-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.feed-tag, .tooltip-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--text); font-size: 9.5px; font-weight: 500; line-height: 1.4; }
.feed-tag::before, .tooltip-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tone); }
.activity-foot { min-height: 43px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 17px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .03em; }
.foot-source { margin-left: auto; text-decoration: none; }
.foot-source:hover { color: var(--text); }

.detail-panel { --tone: var(--text); position: absolute; z-index: 780; left: var(--gap); width: min(440px, calc(100% - var(--sidebar) - var(--gap) * 3)); bottom: 72px; max-height: 45%; overflow: auto; padding: 18px 50px 18px 20px; border-radius: var(--r); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s; }
.detail-panel::before { content: ""; position: absolute; left: 0; top: 17px; bottom: 17px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.detail-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
.detail-panel h2 { margin: 7px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.detail-panel p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.detail-meta { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; line-height: 1.6; }
#detail-text { white-space: pre-line; }
.detail-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 0; }
.detail-close::before, .detail-close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.detail-close::after { transform: rotate(-45deg); }
.detail-close:hover { background: var(--surface-hover); }
.detail-admin-actions { display: none; margin-top: 12px; }
.detail-admin-actions button { padding: 9px 12px; border: 0; border-radius: 8px; background: #b93737; color: #fff; }

.leaflet-top { top: calc(var(--gap) + var(--header) + 10px); }
.leaflet-right { right: calc(var(--sidebar) + var(--gap)); }
.leaflet-control-zoom, .uav-tools, .mh-ctl, .rl-ctl, .mx-ctl, .hm-ctl { margin: 8px 12px 0 0 !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a, .uav-tools .uav-tool, .mh-tool, .mx-ctl a, .mx-ctl button, .hm-ctl a, .hm-ctl button, .rl-ctl a, .rl-ctl button { display: flex !important; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent !important; color: var(--text) !important; line-height: 40px !important; font-weight: 400; }
.leaflet-control-zoom a:hover, .uav-tools .uav-tool:hover, .mh-tool:hover, .mx-ctl a:hover, .mx-ctl button:hover { background: var(--surface-hover) !important; }
.uav-tools .uav-tool:last-child, .mx-ctl > :last-child { border-bottom: 0; }
.uav-tool[aria-pressed="true"], .mh-tool[aria-pressed="true"] { color: #ffae35 !important; }
.uav-tool[aria-pressed="true"] .uav-off-slash { display: none; }
.uav-tool[aria-pressed="false"] { color: var(--muted); }
.uav-tool.busy svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.leaflet-control-attribution { background: rgba(8,13,18,.55) !important; color: #81909d !important; font-size: 8px !important; max-width: 100%; }
.leaflet-control-attribution a { color: #9aabb8 !important; }
.leaflet-control-scale { margin-bottom: 8px !important; }
.leaflet-control-scale-line { border-color: var(--muted); background: rgba(8,13,18,.4); color: #b0bdc7; text-shadow: none; font-family: var(--mono); font-size: 9px; }
.map-tooltip { width: max-content; max-width: 290px; white-space: normal !important; overflow-wrap: anywhere; padding: 11px 13px !important; border-radius: 11px !important; color: var(--text) !important; font-family: var(--sans); font-size: 12px; }
.map-tooltip strong { font-weight: 600; }
.map-tooltip small { display: block; margin-top: 7px; line-height: 1.45; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.map-tooltip::before { display: none; }
.tooltip-areas { margin: 8px 0 0; padding: 0; list-style: none; font-size: 11px; line-height: 1.45; }
.tooltip-areas li { margin-top: 2px; }
.region-label { display: none; }
.map-message { position: absolute; z-index: 790; left: var(--gap); bottom: 74px; max-width: calc(100% - var(--sidebar) - 40px); padding: 12px 15px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.map-message button { margin-left: 12px; border: 0; background: transparent; color: var(--text); font-weight: 600; text-decoration: underline; }

.leaflet-pane path { transition: none; }
.leaflet-pane path.event-area { stroke-linejoin: round; }
.leaflet-pane path.event-new { animation: area-in .45s var(--ease-out) both; }
.leaflet-pane path.event-new-dot { animation: lock-on .45s var(--ease-out) both; }
@keyframes area-in { from { fill-opacity: 0; stroke-opacity: 0; } }
@keyframes lock-on { from { stroke-width: 30px; stroke-opacity: 0; } }
.uav-icon { background: none; border: 0; }
.uav-icon-body { width: 34px; height: 34px; transform-origin: 50% 50%; filter: drop-shadow(0 0 2px #000) drop-shadow(0 2px 4px #0008); cursor: pointer; }
.uav-icon-body svg, .uav-shot svg { display: block; }
.uav-icon.uav-fresh::before { content: ""; position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 2px solid #ffae35; animation: uav-fresh 1.8s ease-out 2; pointer-events: none; }
@keyframes uav-fresh { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }

.mh-bar { --mh-left: var(--gap); --mh-right: calc(var(--sidebar) + var(--gap) * 2); --mh-bottom: 74px; border-radius: var(--r) !important; padding: 12px 14px 10px !important; }
.mh-title b { font-family: var(--mono); font-weight: 500 !important; }
.mh-strip { border-radius: 6px !important; }
.mh-btn, .mh-seg { border-radius: 9px !important; }
.mh-live, :root[data-theme="dark"] .mh-live { color: #ffae35 !important; }
body.mh-on .detail-panel, body.mh-on .map-message { bottom: 200px; }
body.mh-on .legend, body.rl-on .legend { opacity: 0; pointer-events: none; }
.rl-bar { --rl-left: var(--gap); --rl-right: calc(var(--sidebar) + var(--gap) * 2); --rl-bottom: 74px; border-radius: var(--r) !important; }
body.rl-on .detail-panel { display: none; }

.leave-cover { position: fixed; inset: 0; z-index: 2000; background: #090e14; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .4s var(--ease); }
.leave-cover.on { clip-path: inset(0 0 0 0); }
body.booting .brand, body.booting .top-actions, body.booting .topbar-status, body.booting .activity-panel, body.booting .map-dock, body.booting .legend { opacity: 0; }
body.booted .brand, body.booted .top-actions, body.booted .topbar-status, body.booted .activity-panel, body.booted .map-dock, body.booted .legend { transition: opacity .3s ease; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

body.embed { --header: 0px; }
body.embed .topbar { display: none; }
body.embed .leaflet-top { top: 0; }
body.embed .activity-panel { top: var(--gap); }

.quiet-zone { fill: url(#quiet-hatch) !important; stroke: #7a8a82; stroke-opacity: .65; }
.quiet-hatch-bg { fill: rgba(236,234,228,.28); }
.quiet-hatch-line { stroke: rgba(70,84,77,.36); stroke-width: 3; }
:root[data-theme="dark"] .quiet-zone { stroke: #82979a; }
:root[data-theme="dark"] .quiet-hatch-bg { fill: rgba(11,17,23,.5); }
:root[data-theme="dark"] .quiet-hatch-line { stroke: rgba(173,197,201,.16); }
.quiet-label { background: none; border: 0; white-space: nowrap; text-align: center; }
.quiet-label-in { transform: translate(-50%,-50%); }
.quiet-label span { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 4px var(--tile-bg), 0 0 7px var(--tile-bg); }
.quiet-label small { display: block; margin-top: 2px; color: var(--dim); font-size: 9px; text-shadow: 0 0 3px var(--tile-bg); }
.leaflet-zoom-anim .quiet-label { transition: none; }
.swatch.quiet { border-radius: 2px; background: repeating-linear-gradient(45deg,#8b958f 0 2px,transparent 2px 5px); box-shadow: inset 0 0 0 1px #8b958f; }
body.quiet-off .legend-quiet { opacity: .45; }
.uav-tool.quiet-tool[aria-pressed="true"] { color: var(--text); }
.map-canvas path[data-region]:hover { stroke-width: 2px; }

@media (max-width: 1180px) {
  :root { --sidebar: 304px; }
  .support-link { display: none; }
  .summary { padding-inline: 8px; }
}
@media (max-width: 920px) {
  .top-actions .text-link { display: none; }
  .topbar-status .summary span { display: none; }
  .map-dock { left: calc((100% - var(--sidebar)) / 2); }
  .place-search { width: 225px; }
  .mobile-map-actions button { padding-inline: 9px; }
  #mobile-heat { display: none; }
}
@media (max-width: 760px) {
  :root { --header: 50px; --sidebar: 0px; --gap: 8px; --feed-height: 238px; --r: 14px; }
  .topbar { align-items: flex-start; }
  .brand { height: var(--header); padding: 0 11px 0 7px; gap: 8px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
  .brand-copy strong { font-size: 10.5px; letter-spacing: .1em; }
  .brand-copy small { font-size: 7.5px; }
  .top-actions { min-height: var(--header); padding: 5px; gap: 4px; overflow: visible !important; mask-image: none !important; -webkit-mask-image: none !important; }
  .top-actions .game-button { display: none; }
  .theme-switch button { min-height: 31px; padding: 0 8px; font-size: 10px; }
  .icon-button { width: 34px; height: 34px; }
  .topbar-status { top: 66px; left: 8px; right: 8px; min-height: 42px; justify-content: space-between; padding: 4px 6px 4px 11px; }
  .connection { padding-right: 6px; font-size: 8px; gap: 6px; }
  .summary { min-height: 30px; padding: 6px 8px; gap: 4px; font-size: 8px; }
  .summary b { font-size: 13px; }
  .map-canvas { bottom: calc(var(--feed-height) - 16px); }
  .map-dock { top: 118px; left: 8px; right: 60px; bottom: auto; transform: none; display: block; padding: 5px; }
  .place-search { width: 100%; }
  .place-search input { height: 40px; }
  .search-results { top: calc(100% + 10px); bottom: auto; max-height: 42vh; }
  .mobile-map-actions { margin-top: 4px; gap: 3px; }
  .mobile-map-actions button { flex: 1; min-height: 38px; padding: 0 6px; font-size: 10px; }
  #mobile-heat { display: block; }
  .leaflet-top { top: 171px; }
  .leaflet-right { right: 0; }
  .leaflet-control-zoom, .uav-tools, .mh-ctl, .rl-ctl, .mx-ctl, .hm-ctl { margin-right: 8px !important; }
  .leaflet-bottom { bottom: 16px; }
  .leaflet-control-scale { display: none; }
  .legend { bottom: calc(var(--feed-height) + 8px); left: 8px; max-width: calc(100% - 16px); }
  .legend-items { gap: 8px 12px; }
  .legend-item { font-size: 10px; white-space: normal; }
  .activity-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: var(--feed-height); border-radius: 19px 19px 0 0; border-bottom: 0 !important; border-left: 0 !important; border-right: 0 !important; }
  .activity-panel::before { content: ""; position: absolute; top: 7px; left: 50%; width: 34px; height: 3px; margin-left: -17px; border-radius: 4px; background: var(--line-2); }
  .activity-head { padding: 17px 15px 8px; align-items: center; min-height: 52px; }
  .activity-head .eyebrow, .activity-sub, .activity-foot { display: none; }
  .activity-head h1 { margin: 0; font-size: 17px; }
  .feed-count { height: 23px; font-size: 10px; }
  .feed-toggle { display: block; border: 0; padding: 7px 0 7px 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; }
  .activity-feed { display: flex; padding: 2px 11px 13px; gap: 7px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .activity-feed::-webkit-scrollbar { display: none; }
  .feed-item { flex: 0 0 246px; margin: 0; padding: 12px 12px 12px 17px; background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; }
  .feed-empty { flex: 1; margin: 0 3px; }
  .feed-item strong { font-size: 13px; }
  .detail-panel { z-index: 790; bottom: calc(var(--feed-height) + 8px); left: 8px; right: 8px; width: auto; max-height: 38%; padding: 15px 48px 15px 17px; }
  .detail-panel h2 { font-size: 18px; }
  .map-message { bottom: calc(var(--feed-height) + 54px); max-width: calc(100% - 16px); }
  body.feed-collapsed { --feed-height: 58px; }
  body.feed-collapsed .activity-feed { display: none; }
  .rl-bar, .mh-bar { --rl-left: 8px; --rl-right: 8px; --mh-left: 8px; --mh-right: 8px; --rl-bottom: calc(var(--feed-height) + 8px); --mh-bottom: calc(var(--feed-height) + 8px); }
  body.mh-on .detail-panel, body.mh-on .map-message { bottom: calc(var(--feed-height) + 150px); }
  body.embed .map-dock { top: 8px; }
  body.embed .activity-panel { top: auto; }
}
@media (max-width: 480px) {
  .brand-copy small { display: none; }
  .brand { padding-right: 9px; }
  .theme-switch button { padding-inline: 7px; }
  .summary { padding-inline: 6px; }
  .summary span { font-size: 7px; }
  .mobile-map-actions button { font-size: 9.5px; }
}
@media (max-width: 370px) {
  .brand-logo { display: none; }
  .topbar-status .summary span { display: none; }
  .topbar-status { justify-content: flex-start; }
  .topbar-status .summary { flex: 1; justify-content: center; }
}
@media (max-height: 500px) and (max-width: 760px) {
  :root { --feed-height: 58px; }
  .activity-feed, .feed-toggle { display: none; }
  .topbar-status { display: none; }
  .map-dock { top: 66px; }
  .leaflet-top { top: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.booting .brand, body.booting .top-actions, body.booting .topbar-status, body.booting .activity-panel, body.booting .map-dock, body.booting .legend { opacity: 1; }
  .uav-icon.uav-fresh::before { display: none; }
}
