:root {
  --accent: #1d5673;
  --note: #1d5673;
  --sidebar: 248px;
  font-family: "Manrope", sans-serif;
}

[data-carbon-theme="g100"] {
  --accent: #7eb6cf;
  --note: #7eb6cf;
}

body,
button,
input,
select,
textarea,
.wf-titlebar h1,
.wf-metric b {
  font-family: "Manrope", sans-serif;
}

#wireframe-app * { font-family: "Manrope", sans-serif; }

#wireframe-app :is(.cds-instance, .cds-sync, .cds-user, .cds-side-label, .wf-clock, .wf-card-head span, .wf-chip, .wf-table th, .wf-map-legend, .ops-side-label, .ops-history-head, .ops-history-card time, .ops-history-card span, .ops-track-card small, .ops-map-key) {
  font-family: "DM Mono", monospace;
}

.cds-instance,
.cds-sync,
.cds-user,
.cds-side-label,
.wf-sidebar nav a span,
.wf-sidebar-footer b,
.wf-clock,
.wf-card-head span,
.wf-chip,
.wf-table th,
.wf-map-legend,
.ops-side-label,
.ops-history-head,
.ops-history-card time,
.ops-history-card span,
.ops-track-card small,
.ops-map-key {
  font-family: "DM Mono", monospace;
}

