.feedback-devices { margin: 0; padding: 0; border: 0; }
.feedback-devices legend { font-weight: 700; margin-bottom: 5px; }
.feedback-devices > .hint { margin: 0 0 12px; }
.feedback-device-list { display: grid; gap: 10px; }
.feedback-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 190px);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf3;
}
.feedback-device-row.is-selected { border-color: #b65d42; background: #faf0e6; }
.feedback-device-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  min-width: 0;
}
.feedback-device-choice input { width: 19px; height: 19px; accent-color: var(--accent); flex: none; }
.feedback-device-choice .device-badge { min-width: 0; overflow-wrap: anywhere; }
.feedback-device-choice small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.feedback-version { margin: 0; }
.feedback-version input:disabled { opacity: .58; }
.feedback-field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #d5a391;
  border-radius: 9px;
  color: #87341e;
  background: #fff0e9;
  font-size: 13px;
  line-height: 1.5;
}
.feedback-field-error[hidden] { display: none; }
.feedback-field-error::before {
  content: '!';
  display: grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff7ef;
  background: #a5442d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.feedback-devices.has-error .feedback-device-list,
.feedback-priority.has-error .priority-options {
  outline: 2px solid #bb6e55;
  outline-offset: 3px;
  border-radius: 10px;
}
.feedback-description.has-error textarea,
.upload.has-error {
  border-color: #ae3428;
  box-shadow: 0 0 0 2px #ae34281f;
}
.feedback-description .feedback-field-error { font-weight: 400; }
.module-hint { margin: -5px 0 0; color: #735f50; font-size: 13px; }
.module-guide { border-radius: 10px; background: #f6eee2; padding: 10px 14px; }
.module-guide summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #89432f; font-size: 13px; }
.module-guide dl { margin: 4px 0 0; display: grid; gap: 8px; }
.module-guide dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 13px; }
.module-guide dt { font-weight: 700; }
.module-guide dd { margin: 0; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .feedback-device-row:hover { border-color: #bfa38b; }
  .module-guide summary:hover { color: #6f2b1e; }
}
.feedback-device-row:active { border-color: #a34a32; }
.feedback-device-choice:focus-within { outline: 3px solid #2962bc; outline-offset: 2px; border-radius: 8px; }
@media (max-width: 650px) {
  .feedback-device-row { grid-template-columns: 1fr; gap: 8px; }
  .feedback-device-choice { flex-wrap: wrap; }
  .feedback-device-choice small { margin-left: 29px; }
  .module-guide dl div { grid-template-columns: 1fr; gap: 1px; }
}
