/* LightningMine Diagnostics — basic layout and readable defaults */
.lm-diagnostics-container,
#lm-diagnostics-root {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.4;
}

/* Header / title inside the widget (if JS injects one) */
.lm-diagnostics-container h2,
#lm-diagnostics-root h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0b6b9a;
  font-weight: 700;
}

/* Input rows and labels */
.lm-diagnostics-row,
#lm-diagnostics-root .lm-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}
.lm-diagnostics-row label,
#lm-diagnostics-root label {
  min-width: 140px;
  font-weight: 600;
  color: #333;
}

/* Inputs and selects */
.lm-diagnostics-container input[type="text"],
.lm-diagnostics-container input[type="url"],
.lm-diagnostics-container select,
#lm-diagnostics-root input,
#lm-diagnostics-root select {
  padding: 8px 10px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  min-width: 220px;
}

/* Buttons */
.lm-diagnostics-container .lm-btn,
#lm-diagnostics-root .lm-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #0b6b9a;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
.lm-diagnostics-container .lm-btn:disabled,
#lm-diagnostics-root .lm-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Results area */
.lm-diagnostics-results,
#lm-diagnostics-root .lm-results {
  margin-top: 12px;
  padding: 10px;
  background: #f7f9fb;
  border-radius: 6px;
  border: 1px solid #eef3f6;
  font-size: 13px;
  color: #222;
  white-space: pre-wrap;
}

/* Small responsive tweaks */
@media (max-width: 640px) {
  .lm-diagnostics-row label,
  #lm-diagnostics-root label {
    min-width: 0;
    width: 100%;
  }
  .lm-diagnostics-row {
    flex-direction: column;
    align-items: stretch;
  }
}