/* Web experience shell: keep the browser-only top affordances while sharing client UI. */
body.experience-page {
  --experience-top-safe-area: 96px;
  --experience-top-glass-top: 10px;
  --experience-top-glass-height: 72px;
  --experience-top-control-height: 38px;
  --experience-top-content-inset: 40px;
  --experience-desktop-toggle-width: 92px;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

body.experience-page #app {
  position: fixed !important;
  inset: var(--experience-top-safe-area) 0 0 0 !important;
  height: auto !important;
  margin-top: 0 !important;
}

body.experience-page.desktop-mode #app {
  inset: var(--experience-top-safe-area) 0 0 0 !important;
}

body.experience-page .experience-top-glass {
  position: fixed;
  top: var(--experience-top-glass-top);
  left: 16px;
  right: 16px;
  height: var(--experience-top-glass-height);
  z-index: 2380;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 118, 97, 0.18), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(105, 215, 229, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(27, 22, 28, 0.48), rgba(11, 18, 26, 0.36) 56%, rgba(14, 29, 34, 0.42)),
    rgba(8, 12, 18, 0.36);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

body.experience-page .experience-top-glass::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), rgba(105, 215, 229, 0.10), transparent);
}

body.experience-page:not(.theme-dark) .experience-top-glass,
html[data-theme="light"] body.experience-page .experience-top-glass {
  border-color: rgba(255, 255, 255, 0.52);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 118, 97, 0.13), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(105, 215, 229, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(246, 250, 252, 0.38) 58%, rgba(235, 248, 250, 0.42)),
    rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 42px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32);
}

body.experience-page .experience-brand,
body.experience-page .experience-site-nav,
body.experience-page #desktop-mode-toggle {
  position: fixed;
  top: calc(var(--experience-top-glass-top) + ((var(--experience-top-glass-height) - var(--experience-top-control-height)) / 2));
  z-index: 2400;
}

body.experience-page .experience-brand {
  left: var(--experience-top-content-inset);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: var(--experience-top-control-height);
  text-decoration: none;
  pointer-events: auto;
}

body.experience-page .experience-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 34px;
  overflow: hidden;
}

body.experience-page .experience-brand-mark img {
  display: block;
  width: 124px;
  max-width: 124px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

body.experience-page .experience-brand-text {
  display: none;
}

body.experience-page .experience-site-nav {
  right: var(--experience-top-content-inset);
  display: flex;
  align-items: center;
}

body.experience-page #desktop-mode-toggle {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 2410 !important;
  height: var(--experience-top-control-height) !important;
  min-height: var(--experience-top-control-height) !important;
  max-height: var(--experience-top-control-height) !important;
  width: var(--experience-desktop-toggle-width) !important;
  min-width: var(--experience-desktop-toggle-width) !important;
  max-width: var(--experience-desktop-toggle-width) !important;
  flex: 0 0 var(--experience-desktop-toggle-width) !important;
  padding: 0 20px !important;
  pointer-events: auto;
}

body.experience-page .nala-desktop-assistant {
  top: calc(var(--experience-top-glass-top) + var(--experience-top-glass-height) + 22px) !important;
  bottom: 34px !important;
  left: clamp(28px, 4.4vw, 72px) !important;
  right: clamp(28px, 4.4vw, 72px) !important;
  z-index: 2260 !important;
}

body.experience-page.desktop-mode .experience-top-glass {
  z-index: 2380;
}

body.experience-page.desktop-mode .experience-brand,
body.experience-page.desktop-mode .experience-site-nav,
body.experience-page.desktop-mode #desktop-mode-toggle {
  z-index: 2400;
}

body.experience-page #sidebar:not(.sidebar-collapsed) .nala-interaction-card {
  flex: 1 1 min(260px, calc(100vh - var(--experience-top-safe-area) - 360px)) !important;
  min-height: 210px !important;
  margin-top: 0 !important;
}

body.experience-page #sidebar.sidebar-collapsed .nala-interaction-card,
body.experience-page.desktop-mode #sidebar .nala-interaction-card {
  display: none !important;
}

body.experience-page #desktop-mode-toggle:hover {
  transform: translateY(-1px) !important;
}

body.experience-page #desktop-mode-toggle:active {
  transform: translateY(0) scale(0.985) !important;
}

body.experience-page .experience-download-client {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--experience-top-control-height);
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 118, 91, 0.18), rgba(92, 216, 239, 0.10)),
    rgba(18, 26, 36, 0.38);
  color: rgba(255, 248, 242, 0.92);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

body.experience-page:not(.theme-dark) .experience-download-client,
html[data-theme="light"] body.experience-page .experience-download-client {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 133, 104, 0.14), rgba(106, 218, 236, 0.09)),
    rgba(255, 255, 255, 0.30);
  color: rgba(35, 43, 55, 0.78);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

body.experience-page .experience-platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.experience-page .experience-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

body.experience-page .experience-platform-icon svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: currentColor;
}

