body.landing-page .swal2-popup.swal2-language-modal,
body.site-shell .swal2-popup.swal2-language-modal {
  width: min(92vw, 560px) !important;
  padding: 1.6rem 1.35rem 1.15rem !important;
  border: 1px solid rgba(184, 194, 225, .24) !important;
  border-radius: 24px !important;
  background: #111728 !important;
  color: #f7f8ff !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .56) !important;
}

body.landing-page .swal2-popup.swal2-language-modal .swal2-title,
body.site-shell .swal2-popup.swal2-language-modal .swal2-title {
  margin: 0 0 .9rem !important;
  color: #f7f8ff !important;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
}

body.landing-page .swal2-popup.swal2-language-modal .swal2-actions,
body.site-shell .swal2-popup.swal2-language-modal .swal2-actions {
  margin-top: 1rem !important;
}

/* The language sheet must cover the landing composer and mobile dock. */
@media (max-width: 768px) {
  body.site-shell .swal2-container {
    z-index: 5000 !important;
  }
}

body.landing-page .swal2-language-grid,
body.site-shell .swal2-language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
  text-align: center;
  margin: .65rem 0 .25rem;
}

body.landing-page .swal2-popup .swal2-flag,
body.site-shell .swal2-popup .swal2-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: .4rem;
  padding: .7rem .35rem;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}

body.landing-page .swal2-flag img,
body.site-shell .swal2-flag img {
  width: 40px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
}

