* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0b0f1a;
  color: #fff;
}

.scroller {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.panel {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: local;
}

.toolbar {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(15, 18, 28, 0.45);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 20;
}

.toolbar__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toolbar__btn svg {
  flex: none;
}

.toolbar__btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.toolbar__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.toolbar__btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0f1a;
}

.toolbar__divider {
  width: 1px;
  align-self: stretch;
  margin: 0.3rem 0.15rem;
  background: rgba(255, 255, 255, 0.18);
}

.toolbar__more {
  padding: 0.4rem 0.55rem;
}

.toolbar__more[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.toolbar__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(15, 18, 28, 0.85);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 25;
}

.toolbar__menu[hidden] {
  display: none;
}

.toolbar__menu-item {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}

.toolbar__menu-item:hover,
.toolbar__menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.panel__content {
  text-align: center;
  padding: 2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.panel__content h1 {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.panel__content p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.8;
}

.dots {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot.is-active {
  background: #fff;
  transform: scale(1.3);
}


.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  width: 126px;
  height: 126px;
  margin-left: -63px;
  margin-top: -63px;
  border-radius: 100%;
  position: absolute;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Roboto Condensed';
  font-weight: 700;
  background: radial-gradient(circle at bottom, #81e8f6, #76deef 10%, #055194 80%, #062745 100%);
  }

.ball.bubble {
  color: #16324a;
  text-shadow: none;
}

.ball.bubble.has-picture {
  /* Higher specificity than the plain .ball.bubble rule further down (which
     sets a full `background:` shorthand for the idle radial-gradient look
     and, at equal specificity, would win by source order and silently reset
     these background-* longhands back to their initial values). */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6);
}

.ball.is-dragging {
  z-index: 30;
  cursor: grabbing;
  filter: brightness(1.15);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.ball.is-hidden {
  display: none;
}

.ball.bubble.is-bouncing {
  /* Higher specificity than .ball.bubble's own infinite idle wobble
     (bubble-anim, further down), so the bounce actually wins the cascade
     and briefly takes over the animation property instead of being
     silently overridden by it. */
  animation: bubble-ease-out-bounce 0.55s linear;
}

@keyframes bubble-ease-out-bounce {
  0%    { transform: scale(0); }
  20%   { transform: scale(0.3); }
  36%   { transform: scale(1); }
  41%   { transform: scale(0.9); }
  55%   { transform: scale(0.75); }
  61%   { transform: scale(0.8); }
  73%   { transform: scale(1); }
  82%   { transform: scale(0.94); }
  92%   { transform: scale(1); }
  96%   { transform: scale(0.985); }
  100%  { transform: scale(1); }
}

.ball.bubble.is-tapped {
  /* Same specificity trick as is-bouncing above - needs to outrank
     .ball.bubble's own infinite idle wobble to actually play. A quick
     squash-and-overshoot tap acknowledgement, distinct from the pop-in
     bounce (which grows from scale(0) and is only for new/revealed bubbles). */
  animation: bubble-tap-jiggle 0.28s ease-out;
}

@keyframes bubble-tap-jiggle {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.88); }
  60%  { transform: scale(1.08); }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/*
 * Bubble pop 
 */

.ball.bubble.is-clearing {
  /* Same specificity trick as is-bouncing/is-tapped above - needs to
     outrank .ball.bubble's own infinite idle wobble to actually play.
     forwards keeps the bubble at its popped-away state (scale 0, faded)
     instead of snapping back to normal for one frame before is-hidden
     (display: none) gets applied once this animation ends. */
  animation: bubble-float-pop 0.25s ease-out;
}

@keyframes bubble-float-pop {
  0%   { transform: translateY(-40px); }
  60%  { transform: translateY(-180px) scale(1.4); }
  100% { transform: translateY(-720px) scale(0); opacity: 0; }
}

@keyframes bubble-float-pop-2 {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.78); }
  60%  { transform: scale(1.05); }
  80%  { transform: scale(0.86); }
  100% { transform: scale(0.96); }
}

@keyframes bubble-float-pop-1 {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  25%  { transform: translateY(-28px) scale(1.05); opacity: 1; }
  50%  { transform: translateY(-88px) scale(1.25); opacity: 0.9; }
  75%  { transform: translateY(-166px) scale(1.50); opacity: 0.6; }
  100% { transform: translateY(-282px) scale(0); opacity: 0; }
}

.ball.is-focused {
  /* The most recently tapped bubble and its direct children (the only ones
     is-focused is ever applied to - see updateBubbleVisibility) stay above
     every other bubble in the panel, so an overlapping sibling cluster can
     never cover or steal taps from the active one. */
  z-index: 20;
}