.wf-logo {
  gap: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

.wf-logo-symbol {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.cds-header {
  background: #111116;
  border-bottom-color: #292930;
}

.cds-header .wf-logo { color: #f7f7fb; }
.cds-header .wf-logo-symbol { color: #7eb6cf; }
.cds-brand,
.cds-instance,
.cds-header-tools button,
.cds-user { border-color: #292930; }
.cds-product { font-weight: 600; }
.cds-instance,
.cds-sync { letter-spacing: .08em; }
.cds-sync { color: #b9f6ca; }

.wf-sidebar-footer {
  display: grid;
  gap: 10px;
}

.ops-side-section {
  margin: 22px 14px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ops-side-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}

.ops-site {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.ops-site:hover { background: var(--soft); color: var(--ink); }
.ops-site.active { background: var(--soft); color: var(--ink); font-weight: 600; }
.ops-site small { color: #16834b; font: 500 9px "DM Mono", monospace; letter-spacing: .08em; }

.ops-layer {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.ops-layer input { accent-color: var(--accent); }

.ops-main {
  height: calc(100vh - 48px);
  min-height: 650px;
  padding: 0;
  overflow: hidden;
}

.ops-map-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 85%, var(--panel));
}

.ops-map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--paper) 84%, #98a6b3);
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 75%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 75%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
}

.ops-history {
  display: none;
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 20px;
  right: 20px;
}

.ops-history-head {
  height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.ops-history-head a { color: var(--ink); letter-spacing: 0; }
.ops-history-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.ops-history-card {
  min-height: 86px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 8px 24px #10101814;
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
}

.ops-history-card:hover { border-color: var(--accent); }
.ops-history-card.is-selected { border-color: var(--accent); box-shadow: inset 0 -3px var(--accent), 0 8px 24px #10101814; }
.ops-history-card.alert { border-left: 3px solid #da1e28; }
.ops-history-card time { grid-row: 1 / 3; color: var(--muted); font-size: 11px; }
.ops-history-card strong { font-size: 13px; font-weight: 600; }
.ops-history-card span { color: var(--muted); font-size: 9px; }

.ops-map-tools {
  position: absolute;
  z-index: 11;
  left: 20px;
  top: 20px;
  display: grid;
  border: 1px solid var(--line);
  background: var(--panel);
}

.ops-map-tools button {
  width: 38px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.ops-map-tools button:last-child { border-bottom: 0; }
.ops-map-tools button:hover { background: var(--soft); }

.ops-water {
  position: absolute;
  width: 62%;
  height: 28%;
  left: -12%;
  bottom: -8%;
  border-radius: 46% 58% 0 0;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  transform: rotate(-7deg);
}

.ops-road {
  position: absolute;
  height: 10px;
  width: 125%;
  left: -12%;
  background: color-mix(in srgb, var(--line) 74%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.ops-road.r1 { top: 47%; transform: rotate(-9deg); }
.ops-road.r2 { top: 68%; transform: rotate(13deg); }
.ops-road.r3 { top: 82%; transform: rotate(-3deg); }
.ops-road.r4 { top: 35%; left: 28%; width: 85%; height: 6px; transform: rotate(28deg); }

.ops-park {
  position: absolute;
  border-radius: 42% 58% 48% 52%;
  background: color-mix(in srgb, #4c8f68 12%, var(--paper));
  border: 1px solid color-mix(in srgb, #4c8f68 20%, transparent);
}

.ops-park.p1 { left: 7%; top: 30%; width: 18%; height: 21%; transform: rotate(-12deg); }
.ops-park.p2 { right: 5%; bottom: 10%; width: 21%; height: 18%; transform: rotate(8deg); }

.ops-building {
  position: absolute;
  background: color-mix(in srgb, var(--muted) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
}

.ops-building.b1 { left: 18%; top: 55%; width: 52px; height: 28px; transform: rotate(-9deg); }
.ops-building.b2 { left: 23%; top: 59%; width: 38px; height: 22px; transform: rotate(-9deg); }
.ops-building.b3 { right: 19%; top: 34%; width: 64px; height: 36px; transform: rotate(8deg); }
.ops-building.b4 { right: 13%; top: 40%; width: 42px; height: 24px; transform: rotate(8deg); }
.ops-building.b5 { right: 28%; bottom: 22%; width: 74px; height: 31px; transform: rotate(-4deg); }

.ops-map-feature-label {
  position: absolute;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .08em;
}

.ops-map-feature-label.road { left: 34%; top: 45%; transform: rotate(-9deg); }
.ops-map-feature-label.access { right: 24%; top: 31%; transform: rotate(28deg); }
.ops-map-feature-label.yard { left: 17%; top: 64%; }
.ops-map-feature-label.creek { left: 9%; bottom: 13%; transform: rotate(-7deg); }

.ops-zone {
  position: absolute;
  left: 22%;
  top: 38%;
  width: 42%;
  height: 32%;
  border: 2px solid color-mix(in srgb, var(--accent) 75%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: skew(-15deg) rotate(-8deg);
}

.ops-zone span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  transform: skew(15deg) rotate(8deg);
}

.ops-flight-path {
  position: absolute;
  left: 37%;
  top: 67%;
  width: 42%;
  border-top: 2px dashed var(--accent);
  transform: rotate(-27deg);
}

.ops-station {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 0 10px color-mix(in srgb, var(--accent) 8%, transparent);
}

.ops-station.s1 { left: 27%; top: 66%; }
.ops-station.s2 { right: 19%; top: 45%; }

.ops-aircraft {
  position: absolute;
  width: 16px;
  height: 21px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 50% 73%, 0 100%);
  padding: 0;
  border: 0;
  cursor: pointer;
}

.ops-aircraft.is-selected {
  filter: drop-shadow(0 0 5px var(--accent));
  transform: scale(1.35);
}

.ops-aircraft.a1.is-selected { transform: translate(-50%,-50%) rotate(31deg) scale(1.35); }
.ops-aircraft.a2.is-selected { transform: translate(-50%,-50%) rotate(-12deg) scale(1.35); }
.ops-aircraft.a3.is-selected { transform: translate(-50%,-50%) rotate(73deg) scale(1.35); }

.ops-aircraft.a1 { left: 60.6%; top: 46%; background: var(--accent); transform: translate(-50%,-50%) rotate(31deg); }
.ops-aircraft.a2 { left: 42.6%; top: 59%; transform: translate(-50%,-50%) rotate(-12deg); }
.ops-aircraft.a3 { left: 80%; top: 80%; transform: translate(-50%,-50%) rotate(73deg); }

.ops-beacon-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ops-trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ops-trail-line {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 58%, transparent);
  stroke-width: 2;
  stroke-dasharray: 8 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-beacon-trail.is-selected .ops-trail-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 10 7;
}

.ops-ping {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent);
  opacity: .42;
  transform: translate(-50%,-50%);
}

.ops-beacon-trail.is-selected .ops-ping { opacity: 1; }
.ops-ping.latest { display: none; }

.ops-site-label {
  position: absolute;
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .04em;
}

.ops-site-label.nv { left: 12%; top: 38%; }
.ops-site-label.pr { right: 10%; bottom: 31%; }

.ops-track-card {
  position: absolute;
  left: calc(61% + 24px);
  top: calc(45% - 44px);
  width: 240px;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 8px 24px #1010181f;
}

.ops-track-card .wf-chip { justify-self: start; }
.wf-chip.info { border-color: var(--accent); color: var(--accent); }
.ops-track-card strong { font-size: 13px; }
.ops-track-card small { color: var(--muted); font-size: 9px; }

.ops-drone-panel {
  position: absolute;
  z-index: 12;
  right: 20px;
  top: 20px;
  width: 318px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 14px 34px #10101824;
}

.ops-drone-panel header {
  min-height: 66px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.ops-drone-panel header div { display: grid; gap: 5px; }
.ops-drone-panel header span { color: var(--muted); font: 500 9px "DM Mono", monospace; letter-spacing: .08em; }
.ops-drone-panel header strong { font-size: 16px; font-weight: 600; }
.ops-drone-panel header button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.ops-drone-panel header button:hover { background: var(--soft); color: var(--ink); }
.ops-drone-panel dl { margin: 0; padding: 8px 14px 10px; }
.ops-drone-panel dl div { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.ops-drone-panel dt { color: var(--muted); font-size: 10px; }
.ops-drone-panel dd { margin: 0; font: 500 10px "DM Mono", monospace; text-align: right; }
.ops-drone-panel > a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; color: var(--accent); font-size: 11px; font-weight: 600; }

.ops-map-key {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 20px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.ops-map-key span { display: flex; align-items: center; gap: 7px; }
.ops-map-key i { display: inline-block; width: 9px; height: 9px; }
.key-aircraft { background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 50% 73%, 0 100%); }
.key-ping { width: 7px !important; height: 7px !important; border-radius: 50%; background: var(--accent); }
.key-station { border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.ops-map-key span:nth-child(2) { font-size: 0; }
.ops-map-key span:nth-child(2)::after { content: "Flight history"; font-size: 9px; }
.ops-map-key span:nth-child(2) .key-ping { width: 18px !important; height: 2px !important; border-radius: 0; }

.info-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 16px;
  margin-bottom: 16px;
}

.info-position-grid {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--paper) 84%, #98a6b3);
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 75%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 75%, transparent) 1px, transparent 1px);
  background-size: 54px 54px;
}

.info-path {
  position: absolute;
  left: 18%;
  top: 65%;
  width: 62%;
  border-top: 2px dashed var(--accent);
  transform: rotate(-21deg);
}

.info-drone {
  position: absolute;
  left: 65%;
  top: 34%;
  width: 18px;
  height: 23px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 50% 73%, 0 100%);
  transform: rotate(29deg);
}

.info-receiver {
  position: absolute;
  left: 21%;
  bottom: 22%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 7px;
}

.info-position-label {
  position: absolute;
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
}

.info-position-label.drone { left: calc(65% + 28px); top: 34%; }
.info-position-label.receiver { left: calc(21% + 28px); bottom: 20%; }
.info-data-grid { padding: 4px 16px 16px; }
.info-data-grid .wf-fact-row { min-height: 34px; }
.info-observations { overflow-x: auto; }
.info-observations .wf-table,
.info-history-table .wf-table { min-width: 860px; }
.info-search { margin-bottom: 16px; }
.info-history-table { overflow-x: auto; }
.info-history-table a { color: var(--accent); font-weight: 600; }
.info-settings { max-width: 860px; }

@media (max-width: 1000px) {
  .info-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ops-history-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-history-card:last-child { display: none; }
  .ops-track-card { left: auto; right: 74px; }
}

@media (max-width: 720px) {
  .cds-header .wf-logo span { display: none; }
  .ops-side-section,
  .ops-shell .wf-sidebar-footer { display: none; }
  .ops-shell .wf-sidebar nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .ops-shell .wf-sidebar nav a { min-width: 0; justify-content: center; padding-inline: 8px; }
  .ops-shell .wf-sidebar nav a:nth-child(n+4) { display: none; }
  .ops-shell .wf-sidebar nav a span { display: none; }
  .ops-main { height: calc(100vh - 104px); min-height: 620px; padding: 0; }
  .ops-history { top: 12px; left: 12px; right: 12px; }
  .ops-history-cards { grid-template-columns: 1fr; }
  .ops-history-card:not(:first-child) { display: none; }
  .ops-map-tools { top: 12px; left: 12px; }
  .ops-drone-panel { top: 12px; left: auto; right: 12px; width: calc(100% - 74px); max-width: 318px; }
  .ops-track-card { right: 58px; top: 52%; width: 218px; }
  .ops-map-key { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; gap: 8px; }
  .ops-site-label.pr,
  .ops-aircraft.a3,
  .ops-station.s2 { display: none; }
}

/* Live map v2 â€” map-first tracking interface */
:root {
  --map-accent: #1677ff;
  --map-accent-soft: #e6f1ff;
  --map-ground: #edf1f3;
  --map-road: #ffffff;
  --map-road-edge: #cbd3d8;
  --map-parcel: #e5eaed;
  --map-building: #d2d9dd;
  --map-green: #dce9df;
  --map-water: #d9e8ee;
  --floating-shadow: 0 14px 40px rgba(18, 32, 43, .15), 0 2px 8px rgba(18, 32, 43, .08);
}

[data-carbon-theme="g100"] {
  --map-accent: #55a7ff;
  --map-accent-soft: #123458;
  --map-ground: #182126;
  --map-road: #2c373d;
  --map-road-edge: #11191d;
  --map-parcel: #202b30;
  --map-building: #344147;
  --map-green: #1d3029;
  --map-water: #172d38;
  --floating-shadow: 0 18px 48px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .24);
}

.ops-shell {
  display: block;
  padding-top: 64px;
  min-height: 100vh;
}

.ops-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  box-shadow: 0 1px 8px rgba(22, 36, 46, .05);
  backdrop-filter: blur(18px);
  color: var(--ink);
}

.ops-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 20px;
  color: var(--ink);
}

.ops-brand .wf-logo { color: var(--ink); }
.ops-brand .wf-logo-symbol { color: var(--map-accent); }
.ops-product-name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.ops-area-switch {
  height: 42px;
  min-width: 190px;
  margin-left: 16px;
  padding: 0 10px 0 13px;
  display: grid;
  grid-template-columns: 1fr 18px;
  grid-template-rows: auto auto;
  align-content: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.ops-area-switch:hover { border-color: color-mix(in srgb, var(--map-accent) 48%, var(--line)); }
.ops-area-switch span { grid-column: 1; font-size: 11px; font-weight: 700; }
.ops-area-switch small { grid-column: 1; color: var(--muted); font-size: 9px; }
.ops-area-switch svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.ops-header-spacer { flex: 1; }
.ops-control-dock svg,
.ops-map-search svg,
.ops-drone-panel button svg,
.ops-drone-panel > a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-avatar {
  width: 34px;
  height: 34px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--panel);
  font: 600 10px "DM Mono", monospace;
}

.ops-main {
  grid-column: 1;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 620px;
  padding: 0;
  overflow: hidden;
}

.ops-map-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--map-ground);
}

.ops-map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--map-ground);
}

.ops-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform .3s ease;
}

