.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(13, 30, 49, 0.96), rgba(12, 23, 37, 0.98));
  border-bottom: 1px solid rgba(83, 136, 184, 0.28);
  z-index: 18;
}

.icon-row {
  display: flex;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(74, 134, 180, 0.38);
  background: rgba(8, 17, 28, 0.92);
  display: grid;
  place-items: center;
  color: #9cc5df;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(118, 211, 255, 0.08);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn svg rect,
.icon-btn svg path[data-fill],
.icon-btn svg circle[data-fill] {
  fill: currentColor;
  stroke: none;
}

.tool-btn {
  cursor: pointer;
  padding: 0;
}

.tool-btn.is-active {
  background: rgba(96, 122, 78, 0.92);
  border-color: rgba(177, 201, 116, 0.42);
  color: #eef5d9;
}

.tool-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  min-width: 176px;
  max-width: 240px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  background: rgba(8, 17, 28, 0.96);
  border: 1px solid rgba(86, 122, 156, 0.34);
  box-shadow: 0 12px 28px rgba(2, 7, 14, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 24;
}

.tool-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: rgba(8, 17, 28, 0.96);
  border-left: 1px solid rgba(86, 122, 156, 0.34);
  border-top: 1px solid rgba(86, 122, 156, 0.34);
  transform: translateX(-50%) rotate(45deg);
}

.icon-btn:hover .tool-tip,
.icon-btn:focus-visible .tool-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tool-tip strong {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(236, 243, 250, 0.96);
  font-weight: 700;
}

.tool-tip span {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(201, 214, 227, 0.82);
}

.icon-btn.alert {
  color: #db6a6a;
}

.tab {
  min-width: 168px;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(22, 74, 124, 0.98), rgba(18, 52, 89, 0.98));
  border: 1px solid rgba(89, 159, 220, 0.4);
  color: #dbecfb;
  font-size: 13px;
  box-shadow:
    inset 0 2px 0 rgba(82, 164, 231, 0.22),
    0 0 24px rgba(35, 117, 192, 0.12);
}

.search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-counter {
  min-width: 54px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74, 134, 180, 0.24);
  background: rgba(8, 17, 28, 0.72);
  color: rgba(216, 229, 242, 0.74);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-box,
.chip {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(74, 134, 180, 0.3);
  background: rgba(8, 17, 28, 0.86);
  color: rgba(220, 233, 247, 0.58);
  font-size: 12px;
}

.chip {
  color: rgba(220, 233, 247, 0.76);
}

.content {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(9, 17, 28, 0.24), transparent 20%, transparent 80%, rgba(9, 17, 28, 0.26)),
    linear-gradient(180deg, rgba(17, 34, 55, 0.1), transparent 18%, transparent 84%, rgba(5, 12, 20, 0.3));
}

.scene-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
}

.content-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(106, 177, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 177, 239, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: screen;
  opacity: 0.24;
}

.region-label,
.main-target,
.city-label,
.fire-box,
.smoke-ring,
.hot-dot,
.map-object,
.map-line,
.map-zone,
.map-badge,
.map-banner {
  position: absolute;
  z-index: 5;
}

.video-popup {
  position: absolute;
  z-index: 24;
}

.draw-status {
  position: absolute;
  top: 58px;
  left: 18px;
  z-index: 30;
  min-height: 32px;
  padding: 0 12px;
  display: none;
  align-items: center;
  background: rgba(24, 30, 38, 0.94);
  border: 1px solid rgba(116, 130, 149, 0.28);
  color: rgba(233, 239, 244, 0.88);
  font-size: 12px;
}

.region-label {
  top: 50px;
  left: 57%;
  color: rgba(235, 244, 251, 0.7);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(75, 167, 233, 0.16);
}

.main-target {
  top: 61%;
  left: 59%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(165, 48, 48, 0.96), rgba(126, 27, 27, 0.96));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-left: 3px solid rgba(255, 226, 184, 0.9);
  box-shadow: 0 0 18px rgba(181, 52, 52, 0.18);
}

