.feedback-launch, .feedback button, .feedback a.btn {
  font: inherit;
  cursor: pointer;
}
.feedback-launch {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
  flex-shrink: 0;
}
.feedback {
  box-sizing: border-box;
  width: min(600px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.feedback::backdrop { background: rgb(0 0 0 / 65%); }
body:has(.feedback[open]) { overflow: hidden; }
.feedback [hidden] { display: none !important; }
.feedback-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.feedback-head h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.feedback button:not(.btn) {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--bg-2);
}
.feedback-head button { font-size: 22px !important; line-height: 1; }
.feedback p { font-size: 14px; line-height: 1.55; }
.feedback-context { color: var(--muted); overflow-wrap: anywhere; }
.feedback-progress { color: var(--accent-ink); font-size: 12px !important; }
.feedback fieldset { min-width: 0; padding: 0; margin: 0 0 16px; border: 0; }
.feedback legend, .feedback h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.feedback fieldset label {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.feedback fieldset label:has(input:checked) { border-color: var(--accent); background: var(--bg-2); }
.feedback input { accent-color: var(--accent-ink); }
.feedback label { font-size: 14px; }
.feedback-message-label { display: block; margin-bottom: 8px; }
.feedback textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-code);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  resize: vertical;
}
.feedback-quote blockquote { margin: 8px 0 16px; color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-actions, .feedback-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.feedback-channels .btn { text-decoration: none; }
.feedback button:disabled { opacity: .6; cursor: default; }
.feedback-status { min-height: 1.5em; }
.feedback-note { color: var(--muted); }
.feedback-section {
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 11px/1.6 var(--sans);
  padding: 2px 0;
  margin: -4px 0 12px;
  cursor: pointer;
}
.feedback-section:hover { color: var(--accent-ink); }
.feedback :focus-visible, .feedback-launch:focus-visible, .feedback-section:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
@media (max-width: 600px) {
  .feedback { padding: 18px; }
  .feedback-launch { max-width: 94px; white-space: normal; line-height: 1.15; padding: 5px 7px; }
  .topbar:has(.feedback-launch) .progress-chip { display: none; }
}
