.feedback-dialog {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 1.1rem;
  border: 1px solid var(--line, #d8ddd4);
  border-radius: 1rem;
  background: var(--paper, #fff);
  color: var(--ink, #26392d);
}
.feedback-dialog::backdrop {
  background: #0008;
}
.feedback-dialog .dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.feedback-dialog h2 {
  margin: 0;
}
.feedback-dialog label:not(.feedback-honeypot label, altcha-widget label) {
  display: block;
  margin: 0.7rem 0 0.2rem;
}
.feedback-dialog input:not(altcha-widget input),
.feedback-dialog select,
.feedback-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.55rem;
  border: 1px solid var(--line, #d8ddd4);
  border-radius: 0.45rem;
  color: inherit;
  background: var(--paper, #fff);
}
.feedback-dialog textarea {
  resize: vertical;
  min-height: 7rem;
}
.feedback-dialog [hidden] {
  display: none;
}
.feedback-dialog .feedback-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
}
#feedback-captcha {
  margin-top: 0.8rem;
}
.feedback-admin {
  margin: 1rem 0;
  padding: 0.8rem;
  border: 1px solid var(--line, #d8ddd4);
  border-radius: 0.7rem;
}
.feedback-admin > summary,
#feedback-own > summary {
  cursor: pointer;
  font-weight: 600;
}
.feedback-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.feedback-filters label {
  flex: 1;
  min-width: 8rem;
}
.feedback-filters input,
.feedback-filters select {
  width: 100%;
}
.feedback-row {
  display: block;
  width: 100%;
  padding: 0.6rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line, #d8ddd4);
  background: transparent;
  color: inherit;
  text-align: start;
  font: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.feedback-row time,
.feedback-meta {
  font-size: 0.85em;
  opacity: 0.75;
}
.feedback-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-own-entry {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line, #d8ddd4);
  overflow-wrap: anywhere;
}
:root[data-theme='dark'] .feedback-dialog {
  background: #202a24;
  color: #eef2eb;
}
:root[data-theme='dark'] .feedback-dialog input:not(altcha-widget input),
:root[data-theme='dark'] .feedback-dialog textarea,
:root[data-theme='dark'] .feedback-dialog select {
  background: #17201b;
}

.feedback-dialog button:not(altcha-widget button) {
  font: inherit;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line, #d8ddd4);
  border-radius: 0.5rem;
  background: var(--soft, #edf1e9);
  color: inherit;
  cursor: pointer;
}
.feedback-dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
.feedback-dialog a {
  color: inherit;
}
.feedback-dialog :focus-visible {
  outline: 2px solid var(--focus, #52755a);
  outline-offset: 3px;
}