.city-label {
  color: rgba(255, 244, 230, 0.92);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.map-object {
  min-width: 28px;
  transform: translate(-50%, -50%);
}

.map-object-core {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: rgba(235, 244, 251, 0.92);
  box-shadow:
    0 0 10px rgba(48, 115, 171, 0.14),
    0 0 24px rgba(48, 115, 171, 0.06);
  filter: drop-shadow(0 0 8px rgba(26, 100, 154, 0.18));
}

.map-object-symbol {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-object-symbol svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-object-label {
  display: none;
}

.map-object.is-primary {
  z-index: 9;
}

.map-object.is-primary .map-object-core {
  width: 26px;
  height: 26px;
  box-shadow:
    0 0 16px rgba(92, 171, 232, 0.22),
    0 0 34px rgba(92, 171, 232, 0.1);
}

.map-object.is-primary .map-object-symbol {
  width: 20px;
  height: 20px;
}

.map-object.is-primary .map-object-symbol svg {
  width: 20px;
  height: 20px;
}

.map-object.is-primary .map-object-label {
  color: rgba(246, 250, 255, 0.96);
  border-color: rgba(121, 184, 236, 0.34);
  background: rgba(8, 18, 29, 0.96);
}

.map-object.is-secondary {
  z-index: 7;
}

.map-object.is-background {
  z-index: 6;
  opacity: 0.56;
}

.map-object.is-background .map-object-core,
.map-object.is-background .map-object-label {
  filter: saturate(0.72);
}

.map-object.type-camera .map-object-core {
  color: #8fd5ff;
}

.map-object.type-fireforce .map-object-core {
  color: #ffbe7a;
}

.map-object.type-water .map-object-core {
  color: #99c0ff;
}

.map-object.type-hazmat .map-object-core {
  color: #ff9a9a;
}

.map-object.type-shelter .map-object-core {
  color: #a5ebc1;
}

.map-object.type-roadblock .map-object-core {
  color: #f3d779;
}

.map-object.type-drone .map-object-core,
.map-object.type-robot .map-object-core {
  color: #8ce9ea;
}

.map-object.type-task .map-object-core,
.map-object.type-risk .map-object-core {
  color: #dcb1ff;
}

.map-object.is-emphasis .map-object-core {
  border-width: 2px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.map-object.is-emphasis .map-object-label {
  color: rgba(247, 251, 255, 0.96);
  border-color: rgba(124, 192, 245, 0.28);
}

.fire-box {
  border: 3px solid rgba(91, 172, 235, 0.95);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(185, 223, 255, 0.22),
    0 0 22px rgba(51, 163, 237, 0.12);
}

.smoke-ring {
  border-radius: 50%;
  background: rgba(38, 168, 133, 0.22);
  border: 1px solid rgba(85, 214, 170, 0.3);
  box-shadow: inset 0 0 80px rgba(66, 192, 148, 0.08);
}

.hot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3cf49;
  box-shadow:
    0 0 0 4px rgba(243, 207, 73, 0.06),
    0 0 12px rgba(243, 207, 73, 0.24);
}

.video-popup {
  width: 348px;
  padding: 0;
  background: rgba(13, 20, 30, 0.97);
  border: 1px solid rgba(81, 139, 196, 0.42);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(116, 181, 233, 0.08) inset;
  overflow: hidden;
}

.video-popup.plan-popup {
  width: 860px;
  border-color: rgba(104, 118, 141, 0.42);
  background: rgba(12, 16, 23, 0.98);
}

.video-popup.plan-popup .video-popup-head {
  height: 38px;
  background: linear-gradient(180deg, rgba(24, 28, 34, 0.99), rgba(17, 21, 27, 0.99));
  border-bottom-color: rgba(72, 84, 101, 0.34);
}

.plan-popup-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
}

.plan-popup-col {
  min-height: 280px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(74, 88, 107, 0.28);
  background: rgba(20, 24, 31, 0.92);
}

.plan-popup-col-title {
  margin-bottom: 10px;
  color: rgba(239, 244, 249, 0.94);
  font-size: 13px;
  font-weight: 700;
}

.plan-popup-list {
  display: grid;
  gap: 10px;
}

.plan-popup-item {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(62, 73, 88, 0.24);
}

.plan-popup-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan-popup-item strong {
  color: rgba(234, 241, 247, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.plan-popup-item div {
  color: rgba(194, 206, 219, 0.76);
  font-size: 11px;
  line-height: 1.55;
}

.plan-score {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.plan-score.is-high {
  background: rgba(36, 123, 88, 0.92);
  color: rgba(230, 255, 246, 0.94);
}

.plan-score.is-mid {
  background: rgba(141, 96, 35, 0.9);
  color: rgba(255, 241, 218, 0.94);
}

.plan-score.is-low {
  background: rgba(83, 92, 108, 0.9);
  color: rgba(232, 238, 244, 0.9);
}

.plan-progress {
  position: relative;
  height: 6px;
  margin-top: 6px;
  background: rgba(43, 53, 67, 0.9);
}

.plan-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--plan-progress, 50%);
  background: linear-gradient(90deg, rgba(72, 149, 240, 0.98), rgba(95, 210, 255, 0.98));
}

.video-popup-head {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(28, 35, 45, 0.98), rgba(20, 27, 36, 0.98));
  border-bottom: 1px solid rgba(78, 118, 158, 0.3);
}

.video-popup-head-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.video-popup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f82a8;
  box-shadow: 0 0 0 3px rgba(79, 130, 168, 0.16);
}