body.landing-page .swal2-flag div,
body.site-shell .swal2-flag div {
  margin-top: 0.25rem;
  overflow: hidden;
  max-width: 100%;
  font-size: .76rem;
  color: #b8bfd4 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

body.landing-page .swal2-popup .swal2-flag:hover,
body.site-shell .swal2-popup .swal2-flag:hover {
  border-color: rgba(184, 194, 225, .24);
  background: rgba(255, 255, 255, .05);
}

body.landing-page .swal2-popup .swal2-flag:hover div,
body.site-shell .swal2-popup .swal2-flag:hover div {
  color: #fff !important;
}

body.landing-page .swal2-popup .btn.btn-primary,
body.site-shell .swal2-popup .btn.btn-primary {
  min-width: 132px;
  min-height: 46px;
  background: linear-gradient(135deg, #6d5dfc 0%, #d453c6 100%);
  color: #fff;
  border: 0;
  padding: .7rem 1.35rem;
  border-radius: 13px;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(109, 93, 252, .26);
}

body.landing-page .swal2-popup .btn.btn-primary:hover,
body.landing-page .swal2-popup .btn.btn-primary:focus-visible,
body.site-shell .swal2-popup .btn.btn-primary:hover,
body.site-shell .swal2-popup .btn.btn-primary:focus-visible {
  filter: brightness(1.05);
}

body.landing-page .language-link {
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.8;
  box-shadow: none;
}

body.landing-page .language-link i {
  font-size: 1.15rem;
}

body.landing-page .language-link:hover,
body.landing-page .language-link:focus-visible {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

body.landing-page .site-footer {
  color: var(--color-text-on-dark, #f4f4f4);
  margin-top: auto;
  width: 100%;
  background: none;
  padding: 1rem calc(2rem + 5px);
  left: 0;
  font-size: 0.9rem;
}

body.landing-page .site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
}

body.landing-page .site-footer .footer-copy {
  grid-column: 1 / 2;
  justify-self: start;
  color: var(--light-grey, #c8c8c8);
  font-size: 0.9rem;
}

body.landing-page .site-footer .social-icons {
  grid-column: 2 / 3;
  justify-self: center;
  margin: 0;
  padding-left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

body.landing-page .site-footer .footer-links {
  grid-column: 3 / 4;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.1rem;
  max-width: 100%;
  box-sizing: border-box;
}

body.landing-page .site-footer .footer-links a {
  margin: 0 4px;
}

body.landing-page .site-footer .social-icons img {
  height: 30px;
}

/* ==========================================================================
   SHARED MOBILE FOOTER NAV
   Used by marketing, auth, and application pages. Page-specific docks should
   change their items through _mobile_footer.html, not by replacing these rules.
   ========================================================================== */
:root {
  /* Mobile browsers and iOS need the browser-provided safe-area inset. Android
     WebView receives that same system-bar space from its native root container,
     so android.css intentionally resets this token to avoid counting it twice. */
  --mobile-web-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-footer-height, var(--mobile-bottom-nav-height, 60px)) + var(--mobile-web-safe-area-bottom));
  min-height: 0;
  padding: 4px 16px calc(4px + var(--mobile-web-safe-area-bottom));
  background: #161f2d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
  z-index: 1200;
}

.mobile-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  height: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.mobile-footer-custom {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.mobile-footer.has-custom-content .mobile-footer-nav { display: none; }
.mobile-footer.has-custom-content .mobile-footer-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0;
}
.mobile-footer.has-custom-content {
  --mobile-footer-height: var(--mobile-bottom-action-height, 64px);
  height: calc(var(--mobile-footer-height) + var(--mobile-web-safe-area-bottom));
  padding: 6px 16px calc(6px + var(--mobile-web-safe-area-bottom));
}
.mobile-footer-custom .mobile-footer-portalized {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
[data-mobile-footer-portal].mobile-footer-source-hidden { display: none !important; }
.mobile-footer-custom .btn,
.mobile-footer-custom .btn-pill,
.mobile-footer-custom .owner-toolbar { width: 100%; }
.mobile-footer-custom .btn,
.mobile-footer-custom .btn-pill {
  width: 100%;
  max-width: none;
  min-height: 52px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}
.mobile-footer-custom .owner-toolbar { justify-content: space-between; }

.mobile-footer-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
  min-width: 0;
}
.mobile-footer-btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.mobile-footer-btn i { pointer-events: none; }
.mobile-footer.is-navigating .mobile-footer-btn[href] { pointer-events: none; }
html:not(.android-webview):not(.ios-webview) body.vs-footer-navigating::before {
  content: '';
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 35%;
  height: 2px;
  pointer-events: none;
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, .75);
  animation: vs-navigation-progress 1.25s ease-in-out infinite;
}
@keyframes vs-navigation-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}
.vs-feed-skeletons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.vs-feed-skeleton {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: linear-gradient(100deg, #20232d 20%, #303542 40%, #20232d 60%);
  background-size: 200% 100%;
  animation: vs-feed-shimmer 1.4s linear infinite;
}
@keyframes vs-feed-shimmer { to { background-position-x: -200%; } }
.home-following-card--skeleton { pointer-events: none; }
.home-following-card--skeleton .home-following-avatar,
.home-following-card--skeleton .home-following-username {
  background: linear-gradient(100deg, #20232d 20%, #303542 40%, #20232d 60%);
  background-size: 200% 100%;
  animation: vs-feed-shimmer 1.4s linear infinite;
}
.home-following-card--skeleton .home-following-username { width: 58px; height: 12px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .vs-feed-skeleton, .home-following-card--skeleton .home-following-avatar,
  .home-following-card--skeleton .home-following-username { animation: none; }
}

/* Shared mobile pull-to-refresh indicator for the redesigned content feeds. */
.pull-to-refresh {
  position: fixed;
  z-index: 4505;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: 50%;
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -72px);
  transition: transform .2s cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.pull-to-refresh.pulling {
  transition: none;
}

.pull-to-refresh-inner {
  display: grid;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(22, 24, 35, .92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
  padding: 0;
  opacity: max(.18, var(--pull-progress, 0));
  transform: scale(calc(.72 + var(--pull-progress, 0) * .28));
}

.pull-to-refresh-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .26);
  border-top-color: var(--vz-cyan, #67e8f9);
  border-radius: 50%;
  opacity: 1;
  animation: pull-refresh-spin .9s linear infinite;
}

.pull-to-refresh:not(.pulling):not(.refreshing) .pull-to-refresh-spinner {
  animation-play-state: paused;
}

.pull-to-refresh.ready .pull-to-refresh-inner {
  border-color: rgba(103, 232, 249, .7);
}

.pull-to-refresh.refreshing .pull-to-refresh-inner {
  opacity: 1;
  transform: scale(1);
}

@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .pull-to-refresh { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pull-to-refresh,
  .pull-to-refresh.pulling {
    transition: none;
  }

  .pull-to-refresh-spinner { animation-duration: 1.8s; }
}
.mobile-footer-btn.is-navigation-pending {
  color: #bba7ff;
  background: rgba(139, 92, 246, 0.16);
}
.mobile-footer-btn.is-navigation-pending .mobile-footer-btn-label { color: #f5f3ff; }
.mobile-footer-btn.is-navigation-loading .mobile-footer-btn-icon i { opacity: 0; }
.mobile-footer-btn.is-navigation-loading .mobile-footer-btn-icon::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(187, 167, 255, 0.34);
  border-top-color: #bba7ff;
  border-radius: 50%;
  animation: mobile-footer-navigation-spin 0.72s linear infinite;
}
@keyframes mobile-footer-navigation-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-footer-btn.is-navigation-loading .mobile-footer-btn-icon::after {
    animation-duration: 1.4s;
  }
}
.mobile-footer-btn-label {
  margin-top: 2px;
  width: 100%;
  max-width: 64px;
  font-size: 0.63rem;
  line-height: 1.1;
  font-weight: 600;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-footer-btn.active {
  color: var(--medium-blue);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-footer-btn.active .mobile-footer-btn-label { color: var(--light-grey); }

/* Keep every logged-out dock visually identical. This intentionally does not
   style logged-in navigation, whose selected-state treatment is separate. */
.mobile-footer--logged-out .mobile-footer-btn.active {
  color: #bba7ff;
  background: rgba(139, 92, 246, 0.16);
}
.mobile-footer--logged-out .mobile-footer-btn.active .mobile-footer-btn-label {
  color: #f5f3ff;
}
.mobile-footer--logged-out .mobile-footer-btn { color: #f5f7ff; }
.mobile-footer--logged-out .mobile-footer-btn-label { color: #7f89a4; }
.mobile-footer-btn:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.1);
}
.mobile-footer-btn[data-footer-key="create"] {
  justify-self: center;
  align-self: center;
}
.mobile-footer-btn[data-footer-key="create"] .mobile-footer-btn-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 0;
}
.mobile-footer-btn[data-footer-key="create"] i {
  font-size: inherit;
  font-weight: 900;
}
.mobile-footer-btn.mobile-footer-btn--stop {
  justify-self: center;
  align-self: center;
}
.mobile-footer-btn.mobile-footer-btn--stop .mobile-footer-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--error, #d32f2f);
  border: 2px solid var(--error, #d32f2f);
}
.mobile-footer-btn.mobile-footer-btn--stop .mobile-footer-btn-icon i {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}
.mobile-footer-btn .notification-dot {
  top: -1px;
  right: -4px;
}

/* Logged-out marketing and auth pages use the same shared header markup as the
   redesign pages. Keep their mobile navigation drawer visually and behaviorally
   identical to the redesign drawer rather than falling back to the legacy full
   width menu. */
@media (max-width: 959px) {
  body.site-shell #mobile-nav-popup.generic-popup.menu-popup,
  body.home-logged-out #mobile-nav-popup.generic-popup.menu-popup {
    position: fixed;
    z-index: 1300;
    inset: var(--header-height-mobile) 0 0 auto;
    display: block;
    width: min(88vw, 360px);
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0 14px 18px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(184, 194, 225, .14);
    border-radius: 0;
    background: #121728;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .38);
    transform: translateX(105%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    backdrop-filter: none;
  }
  body.site-shell #mobile-nav-popup.generic-popup.menu-popup.active,
  body.site-shell #mobile-nav-popup.generic-popup.menu-popup.show,
  body.site-shell #mobile-nav-popup.generic-popup.menu-popup.open,
  body.site-shell #mobile-nav-popup.generic-popup.menu-popup[aria-hidden="false"],
  body.home-logged-out #mobile-nav-popup.generic-popup.menu-popup.active,
  body.home-logged-out #mobile-nav-popup.generic-popup.menu-popup.show,
  body.home-logged-out #mobile-nav-popup.generic-popup.menu-popup.open,
  body.home-logged-out #mobile-nav-popup.generic-popup.menu-popup[aria-hidden="false"] {
    transform: translateX(0);
  }
  body.site-shell #mobile-nav-popup .mobile-menu-header,
  body.home-logged-out #mobile-nav-popup .mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    margin: 0 -14px 5px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(184, 194, 225, .14);
    background: #181e32;
  }
  body.site-shell #mobile-nav-popup .mobile-menu-profile--empty,
  body.home-logged-out #mobile-nav-popup .mobile-menu-profile--empty {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  body.site-shell #mobile-nav-popup .mobile-menu-close-icon,
  body.home-logged-out #mobile-nav-popup .mobile-menu-close-icon {
    position: absolute;
    top: 11px;
    right: 14px;
    left: auto;
    display: grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1rem;
  }
  body.site-shell #mobile-nav-popup .mobile-menu-sections,
  body.home-logged-out #mobile-nav-popup .mobile-menu-sections {
    display: grid;
    gap: 0;
    padding-left: 0;
  }
  body.site-shell #mobile-nav-popup .mobile-menu-section,
  body.home-logged-out #mobile-nav-popup .mobile-menu-section {
    margin: 0;
    padding: 3px 0;
    border: 0;
  }
  body.site-shell #mobile-nav-popup .mobile-menu-section > :is(h3, h4),
  body.home-logged-out #mobile-nav-popup .mobile-menu-section > :is(h3, h4) {
    display: none;
  }
  body.site-shell #mobile-nav-popup .menu-list,
  body.home-logged-out #mobile-nav-popup .menu-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body.site-shell #mobile-nav-popup .menu-list li,
  body.home-logged-out #mobile-nav-popup .menu-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    padding: 0;
  }
  body.site-shell #mobile-nav-popup .menu-list li a,
  body.home-logged-out #mobile-nav-popup .menu-list li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 6px 9px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    color: #c8d0e6;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.site-shell #mobile-nav-popup .menu-list li a:hover,
  body.site-shell #mobile-nav-popup .menu-list li a:focus-visible,
  body.home-logged-out #mobile-nav-popup .menu-list li a:hover,
  body.home-logged-out #mobile-nav-popup .menu-list li a:focus-visible {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
  }
  body.site-shell #mobile-nav-popup .menu-list i,
  body.home-logged-out #mobile-nav-popup .menu-list i {
    width: 22px;
    color: #9da8c5;
    font-size: 15px;
    text-align: center;
  }
}

