.oa-feedback-toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}

.oa-feedback-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 12, 20, 0.92);
  color: rgba(243, 247, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.oa-feedback-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.oa-feedback-toast.is-success {
  border-color: rgba(43, 196, 227, 0.35);
}

.oa-feedback-toast.is-error {
  border-color: rgba(255, 107, 129, 0.4);
}

.oa-feedback-toast.is-warning {
  border-color: rgba(255, 184, 77, 0.4);
}

.oa-feedback-toast__icon,
.oa-feedback-dialog__tone {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 18px;
}

.oa-feedback-toast.is-success .oa-feedback-toast__icon,
.oa-feedback-dialog__tone.is-success {
  background: rgba(43, 196, 227, 0.18);
  color: #6de6ff;
}

.oa-feedback-toast.is-error .oa-feedback-toast__icon,
.oa-feedback-dialog__tone.is-error {
  background: rgba(255, 107, 129, 0.18);
  color: #ff92a2;
}

.oa-feedback-toast.is-warning .oa-feedback-toast__icon,
.oa-feedback-dialog__tone.is-warning {
  background: rgba(255, 184, 77, 0.18);
  color: #ffd084;
}

.oa-feedback-toast__body {
  min-width: 0;
}

.oa-feedback-toast__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.oa-feedback-toast__message {
  font-size: 14px;
  line-height: 1.35;
}

.oa-feedback-toast__detail {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(243, 247, 255, 0.72);
  margin-top: 4px;
}

.oa-feedback-toast__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(243, 247, 255, 0.74);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 0 0;
}

.oa-feedback-global-loader,
.oa-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 120100;
}

.oa-feedback-global-loader__backdrop,
.oa-feedback-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.56);
  backdrop-filter: blur(10px);
}

.oa-feedback-global-loader__card {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 32px));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.94);
  color: rgba(243, 247, 255, 0.96);
  padding: 22px 20px;
  display: grid;
  justify-items: center;
  gap: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.oa-feedback-global-loader__text {
  font-size: 14px;
  font-weight: 600;
}

.oa-feedback-inline-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.oa-feedback-inline-loader[hidden] {
  display: none;
}

.oa-feedback-inline-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.48);
  border-radius: inherit;
  backdrop-filter: blur(6px);
}

.oa-feedback-inline-loader__content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.92);
  color: rgba(243, 247, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
}

.oa-feedback-spinner,
.oa-feedback-btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #6de6ff;
  animation: oa-feedback-spin 0.8s linear infinite;
}

.oa-feedback-btn-spinner {
  width: 16px;
  height: 16px;
}

.oa-feedback-dialog {
  display: grid;
  place-items: center;
  padding: 18px;
}

.oa-feedback-dialog[hidden] {
  display: none;
}

.oa-feedback-dialog__card {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 30px));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 24, 0.96);
  color: rgba(243, 247, 255, 0.96);
  padding: 22px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.oa-feedback-dialog__title {
  margin: 14px 0 6px;
  font-size: 18px;
}

.oa-feedback-dialog__message,
.oa-feedback-dialog__detail {
  margin: 0;
  line-height: 1.45;
}

.oa-feedback-dialog__detail {
  margin-top: 6px;
  color: rgba(243, 247, 255, 0.7);
  font-size: 13px;
}

.oa-feedback-dialog__prompt {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.oa-feedback-dialog__prompt-label {
  font-size: 13px;
  font-weight: 700;
}

.oa-feedback-dialog__input {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 247, 255, 0.96);
  padding: 0 14px;
  font: inherit;
  box-sizing: border-box;
}

.oa-feedback-dialog__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.oa-feedback-dialog__btn {
  appearance: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 247, 255, 0.96);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.oa-feedback-dialog__btn--primary {
  background: rgba(43, 196, 227, 0.18);
  border-color: rgba(43, 196, 227, 0.34);
}

.oa-feedback-dialog__btn--primary.is-error,
.oa-feedback-dialog__btn--primary.is-warning {
  background: rgba(255, 107, 129, 0.16);
  border-color: rgba(255, 107, 129, 0.3);
}

.is-loading {
  opacity: 0.88;
}

@keyframes oa-feedback-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .oa-feedback-toast-host {
    left: 12px;
    right: 12px;
    width: auto;
  }
}