.ball[data-parent-id] {
  filter: blur(3px);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.ball[data-parent-id].is-dragging {
  filter: brightness(1.15) blur(3px);
  opacity: 0.65;
}

.ball[data-parent-id].is-focused {
  filter: none;
  opacity: 1;
}

.ball[data-parent-id].is-focused.is-dragging {
  filter: brightness(1.15);
  opacity: 1;
}
  .ball:before {
    content: "";
    position: absolute;
    top: 1%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 100%;
    background: radial-gradient(circle at top, white, rgba(255, 255, 255, 0) 58%);
    -webkit-filter: blur(5px);
    filter: blur(5px);
    z-index: 2; }
  .ball:after {
    position: absolute;
    display: none;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 100%;
    -webkit-filter: blur(1px);
    filter: blur(1px);
    z-index: 2;
    -webkit-transform: rotateZ(-30deg);
    transform: rotateZ(-30deg); 
  }
  .ball .shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 50%);
    -webkit-transform: rotateX(90deg) translateZ(-160px);
    transform: rotateX(90deg) translateZ(-160px);
    z-index: 1; 
  }
  .ball.plain {
    background: black; 
  } 
  .ball.plain:before, .ball.plain:after {
      display: none; 
  }
  .ball.bubble {
    background: radial-gradient(circle at 50% 55%, rgba(240, 245, 255, 0.9), rgba(240, 245, 255, 0.9) 40%, rgba(225, 238, 255, 0.8) 60%, rgba(43, 130, 255, 0.4));
    -webkit-animation: bubble-anim 2s ease-out infinite;
    animation: bubble-anim 2s ease-out infinite; 
  }
  .ball.bubble:before {
      -webkit-filter: blur(0);
      filter: blur(0);
      height: 80%;
      width: 40%;
      background: radial-gradient(circle at 130% 130%, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.8) 58%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
      -webkit-transform: translateX(131%) translateY(58%) rotateZ(168deg) rotateX(10deg);
      transform: translateX(131%) translateY(58%) rotateZ(168deg) rotateX(10deg); 
  }
  .ball.bubble:after {
      display: flex;
      background: radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 74%, white 80%, white 84%, rgba(255, 255, 255, 0) 100%); 
  }

@-webkit-keyframes bubble-anim {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1); }

  20% {
    -webkit-transform: scaleY(0.95) scaleX(1.05);
    transform: scaleY(0.97) scaleX(1.03); }

  48% {
    -webkit-transform: scaleY(1.1) scaleX(0.9);
    transform: scaleY(1.05) scaleX(0.95); }

  68% {
    -webkit-transform: scaleY(0.98) scaleX(1.02);
    transform: scaleY(0.99) scaleX(1.01); }

  80% {
    -webkit-transform: scaleY(1.02) scaleX(0.98);
    transform: scaleY(1.01) scaleX(0.99); }

  97%, 100% {
    -webkit-transform: scale(1);
    transform: scale(1); } }

@keyframes bubble-anim {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1); }

  20% {
    -webkit-transform: scaleY(0.97) scaleX(1.02);
    transform: scaleY(0.97) scaleX(1.02); }

  48% {
    -webkit-transform: scaleY(1.1) scaleX(0.9);
    transform: scaleY(1.05) scaleX(0.95); }

  68% {
    -webkit-transform: scaleY(0.98) scaleX(1.02);
    transform: scaleY(0.99) scaleX(1.01); }

  80% {
    -webkit-transform: scaleY(1.02) scaleX(0.98);
    transform: scaleY(1.01) scaleX(0.99); }

  97%, 100% {
    -webkit-transform: scale(1);
    transform: scale(1); } 
}




@media (prefers-reduced-motion: reduce) {
  .scroller {
    scroll-behavior: auto;
  }

  .ball.is-bouncing,
  .ball.is-tapped {
    animation: none;
  }
}

.modal-backdrop {
  position: fixed;
  top: var(--vv-offset-top, 0px);
  left: 0;
  right: 0;
  height: var(--vv-height, 100vh);
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1.5rem max(1.5rem, 8vh) 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(360px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem;
  border-radius: 16px;
  background: #161a26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.modal--edit-bubble {
  /* The base .modal width (360px, ~320px content) is narrower than a native
     <audio controls> element's default rendered width (300px) once the
     Clear button and its gap are added alongside it - the audio preview row
     was overflowing the modal's right edge. 460px covers that plus the
     longest observed translated "Clear" label with margin to spare. */
  width: min(460px, 95vw);
}

.modal--settings {
  /* The base .modal width (360px) is too tight for the Bubble Set tab's
     rows (select circle + name input + Delete button): the name input was
     bottoming out at its minimum width and shouldering the Delete button
     past the modal's edge. 440px gives that row enough breathing room. */
  width: min(440px, 95vw);
}

.modal--video {
  width: min(560px, 92vw);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: width 0.2s ease, height 0.2s ease;
}

.modal--video.is-large {
  /* Edge to edge with a slight margin buffer, in both dimensions - a plain
     size, no JS measuring involved. 100% fills the backdrop's own padding
     exactly (its existing 1.5rem buffer), rather than guessing a vw value
     that the flex layout would just shrink back down to that same padding
     anyway. Always bigger than the normal 92vw/560px cap, so this remains a
     noticeable jump in portrait too, where normal already uses most width. */
  width: min(100%, 1600px);
  height: 86vh;
  max-height: 86vh;
}

.modal--video video,
.modal--video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  background: #000;
}

