.feedback-launcher {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 92;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #111316;
  border-radius: 999px;
  background: #173a63;
  color: #fff;
  box-shadow: 0 10px 28px rgba(17, 19, 22, .24);
  font: 800 15px/1 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.feedback-launcher::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid #111316;
  border-radius: 50%;
  background: #f06a32;
}
.feedback-launcher:hover {
  transform: translateY(-2px);
  background: #102a49;
  box-shadow: 0 14px 34px rgba(17, 19, 22, .28);
}
.feedback-launcher:focus-visible,
.feedback-close:focus-visible,
.feedback-open-external:focus-visible {
  outline: 3px solid rgba(240, 106, 50, .55);
  outline-offset: 3px;
}
.feedback-dialog[hidden] { display: none; }
.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 24, 40, .72);
  backdrop-filter: blur(5px);
}
.feedback-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(720px, 100%);
  height: min(760px, calc(100vh - 48px));
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid #111316;
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  color: #111316;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #111316;
  background: #173a63;
  color: #fff;
}
.feedback-heading { min-width: 0; }
.feedback-heading strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}
.feedback-heading span {
  display: block;
  margin-top: 4px;
  color: #dce8f5;
  font-size: 13px;
  line-height: 1.35;
}
.feedback-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 700 25px/1 sans-serif;
  cursor: pointer;
}
.feedback-frame-wrap {
  position: relative;
  min-height: 0;
  background: #f1f4f8;
}
.feedback-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f1f4f8;
}
.feedback-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f1f4f8;
  color: #173a63;
  font-size: 16px;
  text-align: center;
}
.feedback-loading[hidden] { display: none; }
.feedback-open-external {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #111316;
  border-radius: 999px;
  background: #fffdf7;
  color: #173a63;
  box-shadow: 0 5px 16px rgba(17, 19, 22, .14);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
body.feedback-is-open { overflow: hidden; }
@media (max-width: 640px) {
  .feedback-launcher {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 0 15px;
  }
  .feedback-dialog { padding: 0; }
  .feedback-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .feedback-head { padding: 13px 14px; }
  .feedback-heading strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-launcher { transition: none; }
}

