.speaker-carousel {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);

  .speaker-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #232746;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(35, 39, 70, .18);
    transform: translateY(-50%);

    @media (max-width: 767px) {
      width: 40px;
      height: 40px;
    }

    &:before {
      content: "";
      width: 10px;
      height: 10px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
    }

    &.speaker-carousel-btn--prev {
      left: 24px;

      @media (max-width: 767px) {
        left: 6px;
      }

      &:before {
        transform: rotate(-135deg);
        margin-left: 4px;
      }
    }

    &.speaker-carousel-btn--next {
      right: 24px;

      @media (max-width: 767px) {
        right: 6px;
      }

      &:before {
        transform: rotate(45deg);
        margin-right: 4px;
      }
    }
  }

  .speaker-marquee {
    width: 100%;
    overflow: hidden;
    padding-block: 20px;
    margin-block: -20px;

    .speaker-row {
      width: 100%;
      overflow: visible;

      .speaker-track {
        display: flex;
        width: max-content;
        will-change: transform;
        animation-play-state: paused;

        .speaker-group {
          display: flex;
          flex-shrink: 0;
          align-items: stretch;
          gap: 28px;
          padding-right: 28px;

          @media (max-width: 767px) {
            gap: 12px;
            padding-right: 12px;
          }
        }
      }
    }

    .speaker-row + .speaker-row {
      margin-top: 28px;

      @media (max-width: 767px) {
        margin-top: 16px;
      }
    }

    .speaker-row--left {

      .speaker-track {
        animation: speaker-scroll-left  80s linear infinite;
      }
    }

    .speaker-row--right {

      .speaker-track {
        animation: speaker-scroll-right 80s linear infinite;
      }
    }
  }
}

#speakers.is-in-view .speaker-track {
  animation-play-state: running;
}

@keyframes speaker-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--speaker-distance, -50%));
  }
}

