.swift-case-sheet-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 130 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: max(18px, env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom)) !important;
  background: rgba(3,5,8,0) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  pointer-events: none !important;
  transition: background 260ms ease, backdrop-filter 260ms ease, -webkit-backdrop-filter 260ms ease !important;
}

.swift-case-sheet-modal.open {
  pointer-events: auto !important;
  background: rgba(3,5,8,.50) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body:has(.swift-case-sheet-modal.open) .swift-page {
  touch-action: auto !important;
}

body:has(.swift-case-sheet-modal.open) .swift-phone-shell {
  pointer-events: none !important;
}

body:has(.swift-case-sheet-modal.open) .swift-case-sheet-modal {
  pointer-events: auto !important;
}

.swift-case-sheet {
  width: min(430px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 124px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(8,11,16,.985)) !important;
  border-radius: 28px 28px 24px 24px !important;
  padding: 14px 18px 18px !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05) !important;
  transform: translate3d(0, calc(100% + 110px), 0) scale(.985) !important;
  opacity: .98 !important;
  transition: transform 380ms cubic-bezier(.22,.9,.22,1), opacity 260ms ease !important;
  will-change: transform, opacity !important;
}

.swift-case-sheet button,
.swift-case-sheet a {
  touch-action: manipulation !important;
}

.swift-case-sheet::before {
  content: "" !important;
  display: block !important;
  width: 42px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.24) !important;
  margin: 0 auto 12px !important;
}

.swift-case-sheet-modal.open .swift-case-sheet {
  transform: translate3d(0,0,0) scale(1) !important;
  opacity: 1 !important;
}

.swift-case-sheet-top {
  position: sticky !important;
  top: -14px !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 -18px 12px !important;
  padding: 10px 18px 12px !important;
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.94) 72%, rgba(15,23,42,.72)) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
}

.swift-case-sheet-kicker {
  color: #ffb4b4 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

.swift-case-sheet h2 {
  margin: 0 !important;
  color: #fffaf4 !important;
  font-size: clamp(24px, 6.5vw, 36px) !important;
  line-height: .95 !important;
  font-weight: 950 !important;
  letter-spacing: -.06em !important;
}

.swift-case-sheet-close {
  flex: 0 0 auto !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
}

.swift-case-sheet-meta {
  color: rgba(255,255,255,.72) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  margin-bottom: 12px !important;
}

.swift-case-sheet-image {
  width: 100% !important;
  max-height: 360px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #050608 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 20px !important;
  margin: 12px 0 !important;
}

.swift-case-sheet-summary {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.045) !important;
  color: rgba(255,255,255,.80) !important;
  border-radius: 18px !important;
  padding: 12px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
  margin: 12px 0 !important;
}

.swift-case-sheet-warning {
  border: 1px solid rgba(239,68,68,.22) !important;
  background: rgba(239,68,68,.09) !important;
  color: rgba(255,225,225,.9) !important;
  border-radius: 17px !important;
  padding: 12px !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
  margin: 12px 0 !important;
}

.swift-case-sheet-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 9px !important;
  margin-top: 12px !important;
}

.swift-case-sheet-actions a,
.swift-case-sheet-actions button {
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 11px 12px !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
}

.swift-case-sheet-actions .primary {
  border: 0 !important;
  background: linear-gradient(180deg, #ff6b6b, #ef4444) !important;
  box-shadow: 0 16px 30px rgba(239,68,68,.22) !important;
}

.swift-case-sheet-actions .wide {
  grid-column: 1 / -1 !important;
}

.swift-case-sheet-actions .safe-caption {
  background: rgba(37,99,235,.22) !important;
  border-color: rgba(96,165,250,.28) !important;
}

.swift-flyer-actions {
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 430px) {
  .swift-case-sheet-modal {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .swift-case-sheet {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 760px) {
  .swift-case-sheet-modal {
    align-items: center !important;
    padding: max(18px, env(safe-area-inset-top)) 12px 16px !important;
  }

  .swift-case-sheet {
    max-height: min(680px, calc(100dvh - 80px)) !important;
    transform: translate3d(0,34px,0) scale(.965) !important;
  }

  .swift-case-sheet-modal.open .swift-case-sheet {
    transform: translate3d(0,0,0) scale(1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swift-case-sheet-modal,
  .swift-case-sheet {
    transition: none !important;
  }
}
