.live-monitor {
  margin: 14px 16px 0;
  padding: 16px;
  border: 1px solid #252b38;
  border-radius: 18px;
  background: linear-gradient(145deg, #141922, #0f1218);
}

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

.monitor-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.monitor-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #303746;
  border-radius: 9px;
  color: #838b9c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
}

.monitor-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #697284;
}

.monitor-state.scanning {
  border-color: #1e95ff66;
  color: #65c1ff;
  background: #10253a;
}

.monitor-state.scanning i {
  background: #49b8ff;
  box-shadow: 0 0 10px #49b8ff;
  animation: monitor-pulse 1s infinite;
}

.current-scan {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  background: #0b0e14;
  color: #aab3c2;
  font-size: 11px;
}

.source-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 9px 0;
}

.health-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid #252b38;
  border-radius: 10px;
  background: #11151d;
}

.health-item strong,
.health-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-item strong {
  font-size: 9px;
  letter-spacing: .6px;
}

.health-item small {
  margin-top: 4px;
  color: #778093;
  font-size: 8px;
}

.health-item.loading { border-color: #1e95ff55; }
.health-item.ok strong { color: #4ee39b; }
.health-item.warning strong { color: #ffc766; }
.health-item.error strong { color: #ff6b75; }

.scan-log {
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid #252b38;
  scrollbar-width: thin;
}

.log-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 7px;
  padding: 8px 1px;
  border-bottom: 1px solid #202530;
  font-size: 9px;
  line-height: 1.35;
}

.log-time { color: #697284; }
.log-source { color: #65c1ff; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.log-message { color: #aab3c2; overflow-wrap: anywhere; }
.log-row.success .log-source { color: #4ee39b; }
.log-row.warning .log-source { color: #ffc766; }
.log-row.error .log-source { color: #ff6b75; }
.log-empty { padding: 18px 3px 6px; color: #697284; text-align: center; font-size: 10px; }

@keyframes monitor-pulse {
  50% { opacity: .35; transform: scale(.8); }
}
