/* A user-opened desktop dialog. Mobile links keep their native new-tab route. */
body.feedback-modal-open { overflow: hidden; }
.feedback-popup {
  box-sizing: border-box;
  width: min(850px, calc(100vw - 48px));
  height: min(820px, calc(100dvh - 56px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe0ec;
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #1b1d22);
  box-shadow: 0 20px 70px #18213b35;
  animation: none;
}
.feedback-popup[open] { display: flex; flex-direction: column; }
.feedback-popup::backdrop { background: #17203980; animation: none; }
.feedback-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 20px;
  border-bottom: 1px solid var(--line, #e8eaf0);
  flex: 0 0 auto;
}
.feedback-popup-heading { min-width: 0; }
.feedback-popup-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.5px;
}
.feedback-popup-header p {
  margin: 7px 0 0;
  color: var(--sub, #555c6b);
  font-size: 14px;
  line-height: 1.7;
}
.feedback-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 10px 13px;
  flex: 0 0 auto;
  border: 1px solid #dfe3ed;
  border-radius: 8px;
  color: var(--ink, #1b1d22);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
.feedback-popup-close:hover { background: #f5f6fb; border-color: #c9d0e2; }
.feedback-popup-close:focus-visible,
.feedback-popup-direct:focus-visible {
  outline: 3px solid #6a76db;
  outline-offset: 3px;
}
.feedback-popup-content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.feedback-popup-frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
}
.feedback-popup-status {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 1;
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--sub, #555c6b);
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  pointer-events: none;
}
.feedback-popup-status[hidden] { display: none; }
.feedback-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px 18px;
  padding: 12px 26px;
  border-top: 1px solid var(--line, #e8eaf0);
  color: var(--sub, #555c6b);
  background: #fbfcfe;
  font-size: 13px;
  line-height: 1.7;
}
.feedback-popup-direct {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #3e4bad;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.feedback-popup-direct:hover { color: #263375; }
@media (max-height: 560px) {
  .feedback-popup-header { padding-block: 14px; }
  .feedback-popup-header p { display: none; }
  .feedback-popup-footer { padding-block: 8px; }
}
@media print { .feedback-popup { display: none !important; } }