.cookie-banner {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: clamp(10px, 3vw, 24px);
  right: clamp(10px, 3vw, 24px);
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(12, 16, 28, .94);
  color: rgba(255, 255, 255, .88);
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 1301;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner .anchor-light-color {
  color: #7ba4ff;
}

.cookie-banner button,
.cookie-banner .btn-primary {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc 0%, #9c55f6 52%, #db5fc7 100%);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-footer {
    display: block;
    min-height: 0;
  }

  body.landing-page .site-footer.hide-mobile-footer {
    display: none;
  }

  body.landing-page .site-footer .footer-inner {
    display: flex !important;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  body.landing-page .site-footer .social-icons {
    order: 1;
    padding-left: 0;
    display: flex;
    justify-content: center;
  }

  body.landing-page .site-footer .footer-links {
    order: 2;
    white-space: nowrap;
    justify-content: center;
  }

  body.landing-page .site-footer .footer-copy {
    order: 3;
  }

  body.landing-page .site-footer .social-icons.hide-mobile {
    display: none !important;
  }

  body.landing-page .cookie-banner {
    z-index: 1301;
    margin: 0 8px;
    left: 8px;
    right: 8px;
  }

  body.landing-page .swal2-language-grid,
  body.site-shell .swal2-language-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }

  body.landing-page .swal2-flag img,
  body.site-shell .swal2-flag img {
    width: 36px;
  }

  body.landing-page .language-link {
    display: none !important;
  }
}
/* Shared mobile bottom-sheet affordance. A restrained white outline and
   matching handle make draggable sheets distinct from the dark page canvas. */
