.ag-feedback-launcher {
  position: fixed;
  right: auto;
  bottom: 10px;
  left: 10px;
  z-index: 29;
  display: grid;
  width: min(400px, calc(100vw - 20px));
  height: 76px;
  grid-template-columns: 62px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  padding: 7px 9px 7px 7px;
  border: 1px solid rgba(255, 220, 154, .34);
  border-radius: 13px;
  background:
    radial-gradient(circle at 10% 50%, rgba(239, 157, 56, .22), transparent 34%),
    linear-gradient(135deg, rgba(20, 27, 35, .96), rgba(37, 28, 24, .97));
  color: #fff4df;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.ag-feedback-launcher:hover,
.ag-feedback-launcher:focus-visible {
  border-color: rgba(255, 211, 126, .72);
  outline: 0;
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.ag-feedback-launcher__mascot {
  display: block;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 215, 137, .50);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .34), 0 0 12px rgba(244, 161, 55, .14);
}

.ag-feedback-launcher__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ag-feedback-launcher__copy strong {
  overflow: hidden;
  color: #fff5e5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-feedback-launcher__copy small {
  overflow: hidden;
  color: rgba(234, 235, 232, .58);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.ag-feedback-launcher__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 211, 126, .28);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(232, 148, 48, .30), rgba(147, 65, 22, .22));
  color: #ffd895;
  font-size: 18px;
  font-weight: 900;
}

.ag-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 10, 12, .54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ag-feedback-modal[hidden] {
  display: none;
}

.ag-feedback-card {
  display: grid;
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 221, 159, .40);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 2%, rgba(255, 186, 93, .27), transparent 34%),
    linear-gradient(155deg, rgba(69, 69, 66, .99), rgba(48, 50, 52, .99) 56%, rgba(83, 53, 35, .99));
  color: #fff4df;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .13);
}

.ag-feedback-header {
  display: grid;
  min-height: 94px;
  grid-template-columns: 74px minmax(0, 1fr) 38px;
  gap: 13px;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 224, 164, .25);
  background: linear-gradient(90deg, rgba(255, 189, 95, .09), rgba(255, 255, 255, .025));
}

.ag-feedback-header img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 215, 137, .55);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34);
}

.ag-feedback-header-copy {
  min-width: 0;
}

.ag-feedback-kicker {
  margin: 0 0 5px;
  color: #f4a844;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.ag-feedback-header h2 {
  margin: 0;
  color: #fff7e9;
  font-size: 22px;
  font-weight: 900;
}

.ag-feedback-header p {
  margin: 5px 0 0;
  color: rgba(246, 239, 228, .76);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.ag-feedback-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 224, 164, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .11);
  color: #fff0d6;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
}

.ag-feedback-close:hover,
.ag-feedback-close:focus-visible {
  border-color: rgba(255, 215, 137, .62);
  outline: 0;
  background: rgba(232, 135, 42, .18);
}

.ag-feedback-form {
  display: grid;
  min-height: 0;
  gap: 12px;
  padding: 15px;
  overflow-y: auto;
}

.ag-feedback-field {
  display: grid;
  gap: 6px;
}

.ag-feedback-field > span {
  color: rgba(255, 246, 230, .91);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ag-feedback-field input,
.ag-feedback-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 224, 164, .30);
  border-radius: 10px;
  outline: 0;
  background: #fffdf8;
  color: #241b15;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

.ag-feedback-field input {
  height: 40px;
  padding: 0 11px;
}

.ag-feedback-field textarea {
  min-height: 116px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.5;
}

.ag-feedback-field input:focus,
.ag-feedback-field textarea:focus {
  border-color: rgba(255, 198, 92, .65);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(242, 151, 46, .18);
}

.ag-feedback-field input::placeholder,
.ag-feedback-field textarea::placeholder {
  color: #77736f;
}

.ag-feedback-attachment {
  position: relative;
  display: grid;
  min-height: 96px;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed rgba(255, 213, 137, .58);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 197, 112, .11), rgba(255, 255, 255, .06));
  cursor: pointer;
}

