.feedback-customer-sheet {
  width: min(100%, 720px);
  max-height: min(88vh, 720px);
  max-height: min(88dvh, 720px);
  overflow: hidden;
  padding: 22px 24px 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(35, 136, 228, .14), transparent 32%),
    #0b1320;
}

.feedback-customer-sheet .feedback-sheet-head {
  align-items: center;
  margin-bottom: 16px;
}

.feedback-customer-sheet .feedback-sheet-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.feedback-customer-sheet .feedback-sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.feedback-customer-form {
  gap: 14px;
}

.feedback-type-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.feedback-type-field legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: .9rem;
  font-weight: 850;
}

.feedback-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feedback-type-option {
  min-height: 46px;
  border-color: rgba(255, 255, 255, .13);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .035);
  color: #dce8f7;
  font-weight: 800;
}

.feedback-type-option:hover {
  border-color: rgba(70, 166, 255, .55);
  background: rgba(35, 136, 228, .08);
}

.feedback-type-option.selected {
  border-color: #2388e4;
  background: rgba(35, 136, 228, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(94, 181, 255, .2), 0 0 0 3px rgba(35, 136, 228, .09);
}

.feedback-message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: stretch;
}

.feedback-message-field {
  min-width: 0;
  margin: 0;
  font-weight: 800;
}

#feedbackContent {
  min-height: 132px;
  max-height: 190px;
  margin-top: 7px;
  resize: vertical;
  font-weight: 500;
  line-height: 1.45;
}

.feedback-frank-jr {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.feedback-frank-jr img {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28)) drop-shadow(0 0 10px rgba(35, 136, 228, .14));
}

.feedback-frank-jr strong {
  font-size: .77rem;
  line-height: 1.1;
}

.feedback-frank-jr small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.25;
}

.feedback-upload-field {
  display: grid;
  gap: 7px;
}

.feedback-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.feedback-field-heading strong {
  font-size: .9rem;
}

.feedback-field-heading small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.feedback-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  overflow: hidden;
  border: 1px dashed rgba(112, 178, 235, .5);
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(35, 136, 228, .055);
  cursor: pointer;
}

.feedback-upload-box:hover,
.feedback-upload-box:focus-within {
  border-color: #46a6ff;
  background: rgba(35, 136, 228, .1);
  box-shadow: 0 0 0 3px rgba(35, 136, 228, .08);
}

.feedback-file-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .001;
  cursor: pointer;
}

.feedback-upload-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(35, 136, 228, .17);
  color: #9cd2ff;
  font-size: 1.3rem;
  font-weight: 900;
}

.feedback-upload-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feedback-upload-copy strong {
  font-size: .86rem;
}

.feedback-upload-copy small {
  color: var(--muted);
  font-size: .72rem;
}

.feedback-upload-field.has-file .feedback-upload-box {
  display: none;
}

.feedback-upload-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  border: 1px solid rgba(70, 166, 255, .3);
  border-radius: 14px;
  padding: 7px 9px;
  background: rgba(35, 136, 228, .07);
}

.feedback-upload-preview.hidden {
  display: none;
}

.feedback-upload-preview img {
  width: 82px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
  background: #07101d;
}

.feedback-upload-preview-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feedback-upload-preview-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

.feedback-upload-preview-copy small {
  color: var(--muted);
  font-size: .7rem;
}

.feedback-upload-preview-actions {
  display: flex;
  gap: 6px;
}

.feedback-preview-replace,
.feedback-upload-preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .035);
  color: #dce8f7;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.feedback-preview-replace:hover,
.feedback-upload-preview-actions button:hover {
  border-color: rgba(70, 166, 255, .55);
}

.feedback-context-compact {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: .76rem;
}

.feedback-context-check {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(35, 136, 228, .14);
  color: #8dc8ff;
  font-size: .72rem;
  font-weight: 900;
}

.feedback-customer-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.feedback-customer-actions button {
  min-width: 124px;
}

@media (max-width: 640px) {
  .feedback-customer-sheet {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .feedback-customer-sheet .feedback-sheet-head {
    margin-bottom: 14px;
  }

  .feedback-customer-form {
    gap: 13px;
  }

  .feedback-type-options {
    gap: 6px;
  }

  .feedback-type-option {
    min-height: 44px;
    padding: 8px 7px;
    font-size: .86rem;
  }

  .feedback-message-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #feedbackContent {
    min-height: 122px;
    max-height: none;
  }

  .feedback-frank-jr {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 68px;
    padding: 2px 4px;
    text-align: left;
  }

  .feedback-frank-jr img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  .feedback-frank-jr-copy {
    display: grid;
    gap: 2px;
  }

  .feedback-upload-preview {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .feedback-upload-preview img {
    width: 70px;
    height: 46px;
  }

  .feedback-upload-preview-actions {
    grid-column: 1 / -1;
  }

  .feedback-upload-preview-actions > * {
    flex: 1;
  }

  .feedback-customer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feedback-customer-actions button {
    width: 100%;
    min-width: 0;
  }
}
