/* 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 (no external libs) */
.mesh-plug-mapwrap{
  padding:10px 12px;
}
.mesh-plug-map{
  width:100%;
  height:420px;
  border:1px solid #dcdcde;
  border-radius:8px;
  background:#fff;
  position:relative;
  overflow:hidden;
}
.mesh-plug-tile{
  position:absolute;
  width:256px;
  height:256px;
  image-rendering:auto;
}
.mesh-plug-marker{
  position:absolute;
  width:12px;
  height:12px;
  margin-left:-6px;
  margin-top:-6px;
  border-radius:50%;
  background:#111;
  box-shadow:0 0 0 2px rgba(255,255,255,0.9);
}
.mesh-plug-marker-label{
  position:absolute;
  left:10px;
  top:-10px;
  white-space:nowrap;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(255,255,255,0.92);
  border:1px solid #dcdcde;
  font-size:12px;
  color:#111;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.mesh-plug-map-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#50575e;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:14px;
}
.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-mapwrap{ position:relative; }
.mesh-plug-mapcontrols{
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  gap:6px;
  z-index:5;
}
.mesh-plug-zoom{
  padding:6px 10px;
  line-height:1;
}