body.experience-page .experience-tier-notice {
  position: fixed;
  top: calc(var(--experience-top-glass-top) + ((var(--experience-top-glass-height) - var(--experience-top-control-height)) / 2));
  left: calc(var(--shell-sidebar-width, 300px) + 30px);
  right: 232px;
  z-index: 2390;
  min-height: var(--experience-top-control-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 242, 0.74);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  box-shadow: none;
}

body.experience-page .experience-tier-notice-dot {
  position: absolute;
  left: 0;
}

body.experience-page .experience-tier-copy {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.experience-page .experience-tier-copy-left {
  flex: 0 1 auto;
  text-align: right;
}

body.experience-page .experience-tier-copy-right {
  flex: 0 1 auto;
  text-align: left;
}

body.experience-page .experience-tier-notice.hidden {
  display: flex !important;
}

body.experience-page .experience-tier-notice.hidden .experience-tier-notice-dot,
body.experience-page .experience-tier-notice.hidden .experience-tier-copy {
  display: none !important;
}

body.experience-page .experience-tier-notice.hidden #desktop-mode-toggle {
  display: inline-flex !important;
}

body.experience-page .experience-tier-notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #ff7661;
  box-shadow: 0 0 16px rgba(255, 118, 97, 0.80);
}

body.experience-page .experience-tier-notice strong {
  color: #fff2bd;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 204, 130, 0.28);
}

body.experience-page:not(.theme-dark) .experience-tier-notice,
html[data-theme="light"] body.experience-page .experience-tier-notice {
  color: rgba(34, 41, 52, 0.66);
}

body.experience-page:not(.theme-dark) .experience-tier-notice strong,
html[data-theme="light"] body.experience-page .experience-tier-notice strong {
  color: #bc433d;
  text-shadow: none;
}

body.experience-page #content-header-billing,
body.experience-page #floating-billing-link,
body.experience-page .content-header-billing,
body.experience-page .creator-head-billing,
body.experience-page .music-billing-link {
  display: none !important;
}

body.experience-page #settings-modal .modal-header {
  align-items: center !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.experience-page #settings-modal .settings-tier-notice {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(610px, calc(100% - 150px));
  min-height: 38px;
  margin: 0 44px 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 118, 91, 0.16), rgba(92, 216, 239, 0.08)),
    rgba(18, 26, 36, 0.42);
  color: rgba(255, 248, 242, 0.76);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

body.experience-page #settings-modal .settings-tier-notice strong {
  color: #fff2bd;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 204, 130, 0.24);
}

body.experience-page:not(.theme-dark) #settings-modal .settings-tier-notice,
html[data-theme="light"] body.experience-page #settings-modal .settings-tier-notice {
  border-color: rgba(235, 100, 91, 0.15);
  background:
    linear-gradient(135deg, rgba(255, 133, 104, 0.15), rgba(106, 218, 236, 0.09)),
    rgba(255, 255, 255, 0.58);
  color: rgba(34, 41, 52, 0.68);
  box-shadow: 0 12px 26px rgba(235, 100, 91, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.experience-page:not(.theme-dark) #settings-modal .settings-tier-notice strong,
html[data-theme="light"] body.experience-page #settings-modal .settings-tier-notice strong {
  color: #bc433d;
  text-shadow: none;
}

body.experience-page .web-translate-disabled {
  min-height: min(520px, calc(100vh - 220px));
}

@media (max-width: 920px) {
  body.experience-page .experience-tier-notice {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.experience-page {
    --experience-top-safe-area: 82px;
    --experience-top-glass-top: 8px;
    --experience-top-glass-height: 60px;
    --experience-top-control-height: 34px;
    --experience-top-content-inset: 12px;
    --experience-desktop-toggle-width: 74px;
  }

  body.experience-page .experience-top-glass {
    left: 8px;
    right: 8px;
    border-radius: 22px;
  }

  body.experience-page .experience-brand {
    width: max-content;
  }

  body.experience-page .experience-brand-mark,
  body.experience-page .experience-brand-mark img {
    width: 96px;
  }

  body.experience-page .experience-site-nav {
    right: var(--experience-top-content-inset);
  }

  body.experience-page #desktop-mode-toggle {
    width: var(--experience-desktop-toggle-width) !important;
    min-width: var(--experience-desktop-toggle-width) !important;
    max-width: var(--experience-desktop-toggle-width) !important;
    flex-basis: var(--experience-desktop-toggle-width) !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  body.experience-page .nala-desktop-assistant {
    left: 14px !important;
    right: 14px !important;
    top: calc(var(--experience-top-glass-top) + var(--experience-top-glass-height) + 16px) !important;
    bottom: 16px !important;
  }

  body.experience-page .experience-download-client {
    padding: 0 10px;
    font-size: 12px;
  }

  body.experience-page .experience-platform-icon {
    width: 19px;
    height: 19px;
  }

  body.experience-page #settings-modal .settings-tier-notice {
    display: none !important;
  }
}