.map-ground { fill: var(--map-ground); }
.map-water { fill: var(--map-water); }
.map-water-edge { fill: none; stroke: color-mix(in srgb, var(--map-water) 42%, var(--map-road-edge)); stroke-width: 3; }
.map-green path { fill: var(--map-green); stroke: color-mix(in srgb, var(--map-green) 70%, var(--map-road-edge)); stroke-width: 1.5; }
.map-parcels path { fill: var(--map-parcel); stroke: color-mix(in srgb, var(--map-road-edge) 62%, transparent); stroke-width: 1.4; }
.map-buildings { fill: var(--map-building); stroke: color-mix(in srgb, var(--map-building) 70%, var(--muted)); stroke-width: 1; }
.map-minor-roads { fill: none; stroke: var(--map-road); stroke-width: 14; }
.map-major-roads { fill: none; stroke: var(--map-road-edge); stroke-width: 30; }
.map-road-center { fill: none; stroke: var(--map-road); stroke-width: 25; }
.map-labels text {
  fill: color-mix(in srgb, var(--muted) 80%, transparent);
  font: 500 12px "DM Mono", monospace;
  letter-spacing: .12em;
}
.map-labels .place-label { fill: color-mix(in srgb, var(--ink) 72%, transparent); font: 600 17px "Manrope", sans-serif; letter-spacing: 0; }
.map-labels .water-label { fill: color-mix(in srgb, var(--map-accent) 55%, var(--muted)); font-style: italic; }