.modal--video.is-large video,
.modal--video.is-large iframe {
  /* Let the box fill the enlarged modal instead of staying locked to 16:9 -
     content still respects its own aspect ratio via object-fit, so portrait
     video/YouTube frames can actually use the extra vertical room. */
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  height: 100%;
  object-fit: contain;
}

.modal__video-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.modal__video-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  background: #000;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1rem;
}

.modal__video-offline[hidden] {
  display: none;
}

.modal__video-offline p {
  margin: 0;
  font-size: 0.8rem;
  max-width: 220px;
}

.modal__preview .modal__video-offline {
  flex: 1;
  min-width: 0;
  height: 140px;
}

.modal--video .modal__video-offline {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.modal--video.is-large .modal__video-offline {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.modal__btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.modal__btn--icon svg {
  transition: transform 0.2s ease;
}

.modal__btn--icon[aria-pressed="true"] svg {
  transform: rotate(180deg);
}

.modal__label-spaced {
  margin-top: 0.9rem;
}

.modal__link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
  margin-bottom: 0.6rem;
}

.modal__link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.modal__link:hover {
  color: #fff;
}

.modal__hint {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.4;
}

.modal__bubble-sets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal__bubble-set-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal__bubble-set-select {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.modal__bubble-set-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal__bubble-set-select[aria-pressed="true"] {
  border-color: #fff;
  background: #fff;
  color: #0b0f1a;
}

.modal__bubble-sets input[type="text"].modal__bubble-set-name {
  /* Out-specifies .modal input[type="text"] { width: 100% } so this can
     shrink to fit next to the select/delete buttons in the row. */
  flex: 1;
  min-width: 0;
  width: auto;
}

.modal__bubble-set-delete {
  flex: none;
}

.modal__about-description {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.modal__about-extra {
  margin-top: 1.25rem;
  padding-top: 1rem;
  min-height: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.modal__actions-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.modal__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.modal__tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal__tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0f1a;
}

.modal__tabpanels {
  display: grid;
  margin-top: 0.9rem;
}

.modal__tabpanel {
  grid-area: 1 / 1;
  /* Hidden panels stay in flow (visibility: hidden, not display: none) so
     switching tabs doesn't jump the modal's height. That means every panel's
     content, including the ones not currently shown, feeds into the grid
     column's auto-sizing - without min-width: 0 the widest panel could grow
     the column (and the whole modal) past its intended width instead of
     letting its own children shrink to fit. */
  min-width: 0;
}

.modal__tabpanel[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.modal__media {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.modal__media-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal__btn--record {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal__btn--record:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal__btn--record.is-recording {
  background: #ff4d4d;
}

.modal__btn--record:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal__preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal__preview[hidden] {
  display: none;
}

.modal__preview audio {
  flex: 1;
  min-width: 0;
  height: 32px;
}

.modal__preview video {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  border-radius: 8px;
  background: #000;
}

.modal__preview img {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.modal__preview iframe {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 140px;
  border: none;
  border-radius: 8px;
  background: #000;
}

.modal__btn--small {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  flex: none;
}

.modal__attach {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal__btn--attach {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0.3rem;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal__btn--attach:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.modal label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="password"]:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.modal select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal select:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.modal select option {
  background: #161a26;
  color: #fff;
}

.modal__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  border-bottom: 1px solid #424141;
}

.nobottomborder {
  border-bottom: none;
}

.modal__toggle-row span {
  font-size: 0.9rem;
}

.modal__switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 44px;
  height: 26px;
}

.modal__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal__switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__switch-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal__switch input:checked + .modal__switch-track {
  background: #fff;
}

.modal__switch input:checked + .modal__switch-track::before {
  background: #0b0f1a;
  transform: translateX(18px);
}

.modal__switch input:focus-visible + .modal__switch-track {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.modal__actions-right {
  display: flex;
  gap: 0.5rem;
}

.modal__btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.modal__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.modal__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal__btn--ghost.modal__btn--full {
  display: flex;
  width: 100%;
  justify-content: center;
}

.modal__btn--ghost.modal__btn--full[hidden] {
  display: none;
}

.modal__btn--primary {
  background: #fff;
  color: #0b0f1a;
}

.modal__btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.modal__btn--danger {
  background: transparent;
  color: #ff6b6b;
}

.modal__btn--danger:hover {
  background: rgba(255, 107, 107, 0.12);
}