.ag-feedback-attachment:hover,
.ag-feedback-attachment:focus-within,
.ag-feedback-attachment.is-dragover {
  border-color: rgba(255, 202, 107, .82);
  background: rgba(229, 136, 40, .08);
}

.ag-feedback-attachment-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255, 220, 154, .20);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #f5b65a;
}

.ag-feedback-attachment-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.ag-feedback-attachment-copy {
  display: grid;
  gap: 4px;
}

.ag-feedback-attachment-copy strong {
  color: #fff1da;
  font-size: 10px;
  font-weight: 900;
}

.ag-feedback-attachment-copy small {
  color: rgba(244, 238, 228, .70);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
}

.ag-feedback-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ag-feedback-preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(116, 225, 155, .27);
  border-radius: 11px;
  background: rgba(61, 169, 101, .07);
}

.ag-feedback-preview[hidden] {
  display: none;
}

.ag-feedback-preview img {
  display: block;
  width: 88px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.ag-feedback-preview-copy {
  min-width: 0;
}

.ag-feedback-preview-copy strong,
.ag-feedback-preview-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-feedback-preview-copy strong {
  color: #b9efca;
  font-size: 9px;
}

.ag-feedback-preview-copy small {
  margin-top: 4px;
  color: rgba(230, 236, 232, .46);
  font-size: 8px;
}

.ag-feedback-remove {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 157, 133, .28);
  border-radius: 50%;
  background: rgba(206, 72, 50, .10);
  color: #ffb09f;
  cursor: pointer;
  font: inherit;
}

.ag-feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ag-feedback-status {
  margin: 0;
  color: rgba(248, 241, 230, .76);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.ag-feedback-status.is-error { color: #ffab98; }
.ag-feedback-status.is-success { color: #87e3a8; }

.ag-feedback-submit {
  min-width: 150px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 231, 181, .68);
  border-radius: 11px;
  background: linear-gradient(180deg, #f7c262, #cf6e22);
  color: #261307;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .44), 0 8px 18px rgba(0, 0, 0, .24);
}

.ag-feedback-submit:hover,
.ag-feedback-submit:focus-visible {
  outline: 0;
  filter: brightness(1.08);
}

.ag-feedback-submit:disabled {
  cursor: wait;
  filter: grayscale(.2);
  opacity: .68;
}

.ag-feedback-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.ag-feedback-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .ag-feedback-launcher { right: 10px; bottom: 10px; left: 10px; width: auto; height: 65px; grid-template-columns: 50px minmax(0, 1fr) 27px; gap: 8px; }
  .ag-feedback-launcher__mascot { width: 48px; height: 48px; }
  .ag-feedback-launcher__copy strong { font-size: 10px; }
  .ag-feedback-modal { padding: 8px; }
  .ag-feedback-card { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  .ag-feedback-header { min-height: 76px; grid-template-columns: 58px minmax(0, 1fr) 34px; gap: 9px; padding: 9px; }
  .ag-feedback-header img { width: 56px; height: 56px; }
  .ag-feedback-header h2 { font-size: 17px; }
  .ag-feedback-header p { font-size: 8.5px; }
  .ag-feedback-form { gap: 10px; padding: 11px; }
  .ag-feedback-field textarea { min-height: 100px; }
  .ag-feedback-footer { align-items: stretch; flex-direction: column; }
  .ag-feedback-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-feedback-launcher {
    transition: none;
  }
}

/* The feedback card occupies the reserved lower-left grid slot. */
.ag-feedback-launcher {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  inset: auto;
  align-self: end;
  justify-self: stretch;
  width: 100%;
  height: var(--lobby-feedback-height, 8.5dvh);
  max-width: none;
}

@media (max-width: 720px) {
  .ag-feedback-launcher {
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--lobby-feedback-height, 8dvh);
  }
}

@media (max-width: 60rem) {
  .ag-feedback-launcher {
    grid-column: 1;
    grid-row: 4;
    position: relative;
    inset: auto;
    align-self: stretch;
    width: 100%;
    height: 10dvh;
    margin: 0;
  }
}