.video-popup-head-title {
  color: rgba(239, 246, 252, 0.96);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.video-popup-count {
  min-width: 34px;
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(45, 92, 145, 0.9);
  color: rgba(236, 245, 251, 0.92);
  font-size: 11px;
  font-weight: 700;
}

.video-popup-toggle {
  border: 0;
  background: transparent;
  color: rgba(190, 206, 224, 0.78);
  font-size: 12px;
  cursor: pointer;
}

.video-popup-toggle:hover {
  color: rgba(236, 243, 250, 0.94);
}

.video-popup-main {
  padding: 12px;
}

.video-popup.is-collapsed .video-popup-main {
  display: none;
}

.video-popup-title {
  color: rgba(245, 250, 255, 0.96);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.video-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
  color: rgba(177, 194, 212, 0.78);
  font-size: 12px;
}

.video-popup-meta strong {
  color: rgba(227, 237, 246, 0.92);
  font-weight: 600;
  margin-right: 4px;
}

.video-popup-level {
  margin-bottom: 10px;
}

.video-popup-level-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: rgba(175, 61, 61, 0.92);
  border: 1px solid rgba(255, 135, 116, 0.28);
  color: #fff1ef;
  font-size: 12px;
  font-weight: 700;
}

.video-popup-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 10px;
  margin-bottom: 12px;
  background: rgba(75, 31, 31, 0.56);
  border: 1px solid rgba(170, 79, 79, 0.22);
  color: rgba(255, 143, 143, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.video-popup-link-mark {
  color: rgba(255, 171, 171, 0.88);
  font-weight: 600;
}

.video-popup-media {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, rgba(48, 69, 91, 0.34), rgba(11, 16, 24, 0.18)),
    linear-gradient(135deg, rgba(86, 106, 128, 0.92), rgba(39, 53, 67, 0.96));
  color: rgba(226, 235, 246, 0.74);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.video-popup-media.has-image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(117, 134, 154, 0.22);
  background: rgba(8, 14, 22, 0.92);
}

.video-popup-media.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-popup-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0), rgba(6, 10, 16, 0.86));
  color: rgba(231, 239, 247, 0.88);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.video-popup-desc {
  color: rgba(214, 226, 238, 0.82);
  font-size: 13px;
  line-height: 1.72;
}

.video-popup-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.video-popup-detail {
  color: #4f8cff;
  font-size: 12px;
  font-weight: 700;
}

