/* FEEDBACK: "Fehler melden" modal dialog. */
.report-error__backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(43, 33, 25, 0.45);
}

.report-error__dialog {
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--color-bg, #fff);
  color: var(--color-text);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(43, 33, 25, 0.32);
  padding: 1.25rem;
  animation: reportErrorIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reportErrorIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.report-error__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.report-error__title {
  margin: 0;
  font-size: 1.15rem;
}

.report-error__close {
  background: none;
  border: none;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted, #666);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
}

.report-error__close:hover {
  background: var(--color-border, #eee);
}

.report-error__intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--color-text-muted, #666);
}

.report-error__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.report-error__textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-border, #ccc);
  border-radius: 8px;
  resize: vertical;
  min-height: 5.5rem;
  background: var(--color-bg, #fff);
  color: var(--color-text);
}

.report-error__textarea:focus {
  outline: 2px solid var(--color-accent, #2563eb);
  outline-offset: 1px;
}

.report-error__debug {
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 8px;
  background: var(--color-surface-2, rgba(0, 0, 0, 0.03));
}

.report-error__debug-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted, #888);
  margin-bottom: 0.4rem;
}

.report-error__debug-list {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.report-error__debug-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.report-error__debug-row dt {
  flex: 0 0 5.5rem;
  font-weight: 600;
  color: var(--color-text-muted, #777);
}

.report-error__debug-row dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.report-error__debug-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.report-error__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

/* Vorschlag: ähnliche bereits gelöste Tickets. */
.report-error__similar {
  margin-top: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: var(--color-accent-bg, #eef2ff);
  border-radius: 8px;
}
.report-error__similar-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.report-error__similar-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}
