/* Mesh-Plug v1.1.2 */
.mesh-plug-root{
  border:1px solid #dcdcde;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.mesh-plug-header{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #dcdcde;
  background:#f6f7f7;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
}
.mesh-plug-dot{
  width:10px;height:10px;border-radius:50%;
  background:#b32d2e;
  flex:0 0 auto;
}
.mesh-plug-dot.is-on{ background:#00a32a; }
.mesh-plug-status{ font-weight:600; }
.mesh-plug-topic{ color:#50575e; }
.mesh-plug-actions{ margin-left:auto; display:flex; gap:8px; }
.mesh-plug-btn{
  border:1px solid #c3c4c7;
  background:#fff;
  border-radius:6px;
  padding:4px 10px;
  font-size:12px;
  cursor:pointer;
}
.mesh-plug-btn:hover{ background:#f0f0f1; }
.mesh-plug-log{
  margin:0;
  padding:10px 12px;
  background:#111;
  color:#e7e7e7;
  font:12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow:auto;
}

.mesh-plug-tabs{
  display:flex;
  gap:6px;
  padding:8px 12px;
  border-bottom:1px solid #dcdcde;
  background:#fff;
}
.mesh-plug-tab{
  border:1px solid #c3c4c7;
  background:#fff;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  cursor:pointer;
}
.mesh-plug-tab.is-active{
  background:#f0f0f1;
}

.mesh-plug-pane{ background:#fff; }

.mesh-plug-tablewrap{ overflow:auto; }
.mesh-plug-table{
  width:100%;
  border-collapse:collapse;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
}
.mesh-plug-table th,
.mesh-plug-table td{
  padding:8px 10px;
  border-bottom:1px solid #e5e5e5;
  text-align:left;
  white-space:nowrap;
}
.mesh-plug-table thead th{
  background:#f6f7f7;
  font-weight:600;
}

.mesh-plug-chat{
  padding:10px 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
}
.mesh-plug-chat-row{ padding:8px 0; border-bottom:1px solid #eee; }
.mesh-plug-chat-meta{ color:#50575e; font-size:12px; display:block; margin-bottom:4px; }
.mesh-plug-chat-text{ white-space:pre-wrap; }
.mesh-plug-muted{ color:#6c7781; }

/* Map + Charts */
.mesh-plug-mapwrap{
  padding:10px 12px;
  position:relative;
}
.mesh-plug-map{
  width:100%;
  height:420px;
  border:1px solid #cfd4dc;
  border-radius:12px;
  background:linear-gradient(145deg, #f2f6fc 0%, #f8fbff 100%);
  position:relative;
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 30px rgba(15,23,42,0.08);
}
.mesh-plug-map .leaflet-control-attribution{
  font-size:10px;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(3px);
}
.mesh-plug-map .leaflet-popup-content-wrapper{
  border-radius:10px;
}
.mesh-plug-map .leaflet-popup-content{
  margin:10px 12px;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:12px;
  color:#0f172a;
}
.mesh-plug-marker-tip{
  border:0;
  border-radius:999px;
  padding:3px 8px;
  font:600 11px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0f172a;
  background:rgba(255,255,255,0.94);
  box-shadow:0 2px 8px rgba(15,23,42,0.18);
}
.mesh-plug-marker-tip:before{
  display:none;
}
.mesh-plug-mapmeta{
  margin-top:8px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:12px;
  color:#50575e;
}

.mesh-plug-charts{
  padding:10px 12px;
}
.mesh-plug-chartbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:8px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
}
.mesh-plug-chartbar select{
  margin-left:6px;
}
.mesh-plug-chart{
  width:100%;
  max-width:100%;
  height:auto;
  border:1px solid #dcdcde;
  border-radius:8px;
  background:#fff;
}

.mesh-plug-mapcontrols{
  position:absolute;
  top:10px;
  right:10px;
  display:none;
  gap:6px;
  z-index:5;
}
.mesh-plug-zoom{
  min-width:34px;
  padding:6px 10px;
  line-height:1;
  border-color:#b8c0cc;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(2px);
  font-weight:600;
}
