.feedback-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #e8e0d0;
  background: #1a1714;
  border: 1px solid #5a5448;
  border-top: 3px solid #8b3a3a;
  border-radius: 2px;
  font: 13px/1.7 'IBM Plex Mono', 'Courier New', monospace;
  text-align: left;
}
.feedback-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.feedback-dialog *, .feedback-dialog *::before, .feedback-dialog *::after { box-sizing: border-box; }
.feedback-dialog [hidden] { display: none !important; }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feedback-heading h2 { margin: 0; color: #f5f0e4; font: 400 24px/1.35 'Libre Baskerville', Georgia, serif; letter-spacing: 0; text-transform: none; }
.feedback-close { flex-shrink: 0; width: 40px; height: 40px; margin: -8px -8px -8px 0; padding: 0; color: #e8e0d0; background: transparent; border: 0; font: 24px/1 sans-serif; cursor: pointer; }
#feedback-intro { margin: 14px 0 22px; color: #b8ad9e; font-size: 12px; }
.feedback-field { margin-top: 16px; }
.feedback-field label { display: block; margin-bottom: 6px; color: #e8e0d0; font-size: 12px; font-weight: 500; }
.feedback-field label span { color: #b8ad9e; font-weight: 400; }
.feedback-field input, .feedback-field select, .feedback-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 9px 10px;
  color: #f5f0e4; background: #0e0c0a; border: 1px solid #5a5448; border-radius: 2px;
  font: inherit; font-size: 13px; line-height: 1.5; color-scheme: dark;
}
.feedback-field textarea { resize: vertical; min-height: 90px; }
.feedback-field [aria-invalid="true"] { border-color: #d99584; }
.feedback-dialog :focus-visible, [data-feedback-open]:focus-visible { outline: 2px solid #e8e0d0; outline-offset: 3px; }
.feedback-dialog .feedback-help { margin: 6px 0 0; color: #b8ad9e; font-size: 11px; line-height: 1.6; }
.feedback-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.feedback-actions button { min-height: 42px; padding: 9px 16px; border: 1px solid #5a5448; border-radius: 2px; font: inherit; font-size: 12px; cursor: pointer; }
.feedback-submit { color: #f5f0e4; background: #632a2a; }
.feedback-submit:hover { background: #753333; }
.feedback-submit:disabled { opacity: .65; cursor: wait; }
.feedback-cancel { color: #e8e0d0; background: transparent; }
.feedback-cancel:hover, .feedback-close:hover { background: #2a2520; }
.feedback-status { margin: 18px 0 0; padding: 12px; overflow-wrap: anywhere; background: #242019; border-left: 2px solid #9a9080; font-size: 12px; }
.feedback-status[data-kind="error"] { color: #f0b8a8; border-left-color: #d99584; }
.feedback-status[data-kind="success"] { color: #d4dec7; border-left-color: #899b79; }
.feedback-dialog .feedback-privacy { margin-top: 18px; }
.feedback-dialog a { color: #e8e0d0; text-decoration: underline; text-underline-offset: 3px; }
.site-footer [data-feedback-open] { padding: 0; color: inherit; background: none; border: 0; border-radius: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.site-footer [data-feedback-open]:hover { color: #f5f0e4; }
body:has(.feedback-dialog[open]) { overflow: hidden; }
@media (max-width: 600px) {
  .feedback-dialog { padding: 20px; }
  .feedback-heading h2 { font-size: 21px; }
  .feedback-field input, .feedback-field select, .feedback-field textarea { font-size: 16px; }
}