.map-line {
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(75, 201, 255, 0.9), rgba(75, 201, 255, 0.12));
  box-shadow: 0 0 14px rgba(75, 201, 255, 0.22);
}

.map-route-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-route-layer path {
  opacity: 0.98;
}

.map-route-layer path.is-primary {
  stroke: rgba(210, 225, 234, 0.94);
  stroke-width: 2.2;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 4px rgba(220, 233, 240, 0.14));
}

.map-route-layer path.is-alternate {
  stroke: rgba(132, 154, 173, 0.74);
  stroke-width: 1.45;
  stroke-dasharray: 8 7;
  filter: drop-shadow(0 0 2px rgba(109, 132, 152, 0.1));
}

.map-route-layer path.is-alternate.is-risk {
  stroke: rgba(174, 154, 114, 0.76);
  stroke-dasharray: 3 7 10 7;
}

.map-route-waypoint-halo {
  fill: rgba(214, 226, 234, 0.08);
  stroke: rgba(214, 226, 234, 0.18);
  stroke-width: 1;
}

.map-route-waypoint-core {
  fill: rgba(233, 240, 245, 0.92);
  stroke: rgba(14, 22, 31, 0.78);
  stroke-width: 1.2;
}

.map-motion-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-motion-path {
  fill: none;
  opacity: 0.95;
}

.map-motion-path.is-completed {
  stroke-width: 1.35;
  stroke-dasharray: none;
}

.map-motion-path.is-pending {
  stroke-width: 1.1;
  stroke-dasharray: 5 6;
  opacity: 0.78;
}

.map-motion-path.motion-drone {
  stroke: rgba(126, 214, 232, 0.72);
}

.map-motion-path.motion-drone.is-completed {
  stroke: rgba(166, 234, 245, 0.84);
}

.map-motion-path.motion-robot {
  stroke: rgba(196, 206, 216, 0.64);
}

.map-motion-path.motion-robot.is-completed {
  stroke: rgba(229, 236, 242, 0.8);
}

.map-zone {
  border-radius: 999px;
  background: rgba(255, 133, 85, 0.08);
  border: 1px solid rgba(255, 133, 85, 0.4);
  box-shadow: inset 0 0 40px rgba(255, 133, 85, 0.06);
}

.map-zone.zone-blue {
  background: rgba(87, 188, 255, 0.06);
  border-color: rgba(87, 188, 255, 0.34);
}

.map-zone.zone-green {
  background: rgba(31, 196, 135, 0.05);
  border-color: rgba(31, 196, 135, 0.3);
}

.map-zone.zone-drone {
  border-radius: 50%;
  background: rgba(44, 190, 134, 0.08);
  border: 1px solid rgba(68, 212, 154, 0.34);
  box-shadow: inset 0 0 120px rgba(44, 190, 134, 0.05);
}

.map-sector {
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
}

.map-sector::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from var(--sector-start, 0deg),
      rgba(0, 0, 0, 0) 0deg,
      rgba(0, 0, 0, 0) calc(360deg - var(--sector-size, 90deg)),
      rgba(0, 0, 0, 0.16) calc(360deg - var(--sector-size, 90deg)),
      rgba(0, 0, 0, 0.16) 360deg
    );
}

.map-sector.sector-visible::before {
  background:
    conic-gradient(
      from var(--sector-start, -40deg),
      rgba(60, 196, 129, 0.28) 0deg,
      rgba(60, 196, 129, 0.28) var(--sector-size, 130deg),
      rgba(0, 0, 0, 0) var(--sector-size, 130deg),
      rgba(0, 0, 0, 0) 360deg
    );
}

.map-sector.sector-blind::before {
  background:
    conic-gradient(
      from var(--sector-start, 120deg),
      rgba(198, 74, 74, 0.24) 0deg,
      rgba(198, 74, 74, 0.24) var(--sector-size, 70deg),
      rgba(0, 0, 0, 0) var(--sector-size, 70deg),
      rgba(0, 0, 0, 0) 360deg
    );
}