.ops-map-search {
  position: absolute;
  z-index: 15;
  top: 18px;
  left: 18px;
  width: min(340px, calc(100vw - 440px));
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--muted);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(14px);
}

.ops-map-search:focus-within { border-color: var(--map-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--map-accent) 16%, transparent), var(--floating-shadow); }
.ops-map-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.ops-map-search input::placeholder { color: var(--muted); }
.ops-map-search kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}

.ops-map-mode {
  position: absolute;
  z-index: 15;
  top: 18px;
  right: 18px;
  height: 42px;
  padding: 0 7px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(14px);
}

.ops-map-mode > span { color: var(--muted); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.ops-map-mode button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ops-map-mode svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.ops-beacon-trail {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.ops-trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ops-trail-line {
  fill: none;
  stroke: var(--map-accent);
  stroke-width: 2.5;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .2s ease, stroke-width .2s ease;
}

.ops-beacon-trail.is-selected .ops-trail-line {
  stroke: var(--map-accent);
  stroke-width: 3;
  stroke-dasharray: 8 7;
  opacity: 1;
  animation: trail-flow 18s linear infinite;
}

@keyframes trail-flow { to { stroke-dashoffset: -180; } }
.hide-trails .ops-beacon-trail.is-selected .ops-trail-line,
.hide-trails .ops-beacon-trail.is-selected .ops-ping { opacity: 0; }

.ops-ping {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--map-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--map-accent) 55%, transparent);
  opacity: 0;
  transform: translate(-50%,-50%);
  transition: opacity .18s ease, transform .18s ease;
}

