#send-feedback-button {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 1450;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #e5c55e;
  border-radius: 999px;
  background: #fff1b9;
  color: #4b3900;
  box-shadow: 0 2px 10px rgba(53, 40, 0, .12);
  font: 700 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
#send-feedback-button:is(:hover,:focus-visible) {
  background: #ffe99a;
  transform: translateY(-1px);
}
#send-feedback-button:disabled { cursor: wait; opacity: .75; transform: none; }
#send-feedback-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
#send-feedback-button [data-feedback-label] {
  position: absolute;
  left: calc(100% + 7px);
  max-width: 0;
  padding: 0;
  border: 0 solid #e5c55e;
  border-radius: 999px;
  background: #fff1b9;
  box-shadow: 0 2px 10px rgba(53, 40, 0, .12);
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: max-width .16s ease, padding .16s ease, opacity .12s ease;
}
#send-feedback-button:is(:hover,:focus-visible) [data-feedback-label] {
  max-width: 100px;
  padding: 7px 9px;
  border-width: 1px;
  opacity: 1;
}
html.feedback-capturing [data-feedback-trigger] { visibility: hidden; }

#banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.banner-disclaimer { white-space: nowrap; }
.banner-feedback-copy { color: #eef3f1; }
#banner .banner-feedback-button {
  min-height: 20px;
  padding: 2px 9px;
  border: 1px solid #f3cf68;
  border-radius: 999px;
  background: #fff1b9;
  color: #4b3900;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
#banner .banner-feedback-button:hover { background: #ffe99a; }
#banner .banner-feedback-button:disabled { cursor: wait; opacity: .75; }

#feedback-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid rgba(11, 11, 11, .18);
  border-radius: 16px;
  background: #fcfcfb;
  color: #171916;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
#feedback-dialog::backdrop { background: rgba(11, 16, 13, .58); backdrop-filter: blur(2px); }
.feedback-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 30px); }
.feedback-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid #dedfd9;
}
.feedback-header h2 { margin: 0; font-size: 18px; }
.feedback-header p { margin: 3px 0 0; color: #686a65; font-size: 12px; }
.feedback-close { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 22px; }
.feedback-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); min-height: 0; }
.feedback-preview { min-width: 0; padding: 16px; overflow: auto; background: #eeefe9; border-right: 1px solid #dedfd9; }
.feedback-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.feedback-preview-toolbar strong { font-size: 12px; }
.feedback-preview-toolbar span { color: #73756e; font-size: 11px; }
.feedback-preview-toolbar button { min-height: 28px; padding: 4px 10px; font-size: 11px; }
#feedback-canvas {
  display: block; width: 100%; height: auto; border: 1px solid #c9cbc4; border-radius: 8px;
  background: white; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); cursor: crosshair; touch-action: none;
}
.feedback-capture-warning { padding: 14px; border: 1px solid #e5c55e; border-radius: 8px; background: #fff7d6; color: #5b4600; font-size: 12px; }
.feedback-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow: auto; }
.feedback-form label { display: grid; gap: 5px; margin: 0; color: #30332f; font-size: 12px; font-weight: 700; }
.feedback-form textarea, .feedback-form input {
  width: 100%; border: 1px solid #cfd1ca; border-radius: 8px; background: #fff; color: #171916;
  padding: 9px 10px; font: 400 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.feedback-form textarea { min-height: 160px; resize: vertical; }
.feedback-form small { color: #73756e; font-weight: 400; line-height: 1.4; }
.feedback-submit { min-height: 40px; border-color: #176b52; background: #176b52; color: white; font-weight: 750; }
.feedback-submit:hover { background: #0f5842; }
.feedback-form-status { min-height: 18px; color: #686a65; font-size: 12px; }
.feedback-form-status.error { color: #a62d2d; }
.feedback-success { padding: 46px 24px 52px; text-align: center; }
.feedback-success h2 { margin: 0 0 8px; font-size: 24px; }
.feedback-success p { color: #686a65; }
.feedback-success code { font-size: 11px; }

@media (max-width: 760px) {
  #banner { justify-content: flex-start; padding-top: 7px; padding-bottom: 7px; text-align: left; }
  .banner-disclaimer { white-space: normal; }
  .banner-feedback-copy { flex: 1 1 260px; }
  #banner .banner-feedback-button { min-height: 30px; padding-inline: 11px; font-size: 10.5px; }
  #send-feedback-button { left: auto; right: 12px; bottom: 62px; width: 40px; height: 40px; min-height: 40px; font-size: 12px; }
  #send-feedback-button [data-feedback-label] { right: calc(100% + 7px); left: auto; }
  .feedback-body { grid-template-columns: 1fr; overflow: auto; }
  .feedback-preview { border-right: 0; border-bottom: 1px solid #dedfd9; overflow: visible; }
  .feedback-form { overflow: visible; }
  #feedback-dialog { max-height: calc(100dvh - 12px); }
  .feedback-shell { max-height: calc(100dvh - 14px); }
}

@media (prefers-reduced-motion: reduce) {
  #send-feedback-button,
  #send-feedback-button [data-feedback-label] { transition: none; }
  #send-feedback-button:is(:hover,:focus-visible) { transform: none; }
}
