.speaker-dialog:not(.ingresso-dialog):not([open]) {
  display: none;
}

.speaker-dialog:not(.ingresso-dialog) {
  position: relative;
  isolation: isolate;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  width: min(94vw, 880px);
  max-width: 880px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: #1b123d;
  background:
    linear-gradient(108deg, transparent 0 32%, #ffffff 32.2% 100%),
    radial-gradient(circle at 18% 18%, rgba(40, 229, 238, .52), transparent 34%),
    linear-gradient(145deg, #23095f 0%, #09071a 56%, #05030f 100%);
  box-shadow: 0 28px 70px rgba(5, 3, 15, .54);
}

.speaker-dialog:not(.ingresso-dialog)[open] {
  position: fixed;
  inset: 0;
  animation: speaker-dialog-enter 260ms cubic-bezier(.16, 1, .3, 1);
}

.speaker-dialog:not(.ingresso-dialog)::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(82, 25, 214, .34), transparent 34%),
    rgba(3, 2, 10, .78);
  backdrop-filter: blur(5px);
}

.speaker-dialog:not(.ingresso-dialog)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 35%;
  background:
    radial-gradient(circle at 30% 20%, rgba(40, 229, 238, .36), transparent 31%),
    radial-gradient(circle at 72% 68%, rgba(244, 158, 18, .28), transparent 28%),
    linear-gradient(145deg, rgba(82, 25, 214, .98), rgba(11, 6, 35, .98) 62%, #05030f);
}

.speaker-dialog:not(.ingresso-dialog)::after {
  content: "Palestrante confirmado no 12º Encontro Brasileiro de Pilates.";
  position: absolute;
  left: clamp(22px, 4vw, 34px);
  bottom: clamp(24px, 4vw, 34px);
  z-index: 1;
  width: min(220px, calc(35% - 44px));
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__close {
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(27, 18, 61, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #1b123d;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(27, 18, 61, .12);
  transition:
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    background 180ms cubic-bezier(.16, 1, .3, 1),
    color 180ms cubic-bezier(.16, 1, .3, 1);
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__close:hover {
  background: #5219d6;
  color: #ffffff;
  transform: scale(1.04);
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__close:focus-visible {
  outline: 2px solid #28e5ee;
  outline-offset: 2px;
  background: rgba(255, 255, 255, .96);
  color: #5219d6;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__header {
  display: contents;
  padding: 0;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: center;
  width: clamp(148px, 17vw, 174px);
  height: clamp(148px, 17vw, 174px);
  margin-top: clamp(44px, 6vw, 58px);
  border: 5px solid #ffffff;
  outline: 1px solid rgba(255, 255, 255, .48);
  outline-offset: 6px;
  border-radius: 50%;
  background: #1b123d;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 34px rgba(5, 3, 15, .36);
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__header > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(38px, 5vw, 52px) clamp(38px, 5vw, 58px) 0;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__name {
  max-width: none;
  margin: 0;
  color: #5219d6;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075654;
  background: rgba(40, 229, 238, .16);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__country::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #02c9bc;
  box-shadow: 0 0 0 3px rgba(2, 201, 188, .16);
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 22px clamp(38px, 5vw, 58px) clamp(38px, 5vw, 52px);
  overflow: hidden;
  color: #2b2545;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.68;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body p::-webkit-scrollbar {
  width: 8px;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body p::-webkit-scrollbar-track {
  margin: 14px 0;
  background: transparent;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body p::-webkit-scrollbar-thumb {
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #5219d6;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body p::-webkit-scrollbar-thumb:hover {
  background: #6b45d9;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body p {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(82, 25, 214, .72) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  text-wrap: pretty;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-heading {
  flex: 0 0 auto;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0z'/%3E%3Cpath d='M22 10v6'/%3E%3Cpath d='M6 12.5V16a6 3 0 0 0 12 0v-3.5'/%3E%3C/svg%3E") center / 21px 21px no-repeat,
    linear-gradient(145deg, #5219d6 0%, #39109d 58%, #075654 100%);
  box-shadow: 0 6px 8px rgba(82, 25, 214, .2);
}

.speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-title {
  margin: 0;
  color: #5219d6;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

@keyframes speaker-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .speaker-dialog:not(.ingresso-dialog) {
    display: flex;
    flex-direction: column;
    width: min(calc(100vw - 24px), 430px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    background: #ffffff;
  }

  .speaker-dialog:not(.ingresso-dialog)::before {
    display: none;
  }

  .speaker-dialog:not(.ingresso-dialog)::after {
    display: none;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__header {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
    padding: 28px 24px 26px;
    border-radius: 16px 16px 0 0;
    background:
      radial-gradient(circle at 18% 12%, rgba(40, 229, 238, .38), transparent 31%),
      radial-gradient(circle at 82% 82%, rgba(244, 158, 18, .3), transparent 32%),
      linear-gradient(145deg, #5219d6 0%, #190843 58%, #080515 100%);
    text-align: center;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__photo {
    align-self: center;
    width: clamp(126px, 38vw, 142px);
    height: clamp(126px, 38vw, 142px);
    margin: 0;
    outline-offset: 5px;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__header > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 18px;
    padding: 0;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__name {
    max-width: 14ch;
    color: #ffffff;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.04;
    text-shadow: 0 2px 10px rgba(5, 3, 15, .28);
    white-space: normal;
    text-wrap: balance;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__country {
    margin-top: 12px;
    color: #075654;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(5, 3, 15, .16);
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 28px 24px 32px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-heading {
    margin-bottom: 18px;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__section-title {
    font-size: 17px;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .speaker-dialog:not(.ingresso-dialog) .speaker-dialog__close::before {
    content: "";
    position: absolute;
    inset: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaker-dialog:not(.ingresso-dialog)[open] {
    animation: none;
  }
}
