/* Defect register controls. Stack on a phone; sit in a row on a desktop. */
.dr-host {
  flex: 1 1 100%;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
}
.dr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}
.dr-bar > label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 8.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #475569;
}
.dr-bar select,
.dr-download {
  min-height: 2.75rem;
  border-radius: 0.55rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
}
.dr-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}
.dr-check input {
  width: 1.15rem;
  height: 1.15rem;
}
.dr-download {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.dr-download:disabled {
  opacity: 0.6;
  cursor: progress;
}
.dr-note,
.dr-status {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #64748b;
}
.dr-status:empty { display: none; }
@media (max-width: 720px) {
  .dr-bar { flex-direction: column; align-items: stretch; }
  .dr-bar > label,
  .dr-download { width: 100%; }
}
[data-theme="dark"] .dr-host {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .dr-bar > label,
[data-theme="dark"] .dr-note,
[data-theme="dark"] .dr-status { color: #cbd5e1; }
[data-theme="dark"] .dr-bar select {
  background: #020617;
  color: #e2e8f0;
  border-color: #334155;
}
[data-theme="dark"] .dr-check { color: #e2e8f0; }