.ops-beacon-trail.is-selected .ops-ping { opacity: 1; }
.ops-beacon-trail.is-selected .ops-ping:hover { transform: translate(-50%,-50%) scale(1.5); }
.ops-ping.latest { display: none; }

.ops-aircraft,
.ops-aircraft.a1,
.ops-aircraft.a2,
.ops-aircraft.a3,
.ops-aircraft.a4 {
  position: absolute;
  z-index: 8;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  clip-path: none;
  color: var(--map-accent);
  cursor: pointer;
  transform: translate(-50%,-50%);
  transition: transform .2s ease, filter .2s ease;
}

.ops-aircraft.a1 { left: 59%; top: 43%; --heading: 34deg; }
.ops-aircraft.a2 { left: 38%; top: 49%; --heading: 158deg; }
.ops-aircraft.a3 { left: 84%; top: 61%; --heading: 258deg; }
.ops-aircraft.a4 { left: 66%; top: 33%; --heading: 218deg; }

.ops-drone-glyph {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: var(--panel);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(13, 39, 55, .25));
  transform: rotate(var(--heading, 0deg));
}

.ops-drone-glyph .body { fill: currentColor; stroke: currentColor; }
.ops-aircraft:hover { z-index: 10; transform: translate(-50%,-50%) scale(1.12); }
.ops-aircraft:focus { outline: none; }
.ops-aircraft:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 5px; }
.ops-aircraft.is-selected,
.ops-aircraft.a1.is-selected,
.ops-aircraft.a2.is-selected,
.ops-aircraft.a3.is-selected,
.ops-aircraft.a4.is-selected {
  z-index: 11;
  filter: none;
  transform: translate(-50%,-50%) scale(1.18);
}