@keyframes speaker-scroll-right {
  from {
    transform: translateX(var(--speaker-right-from));
  }

  to {
    transform: translateX(var(--speaker-right-to));
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaker-track {
    animation: none !important;
    transform: none !important;
  }

  .speaker-row {
    overflow-x: auto;
  }
}

.speaker-loop-set {
  display: flex;
  flex-shrink: 0;
}

.speaker-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  width: 300px;
  background: var(--white, #ffffff);
  border-radius: var(--radius, 20px);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--line, #E7E8F5);
  cursor: pointer;

  &:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(90, 80, 180, 0.10);
  }

  &:focus-visible {
    outline: 3px solid var(--purple, #9b6bff);
    outline-offset: 3px;
  }

  @media (max-width: 767px) {
    flex: 0 0 44vw;
    width: 44vw;
  }
}



.speaker-photo {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .95);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 34px;
  overflow: hidden;
  flex-shrink: 0;
}
.speaker-photo.g1 { background: linear-gradient(135deg, #6D8CFF, #9B6BFF); }
.speaker-photo.g2 { background: linear-gradient(135deg, #9B6BFF, #FF7AC6); }
.speaker-photo.g3 { background: linear-gradient(135deg, #2FD1A8, #4E7CFF); }
.speaker-photo.g4 { background: linear-gradient(135deg, #FF8B6B, #FF7AC6); }

.speaker-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 18px 20px 22px;
  
  @media (max-width: 767px) {
    padding: 10px 10px 15px;
  }
}
.speaker-meta {
  display: block;
}
.speaker-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple, #9b6bff);
  background: rgba(155, 107, 255, .1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.speaker-name {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink, #232746);
  margin-bottom: 4px;
}
.speaker-role {
  font-size: 13px;
  color: var(--ink-soft, #5b5f7c);
  margin-bottom: var(--s-4);
  
  @media (min-width: 600px) {
    word-break: auto-phrase;
  }
  
  @media (max-width: 767px) {
    margin-bottom: var(--s-2);
    line-height: var(--b-s-line);
  }
}

.speaker-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /*background: rgba(35, 39, 70, .6);*/
  background-image: linear-gradient(rgba(35, 39, 70, 0.85), rgba(35, 39, 70, 0.85));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .25s ease,
    visibility .25s ease;
  overflow-x: hidden;

  @media (max-width: 767px) {
    padding: 16px;
  }
}

.speaker-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.speaker-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(35, 39, 70, .25);
  transform: translateY(18px) scale(.97);
  transition: transform .25s ease;

  @media (max-width: 767px) {
    width: 100%;
    max-height: 90vh;
  }
}

.speaker-modal-overlay.open .speaker-modal {
  transform: none;
}

.speaker-modal-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 36px;

  @media (max-width: 767px) {
    display: block;
    padding: 28px 20px;
  }
}

.speaker-modal-photo {
  width: 200px;
  height: 200px;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f5fa;

  @media (max-width: 767px) {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;

    @media (max-width: 767px) {
    }
  }
}

.speaker-modal-body {
  min-width: 0;
  padding: 0;
  text-align: left;

  @media (max-width: 767px) {
  }
}

.speaker-modal-name {
  margin: 0 44px 14px 0;
  color: var(--ink, #232746);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;

  @media (max-width: 767px) {
    margin-right: 34px;
    font-size: 20px;
  }
}

.speaker-modal-role {
  margin-bottom: 24px;
  color: var(--ink-soft, #5b5f7c);
  font-size: 13px;
  line-height: 1.7;

  p {
    margin: 0;
  }

  p + p {
    margin-top: 6px;
  }
}

.speaker-modal-description,
.speaker-modal-description p {
  color: var(--ink-soft, #5b5f7c);
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-line;

  @media (max-width: 767px) {
    font-size: 14px;
    line-height: 1.8;
  }
}

.profile-view-more {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  align-self: flex-end;
}

.profile-view-more::after {
  content: "＋";
}

.speaker-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;

  &:hover {
    background: rgba(0, 0, 0, .5);
  }
} 

.speaker-modal-role-item + .speaker-modal-role-item {
  margin-top: 12px;
}

.speaker-modal-company {
  margin: 0;
  font-weight: 700;
  color: var(--ink, #232746);
}

.speaker-modal-post {
  margin: 0 !important;
  color: var(--ink, #232746);
  line-height: 1.5;
  word-break: auto-phrase;
  font-size: 16px;
}

.speaker-modal-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  text-align: center;

  @media (max-width: 767px) {
    margin-top: 20px;
  }

  .speaker-modal-apply {
    min-width: 180px;
    min-height: 48px;

    @media (max-width: 767px) {
      width: 100%;
    }
  }
}

/* MODAL / DIALOG (GLOBAL) */
#dialogOverlay,
.dialog-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none;
  justify-content: center !important;
  align-items: safe center !important;
  padding: 40px 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  /*background: rgba(8, 11, 33, 0.75) !important;*/
  background-image: linear-gradient(rgba(35, 39, 70, 0.85), rgba(35, 39, 70, 0.85)) !important;
  background-clip: border-box !important;
  backdrop-filter: blur(6px) !important;
  box-sizing: border-box !important;
}

#dialogOverlay.open,
.dialog-overlay.open,
#dialogOverlay[style*="display: flex"],
.dialog-overlay[style*="display: flex"] {
  display: flex !important;
}

#dialogOverlay {

  &.open {
    opacity: 1;

    .dialog-content {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .speaker-modal-x {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dialogOverlay,
  #dialogOverlay .dialog-content {
    transition: none;
  }

  #dialogOverlay .dialog-content {
    transform: none;
  }
}

.dialog-content {
  position: relative !important;
  width: 100% !important;
  max-width: 990px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.dialog-close-row {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

.dialog-close {
  background-color: #f4f5f7 !important;
  background-image: linear-gradient(rgb(244, 245, 247), rgb(244, 245, 247)) !important;
  background-clip: border-box !important;
  border: none !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6b7280 !important;
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  z-index: 10;
}

.dialog-close:hover {
  background-color: #e5e7eb !important;
  color: #0b1f47 !important;
}

#dialogBox,
.dialog-box {
  position: relative !important;
  width: 100% !important;
  background-color: var(--white, #ffffff) !important;
  background-image: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) !important;
  background-clip: border-box !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(11, 31, 71, 0.2) !important;
  padding: 28px 32px !important;
  box-sizing: border-box !important;
  color: #0b1f47 !important;
  margin: 0 !important;
  border: none !important;
  margin-top: -16px !important;
  text-align: left;
  
  @media (max-width: 767px) {
    padding: 20px 24px !important;
  }
}

.modal-code {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--neutral-3);
  color: var(--neutral-11);
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.modal-date {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-date::before {
  content: "";
  width: 4px;
  height: .875em;
  margin-right: 4px;
  border-radius: 4px;
}

.modal-date.r1::before {
  background: var(--room1-grad);
}

.modal-date.r2::before {
  background: var(--room2-grad);
}

.modal-date.r3::before {
  background: var(--room3-grad);
}

.modal-date.r4::before {
  background: var(--room4-grad);
}

.modal-labels {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}

.modal-label {
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 2;
  color: #fff;
}

.modal-label.r1 {
  background: var(--room1-grad);
}

.modal-label.r2 {
  background: var(--room2-grad);
}

.modal-label.r3 {
  background: var(--room3-grad);
}

.modal-label.r4 {
  background: var(--room4-grad);
}

.modal-title {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  
  @media (max-width: 767px) {
    font-size: 20px;
  }
}

.modal-summary {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  white-space: pre-wrap;
}

.modal-presenters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
  margin-top: 40px;
}

.modal-presenter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0 24px;
  grid-template-rows: auto 1fr;
  
  @media (max-width: 767px) {
    gap: 0 10px;
  }
}

.modal-presenter-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins";
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}

.modal-presenter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-presenter-info {
  padding-top: 4px;
  min-width: 0;
  word-break: auto-phrase;
}

.modal-presenter-company {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 2px;
}

.modal-presenter-title {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 2px;
}

.modal-presenter-name {
  font-size: 14px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.45;
}

.modal-presenter-bio {
  margin: 0;
  grid-column: 1 / -1;
  align-self: start;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.modal-presenter-bio p,
.modal-presenter-bio span {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.modal-actions {
  margin-top: 32px;
  text-align: center;
  
  .modal-apply-note {
    margin-top: var(--s-5);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    word-break: auto-phrase;
  }

	.modal-view-link {
		display: block;
		width: fit-content;
		margin: 20px auto var(--s-4);
		color: var(--ink, #232746);
		font-size: 14px;
		font-weight: 600;
		text-align: center;
		text-decoration: underline;
		text-underline-offset: 4px;
		transition: .2s;

		&:hover {
			opacity: .7;
		}
}

.modal-apply {
  min-width: 180px;
  min-height: 48px;

  &:hover {
    box-shadow: 0 16px 34px rgba(90, 107, 255, .42);
  }
}

@media (max-width: 769px) {
  .modal-presenters {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 32px 0;
  }
  .modal-apply {
    width: 100%;
  }
}

  #speakerModalOverlay {
    scrollbar-gutter: stable;

    .session-lunch {
        margin-top: 10px;
    }
  }

  .speaker-form-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(650px, 100vw);
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    padding: 28px 32px;
    font-size: 14px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .4s ease,
      opacity .25s ease,
      visibility .4s ease;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);

      @media (max-width: 767px) {
        width: 100%;
      }

      .hs-form {
        gap: var(--s-3);

        label {
          font-size: var(--b-s);
        }
      }

      .hs-form-required:before {
        font-size: 11px;
        padding: 0 4px;
      }

      .hs-form-field {
        gap: var(--s-1);
      }

      .hs-form-booleancheckbox-display > span {
        font-size: var(--b-s);
      }

      input[type=text] {
        border-radius: var(--card-radii--small);
      }

      .search-form input[type=text],
      input[type=text],
      input[type=email],
      input[type=phone],
      input[type=tel],
      input[type=number],
      input[type=file],
      input[type=password],
      textarea,
      select {
        font-size: var(--b-s);
        padding: var(--s-1) var(--s-3);
      }

      .grecaptcha-badge,
      .grecaptcha-badge iframe {
        min-width: 290px;
      }

      input[type=submit] {
        margin-top: 1rem;
      }
  }

  #speakerModalOverlay.is-form-open {
    overflow-y: hidden !important;
  }

  #speakerModalOverlay.is-form-open > .speaker-form-drawer {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .speaker-form-drawer__close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.125rem;
  }