/* Feedback v1 — compact beta feedback widget and contextual prompts. */
.dh-feedback[hidden], .dh-feedback__backdrop[hidden] { display: none !important; }
.dh-feedback__launcher {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: linear-gradient(135deg,#23483a,#2f6a55);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23,33,27,.24);
  padding: 12px 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.dh-feedback__launcher-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.dh-feedback__backdrop {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(10,18,13,.56);
  backdrop-filter: blur(8px);
}
.dh-feedback-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: #fff;
  color: #17211b;
  box-shadow: 0 24px 70px rgba(23,33,27,.24);
}
.dh-feedback-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 13px;
  border-bottom: 1px solid #dfe6dd;
  background: #fff;
}
.dh-feedback-modal__title-row { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.dh-feedback-modal__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #dfe6dd;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #edf3ed;
  color: #23483a;
  font-weight: 900;
}
.dh-feedback-modal h2 {
  margin: 0 0 4px;
  color: #23483a;
  font-size: 1.12rem;
  letter-spacing: -.035em;
}
.dh-feedback-modal p { margin: 0; }
.dh-feedback-modal__header p { color: #657168; line-height: 1.35; font-size: .88rem; }
.dh-feedback-modal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #dfe6dd;
  border-radius: 11px;
  background: #fff;
  color: #657168;
  font-size: 1.18rem;
  cursor: pointer;
}
.dh-feedback-modal__body {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg,#fff,#fbfcfa);
}
.dh-feedback-beta-note {
  border: 1px solid #eadfbc;
  border-radius: 16px;
  background: #fbf8ed;
  color: #735e22;
  padding: 12px;
  font-size: .82rem;
  line-height: 1.42;
  margin-bottom: 14px;
}
.dh-feedback-beta-note strong { display: block; color: #604f1c; margin-bottom: 4px; }
.dh-feedback-fieldset { border: 0; padding: 0; margin: 0; }
.dh-feedback-fieldset legend,
.dh-feedback-field > span {
  display: block;
  margin-bottom: 8px;
  color: #17211b;
  font-weight: 850;
  letter-spacing: -.015em;
  font-size: .94rem;
}
.dh-feedback-rating { display: grid; gap: 8px; }
.dh-feedback-rating label { position: relative; cursor: pointer; }
.dh-feedback-rating input { position: absolute; opacity: 0; pointer-events: none; }
.dh-feedback-rating span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe6dd;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  transition: 160ms ease;
}
.dh-feedback-rating strong { color: #23483a; font-size: .94rem; }
.dh-feedback-rating small { color: #657168; font-size: .78rem; line-height: 1.25; text-align: right; }
.dh-feedback-rating input:checked + span {
  border-color: #2f6a55;
  background: linear-gradient(180deg,#f8fbf8,#edf5ef);
  box-shadow: 0 0 0 3px rgba(47,106,85,.12);
}
.dh-feedback-modal__right { display: grid; gap: 14px; }
.dh-feedback-field select,
.dh-feedback-field textarea,
.dh-feedback-field input[type="email"] {
  width: 100%;
  border: 1px solid #dfe6dd;
  border-radius: 12px;
  background: #fff;
  color: #17211b;
  font: inherit;
  outline: 0;
  padding: 11px 12px;
  transition: 160ms ease;
}
.dh-feedback-field select:focus,
.dh-feedback-field textarea:focus,
.dh-feedback-field input[type="email"]:focus {
  border-color: #2f6a55;
  box-shadow: 0 0 0 3px rgba(47,106,85,.12);
}
.dh-feedback-field textarea {
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  resize: none;
  line-height: 1.42;
}
.dh-feedback-field em { color: #657168; font-style: normal; font-weight: 650; }
.dh-feedback-email-row { display: grid; gap: 8px; }
.dh-feedback-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #657168;
  font-size: .82rem;
  line-height: 1.35;
  cursor: pointer;
}
.dh-feedback-consent input { position: absolute; opacity: 0; pointer-events: none; }
.dh-feedback-consent span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #dfe6dd;
  border-radius: 6px;
  background: #fff;
  margin-top: 1px;
}
.dh-feedback-consent input:checked + span { background: #23483a; border-color: #23483a; box-shadow: inset 0 0 0 4px #fff; }
.dh-feedback-consent b { font-weight: 500; }
.dh-feedback-privacy { color: #657168; font-size: .78rem; line-height: 1.35; }
.dh-feedback-privacy strong { color: #735e22; }
.dh-feedback-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px 18px;
  border-top: 1px solid #dfe6dd;
  background: #fff;
}
.dh-feedback-modal__footer p { color: #657168; font-size: .79rem; line-height: 1.35; }
.dh-feedback-modal__actions { display: flex; gap: 9px; align-items: center; }
.dh-feedback-button {
  border-radius: 13px;
  padding: 10px 14px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.dh-feedback-button--secondary { border: 1px solid #dfe6dd; background: #fff; color: #657168; }
.dh-feedback-button--primary { border: 0; background: linear-gradient(135deg,#23483a,#2f6a55); color: #fff; box-shadow: 0 12px 26px rgba(35,72,58,.2); }
.dh-feedback-button[disabled] { opacity: .62; cursor: wait; }
.dh-feedback__honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.dh-feedback-inline-card {
  margin: 22px 0;
  border: 1px solid #dfe6dd;
  border-radius: 22px;
  background: linear-gradient(135deg,#f8fbf8,#fff);
  box-shadow: 0 18px 40px rgba(23,33,27,.06);
  padding: 18px;
}
.dh-feedback-inline-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dh-feedback-inline-card strong { display: block; color: #23483a; font-size: 1.05rem; margin-bottom: 3px; }
.dh-feedback-inline-card p { color: #657168; line-height: 1.5; margin: 0; }
.dh-feedback-inline-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-feedback-inline-card__actions button,
.dh-feedback-inline-card__actions a {
  border: 1px solid #dfe6dd;
  border-radius: 999px;
  background: #fff;
  color: #23483a;
  padding: .62rem .86rem;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.dh-feedback-inline-card__actions button:first-child { background: #23483a; border-color: #23483a; color: #fff; }
@media (max-width: 760px) {
  .dh-feedback__launcher { left: 14px; bottom: 14px; padding: 11px 13px; }
  .dh-feedback__launcher-label { display: none; }
  .dh-feedback__backdrop { align-items: end; padding: 8px; }
  .dh-feedback-modal { width: min(560px, calc(100vw - 16px)); max-height: calc(100vh - 16px); border-radius: 22px 22px 0 0; overflow-y: auto; }
  .dh-feedback-modal__body { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .dh-feedback-modal__header, .dh-feedback-modal__footer { padding-left: 16px; padding-right: 16px; }
  .dh-feedback-modal__header p { font-size: .82rem; }
  .dh-feedback-beta-note { display: none; }
  .dh-feedback-rating { grid-template-columns: repeat(3,1fr); }
  .dh-feedback-rating span { min-height: 58px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .dh-feedback-rating small { text-align: left; }
  .dh-feedback-field textarea { height: 76px; min-height: 76px; max-height: 76px; }
  .dh-feedback-modal__footer { flex-direction: column; align-items: stretch; }
  .dh-feedback-modal__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dh-feedback-inline-card__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-height: 680px) {
  .dh-feedback-modal__header { padding-top: 13px; padding-bottom: 10px; }
  .dh-feedback-modal__body { padding-top: 12px; padding-bottom: 12px; }
  .dh-feedback-modal__footer { padding-top: 10px; padding-bottom: 12px; }
  .dh-feedback-beta-note { display: none; }
  .dh-feedback-field textarea { height: 66px; min-height: 66px; max-height: 66px; }
  .dh-feedback-privacy { font-size: .74rem; }
}