.ops-marker-halo {
  position: absolute;
  z-index: 0;
  inset: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--map-accent) 16%, transparent);
  opacity: 0;
}

.ops-aircraft.is-selected .ops-marker-halo {
  opacity: 1;
  animation: drone-halo 2.2s ease-out infinite;
}

@keyframes drone-halo {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--map-accent) 30%, transparent); }
  75%,100% { box-shadow: 0 0 0 17px transparent; }
}

.ops-marker-label {
  position: absolute;
  z-index: 3;
  left: 39px;
  top: 8px;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--ink);
  box-shadow: 0 3px 9px rgba(18, 32, 43, .1);
  font: 600 8px "DM Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}

.ops-aircraft:hover .ops-marker-label,
.ops-aircraft.is-selected .ops-marker-label { opacity: 1; transform: translateX(0); }

.ops-receiver {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 600 8px "DM Mono", monospace;
  transition: opacity .2s ease;
}
.ops-receiver.rx1 { left: 25%; top: 61%; }
.ops-receiver.rx2 { left: 74%; top: 41%; }
.ops-receiver.rx3 { left: 54%; top: 77%; }
.ops-receiver span {
  position: relative;
  width: 11px;
  height: 11px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: #16865c;
  box-shadow: 0 0 0 1px #16865c, 0 0 0 6px color-mix(in srgb, #16865c 13%, transparent);
}
.hide-receivers .ops-receiver { opacity: 0; }

.ops-scale {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}
.ops-scale span { width: 58px; height: 7px; border: solid var(--muted); border-width: 0 1px 1px; }
.ops-map-attribution { position: absolute; right: 18px; bottom: 15px; color: var(--muted); font: 500 8px "DM Mono", monospace; }

.ops-map-hint {
  position: absolute;
  z-index: 12;
  left: 18px;
  bottom: 72px;
  padding: 10px 13px 10px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(14px);
}
.ops-map-hint > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--map-accent-soft); color: var(--map-accent); }
.ops-map-hint .ops-drone-glyph { width: 22px; height: 22px; filter: none; }
.ops-map-hint div { display: grid; gap: 2px; }
.ops-map-hint b { font-size: 10px; }
.ops-map-hint small { color: var(--muted); font-size: 9px; }

.ops-control-dock {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 18px;
  height: 52px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.ops-control-dock button,
.ops-control-dock a {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.ops-control-dock button:hover,
.ops-control-dock a:hover { background: var(--soft); color: var(--ink); }
.ops-control-dock .is-active { background: var(--map-accent-soft); color: var(--map-accent); }
.ops-control-dock > i { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.ops-control-dock [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--panel);
  font: 500 8px "DM Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,4px);
  transition: opacity .12s ease, transform .12s ease;
  white-space: nowrap;
}
.ops-control-dock [data-tip]:hover::after { opacity: 1; transform: translate(-50%,0); }

.ops-drone-panel {
  position: absolute;
  z-index: 30;
  right: 18px;
  top: 18px;
  width: 350px;
  max-height: calc(100% - 94px);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 97%, transparent);
  color: var(--ink);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(18px);
  animation: panel-enter .24s cubic-bezier(.2,.8,.2,1);
}

@keyframes panel-enter { from { opacity: 0; transform: translateX(12px) scale(.98); } }
.ops-drone-panel[hidden] { display: none !important; }
.ops-drone-panel > header {
  min-height: 84px;
  padding: 15px 14px 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.ops-panel-identity { display: flex; gap: 11px; }
.ops-panel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--map-accent-soft);
  color: var(--map-accent);
}
.ops-panel-icon .ops-drone-glyph { width: 25px; height: 25px; filter: none; }
.ops-panel-identity > div { display: grid; gap: 2px; }
.ops-panel-identity small { color: var(--muted); font: 500 8px "DM Mono", monospace; letter-spacing: .1em; }
.ops-panel-identity strong { font: 600 15px "DM Mono", monospace; }
.ops-panel-identity [data-drone-field="label"] { color: var(--muted); font-size: 9px; }
.ops-drone-panel > header > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.ops-drone-panel > header > button:hover { background: var(--soft); color: var(--ink); }

