.celgrid-feedback-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-width: 36px;
  height: 36px;
  padding-inline: 9px;
  flex: none;
  border: 1px solid var(--border, #344452);
  border-radius: 8px;
  background: var(--panel-alt, #161e26);
  color: var(--text, #eef4f7);
  font: 600 12px system-ui, sans-serif;
  cursor: pointer;
}
.celgrid-feedback-trigger:hover { border-color: #3ee0a8; }
.celgrid-feedback-trigger:focus-visible { outline: 2px solid #3ee0a8; outline-offset: 2px; }
.celgrid-feedback-float {
  position: fixed;
  z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  height: 40px;
  padding-inline: 12px;
}
body:has(#celgrid-privacy.is-slim) .celgrid-feedback-float { bottom: calc(74px + env(safe-area-inset-bottom)); }
.celgrid-feedback-public-mobile { display: none; }
.mobile-paint-topbar .celgrid-feedback-trigger { height: 32px; min-width: 32px; padding-inline: 7px; }
@media (max-width: 700px) {
  .celgrid-feedback-float { display: none; }
  .celgrid-feedback-public-mobile { display: inline-flex; }
}

.celgrid-feedback-dialog {
  box-sizing: border-box;
  width: min(398px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #344452;
  border-radius: 12px;
  background: #111820;
  color: #eef4f7;
  box-shadow: 0 14px 50px #0009;
  font: 14px/1.4 system-ui, sans-serif;
}
.celgrid-feedback-dialog::backdrop { background: #061019b8; }
.celgrid-feedback-dialog header { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.celgrid-feedback-dialog h2 { margin: 0; font-size: 20px; }
.celgrid-feedback-close {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid #344452;
  background: #171f28;
  color: #eef4f7;
  font: 20px/1 system-ui, sans-serif;
  cursor: pointer;
}
.celgrid-feedback-form { display: grid; gap: 12px; }
.celgrid-feedback-form[hidden] { display: none; }
.celgrid-feedback-form label { display: grid; gap: 5px; font-weight: 600; }
.celgrid-feedback-form :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #344452;
  border-radius: 7px;
  background: #0b1016;
  color: #eef4f7;
  font: 16px/1.35 system-ui, sans-serif;
  color-scheme: dark;
}
.celgrid-feedback-form select { height: 42px; padding-block: 0; line-height: normal; }
.celgrid-feedback-form textarea { resize: vertical; }
.celgrid-feedback-help { margin: 0; font-size: 12px; color: #a9bdce; }
.celgrid-feedback-send {
  min-height: 42px;
  padding-inline: 12px;
  border: 0;
  border-radius: 7px;
  background: #3ee0a8;
  color: #071611;
  font: 700 14px system-ui, sans-serif;
  cursor: pointer;
}
.celgrid-feedback-send:disabled { opacity: .6; }
.celgrid-feedback-status { margin: 10px 0 0; color: #cbdae5; }
.celgrid-feedback-status:empty { display: none; }