.tracked-target-box {
  border: 2px solid rgba(112, 214, 255, 0.86);
  background: rgba(97, 187, 236, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(222, 244, 255, 0.16),
    0 0 18px rgba(74, 176, 224, 0.12);
}

.tracked-target-box::before,
.tracked-target-box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 163, 88, 0.96);
  border-style: solid;
}

.tracked-target-box::before {
  top: -6px;
  left: -6px;
  border-width: 3px 0 0 3px;
}

.tracked-target-box::after {
  right: -6px;
  bottom: -6px;
  border-width: 0 3px 3px 0;
}

.map-badge {
  min-width: 52px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #f5fbff;
  background: rgba(12, 25, 38, 0.94);
  border: 1px solid rgba(113, 219, 255, 0.42);
  box-shadow: 0 0 18px rgba(113, 219, 255, 0.1);
}

.map-badge.badge-gold {
  border-color: rgba(215, 189, 121, 0.42);
  box-shadow: 0 0 18px rgba(215, 189, 121, 0.1);
}

.map-badge.badge-red {
  border-color: rgba(255, 115, 92, 0.42);
  box-shadow: 0 0 18px rgba(255, 115, 92, 0.12);
}

.map-badge.badge-green {
  border-color: rgba(25, 193, 139, 0.42);
  box-shadow: 0 0 18px rgba(25, 193, 139, 0.12);
}

.map-badge.badge-blue {
  border-color: rgba(113, 219, 255, 0.42);
  box-shadow: 0 0 18px rgba(113, 219, 255, 0.12);
}

.map-object.is-motion-object {
  z-index: 11;
  min-width: 0;
}

.map-object.is-motion-object .map-object-core {
  width: 30px;
  height: 30px;
  box-shadow:
    0 0 20px rgba(122, 214, 255, 0.22),
    0 0 36px rgba(88, 185, 233, 0.12);
  filter: drop-shadow(0 0 10px rgba(88, 185, 233, 0.22));
  position: relative;
  z-index: 2;
}

.map-object.is-motion-object .map-object-label {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: rgba(239, 246, 251, 0.94);
  background: rgba(8, 18, 29, 0.9);
  border: 1px solid rgba(120, 186, 240, 0.28);
  white-space: nowrap;
  transform: translateX(-50%);
  margin-left: 0;
  z-index: 1;
}

.map-object.motion-drone .map-object-core {
  border-color: rgba(112, 214, 255, 0.54);
  color: #9defff;
}

.map-object.motion-robot .map-object-core {
  border-color: rgba(180, 195, 215, 0.54);
  color: #d7e0ea;
}

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 60px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 170px);
  padding: 10px 12px;
  background: rgba(8, 17, 28, 0.9);
  border: 1px solid rgba(82, 136, 183, 0.22);
}

.map-view-toggle {
  position: absolute;
  right: 18px;
  bottom: 60px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px;
  gap: 4px;
  background: rgba(8, 17, 28, 0.92);
  border: 1px solid rgba(86, 104, 127, 0.28);
  box-shadow: 0 10px 24px rgba(3, 7, 13, 0.26);
}

.map-view-toggle-btn {
  min-width: 54px;
  height: 30px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(198, 208, 218, 0.76);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.map-view-toggle-btn:hover {
  color: rgba(226, 233, 240, 0.92);
  background: rgba(44, 57, 73, 0.62);
}

.map-view-toggle-btn.is-active {
  background: rgba(62, 82, 101, 0.88);
  color: rgba(239, 244, 248, 0.96);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(223, 232, 241, 0.78);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(12, 18, 28, 0.28);
}

.map-legend-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(128, 167, 206, 0.32);
  background: rgba(18, 29, 43, 0.94);
  border-radius: 2px;
  flex: 0 0 16px;
}