.ops-panel-status {
  min-height: 38px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}
.ops-panel-status > span { display: flex; align-items: center; gap: 6px; color: #16744a; text-transform: uppercase; letter-spacing: .06em; }
[data-carbon-theme="g100"] .ops-panel-status > span { color: #71d6a0; }
.ops-panel-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.ops-panel-metrics {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.ops-panel-metrics > div { min-height: 70px; padding: 12px 14px; display: grid; align-content: center; gap: 5px; background: var(--panel); }
.ops-panel-metrics span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.ops-panel-metrics strong { font: 600 14px "DM Mono", monospace; }

.ops-signal-card { padding: 13px 14px 9px; border-bottom: 1px solid var(--line); color: var(--map-accent); }
.ops-signal-card > header { padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; color: var(--muted); font-size: 8px; }
.ops-signal-card > header b { font: 500 8px "DM Mono", monospace; }
.ops-signal-card svg { width: 100%; height: 58px; margin-top: 6px; overflow: visible; }
.signal-fill { fill: url(#signal-fill); }
.signal-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }

.ops-panel-data { margin: 0; padding: 5px 14px; }
.ops-panel-data > div { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.ops-panel-data > div:last-child { border-bottom: 0; }
.ops-panel-data dt { color: var(--muted); font-size: 9px; }
.ops-panel-data dd { margin: 0; color: var(--ink); font: 500 9px/1.55 "DM Mono", monospace; text-align: right; }
.ops-drone-panel > a {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--map-accent);
  font-size: 10px;
  font-weight: 700;
}
.ops-drone-panel > a:hover { background: var(--map-accent-soft); }

@media (max-width: 900px) {
  .ops-product-name,
  .ops-header-action span { display: none; }
  .ops-map-search { width: 280px; }
}

@media (max-width: 720px) {
  .ops-shell { padding-top: 56px; }
  .ops-header { height: 56px; padding: 0 10px; }
  .ops-brand { padding-right: 7px; }
  .ops-brand .wf-logo span,
  .ops-area-switch small { display: none; }
  .ops-area-switch { min-width: 0; width: 120px; height: 38px; margin-left: 4px; grid-template-rows: 1fr; }
  .ops-area-switch span { font-size: 9px; }
  .ops-area-switch svg { grid-row: 1; }
  .ops-avatar { width: 31px; height: 31px; margin-left: 2px; }
  .ops-main { height: calc(100vh - 56px); min-height: 560px; }
  .ops-map-search { top: 12px; left: 12px; width: calc(100% - 132px); }
  .ops-map-mode { top: 12px; right: 12px; }
  .ops-map-mode > span { display: none; }
  .ops-map-mode button { font-size: 0; }
  .ops-map-mode button::before { content: "Map"; font-size: 9px; }
  .ops-drone-panel {
    top: 70px;
    right: 10px;
    bottom: auto;
    left: auto;
    width: min(350px, calc(100% - 20px));
    max-width: calc(100% - 20px);
    max-height: 62%;
    border-radius: 16px;
  }
  .ops-panel-metrics { grid-template-columns: repeat(4,1fr); }
  .ops-panel-metrics > div { min-height: 60px; padding: 9px; }
  .ops-panel-metrics span { font-size: 7px; }
  .ops-panel-metrics strong { font-size: 10px; }
  .ops-signal-card,
  .ops-panel-data { display: none; }
  .ops-map-hint { left: 10px; bottom: 72px; }
  .ops-map-hint small { display: none; }
  .ops-control-dock { bottom: 10px; height: 50px; max-width: calc(100% - 20px); }
  .ops-control-dock button,
  .ops-control-dock a { width: 34px; height: 38px; }
  .ops-control-dock > i { margin-inline: 1px; }
  .ops-scale { display: none; }
  .ops-map-attribution { right: 10px; bottom: 66px; }
  .ops-aircraft.a3 { display: block; }
  .ops-receiver.rx2 { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-aircraft.is-selected .ops-marker-halo,
  .ops-beacon-trail.is-selected .ops-trail-line { animation: none; }
}
