.ode-profile-avatar-v1-anchor {
  position: relative !important;
  cursor: pointer !important;
  isolation: isolate;
  outline: none;
}

.ode-profile-avatar-v1-anchor:focus-visible {
  box-shadow: 0 0 0 2px rgba(237, 198, 116, .95), 0 0 0 5px rgba(111, 65, 139, .45) !important;
}

.ode-profile-avatar-v1-image {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  z-index: 8;
  pointer-events: none;
  background: #100b18;
}

.ode-profile-avatar-v1-edit {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 10;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(239, 193, 97, .75);
  background: #21142e;
  color: #f4d99c;
  font: 700 12px/1 Georgia, serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: transform .16s ease, background .16s ease;
}

.ode-profile-avatar-v1-anchor:hover .ode-profile-avatar-v1-edit,
.ode-profile-avatar-v1-anchor:focus-visible .ode-profile-avatar-v1-edit {
  transform: scale(1.08);
  background: #342040;
}

html.ode-profile-avatar-v1-open {
  overflow: hidden;
}

.ode-profile-avatar-v1-modal[hidden] {
  display: none !important;
}

.ode-profile-avatar-v1-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ode-profile-avatar-v1-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, .82);
  backdrop-filter: blur(7px);
}

.ode-profile-avatar-v1-card {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid rgba(200, 151, 73, .52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(103, 54, 129, .19), transparent 42%),
    linear-gradient(180deg, #1d1526, #110d17 82%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .64);
  color: #eee5f2;
  font-family: inherit;
}

.ode-profile-avatar-v1-card h2 {
  margin: 2px 0 8px;
  color: #f1d49a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
}

.ode-profile-avatar-v1-kicker {
  color: #d5a95e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.ode-profile-avatar-v1-copy {
  margin: 0 0 20px;
  color: #c8bcd0;
  line-height: 1.5;
  font-size: 14px;
}

.ode-profile-avatar-v1-x {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(159, 118, 178, .35);
  border-radius: 9px;
  background: #24162f;
  color: #eee5f2;
  font-size: 22px;
  cursor: pointer;
}

.ode-profile-avatar-v1-preview {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #c59045;
  background: radial-gradient(circle, #342040, #0e0a13 72%);
  box-shadow: 0 0 0 5px rgba(198, 145, 64, .08), 0 18px 42px rgba(0, 0, 0, .45);
}

.ode-profile-avatar-v1-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.ode-profile-avatar-v1-preview img[hidden] {
  display: none;
}

.ode-profile-avatar-v1-default {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f1d49a;
  font-size: 58px;
}

.ode-profile-avatar-v1-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ode-profile-avatar-v1-actions-secondary {
  justify-content: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(150, 116, 161, .22);
}

.ode-profile-avatar-v1-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(145, 102, 164, .48);
  background: #281733;
  color: #f0e7f3;
  font: 700 14px/1 inherit;
  cursor: pointer;
}

.ode-profile-avatar-v1-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.ode-profile-avatar-v1-btn.is-primary {
  border-color: #c69245;
  background: linear-gradient(180deg, #a87225, #78501c);
  color: #fff4d8;
}

.ode-profile-avatar-v1-btn.is-danger {
  border-color: rgba(180, 92, 103, .55);
  color: #efcbd0;
}

.ode-profile-avatar-v1-btn:disabled {
  opacity: .46;
  cursor: default;
}

.ode-profile-avatar-v1-status {
  min-height: 20px;
  margin-top: 12px;
  color: #b8dfc2;
  text-align: center;
  font-size: 13px;
}

.ode-profile-avatar-v1-status.is-error {
  color: #efb1b9;
}

.ode-profile-avatar-v1-toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2147483200;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.ode-profile-avatar-v1-toast {
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(153, 196, 160, .45);
  background: #152019;
  color: #d9f0dc;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
  transform: translateY(-8px);
  opacity: 0;
  transition: .2s ease;
  font-size: 13px;
}

.ode-profile-avatar-v1-toast.is-error {
  border-color: rgba(206, 112, 123, .5);
  background: #261416;
  color: #f3d0d4;
}

.ode-profile-avatar-v1-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 560px) {
  .ode-profile-avatar-v1-card {
    padding: 22px 18px 18px;
  }

  .ode-profile-avatar-v1-card h2 {
    font-size: 26px;
  }

  .ode-profile-avatar-v1-preview {
    width: 148px;
    height: 148px;
  }

  .ode-profile-avatar-v1-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ode-profile-avatar-v1-btn {
    width: 100%;
  }
}