.map-legend-icon-inner {
  width: 11px;
  height: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-legend-icon-inner svg {
  width: 11px;
  height: 11px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-legend-icon.type-camera {
  border-color: rgba(99, 198, 255, 0.42);
  color: #8fd5ff;
  background: rgba(21, 42, 58, 0.94);
}

.map-legend-icon.type-fireforce {
  border-color: rgba(255, 170, 94, 0.42);
  color: #ffbe7a;
  background: rgba(58, 34, 22, 0.94);
}

.map-legend-icon.type-water {
  border-color: rgba(90, 145, 255, 0.42);
  color: #99c0ff;
  background: rgba(25, 35, 57, 0.94);
}

.map-legend-icon.type-hazmat {
  border-color: rgba(255, 98, 98, 0.42);
  color: #ff9a9a;
  background: rgba(58, 24, 24, 0.94);
}

.map-legend-icon.type-shelter {
  border-color: rgba(81, 202, 139, 0.42);
  color: #a5ebc1;
  background: rgba(22, 44, 33, 0.94);
}

.map-legend-icon.type-roadblock {
  border-color: rgba(232, 196, 86, 0.42);
  color: #f3d779;
  background: rgba(52, 44, 22, 0.94);
}

.map-legend-icon.type-drone {
  border-color: rgba(123, 214, 255, 0.42);
  color: #8ce9ea;
  background: rgba(26, 44, 55, 0.94);
}

.map-legend-icon.type-robot {
  border-color: rgba(174, 188, 208, 0.42);
  color: #b9c9d8;
  background: rgba(34, 40, 49, 0.94);
}

.map-legend-icon.type-task,
.map-legend-icon.type-risk {
  border-color: rgba(209, 111, 255, 0.42);
  color: #dcb1ff;
  background: rgba(43, 28, 54, 0.94);
}

.map-banner {
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 360px;
  max-width: 540px;
  height: 32px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(232, 237, 243, 0.78);
  background: linear-gradient(90deg, rgba(20, 25, 34, 0.9), rgba(38, 45, 57, 0.92), rgba(20, 25, 34, 0.9));
  border: 1px solid rgba(102, 116, 136, 0.26);
  letter-spacing: 0.06em;
}

.left-panel,
.right-panel {
  position: absolute;
  background: var(--panel);
  border: 1px solid rgba(93, 104, 122, 0.28);
  box-shadow:
    0 18px 50px rgba(2, 5, 9, 0.34),
    inset 0 0 0 1px rgba(156, 168, 187, 0.04);
  backdrop-filter: blur(7px);
  z-index: 12;
}

.left-panel::before,
.right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(157, 172, 191, 0.08);
}

.left-panel {
  top: 18px;
  left: 18px;
  width: 316px;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.right-panel {
  top: 18px;
  right: 18px;
  width: 316px;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 36px);
  overflow: hidden;
}

.app-shell.scene-template-overview .left-panel {
  width: 316px;
}

.app-shell.scene-template-detection .right-panel {
  width: 316px;
}

.app-shell.scene-template-analysis .left-panel {
  width: 316px;
}

.app-shell.scene-template-analysis .right-panel {
  width: 316px;
}

.app-shell.scene-template-execution .right-panel {
  width: 316px;
}

.app-shell.scene-template-execution .left-panel {
  background: rgba(10, 20, 33, 0.94);
}

.app-shell.scene-template-execution .right-panel {
  background: rgba(9, 18, 30, 0.94);
}

.app-shell.scene-template-review .right-panel {
  width: 316px;
}

.app-shell.scene-template-review .left-panel,
.app-shell.scene-template-review .right-panel {
  background: rgba(11, 22, 31, 0.92);
}

.panel-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(96, 108, 123, 0.22);
  color: rgba(205, 212, 223, 0.7);
  font-size: 13px;
}

.panel-tab-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e9ef;
  font-weight: 600;
}

.panel-header {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(86, 95, 109, 0.24);
}

