/* ===============================
   Panel – Device selector
   =============================== */
.device-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 10px 0 12px;
}

.device-label{
  min-width: 70px;
  color: rgba(255,255,255,.80);
  font-size: 0.95rem;
}

.device-select{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline: none;
}

.device-select:focus{
  border-color: rgba(140,120,255,.55);
  box-shadow: 0 0 0 3px rgba(140,120,255,.18);
}

/* ===============================
   Empty state
   =============================== */
.no-devices{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(0,0,0,.18);
}

.no-devices-title{
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.no-devices-text{
  color: rgba(255,255,255,.75);
  line-height: 1.35;
}

/* ===============================
   Panel layout
   =============================== */
.panel-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .panel-grid{ grid-template-columns: 1fr; }
}

.panel-shell{ padding-bottom: 14px; }

.panel-card .card-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title{
  margin: 0;
  font-size: 1.05rem;
}

.card-subtitle{
  margin-top: 4px;
  color: rgba(255,255,255,.70);
  font-size: 0.9rem;
}

/* ===============================
   Key–value list
   =============================== */
.kv-list{
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.kv-list li{
  display:flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.kv-list li:last-child{ border-bottom: none; }

/* ===============================
   Pills
   =============================== */
.pill{
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
}

.pill-ok{ border-color: rgba(0,255,140,.25); }
.pill-off{ border-color: rgba(160,160,160,.25); }
.pill-err{ border-color: rgba(255,70,70,.25); }
.pill-warn{ border-color: rgba(255,190,70,.25); }

/* ===============================
   Services list
   =============================== */
#services-wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.svc-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.svc-item:first-child{
  border-top:none;
  padding-top:0;
}

.svc-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.svc-name{
  font-weight:700;
}

.svc-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
