.ms-bubble-menu {
  --bm-cols: 3;
  --bm-gap: 4px;
  --bm-min-h: 160px;
  --bm-radius: 999px;
  --bm-font: 35px;
  --bm-hover: 1.06;
  --bm-pad: 24px;
  --bm-head: 28px;
  --bm-ink: #f4f4f5;
  --bm-muted: #a1a1aa;
  --bm-tone: #a78bfa;
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bm-bg, #0b0b0d);
  color: var(--bm-ink);
}
.ms-bubble-menu__head {
  flex-shrink: 0;
  text-align: center;
  padding: 1.1rem 1.25rem 0.55rem;
  max-width: 40rem;
  margin: 0 auto;
}
.ms-bubble-menu[data-head-align="left"] .ms-bubble-menu__head { text-align: left; margin-left: 1.5rem; margin-right: auto; }
.ms-bubble-menu[data-head-align="right"] .ms-bubble-menu__head { text-align: right; margin-right: 1.5rem; margin-left: auto; }
.ms-bubble-menu__head[hidden] { display: none; }
.ms-bubble-menu__title {
  font-size: var(--bm-head);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--bm-ink);
}
.ms-bubble-menu__intro {
  font-size: var(--bm-t-intro, 0.9rem);
  line-height: 1.5;
  color: var(--bm-muted);
  margin: 0.4rem 0 0;
}
.ms-bubble-menu__stage {
  position: relative;
  width: 100%;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ms-bubble-menu__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--bm-pad);
  display: flex;
  flex-wrap: wrap;
  gap: var(--bm-gap);
  width: min(1100px, 92%);
  max-width: 1100px;
  justify-content: center;
}
.ms-bubble-menu__col {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 0 0 calc((100% - (var(--bm-cols) - 1) * var(--bm-gap)) / var(--bm-cols));
  max-width: calc((100% - (var(--bm-cols) - 1) * var(--bm-gap)) / var(--bm-cols));
  box-sizing: border-box;
}
.ms-bubble-menu__pill {
  --item-rot: 0deg;
  width: 100%;
  height: var(--bm-min-h);
  min-height: var(--bm-min-h);
  padding: 0 1.1rem;
  font-size: var(--bm-font);
  font-weight: 400;
  line-height: 0;
  border: 0;
  border-radius: var(--bm-radius);
  background: var(--bm-tone, #fff);
  color: var(--bm-card-ink, #111);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}
.ms-bubble-menu__pill[role="button"],
a.ms-bubble-menu__pill { cursor: pointer; }
.ms-bubble-menu__label {
  display: inline-block;
  will-change: transform, opacity;
  height: 1.2em;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .ms-bubble-menu__pill { transform: rotate(var(--item-rot)); }
  .ms-bubble-menu__pill[role="button"]:hover,
  a.ms-bubble-menu__pill:hover {
    transform: rotate(var(--item-rot)) scale(var(--bm-hover));
    filter: brightness(1.08);
  }
  .ms-bubble-menu__pill[role="button"]:active,
  a.ms-bubble-menu__pill:active {
    transform: rotate(var(--item-rot)) scale(0.94);
  }
}
@media (max-width: 899px) {
  .ms-bubble-menu { --bm-pad: 16px; }
  .ms-bubble-menu__pill[role="button"]:hover,
  a.ms-bubble-menu__pill:hover {
    transform: scale(var(--bm-hover));
    filter: brightness(1.08);
  }
  .ms-bubble-menu__pill[role="button"]:active,
  a.ms-bubble-menu__pill:active { transform: scale(0.94); }
}
.ms-bubble-menu.is-reduced .ms-bubble-menu__pill,
.ms-bubble-menu.is-reduced .ms-bubble-menu__label { transition: none; }

.ms-bubble-menu__modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  overscroll-behavior: contain;
}
.ms-bubble-menu__modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__modal {
  padding: 2rem;
}
.ms-bubble-menu.is-pill[data-sb-place="outside"] .ms-bubble-menu__modal {
  padding: 2.25rem;
}
.ms-bubble-menu__shell {
  position: relative;
  display: block;
  width: min(640px, 100%);
  max-width: 100%;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__shell {
  width: min(880px, calc(100vw - 4.5rem));
  max-width: calc(100vw - 4.5rem);
  max-height: calc(100vh - 4.5rem);
  overflow: visible;
}
.ms-bubble-menu__sb {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 6;
  visibility: hidden;
}
.ms-bubble-menu__modal.is-open .ms-bubble-menu__sb.is-on {
  visibility: visible;
}
.ms-bubble-menu__sb-track {
  stroke: color-mix(in srgb, var(--bm-tone, #22d3ee) 38%, transparent);
  stroke-width: 3.2;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
}
.ms-bubble-menu__sb-thumb {
  fill: var(--bm-tone, #22d3ee);
  stroke: color-mix(in srgb, var(--bm-bg, #0b0b0d) 48%, transparent);
  stroke-width: 1.8;
  pointer-events: auto;
  cursor: grab;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__mbody {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__mbody::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ms-bubble-menu__back {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bm-tone, #a78bfa) 42%, #04040a);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ms-bubble-menu__modal.is-shown .ms-bubble-menu__back { opacity: 1; }
.ms-bubble-menu__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: var(--bm-modal-r, 28px);
  overflow: hidden;
  background: #f6f6f8;
  color: #18181b;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.28);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.ms-bubble-menu__modal.is-shown .ms-bubble-menu__panel { transform: none; opacity: 1; }
.ms-bubble-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #18181b;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  box-shadow: none;
  outline: none;
}
.ms-bubble-menu__close svg { width: 1.1rem; height: 1.1rem; }
.ms-bubble-menu__mhead {
  padding: 2.2rem 2.2rem 1.6rem;
  background: var(--bm-tone, #a78bfa);
  color: var(--bm-card-ink, #fff);
}
.ms-bubble-menu__kicker {
  font-size: var(--bm-t-mbadge, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 0.55rem;
}
.ms-bubble-menu__mhead h1,
.ms-bubble-menu__mhead h2,
.ms-bubble-menu__mhead h3,
.ms-bubble-menu__mhead h4,
.ms-bubble-menu__mhead h5,
.ms-bubble-menu__mhead h6 {
  font-size: var(--bm-t-mtitle, clamp(1.5rem, 4vw, 2rem));
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.ms-bubble-menu__msub { margin: 0.65rem 0 0; font-size: var(--bm-t-msub, 0.95rem); line-height: 1.5; opacity: 0.88; }
.ms-bubble-menu__mbody { padding: 1.6rem 2.2rem 2rem; overflow: auto; }
.ms-bubble-menu__copy p { font-size: var(--bm-t-mbody, 0.95rem); line-height: 1.6; color: #3f3f46; margin: 0 0 0.85rem; }
.ms-bubble-menu__bullets { list-style: none; display: grid; gap: 0.7rem; margin: 1rem 0 1.3rem; padding: 0; }
.ms-bubble-menu__bullets li { background: #fff; border-radius: 16px; padding: 0.85rem 1rem; }
.ms-bubble-menu__bullets strong { display: block; font-size: var(--bm-t-mtile-t, 0.9rem); margin-bottom: 0.2rem; }
.ms-bubble-menu__bullets span { font-size: var(--bm-t-mtile-d, 0.82rem); color: #71717a; line-height: 1.4; }
.ms-bubble-menu[data-m-text-align="center"] .ms-bubble-menu__mhead,
.ms-bubble-menu[data-m-text-align="center"] .ms-bubble-menu__copy,
.ms-bubble-menu[data-m-text-align="center"] .ms-bubble-menu__bullets { text-align: center; }
.ms-bubble-menu[data-m-text-align="right"] .ms-bubble-menu__mhead,
.ms-bubble-menu[data-m-text-align="right"] .ms-bubble-menu__copy,
.ms-bubble-menu[data-m-text-align="right"] .ms-bubble-menu__bullets { text-align: right; }
.ms-bubble-menu[data-m-button-align="center"] .ms-bubble-menu__cta { display: flex; width: fit-content; margin-inline: auto; }
.ms-bubble-menu[data-m-button-align="right"] .ms-bubble-menu__cta { display: flex; width: fit-content; margin-left: auto; }
.ms-bubble-menu__cta {
  display: inline-flex;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: var(--bm-t-mcta, 0.85rem);
  font-weight: 650;
  text-decoration: none;
  background: var(--bm-tone, #18181b);
  color: var(--bm-card-ink, #fff);
  border: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
}
.ms-bubble-menu__nav { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.ms-bubble-menu__nav button {
  flex: 1;
  border: 0;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: #18181b;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  margin: 0;
  box-shadow: none;
  outline: none;
}
.ms-bubble-menu__nav small { display: block; font-weight: 500; color: #71717a; font-size: var(--bm-t-mnav-l, 0.68rem); margin-bottom: 0.15rem; }
.ms-bubble-menu__nav span { font-size: var(--bm-t-mnav-n, 0.88rem); }
body.ms-bm-locked { overflow: hidden; }

@media (max-width: 640px) {
  .ms-bubble-menu__mhead { padding: 1.6rem 1.3rem 1.2rem; }
  .ms-bubble-menu__mbody { padding: 1.2rem 1.3rem 1.5rem; }
}

.ms-bubble-menu.is-pill .ms-bubble-menu__panel {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: min(70vh, calc(100vh - 4.5rem), 600px);
  border-radius: 999px;
  overflow: hidden;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__mhead,
.ms-bubble-menu.is-pill .ms-bubble-menu__mbody {
  text-align: center;
  padding-left: clamp(3.4rem, 11vw, 7.2rem);
  padding-right: clamp(3.4rem, 11vw, 7.2rem);
}
.ms-bubble-menu.is-pill .ms-bubble-menu__mhead {
  padding-top: clamp(1.8rem, 4vh, 2.6rem);
  padding-bottom: 1.15rem;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__mbody {
  padding-top: 1.15rem;
  padding-bottom: clamp(1.8rem, 4vh, 2.6rem);
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__copy,
.ms-bubble-menu.is-pill .ms-bubble-menu__bullets,
.ms-bubble-menu.is-pill .ms-bubble-menu__nav {
  width: 100%;
  max-width: 38rem;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__bullets li { text-align: center; }
.ms-bubble-menu.is-pill .ms-bubble-menu__cta {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.ms-bubble-menu.is-pill .ms-bubble-menu__close {
  top: 1.15rem;
  right: clamp(1.6rem, 6vw, 3.2rem);
}
.ms-bubble-menu.is-pill .ms-bubble-menu__nav button { text-align: center; }
@media (max-width: 759px) {
  .ms-bubble-menu.is-pill .ms-bubble-menu__modal,
  .ms-bubble-menu.is-pill[data-sb-place="outside"] .ms-bubble-menu__modal {
    padding: 1.5rem;
  }
  .ms-bubble-menu.is-pill .ms-bubble-menu__shell {
    width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 3rem);
  }
  .ms-bubble-menu.is-pill .ms-bubble-menu__panel {
    width: 100%;
    max-width: none;
    max-height: min(74vh, calc(100vh - 3rem), 680px);
    border-radius: 2.4rem;
  }
  .ms-bubble-menu.is-pill .ms-bubble-menu__mhead,
  .ms-bubble-menu.is-pill .ms-bubble-menu__mbody {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
  .ms-bubble-menu.is-pill .ms-bubble-menu__close { top: 0.85rem; right: 0.85rem; }
}