.panel-collapse-toggle {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(172, 184, 198, 0.78);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.panel-collapse-toggle:hover {
  color: rgba(230, 237, 244, 0.92);
}

.back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.back-btn {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgba(54, 64, 79, 0.88);
  color: #d8dee8;
  font-size: 13px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.meta-row {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.severity {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: rgba(131, 24, 24, 0.92);
  color: #ffd6d6;
  font-size: 11px;
  font-weight: 700;
}

.severity.severity-watch {
  background: rgba(148, 89, 27, 0.92);
  color: #ffe6c7;
}

.severity.severity-safe {
  background: rgba(24, 110, 73, 0.92);
  color: #ddffef;
}

.severity.severity-note {
  background: rgba(33, 72, 123, 0.92);
  color: #dceeff;
}

.section {
  min-height: 0;
  border-top: 1px solid rgba(78, 99, 122, 0.22);
}

.left-panel .section:first-of-type .section-content {
  max-height: 140px;
}

.left-panel .section:last-child {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.left-panel .section-content {
  overflow: visible;
}

.section-title {
  flex: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(25, 82, 126, 0.96), rgba(17, 65, 102, 0.94));
  color: #dcedfb;
  font-size: 12px;
  font-weight: 600;
}

.section-content {
  flex: 1 1 auto;
  padding: 12px 14px;
  color: rgba(231, 238, 247, 0.78);
  font-size: 12px;
  line-height: 1.52;
  min-height: 0;
  overflow: auto;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resource-card {
  min-height: 108px;
  padding: 10px;
  border: 1px solid rgba(83, 106, 130, 0.26);
  background: rgba(17, 29, 41, 0.84);
}

.resource-card-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.placeholder-thumb,
.placeholder-video {
  height: 46px;
  background: linear-gradient(135deg, rgba(72, 89, 108, 0.85), rgba(44, 57, 72, 0.92));
  border: 1px solid rgba(106, 129, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(225, 234, 244, 0.7);
  font-size: 11px;
}

.placeholder-video {
  height: 64px;
}

.resource-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 129, 153, 0.2);
  background: rgba(35, 47, 61, 0.92);
}

.resource-media.is-video {
  height: 72px;
}

.resource-media.is-thumb {
  height: 54px;
}

.resource-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02) brightness(0.92);
}

.resource-media-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.resource-media-grid img + img {
  border-left: 1px solid rgba(106, 129, 153, 0.2);
}

.resource-media-label {
  min-height: 24px;
  padding: 6px 0 0;
  display: flex;
  align-items: center;
  color: rgba(230, 237, 245, 0.84);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.intel-header {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(88, 108, 131, 0.22);
}

.panel-collapse-toggle-right {
  top: 12px;
  right: 14px;
}

.intel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.intel-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.intel-copy {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.54;
  color: rgba(231, 238, 247, 0.74);
  max-height: 96px;
  overflow: auto;
}

.action-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-card-btn {
  min-height: 62px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(87, 114, 142, 0.28);
  background:
    linear-gradient(180deg, rgba(24, 38, 54, 0.96), rgba(16, 28, 40, 0.96));
  color: rgba(231, 239, 247, 0.9);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.action-card-btn:hover {
  border-color: rgba(114, 153, 191, 0.46);
  background:
    linear-gradient(180deg, rgba(28, 45, 64, 0.98), rgba(17, 31, 45, 0.98));
}

.action-card-btn.is-selected {
  border-color: rgba(176, 121, 89, 0.54);
  background:
    linear-gradient(180deg, rgba(74, 44, 33, 0.96), rgba(42, 28, 24, 0.96));
  box-shadow: 0 0 0 1px rgba(214, 149, 113, 0.16) inset;
}

.action-card-btn strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.action-card-btn span {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(206, 218, 230, 0.78);
  word-break: keep-all;
}

.action-card-btn.is-selected span {
  color: rgba(247, 223, 205, 0.86);
}

.info-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.left-panel.is-collapsed .panel-collapsible,
.right-panel.is-collapsed .panel-collapsible {
  display: none !important;
}

.left-panel.is-collapsed {
  max-height: 132px;
}

.right-panel.is-collapsed {
  max-height: 112px;
}