@keyframes vz-mobile-bottom-sheet-enter {
  from { transform: translateY(calc(100% + 24px)); }
  to { transform: translateY(0); }
}

@media (max-width: 959px) {
  .advanced-filter-overlay .swipe-dismissable > .bottom-sheet-grabber,
  .media-menu-overlay .swipe-dismissable > .bottom-sheet-grabber,
  .director-create-entry-overlay .swipe-dismissable > .bottom-sheet-grabber {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 50%;
    display: block;
    width: 36px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88) !important;
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .advanced-filter-overlay:not(.hidden) .swipe-dismissable,
  .media-menu-overlay:not(.hidden) .swipe-dismissable,
  .director-create-entry-overlay:not(.hidden) .swipe-dismissable {
    animation: vz-mobile-bottom-sheet-enter .42s cubic-bezier(.22, .8, .25, 1) both;
  }

  .advanced-filter-overlay .swipe-dismissable,
  .media-menu-overlay .swipe-dismissable,
  .director-create-entry-overlay .swipe-dismissable {
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, .68) !important;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .08) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .advanced-filter-overlay:not(.hidden) .swipe-dismissable,
  .media-menu-overlay:not(.hidden) .swipe-dismissable,
  .director-create-entry-overlay:not(.hidden) .swipe-dismissable {
    animation: none;
  }
}

/* Approved mobile sheets retain an 8px gutter so their side outlines are visible. */
@media (max-width: 959px) {
  .advanced-filter-overlay .swipe-dismissable,
  .media-menu-overlay .swipe-dismissable,
  .director-create-entry-overlay .swipe-dismissable,
  .search-filter-overlay .swipe-dismissable,
  .story-page .story-edit-dialog,
  .viza-redesign .story-info {
    box-sizing: border-box !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-inline: 0 !important;
  }

  /* Relative sheets are centered by their overlay, rather than positioned. */
  .search-filter-overlay .swipe-dismissable,
  .media-menu-overlay .swipe-dismissable,
  .director-create-entry-overlay .swipe-dismissable,
  .community-page #advanced-filter-overlay .swipe-dismissable {
    left: auto !important;
    right: auto !important;
  }

  .story-page .story-edit-dialog,
  .viza-redesign .story-info {
    border: 2px solid rgba(255, 255, 255, .68) !important;
  }

  .story-page .story-edit-dialog > .bottom-sheet-grabber,
  .viza-redesign .story-info > .bottom-sheet-grabber {
    position: absolute;
    top: 9px;
    left: 50%;
    display: block;
    width: 36px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88) !important;
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 959px) {
  :is(.advanced-filter-overlay, .media-menu-overlay, .director-create-entry-overlay, .search-filter-overlay) .swipe-dismissable > .bottom-sheet-grabber,
  .story-page .story-edit-dialog > .bottom-sheet-grabber,
  .viza-redesign .story-info > .bottom-sheet-grabber {
    touch-action: none;
  }

  /* The visible cue stays slim; its transparent hit area is easier to grab. */
  :is(.advanced-filter-overlay, .media-menu-overlay, .director-create-entry-overlay, .search-filter-overlay) .swipe-dismissable > .bottom-sheet-grabber::before,
  .story-page .story-edit-dialog > .bottom-sheet-grabber::before,
  .viza-redesign .story-info > .bottom-sheet-grabber::before {
    content: '';
    position: absolute;
    inset: -9px -18px;
  }
}
