/* Final responsive layer for Watch. Loaded after app.css to neutralize old cascade duplicates. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 2026-07-10 stable responsive shell for public pages. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@media (max-width: 920px) {
  main:has(.home-hero),
  main:has(.page-hero--rooms),
  main:has(.page-hero--about) {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 16px 0 calc(92px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }

  .home-hero,
  .home-story,
  .home-open-rooms,
  .page-hero,
  .rooms-section,
  .about-editorial,
  .about-process,
  .home-hero > *,
  .home-story > *,
  .page-hero > *,
  .about-editorial > *,
  .about-process > *,
  .rooms-grid,
  .room-tile {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .home-hero,
  .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    align-items: start !important;
    gap: 28px !important;
    padding: 28px 22px !important;
    overflow: hidden !important;
  }

  .home-hero__content,
  .page-hero__copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 16px !important;
  }

  .home-hero__content h1,
  .page-hero__copy h1,
  .home-story h2,
  .about-editorial h2,
  .about-process h2 {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .home-hero__content h1,
  .page-hero__copy h1 {
    font-size: clamp(36px, 10.5vw, 58px) !important;
    line-height: .98 !important;
  }

  .home-hero__content p,
  .page-hero__copy p,
  .home-story p,
  .about-editorial p,
  .about-process span,
  .room-tile p {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  .home-hero__facts,
  .page-hero__facts {
    position: static !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
    transform: none !important;
  }

  .home-hero__facts span,
  .page-hero__facts span {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 !important;
    overflow-wrap: anywhere;
    transform: none !important;
  }

  .home-story,
  .about-editorial,
  .about-process {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 36px 4px !important;
  }

  .home-story h2,
  .about-editorial h2,
  .about-process h2 {
    font-size: clamp(30px, 8.5vw, 46px) !important;
    line-height: 1.04 !important;
  }

  .home-story__list,
  .about-editorial__lines,
  .about-process ol {
    width: 100% !important;
    min-width: 0 !important;
  }

  .about-editorial__lines article,
  .about-process li {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rooms-grid,
  .home-room-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-heading,
  .section-title {
    min-width: 0 !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .page-hero__actions,
  .home-hero__actions,
  .hero-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-hero__actions .button,
  .home-hero__actions .button,
  .hero-actions .button {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 520px) {
  main:has(.home-hero),
  main:has(.page-hero--rooms),
  main:has(.page-hero--about) {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    padding-top: 8px !important;
  }

  .home-hero,
  .page-hero {
    padding: 24px 18px !important;
  }

  .home-story,
  .about-editorial,
  .about-process {
    padding: 32px 2px !important;
  }

  .home-hero__content h1,
  .page-hero__copy h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }
}

/* Home/About section edges: the hero owns the only rounded boundary. */
main:has(.home-hero),
main:has(.page-hero--about),
.home-story,
.home-open-rooms,
.about-editorial,
.about-process {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

main:has(.home-hero)::before,
main:has(.home-hero)::after,
main:has(.page-hero--about)::before,
main:has(.page-hero--about)::after,
.home-story::before,
.home-story::after,
.home-open-rooms::before,
.home-open-rooms::after,
.about-editorial::before,
.about-editorial::after,
.about-process::before,
.about-process::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-hero,
.page-hero--about {
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 14px !important;
  outline: 0 !important;
  background-clip: padding-box !important;
  clip-path: inset(0 round 14px) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.profile-mini-avatar,
.profile-menu__avatar,
.chat-message__avatar,
.participant-chip__avatar,
.participant-row__avatar {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  line-height: 1 !important;
  text-align: center !important;
}

.topbar {
  width: min(1560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  overflow: visible !important;
}

.browser-search-app,
.create-layout,
.rooms-section {
  max-width: min(1440px, calc(100vw - 48px)) !important;
}

.browser-shell.browser-search-app {
  display: grid !important;
  gap: 22px !important;
  min-height: auto !important;
  padding: 34px 0 48px !important;
}

.browser-search-head {
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.browser-workspace,
.browser-search-panel {
  min-height: auto !important;
}

.browser-results {
  min-height: 190px !important;
}

.create-layout--premium {
  align-items: start !important;
  min-height: auto !important;
  gap: 16px !important;
}

.create-card {
  min-height: 0 !important;
}

.rooms-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

.room-tile {
  min-width: 0 !important;
}

.room-tile__media {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
}

.home-hero,
.page-hero,
.home-story,
.about-editorial,
.about-process,
.profile-hero,
.profile-layout,
.profile-history,
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.home-hero,
.page-hero {
  min-height: auto !important;
  background-size: cover !important;
  background-position: center !important;
}

.home-hero__content,
.page-hero__copy,
.home-story > div,
.about-editorial > div,
.about-process > div,
.profile-hero > div,
.profile-panel,
.profile-stack,
.profile-history__grid {
  min-width: 0 !important;
}

.home-hero__content h1,
.page-hero__copy h1,
.home-story h2,
.about-editorial h2,
.about-process h2,
.profile-hero h1 {
  max-width: 100% !important;
  text-wrap: balance;
}

.home-hero__content p,
.page-hero__copy p,
.home-story p,
.about-editorial p,
.about-process span,
.profile-hero p {
  max-width: 68ch !important;
}

.profile-hero__avatar,
.profile-hero__avatar img,
.profile-hero__avatar span {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  line-height: 1 !important;
}

.topbar__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.topbar .profile-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.topbar .profile-menu > summary.button--profile {
  display: inline-flex !important;
  width: auto !important;
  min-width: 118px !important;
  min-height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(226, 214, 255, .16) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #fff !important;
}

.profile-mini-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.profile-mini-avatar--initial,
.profile-menu__avatar--initial {
  background: #8b5cf6 !important;
  color: #fff !important;
}

.topbar .profile-menu > summary.button--profile > span:not(.profile-mini-avatar) {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

.room-shell,
.room-main,
.room-sidebar,
.panel,
.player-panel,
.chat-panel,
.room-info,
.queue-panel,
.quick-actions {
  min-width: 0;
}

.chat-list {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.chat-message {
  max-width: min(82%, 460px);
}

.chat-message:not(.chat-message--system):not(.chat-message--own) {
  justify-self: start !important;
  justify-items: start !important;
}

.chat-message--own:not(.chat-message--system) {
  justify-self: end !important;
  justify-items: end !important;
}

.chat-message--own .chat-message__top,
.chat-message--own .chat-message__meta,
.chat-message--own .chat-reply,
.chat-message--own p {
  justify-self: end !important;
}

.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-message__top,
.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-message__meta,
.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-reply,
.chat-message:not(.chat-message--own):not(.chat-message--system) p {
  justify-self: start !important;
}

@media (max-width: 920px) {
  body {
    padding-top: calc(60px + env(safe-area-inset-top)) !important;
  }

  body.auth-open .topbar,
  body.cookie-open .topbar,
  body.room-settings-open .topbar,
  body.participants-open .topbar {
    display: none !important;
  }

  .topbar {
    position: fixed !important;
    inset: calc(6px + env(safe-area-inset-top)) 6px auto 6px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 56px !important;
    gap: 4px !important;
    align-items: center !important;
    width: calc(100dvw - 12px) !important;
    max-width: calc(100dvw - 12px) !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    overflow: visible !important;
    border-radius: 12px !important;
    transform: none !important;
  }

  .topbar::before,
  .topbar::after,
  .topbar .brand span,
  .topbar__actions .button:not(.button--profile),
  .topbar__logout {
    display: none !important;
  }

  .topbar .brand {
    display: grid !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 42px !important;
    place-items: center !important;
    padding: 0 !important;
  }

  .topbar .brand img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
  }

  .topbar__nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
  }

  .topbar__actions,
  .topbar .profile-menu {
    display: grid !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .topbar__nav a,
  .topbar .button--profile,
  .topbar .profile-menu > summary.button--profile {
    display: grid !important;
    grid-template-rows: 18px 11px !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 2px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(239, 232, 250, .78) !important;
    text-align: center !important;
    transform: none !important;
  }

  .topbar__nav a.is-active,
  .topbar__nav a:hover,
  .topbar__nav a:focus-visible,
  .topbar .button--profile:hover,
  .topbar .button--profile:focus-visible,
  .topbar .profile-menu > summary.button--profile:hover,
  .topbar .profile-menu > summary.button--profile:focus-visible {
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
  }

  .topbar__nav a::after,
  .topbar .button--profile::after {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon,
  .topbar .profile-mini-avatar {
    display: grid !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    place-items: center !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    z-index: 1400 !important;
    width: auto !important;
    max-height: min(78dvh, 420px) !important;
    padding: 16px !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
  }

  main {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 8px 6px 24px !important;
    overflow-x: clip !important;
  }

  .home-hero,
  .page-hero,
  .home-story,
  .home-open-rooms,
  .rooms-section,
  .about-editorial,
  .about-process,
  .profile-hero,
  .profile-layout,
  .profile-history,
  .site-footer,
  .create-hero,
  .create-layout,
  .browser-search-app {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }

  .home-hero,
  .page-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    min-height: auto !important;
    padding: clamp(32px, 12vw, 58px) 16px !important;
    border-radius: 12px !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .home-hero__content,
  .page-hero__copy {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-hero__content h1,
  .page-hero__copy h1 {
    font-size: clamp(36px, 11vw, 50px) !important;
    line-height: .96 !important;
  }

  .home-hero__content p,
  .page-hero__copy p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .home-hero__facts,
  .page-hero__facts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .home-hero__facts span,
  .page-hero__facts span {
    min-height: 42px !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .home-story,
  .about-editorial,
  .about-process {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 16px !important;
    border-radius: 12px !important;
  }

  .home-story h2,
  .about-editorial h2,
  .about-process h2 {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1 !important;
  }

  .home-story__list,
  .about-editorial__lines,
  .about-process ol {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .home-story__list p,
  .about-editorial__lines article,
  .about-process li {
    min-width: 0 !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .profile-hero {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .profile-hero__avatar,
  .profile-hero__avatar img,
  .profile-hero__avatar span {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    font-size: 24px !important;
  }

  .profile-hero h1 {
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 26px !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .profile-hero p {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .profile-hero__stats {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .profile-hero__stats div {
    min-width: 0 !important;
    padding: 10px !important;
  }

  .profile-layout,
  .profile-stack,
  .profile-history__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .profile-panel,
  .profile-history {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .profile-panel input,
  .profile-theme,
  .auth-password {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .profile-history__item {
    min-width: 0 !important;
  }

  .site-footer {
    display: grid !important;
    gap: 16px !important;
    margin-top: 18px !important;
    padding: 22px 16px !important;
    border-radius: 12px !important;
  }

  .site-footer__top,
  .site-footer__bottom,
  .site-footer__links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }

  .site-footer__notice {
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .browser-shell.browser-search-app {
    gap: 14px !important;
    min-height: auto !important;
    padding: 8px 0 24px !important;
  }

  .browser-search-head {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 42px !important;
  }

  .browser-search-head h1 {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 21px !important;
    line-height: 1.1 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .browser-mode-switch {
    max-width: 126px !important;
    min-width: 126px !important;
  }

  .browser-workspace,
  .browser-search-panel {
    min-height: auto !important;
  }

  .browser-address--search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 8px !important;
    padding: 6px !important;
  }

  .browser-address--search input {
    min-width: 0 !important;
    height: 44px !important;
    font-size: 14px !important;
  }

  .browser-address--search .button {
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
  }

  .browser-results {
    min-height: 160px !important;
  }

  .create-hero,
  .create-layout--premium {
    gap: 12px !important;
  }

  .create-layout--premium {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .create-card {
    padding: 16px !important;
  }

  .type-list,
  .access-field {
    gap: 9px !important;
  }

  .choice-card,
  .access-field label {
    min-height: 68px !important;
    padding: 12px !important;
  }

  .home-hero h1,
  .page-hero h1,
  .create-hero h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 11vw, 54px) !important;
    line-height: .96 !important;
    overflow-wrap: anywhere !important;
  }

  .rooms-grid,
  .home-room-strip {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .room-tile,
  .home-room-mini {
    max-width: 100% !important;
  }

  .room-shell {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip !important;
  }

  .room-main,
  .room-sidebar {
    display: contents !important;
  }

  .player-panel {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #050407 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .player-panel--active {
    position: relative !important;
    height: clamp(260px, 72vw, 390px) !important;
    min-height: 260px !important;
    max-height: 390px !important;
    aspect-ratio: auto !important;
  }

  .player-panel--active > .watch-player,
  .player-panel--active .watch-player__media,
  .player-panel--active .watch-player__poster {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .player-panel--active .watch-player__media,
  .player-panel--active .watch-player__poster {
    object-fit: cover !important;
  }

  .watch-player__mobile-title {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 6 !important;
    display: flex !important;
    min-height: 32px !important;
    max-height: 32px !important;
    align-items: center !important;
    padding: 6px 10px !important;
    background: rgba(8, 6, 12, .72) !important;
    overflow: hidden !important;
  }

  .watch-player__mobile-title span {
    display: none !important;
  }

  .watch-player__mobile-title strong {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .watch-player__bar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 7 !important;
    display: grid !important;
    grid-template-columns: 30px 30px minmax(82px, auto) minmax(0, 1fr) 30px 30px 30px !important;
    width: 100% !important;
    min-height: 45px !important;
    max-height: 45px !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 14px 5px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(8, 6, 12, .84) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .player-range {
    position: absolute !important;
    top: 4px !important;
    right: 6px !important;
    left: 6px !important;
    width: calc(100% - 12px) !important;
    height: 4px !important;
    margin: 0 !important;
  }

  .player-button,
  .player-inline-form {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  .player-button img {
    width: 17px !important;
    height: 17px !important;
  }

  .player-time {
    min-width: 82px !important;
    max-width: 98px !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .player-brand-mark {
    position: static !important;
    min-width: 0 !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    font-size: 10px !important;
    transform: none !important;
  }

  .player-brand-mark img {
    width: 16px !important;
    height: 16px !important;
  }

  .player-volume {
    position: relative !important;
    display: grid !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    place-items: center !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .watch-player:not(.watch-player--volume-open) .player-volume__range {
    display: none !important;
  }

  .watch-player.watch-player--volume-open .player-volume__range {
    position: absolute !important;
    right: auto !important;
    bottom: 82px !important;
    left: 50% !important;
    z-index: 12 !important;
    display: block !important;
    width: 138px !important;
    height: 5px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #fff 0 var(--range-fill, 0%), rgba(255, 255, 255, .3) var(--range-fill, 0%) 100%) !important;
    transform: translateX(-50%) rotate(-90deg) !important;
    transform-origin: center !important;
  }

  .player-settings-menu {
    right: 8px !important;
    bottom: 54px !important;
    left: auto !important;
    z-index: 15 !important;
    width: min(252px, calc(100vw - 24px)) !important;
    max-height: min(42svh, 246px) !important;
    padding: 6px !important;
    border-radius: 12px !important;
    overflow-y: auto !important;
  }

  .chat-panel {
    order: 2 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 620px !important;
    height: max(620px, calc(100svh - clamp(260px, 72vw, 390px) - 84px)) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .chat-panel.chat-panel--collapsed {
    min-height: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
  }

  .chat-panel.chat-panel--collapsed .chat-list,
  .chat-panel.chat-panel--collapsed .chat-form {
    display: none !important;
  }

  .chat-panel .section-title {
    margin-bottom: 10px !important;
  }

  .chat-panel .section-title h2 {
    font-size: 28px !important;
  }

  .chat-list {
    min-height: 0 !important;
    gap: 12px !important;
    padding: 12px 8px !important;
  }

  .chat-message {
    max-width: min(88%, 360px) !important;
  }

  .chat-message p {
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
  }

  .chat-message--system p {
    padding: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
  }

  .chat-reply-action {
    display: none !important;
  }

  .chat-input-wrap input {
    min-height: 50px !important;
    font-size: 15px !important;
  }

  .chat-send-button {
    width: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }

  .room-info {
    order: 3 !important;
  }

  .queue-panel {
    order: 4 !important;
  }

  .quick-actions {
    order: 5 !important;
  }

  .quick-action-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(148px, 48%) !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  .quick-action-card,
  .quick-action-card button {
    min-height: 104px !important;
    padding: 13px !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
  }

  .quick-action-card strong,
  .quick-action-card small {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.25 !important;
  }

  .rooms-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .room-tile {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    min-height: 156px !important;
    overflow: hidden !important;
  }

  .room-tile__media {
    height: 100% !important;
    min-height: 156px !important;
    aspect-ratio: auto !important;
  }

  .room-tile__media > img,
  .room-tile__placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .room-tile__body {
    min-width: 0 !important;
    padding: 12px !important;
  }

  .room-tile__body h2,
  .room-tile__body p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
  }

  .room-tile__body h2 {
    -webkit-line-clamp: 2 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .room-tile__body p {
    -webkit-line-clamp: 2 !important;
    font-size: 12px !important;
  }
}

/* 2026-07-10 chat history scroll fix. */
.room-sidebar .chat-panel,
.chat-panel {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.room-sidebar .chat-panel > .section-title,
.chat-panel > .section-title,
.room-sidebar .chat-form,
.chat-form {
  flex: 0 0 auto !important;
}

.room-sidebar .chat-list,
.chat-list {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-content: start !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable !important;
}

.chat-panel.chat-panel--collapsed .chat-list,
.chat-panel.chat-panel--collapsed .chat-form {
  display: none !important;
}

@media (min-width: 921px) {
  .room-sidebar .chat-panel {
    height: calc(100vh - 118px) !important;
    max-height: calc(100vh - 118px) !important;
    min-height: 560px !important;
  }

  .room-sidebar .chat-list {
    height: auto !important;
  }
}

@media (max-width: 920px) {
  .chat-panel {
    height: min(680px, calc(100svh - 118px)) !important;
    min-height: min(560px, calc(100svh - 118px)) !important;
    max-height: calc(100svh - 84px) !important;
  }

  .chat-panel.chat-panel--collapsed {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
}

/* 2026-07-10 separate profile and settings pages. */
.settings-hero,
.profile-summary,
.settings-layout {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.settings-hero {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-top: 26px !important;
  margin-bottom: 18px !important;
  padding: 22px !important;
  border: 1px solid rgba(226, 214, 255, .12) !important;
  border-radius: 18px !important;
  background: rgba(26, 22, 34, .78) !important;
}

.settings-hero span,
.profile-summary span {
  color: rgba(217, 204, 239, .66) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.settings-hero h1 {
  margin: 4px 0 8px !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 650 !important;
}

.settings-hero p {
  max-width: 680px !important;
  margin: 0 !important;
  color: rgba(217, 204, 239, .72) !important;
}

.settings-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.settings-stack {
  display: grid !important;
  gap: 16px !important;
}

.profile-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.profile-summary article {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(226, 214, 255, .12) !important;
  border-radius: 16px !important;
  background: rgba(26, 22, 34, .78) !important;
}

.profile-summary strong {
  overflow: hidden !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.profile-summary p {
  margin: 0 !important;
  color: rgba(217, 204, 239, .66) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.profile-hero--view {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

body.theme-light .settings-hero,
body.theme-light .profile-summary article {
  border-color: rgba(55, 40, 83, .14) !important;
  background: rgba(255, 255, 255, .9) !important;
  color: #15101d !important;
}

body.theme-light .settings-hero p,
body.theme-light .settings-hero span,
body.theme-light .profile-summary span,
body.theme-light .profile-summary p {
  color: #51465c !important;
}

body.theme-light .profile-summary strong {
  color: #15101d !important;
}

@media (max-width: 920px) {
  .settings-hero,
  .profile-summary,
  .settings-layout {
    width: 100% !important;
  }

  .settings-hero {
    display: grid !important;
    align-items: start !important;
    margin-top: 10px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .settings-layout,
  .profile-summary,
  .profile-hero--view {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-07-10 page-section spacing cleanup. */
main:has(.home-hero),
main:has(.page-hero--about),
main:has(.page-hero--rooms) {
  display: grid !important;
  gap: 18px !important;
  align-content: start !important;
  padding-top: 20px !important;
}

main:has(.home-hero)::before,
main:has(.home-hero)::after,
main:has(.page-hero--about)::before,
main:has(.page-hero--about)::after,
main:has(.page-hero--rooms)::before,
main:has(.page-hero--rooms)::after,
.home-hero::before,
.home-hero::after,
.home-story::before,
.home-story::after,
.home-open-rooms::before,
.home-open-rooms::after,
.page-hero::before,
.page-hero::after,
.about-editorial::before,
.about-editorial::after,
.about-process::before,
.about-process::after {
  content: none !important;
  display: none !important;
}

.home-hero,
.home-story,
.home-open-rooms,
.page-hero,
.about-editorial,
.about-process {
  display: grid !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  align-content: start !important;
  gap: clamp(14px, 2vw, 24px) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: clamp(18px, 2.4vw, 34px) !important;
  background-image: none !important;
  clip-path: none !important;
}

.home-hero,
.page-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr) !important;
  min-height: clamp(300px, 32vw, 460px) !important;
  background-color: rgba(17, 14, 23, .72) !important;
}

.home-story,
.about-editorial {
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr) !important;
}

.about-process {
  grid-template-columns: minmax(220px, .44fr) minmax(0, 1fr) !important;
}

.home-open-rooms {
  padding: 22px !important;
  background-color: rgba(25, 21, 33, .72) !important;
}

.home-open-rooms .section-title,
.rooms-section .section-title {
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.home-room-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 250px)) !important;
  justify-content: start !important;
  gap: 14px !important;
  min-height: 0 !important;
  align-items: start !important;
}

.home-room-mini {
  width: 100% !important;
  max-width: 250px !important;
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  text-align: left !important;
}

.home-room-mini img,
.home-room-mini > div:first-child {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: 9px !important;
  object-fit: cover !important;
}

.home-room-mini strong {
  display: -webkit-box !important;
  margin-top: 9px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.home-room-mini span {
  margin-top: 6px !important;
  font-size: 13px !important;
}

.home-story__list,
.about-editorial__lines,
.about-process ol,
.home-hero__facts,
.page-hero__facts {
  display: grid !important;
  gap: 10px !important;
  min-height: 0 !important;
}

.home-story__list p,
.about-editorial__lines article,
.about-process li,
.home-hero__facts span,
.page-hero__facts span {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.theme-light .home-hero,
body.theme-light .page-hero,
body.theme-light .home-story,
body.theme-light .home-open-rooms,
body.theme-light .about-editorial,
body.theme-light .about-process {
  background-color: rgba(255, 255, 255, .9) !important;
}

@media (max-width: 920px) {
  main:has(.home-hero),
  main:has(.page-hero--about),
  main:has(.page-hero--rooms) {
    gap: 10px !important;
    padding-top: 10px !important;
  }

  .home-hero,
  .home-story,
  .home-open-rooms,
  .page-hero,
  .about-editorial,
  .about-process {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .home-hero,
  .page-hero {
    min-height: clamp(360px, 112vw, 520px) !important;
  }

  .home-room-strip {
    grid-template-columns: 1fr !important;
  }

  .home-room-mini {
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  .topbar {
    grid-template-columns: 24px minmax(0, 1fr) 50px !important;
    gap: 2px !important;
    padding-inline: 4px !important;
  }

  .topbar .brand {
    width: 24px !important;
    min-width: 24px !important;
  }

  .topbar .brand img {
    width: 20px !important;
    height: 20px !important;
  }

  .topbar__actions,
  .topbar .profile-menu {
    width: 50px !important;
    min-width: 50px !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    font-size: 8px !important;
  }

  .player-brand-mark span {
    display: none !important;
  }

  .watch-player__bar {
    grid-template-columns: 28px 28px minmax(76px, auto) minmax(0, 1fr) 28px 28px 28px !important;
  }
}

/* 2026-07-10 profile, rooms and chat polish. */
.topbar .button,
.topbar__nav a,
.profile-menu__panel a,
.profile-menu__panel button,
.room-tile .button,
.profile-panel .button {
  font-weight: 500 !important;
}

.profile-menu[open] .profile-menu__panel {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.profile-menu__panel {
  border-radius: 16px !important;
}

.profile-menu__panel button {
  color: #ff8a8a !important;
}

.profile-menu__panel button:hover {
  background: rgba(255, 92, 92, .12) !important;
  color: #ffb3b3 !important;
}

.rooms-section {
  width: min(1560px, calc(100vw - 48px)) !important;
  margin: 26px auto !important;
  padding: clamp(20px, 2.2vw, 30px) !important;
  border: 1px solid rgba(226, 214, 255, .1) !important;
  border-radius: 18px !important;
  background: rgba(25, 21, 33, .72) !important;
}

.rooms-section .section-title {
  align-items: center !important;
  padding: 0 4px !important;
  margin-bottom: 18px !important;
}

.rooms-grid {
  gap: 18px !important;
}

.room-tile {
  border: 1px solid rgba(226, 214, 255, .12) !important;
  border-radius: 14px !important;
  background: rgba(17, 14, 24, .9) !important;
}

.room-tile__body {
  gap: 10px !important;
  padding: 16px !important;
}

.room-tile__body h2 {
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.room-tile__body p,
.room-tile__details {
  line-height: 1.45 !important;
}

.profile-hero {
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, .64fr) !important;
  align-items: center !important;
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 26px auto 18px !important;
  padding: 22px !important;
  border: 1px solid rgba(226, 214, 255, .12) !important;
  border-radius: 18px !important;
  background: rgba(26, 22, 34, .78) !important;
}

.profile-hero__avatar,
.profile-hero__avatar img,
.profile-hero__avatar span {
  border-radius: 50% !important;
}

.profile-hero__avatar {
  width: 84px !important;
  height: 84px !important;
  font-weight: 600 !important;
}

.profile-hero h1 {
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 650 !important;
}

.profile-layout,
.profile-history {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.profile-panel,
.profile-history {
  border-radius: 18px !important;
  background: rgba(26, 22, 34, .78) !important;
}

.profile-avatar-upload {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px dashed rgba(226, 214, 255, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.profile-avatar-upload__preview {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-avatar-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-upload__text {
  display: grid;
  gap: 4px;
}

.profile-avatar-upload__text strong {
  font-weight: 600;
}

.profile-avatar-upload__text small {
  color: rgba(217, 204, 239, .62);
  font-size: 13px;
}

.profile-avatar-upload input[type="file"] {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.button--danger {
  border-color: rgba(255, 99, 99, .3) !important;
  background: rgba(80, 24, 32, .42) !important;
  color: #ffb3b3 !important;
}

.button--danger:hover,
.button--danger:focus-visible {
  border-color: rgba(255, 99, 99, .48) !important;
  background: rgba(117, 29, 42, .6) !important;
  color: #fff !important;
}

.room-sidebar .chat-list,
.chat-list {
  padding: 14px !important;
}

.room-sidebar .chat-message,
.chat-message {
  max-width: min(78%, 520px) !important;
}

.room-sidebar .chat-message p,
.chat-message p {
  padding: 12px 15px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
}

.room-sidebar .chat-message--own p,
.chat-message--own p {
  border-bottom-right-radius: 6px !important;
}

.room-sidebar .chat-message:not(.chat-message--own):not(.chat-message--system) p,
.chat-message:not(.chat-message--own):not(.chat-message--system) p {
  border-bottom-left-radius: 6px !important;
}

.chat-message__top strong {
  font-weight: 600 !important;
}

body.theme-light {
  background: #f7f4fb !important;
  color: #191420 !important;
}

body.theme-light .topbar,
body.theme-light .profile-hero,
body.theme-light .profile-panel,
body.theme-light .profile-history,
body.theme-light .rooms-section,
body.theme-light .room-tile,
body.theme-light .profile-menu__panel,
body.theme-light .chat-panel,
body.theme-light .panel {
  border-color: rgba(73, 54, 110, .14) !important;
  background: rgba(255, 255, 255, .88) !important;
  color: #191420 !important;
}

body.theme-light .topbar__nav a,
body.theme-light .profile-hero p,
body.theme-light .profile-hero span,
body.theme-light .profile-panel__head span,
body.theme-light .room-tile__body p,
body.theme-light .room-tile__details,
body.theme-light .chat-message__top span,
body.theme-light .chat-message__meta {
  color: #665a73 !important;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light .room-tile__body h2,
body.theme-light .profile-menu__identity strong,
body.theme-light .profile-hero__stats strong {
  color: #191420 !important;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  border-color: rgba(73, 54, 110, .18) !important;
  background: rgba(248, 245, 252, .92) !important;
  color: #191420 !important;
}

body.theme-light .button--secondary {
  border-color: rgba(73, 54, 110, .16) !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #241b30 !important;
}

body.theme-light .site-footer {
  background: #f0ebf7 !important;
  color: #30273d !important;
}

@media (min-width: 921px) {
  .profile-menu__panel {
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 280px !important;
  }

  .topbar .profile-menu > summary.button--profile {
    min-width: 132px !important;
  }
}

@media (max-width: 920px) {
  body {
    padding-top: calc(66px + env(safe-area-inset-top)) !important;
  }

  .topbar {
    grid-template-columns: 34px minmax(0, 1fr) 60px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 6px !important;
    border-radius: 14px !important;
  }

  .topbar .brand {
    width: 34px !important;
    min-width: 34px !important;
    height: 46px !important;
  }

  .topbar .brand img {
    width: 24px !important;
    height: 24px !important;
  }

  .topbar__nav,
  .topbar__actions,
  .topbar .profile-menu {
    height: 46px !important;
  }

  .topbar__actions,
  .topbar .profile-menu {
    width: 60px !important;
    min-width: 60px !important;
  }

  .topbar__nav a,
  .topbar .button--profile,
  .topbar .profile-menu > summary.button--profile {
    height: 46px !important;
    min-height: 46px !important;
    grid-template-rows: 20px 13px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon,
  .topbar .profile-mini-avatar {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    font-size: 9.5px !important;
    font-weight: 500 !important;
  }

  .profile-menu[open]::before {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1390 !important;
    content: "" !important;
    background: rgba(7, 5, 11, .62) !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1400 !important;
    width: 100vw !important;
    max-height: min(72dvh, 440px) !important;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px 22px 0 0 !important;
    overflow-y: auto !important;
  }

  .profile-menu__identity {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .profile-menu__avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
  }

  .profile-menu__panel a,
  .profile-menu__panel button {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  .rooms-section {
    width: 100% !important;
    margin: 18px 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .section-title h2 {
    font-size: 26px !important;
  }

  .room-tile {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    min-height: 162px !important;
    border-radius: 13px !important;
  }

  .room-tile__media {
    min-height: 162px !important;
  }

  .room-tile__body {
    padding: 12px !important;
  }

  .room-tile__body h2 {
    font-size: 16px !important;
  }

  .profile-hero,
  .profile-layout,
  .profile-history {
    width: 100% !important;
  }

  .profile-hero {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 10px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .profile-hero__avatar {
    width: 68px !important;
    height: 68px !important;
  }

  .profile-hero__stats {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .profile-layout,
  .profile-panel--identity {
    grid-template-columns: 1fr !important;
  }

  .profile-avatar-upload {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .profile-avatar-upload__preview {
    width: 56px !important;
    height: 56px !important;
  }

  .chat-panel {
    border-radius: 14px !important;
  }

  .chat-list {
    padding: 12px 8px !important;
  }

  .chat-message {
    max-width: min(86%, 340px) !important;
  }

  .chat-message p {
    font-size: 14px !important;
  }
}

/* 2026-07-10 mobile player/header/chat/profile fixes. */
.home-hero,
.home-story,
.home-open-rooms,
.page-hero,
.about-editorial,
.about-process {
  width: min(1560px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 1px solid rgba(226, 214, 255, .1) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.profile-tabs {
  display: flex;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto 14px;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 16px;
  background: rgba(26, 22, 34, .72);
}

.profile-tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(239, 232, 250, .72);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.profile-tab.is-active {
  background: rgba(139, 92, 246, .9);
  color: #fff;
}

.profile-theme-toggle {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.profile-theme-toggle > span {
  display: grid;
  gap: 3px;
}

.profile-theme-toggle strong {
  font-weight: 600;
}

.profile-theme-toggle small {
  color: rgba(217, 204, 239, .62);
  font-size: 13px;
}

.profile-theme-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-theme-toggle i {
  position: relative;
  display: block;
  width: 54px;
  min-width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  transition: background .18s ease;
}

.profile-theme-toggle i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .18s ease;
}

.profile-theme-toggle input[type="checkbox"]:checked + i {
  background: #8b5cf6;
}

.profile-theme-toggle input[type="checkbox"]:checked + i::after {
  transform: translateX(24px);
}

.avatar-crop-modal[hidden] {
  display: none !important;
}

.avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 5, 8, .76);
  backdrop-filter: blur(10px);
}

.avatar-crop-dialog {
  display: grid;
  width: min(640px, 100%);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 214, 255, .14);
  border-radius: 16px;
  background: #242129;
  color: #f8f5ff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

.avatar-crop-head,
.avatar-crop-actions,
.avatar-crop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-crop-head {
  justify-content: space-between;
}

.avatar-crop-head strong {
  font-weight: 600;
}

.avatar-crop-head button,
.avatar-crop-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.avatar-crop-head img {
  width: 18px;
  height: 18px;
}

.avatar-crop-dialog p {
  margin: 0;
  color: rgba(239, 232, 250, .76);
  line-height: 1.45;
  text-align: center;
}

.avatar-crop-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #555;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.avatar-crop-stage:active {
  cursor: grabbing;
}

.avatar-crop-stage canvas {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 1;
  height: auto;
}

.avatar-crop-frame {
  position: absolute;
  width: min(330px, 72%);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.avatar-crop-hint {
  flex: 1;
  color: rgba(239, 232, 250, .74);
  font-size: 13px;
  text-align: center;
}

.avatar-crop-actions {
  justify-content: center;
  flex-wrap: wrap;
}

body.theme-light {
  --text: #15101d !important;
  --muted: #54495f !important;
  background: #f6f2fb !important;
  color: #15101d !important;
}

body.theme-light p,
body.theme-light span,
body.theme-light small,
body.theme-light label,
body.theme-light .profile-panel__head span,
body.theme-light .profile-theme-toggle small,
body.theme-light .room-tile__body p,
body.theme-light .page-hero__copy p,
body.theme-light .home-hero__content p {
  color: #51465c !important;
}

body.theme-light .button,
body.theme-light button {
  color: #191420;
}

body.theme-light .button--primary,
body.theme-light .profile-tab.is-active {
  background: #6d44dc !important;
  color: #fff !important;
}

body.theme-light .topbar__nav a.is-active,
body.theme-light .topbar__nav a:hover,
body.theme-light .topbar__nav a:focus-visible {
  color: #15101d !important;
  background: rgba(109, 68, 220, .12) !important;
}

body.theme-light .home-hero,
body.theme-light .home-story,
body.theme-light .home-open-rooms,
body.theme-light .page-hero,
body.theme-light .about-editorial,
body.theme-light .about-process,
body.theme-light .profile-tabs,
body.theme-light .profile-theme-toggle,
body.theme-light .avatar-crop-dialog {
  border-color: rgba(55, 40, 83, .14) !important;
  background-color: rgba(255, 255, 255, .9) !important;
  color: #15101d !important;
}

body.theme-light .avatar-crop-dialog p,
body.theme-light .avatar-crop-hint {
  color: #51465c !important;
}

.admin-shell {
  display: grid;
  gap: 18px;
  width: min(1560px, calc(100vw - 48px));
  margin: 24px auto;
}

.admin-head,
.admin-metrics,
.admin-charts,
.admin-section,
.admin-user,
.admin-rooms article {
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 16px;
  background: rgba(36, 31, 44, .72);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
}

.admin-head span,
.admin-metrics span,
.admin-rooms span,
.admin-user small,
.admin-user__status span,
.admin-user__status small {
  color: rgba(217, 204, 239, .68);
}

.admin-head h1,
.admin-charts h2,
.admin-section h2 {
  margin: 0;
}

.admin-head h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.admin-metrics article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background: rgba(10, 8, 14, .18);
}

.admin-metrics strong {
  font-size: 28px;
}

.admin-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-charts article,
.admin-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-bar {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.admin-bar i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.admin-bar i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: #8b5cf6;
  content: "";
}

.admin-users,
.admin-rooms {
  display: grid;
  gap: 12px;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.3fr) minmax(170px, .6fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.admin-user.is-blocked {
  border-color: rgba(255, 91, 104, .36);
}

.admin-user__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.admin-user__identity img,
.admin-user__identity > span {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #8b5cf6;
  object-fit: cover;
  font-weight: 800;
}

.admin-user__identity div,
.admin-user__identity strong,
.admin-user__identity small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user__edit,
.admin-user__block {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-user__block {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 110px 120px 150px;
}

.admin-user input,
.admin-user select {
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 10px;
  background: rgba(10, 8, 14, .52);
  color: var(--text);
  font: inherit;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(239, 232, 250, .78);
  font-size: 13px;
}

.admin-check input {
  width: 16px;
  height: 16px;
}

.admin-user__status {
  display: grid;
  gap: 3px;
}

.admin-rooms {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.admin-rooms article {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-rooms p {
  margin: 0;
  color: #fff;
}

.admin-rooms a {
  color: #d7c8ff;
  font-weight: 700;
}

body.theme-light .admin-head,
body.theme-light .admin-metrics,
body.theme-light .admin-charts,
body.theme-light .admin-section,
body.theme-light .admin-user,
body.theme-light .admin-rooms article {
  border-color: rgba(55, 40, 83, .14);
  background: rgba(255, 255, 255, .9);
  color: #15101d;
}

body.theme-light .admin-user input,
body.theme-light .admin-user select {
  background: rgba(244, 241, 250, .92);
  color: #15101d;
}

@media (max-width: 920px) {
  .admin-shell {
    width: 100% !important;
    margin: 8px 0 24px !important;
  }

  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .admin-metrics,
  .admin-charts,
  .admin-user,
  .admin-user__edit,
  .admin-user__block {
    grid-template-columns: 1fr !important;
  }

  .admin-metrics {
    gap: 0;
  }

  .admin-section,
  .admin-charts article {
    padding: 16px;
  }

  .admin-user {
    align-items: stretch;
  }

  .admin-user__block {
    grid-column: auto;
  }

  body {
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
  }

  .topbar {
    inset: calc(6px + env(safe-area-inset-top)) 8px auto 8px !important;
    grid-template-columns: 32px minmax(0, 1fr) 58px !important;
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 5px 6px !important;
  }

  .topbar__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: 46px !important;
    overflow: hidden !important;
  }

  .topbar__nav a,
  .topbar .button--profile,
  .topbar .profile-menu > summary.button--profile {
    height: 46px !important;
    min-height: 46px !important;
    padding: 4px 1px !important;
    border-radius: 9px !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 1800 !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    max-height: min(76dvh, 520px) !important;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px 22px 0 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
    transition: opacity .2s ease, transform .24s ease !important;
  }

  .topbar .profile-menu[open] .profile-menu__panel {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .player-panel--active {
    height: clamp(292px, 78vw, 440px) !important;
    min-height: 292px !important;
    max-height: 440px !important;
  }

  .watch-player__mobile-title {
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 8px 12px !important;
    background: rgba(8, 6, 12, .62) !important;
  }

  .watch-player--controls-hidden .watch-player__mobile-title {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .watch-player__mobile-title strong {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .watch-player__bar {
    min-height: 54px !important;
    max-height: 54px !important;
    grid-template-columns: 34px 30px minmax(88px, auto) minmax(58px, 1fr) 34px 34px 34px !important;
    gap: 3px !important;
    padding: 16px 8px 6px !important;
    background: rgba(8, 6, 12, .72) !important;
  }

  .player-range {
    top: 5px !important;
    right: 8px !important;
    left: 8px !important;
    width: calc(100% - 16px) !important;
  }

  .player-volume {
    position: relative !important;
    overflow: visible !important;
  }

  .watch-player.watch-player--volume-open .player-volume__range {
    bottom: 108px !important;
    left: 50% !important;
    width: 96px !important;
    height: 4px !important;
    transform: translateX(-50%) rotate(-90deg) !important;
  }

  .player-settings-menu {
    right: 8px !important;
    bottom: 62px !important;
    width: min(238px, calc(100vw - 20px)) !important;
    max-height: min(50svh, 300px) !important;
    overflow-y: auto !important;
  }

  .chat-panel {
    min-height: 560px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .chat-panel > .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(226, 214, 255, .1) !important;
  }

  .chat-panel > .section-title h2 {
    font-size: 26px !important;
    line-height: 1 !important;
  }

  .chat-collapse-button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 44px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  .chat-collapse-button img {
    width: 14px !important;
    height: 14px !important;
  }

  .chat-panel.chat-panel--collapsed {
    min-height: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    padding: 12px 14px !important;
  }

  .chat-panel.chat-panel--collapsed > .section-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .profile-tabs,
  .home-hero,
  .home-story,
  .home-open-rooms,
  .page-hero,
  .about-editorial,
  .about-process {
    width: 100% !important;
    border-radius: 14px !important;
  }

  .avatar-crop-modal {
    align-items: end !important;
    padding: 0 !important;
  }

  .avatar-crop-dialog {
    width: 100dvw !important;
    max-height: 92dvh !important;
    overflow-y: auto !important;
    border-radius: 22px 22px 0 0 !important;
  }
}

/* 2026-07-10 final mobile/header/profile/chat repair layer. */
.home-hero,
.home-story,
.home-open-rooms,
.page-hero,
.about-editorial,
.about-process,
.rooms-section,
.create-layout,
.browser-search-app {
  width: min(1560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(12, 9, 18, .88), rgba(12, 9, 18, .42)),
    url("/static/assets/background/photo-1524985069026-dd778a71c7b4.avif") center / cover no-repeat !important;
}

.home-story,
.about-process {
  background:
    linear-gradient(90deg, rgba(12, 9, 18, .9), rgba(12, 9, 18, .58)),
    url("/static/assets/background/photo-1440404653325-ab127d49abc1.avif") center / cover no-repeat !important;
}

.page-hero--about,
.about-editorial {
  background:
    linear-gradient(90deg, rgba(12, 9, 18, .9), rgba(12, 9, 18, .48)),
    url("/static/assets/background/photo-1688678004647-945d5aaf91c1.avif") center / cover no-repeat !important;
}

.page-hero--rooms,
.rooms-section {
  background:
    linear-gradient(90deg, rgba(18, 14, 25, .92), rgba(18, 14, 25, .7)),
    url("/static/assets/background/photo-1524985069026-dd778a71c7b4.avif") center / cover no-repeat !important;
}

.browser-shell.browser-search-app,
.create-layout--premium {
  min-height: 0 !important;
  padding-top: clamp(20px, 3vw, 44px) !important;
  padding-bottom: clamp(24px, 4vw, 56px) !important;
}

.browser-search-head {
  gap: 18px !important;
}

.browser-results {
  min-height: 160px !important;
}

.create-layout--premium {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, .7fr) !important;
}

.create-card {
  align-content: start !important;
}

.chat-list {
  gap: 12px !important;
  padding: 4px 4px 12px !important;
}

.chat-message {
  width: fit-content !important;
  max-width: min(82%, 520px) !important;
  align-self: flex-start !important;
  justify-self: auto !important;
}

.chat-message:not(.chat-message--own):not(.chat-message--system) {
  align-self: flex-start !important;
  justify-items: start !important;
}

.chat-message--own:not(.chat-message--system) {
  align-self: flex-end !important;
  justify-items: end !important;
}

.chat-message--system {
  align-self: center !important;
  width: min(92%, 520px) !important;
  max-width: min(92%, 520px) !important;
  text-align: center !important;
}

.chat-message--own .chat-message__avatar {
  justify-self: end !important;
}

.chat-message--own .chat-message__top,
.chat-message--own .chat-message__meta,
.chat-message--own .chat-reply,
.chat-message--own p {
  justify-self: end !important;
}

.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-message__top,
.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-message__meta,
.chat-message:not(.chat-message--own):not(.chat-message--system) .chat-reply,
.chat-message:not(.chat-message--own):not(.chat-message--system) p {
  justify-self: start !important;
}

.chat-message p {
  max-width: min(100%, 520px) !important;
  overflow-wrap: anywhere !important;
}

.toast,
.player-chat-notice {
  touch-action: pan-y !important;
  will-change: transform, opacity !important;
}

.chat-typing {
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: min(86%, 360px) !important;
  margin: 0 4px 8px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(226, 214, 255, .1) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .045) !important;
  color: rgba(239, 232, 250, .72) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.chat-typing[hidden] {
  display: none !important;
}

.participant-permissions {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(226, 214, 255, .1) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .045) !important;
}

.participant-permissions label {
  display: flex !important;
  min-height: 32px !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(239, 232, 250, .82) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.participant-permissions input {
  width: 16px !important;
  height: 16px !important;
  accent-color: #8b5cf6 !important;
}

.participant-permissions button {
  min-height: 34px !important;
  border: 1px solid rgba(139, 92, 246, .4) !important;
  border-radius: 10px !important;
  background: rgba(139, 92, 246, .2) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* 2026-07-10 hero background remap and avatar image fill. */
.home-hero,
.page-hero {
  position: relative !important;
  overflow: hidden !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 5, 10, .92), rgba(7, 5, 10, .42)),
    url("/static/assets/background/photo-1524985069026-dd778a71c7b4.avif") !important;
}

.page-hero--rooms {
  background-image:
    linear-gradient(90deg, rgba(12, 9, 16, .9), rgba(12, 9, 16, .52)),
    url("/static/assets/background/photo-1440404653325-ab127d49abc1.avif") !important;
}

.page-hero--about {
  background-image:
    linear-gradient(90deg, rgba(10, 7, 13, .9), rgba(10, 7, 13, .46)),
    url("/static/assets/background/photo-1688678004647-945d5aaf91c1.avif") !important;
}

.home-story,
.home-open-rooms,
.rooms-section,
.about-editorial,
.about-process {
  background-image: none !important;
}

.profile-mini-avatar img,
.profile-menu__avatar img,
.participant-chip__avatar img,
.participant-row__avatar img,
.chat-message__avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

.profile-mini-avatar,
.profile-menu__avatar {
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

@media (min-width: 921px) {
  .topbar .profile-menu {
    position: relative !important;
  }

  .topbar .profile-menu__panel {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 260px !important;
    max-width: 260px !important;
    transform: translateY(8px) !important;
  }

  .topbar .profile-menu[open] .profile-menu__panel,
  .topbar .profile-menu:hover .profile-menu__panel,
  .topbar .profile-menu:focus-within .profile-menu__panel {
    transform: translateY(0) !important;
  }
}

@media (max-width: 920px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body {
    padding-top: calc(70px + env(safe-area-inset-top)) !important;
  }

  .topbar {
    position: fixed !important;
    inset: calc(8px + env(safe-area-inset-top)) 8px auto 8px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 58px !important;
    align-items: center !important;
    gap: 6px !important;
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    overflow: visible !important;
    border-radius: 14px !important;
  }

  .topbar .brand {
    width: 34px !important;
    min-width: 34px !important;
    height: 46px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  .topbar .brand img {
    width: 25px !important;
    height: 25px !important;
  }

  .topbar .brand span {
    display: none !important;
  }

  .topbar__nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2px !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 46px !important;
    padding: 2px !important;
    overflow: hidden !important;
  }

  .topbar__nav a,
  .topbar .button--profile,
  .topbar .profile-menu > summary.button--profile {
    min-width: 0 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 1px !important;
    border-radius: 10px !important;
    gap: 1px !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }

  .topbar .nav-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .topbar__actions {
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 46px !important;
    overflow: visible !important;
  }

  .topbar__actions > .button--create,
  .topbar__actions > .button--login {
    display: none !important;
  }

  .topbar .profile-menu {
    position: static !important;
    display: block !important;
    width: 58px !important;
    height: 46px !important;
  }

  .topbar .profile-menu > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    grid-template-rows: 20px 1fr !important;
    place-items: center !important;
    width: 58px !important;
    max-width: 58px !important;
  }

  .topbar .profile-mini-avatar {
    width: 21px !important;
    height: 21px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  .topbar .profile-menu[open]::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1790 !important;
    display: block !important;
    background: rgba(5, 4, 8, .58) !important;
    backdrop-filter: blur(10px) !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 1800 !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    max-height: min(78dvh, 540px) !important;
    margin: 0 !important;
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px 22px 0 0 !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    transition: transform .24s ease, opacity .18s ease !important;
  }

  .topbar .profile-menu[open] .profile-menu__panel {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .profile-menu__identity {
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
  }

  .profile-menu__avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  .profile-menu__panel a,
  .profile-menu__panel button {
    min-height: 48px !important;
    border-radius: 13px !important;
    font-size: 15px !important;
  }

  .home-hero,
  .home-story,
  .home-open-rooms,
  .page-hero,
  .about-editorial,
  .about-process,
  .rooms-section,
  .create-layout,
  .browser-search-app {
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    border-radius: 14px !important;
  }

  .home-hero,
  .page-hero {
    min-height: 0 !important;
    padding: 22px 16px !important;
  }

  .browser-shell.browser-search-app {
    padding: 18px 0 24px !important;
  }

  .browser-search-head {
    grid-template-columns: 44px 1fr !important;
    align-items: center !important;
  }

  .browser-mode-tabs {
    justify-self: end !important;
  }

  .browser-form {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .create-layout--premium {
    grid-template-columns: 1fr !important;
  }

  .chat-list {
    gap: 10px !important;
    padding-inline: 2px !important;
  }

  .chat-message {
    max-width: min(86vw, 330px) !important;
  }

  .chat-message--system {
    width: min(92vw, 340px) !important;
    max-width: min(92vw, 340px) !important;
  }
}

/* 2026-07-10 final mobile topbar and queue containment fix. */
@media (max-width: 920px) {
  body {
    padding-top: calc(76px + env(safe-area-inset-top)) !important;
  }

  .topbar {
    position: fixed !important;
    inset: calc(8px + env(safe-area-inset-top)) 8px auto 8px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 58px !important;
    grid-template-rows: 50px !important;
    align-items: center !important;
    gap: 2px !important;
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    min-width: 0 !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    overflow: visible !important;
    border-radius: 14px !important;
    contain: none !important;
    filter: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar .brand {
    grid-column: 1 !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  .topbar .brand img {
    width: 24px !important;
    height: 24px !important;
  }

  .topbar .brand span {
    display: none !important;
  }

  .topbar__nav {
    grid-column: 2 !important;
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 1px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .topbar__actions {
    grid-column: 3 !important;
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .topbar .profile-menu {
    position: static !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
  }

  .topbar__nav a,
  .topbar .profile-menu > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    grid-template-rows: 20px 14px !important;
    place-items: center !important;
    align-content: center !important;
    gap: 1px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    padding: 3px 1px !important;
    border-radius: 11px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .topbar .profile-mini-avatar {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    margin: 0 !important;
    border-radius: 50% !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 9px !important;
    font-weight: 450 !important;
    line-height: 1.05 !important;
  }

  .topbar .button--profile > span:not(.profile-mini-avatar) {
    font-size: 10.5px !important;
    font-weight: 450 !important;
  }

  .topbar .profile-menu[open]::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1790 !important;
    display: block !important;
    background: rgba(5, 4, 8, .58) !important;
    backdrop-filter: blur(10px) !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1800 !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    max-height: min(78dvh, 540px) !important;
    margin: 0 !important;
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom)) !important;
    border-radius: 22px 22px 0 0 !important;
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    transition: transform .24s ease, opacity .18s ease !important;
  }

  .topbar .profile-menu[open] .profile-menu__panel {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .queue-panel {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .queue-panel.is-empty {
    min-height: fit-content !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 16px !important;
  }

  .queue-panel [data-queue-empty] {
    display: block !important;
    margin: 8px 0 2px !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    padding-bottom: 2px !important;
  }

  .queue-panel [data-queue-empty][hidden] {
    display: none !important;
  }
}

/* 2026-07-10 premium profile/header alignment pass. */
.profile-hero--view > .button {
  align-self: end !important;
  justify-self: end !important;
  display: inline-flex !important;
  min-width: 148px !important;
  min-height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 6px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 6px 8px !important;
  }

  .topbar .brand {
    display: none !important;
  }

  .topbar__nav {
    grid-column: 1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .topbar__actions {
    grid-column: 2 !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .topbar .profile-menu {
    width: 58px !important;
    min-width: 58px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .topbar__nav a,
  .topbar .profile-menu > summary.button--profile,
  .topbar__actions > .button--profile {
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  .topbar .profile-mini-avatar {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
  }

  .profile-hero--view {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .profile-hero--view > .button {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    min-width: 124px !important;
    min-height: 42px !important;
    margin-top: 2px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
  }
}

/* 2026-07-10 absolute mobile header contract: icons only, no brand/text. */
@media (max-width: 920px) {
  body {
    padding-top: calc(66px + env(safe-area-inset-top)) !important;
  }

  .topbar {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: calc(6px + env(safe-area-inset-top)) 8px auto 8px !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    grid-template-rows: 48px !important;
    gap: 6px !important;
    align-items: center !important;
    width: calc(100dvw - 16px) !important;
    max-width: calc(100dvw - 16px) !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    overflow: visible !important;
    border-radius: 14px !important;
    transform: none !important;
  }

  .topbar .brand {
    display: none !important;
  }

  .topbar__nav {
    grid-column: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
  }

  .topbar__actions,
  .topbar .profile-menu {
    grid-column: 2 !important;
    display: grid !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
  }

  .topbar__actions .button:not(.button--profile),
  .topbar__logout {
    display: none !important;
  }

  .topbar__nav a,
  .topbar .profile-menu > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    grid-template-rows: 1fr !important;
    place-items: center !important;
    align-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
  }

  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon {
    display: block !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .topbar .profile-mini-avatar {
    display: block !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
}

.profile-email-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.profile-email-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verify-form {
  flex: 0 0 auto;
  margin: 0;
}

.profile-verify-form .button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .profile-email-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026-07-10 verification modal cleanup. */
.auth-view[data-auth-view="verify"],
.auth-view[data-auth-view="reset"] {
  gap: 16px !important;
  text-align: center !important;
}

.auth-view[data-auth-view="verify"] h2,
.auth-view[data-auth-view="reset"] h2 {
  margin: 6px 0 2px !important;
  font-size: clamp(28px, 5vw, 34px) !important;
  line-height: 1.12 !important;
}

.auth-code-panel {
  display: grid !important;
  gap: 16px !important;
  padding: 20px 18px !important;
  overflow: visible !important;
  border-color: rgba(196, 181, 253, .18) !important;
  border-radius: 16px !important;
  background: rgba(31, 26, 38, .72) !important;
}

.auth-code-panel::before,
.auth-code-panel::after {
  display: none !important;
}

.auth-code-panel > strong {
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.auth-code-panel > p {
  max-width: 320px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.auth-code-cells,
.auth-code-cells.auth-code-cells--four {
  display: grid !important;
  grid-template-columns: repeat(4, 72px) !important;
  justify-content: center !important;
  gap: 10px !important;
}

.auth-code-cells input {
  width: 72px !important;
  height: 58px !important;
  border-radius: 12px !important;
  font-size: 26px !important;
}

.auth-code-resend {
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 44px !important;
  margin: 0 auto !important;
  padding: 9px 14px !important;
  border-radius: 12px !important;
}

.auth-code-resend button {
  color: #fff !important;
}

@media (max-width: 520px) {
  .auth-code-cells,
  .auth-code-cells.auth-code-cells--four {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .auth-code-cells input {
    width: 100% !important;
    height: 54px !important;
  }

  .auth-code-resend {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* 2026-07-10 premium admins console. */
.admin-shell--premium {
  gap: 20px !important;
  color: #f8f5ff;
}

.admin-shell--premium .admin-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  padding: 24px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(36, 31, 44, .72) 42%),
    rgba(20, 17, 26, .92) !important;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 14px;
  background: rgba(10, 8, 14, .34);
}

.admin-tabs a {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(239, 232, 250, .72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs a.is-active,
.admin-tabs a:hover {
  background: rgba(139, 92, 246, .34);
  color: #fff;
}

.admin-graph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-graph-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(226, 214, 255, .12);
  border-radius: 18px;
  background: rgba(36, 31, 44, .72);
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-head span {
  color: rgba(217, 204, 239, .62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-card-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.admin-card-head > strong {
  font-size: 32px;
  line-height: 1;
}

.admin-line-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.admin-line-chart .grid line {
  stroke: rgba(226, 214, 255, .12);
  stroke-width: 1;
}

.admin-line-chart .area {
  fill: rgba(139, 92, 246, .18);
}

.admin-line-chart .line {
  fill: none;
  stroke: #a986ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.admin-line-chart circle {
  fill: #fff;
  stroke: #8b5cf6;
  stroke-width: 4;
}

.admin-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  color: rgba(217, 204, 239, .56);
  font-size: 11px;
  text-align: center;
}

.admin-section--users,
.admin-section--rooms {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)),
    rgba(36, 31, 44, .72) !important;
}

.admin-section--users .admin-user {
  grid-template-columns: minmax(230px, .9fr) minmax(160px, .45fr) !important;
  padding: 16px !important;
}

.admin-user__edit,
.admin-user__block {
  grid-column: 1 / -1;
}

.admin-user__unblock {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-rooms article {
  min-height: 168px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(139, 92, 246, 0)),
    rgba(10, 8, 14, .32) !important;
}

@media (max-width: 920px) {
  .admin-shell--premium .admin-head,
  .admin-graph-grid,
  .admin-section--users .admin-user {
    grid-template-columns: 1fr !important;
  }

  .admin-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

/* 2026-07-10 hard mobile header contract: no brand, no labels, large icons. */
@media (max-width: 920px) {
  .topbar {
    position: fixed !important;
    inset: auto 10px calc(8px + env(safe-area-inset-bottom)) 10px !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-height: 64px !important;
    padding: 6px !important;
    border: 1px solid rgba(216, 202, 255, .16) !important;
    border-radius: 16px !important;
    background: rgba(16, 12, 24, .96) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .42) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
  }

  .topbar::before,
  .topbar::after,
  .topbar .brand,
  .topbar__actions .button:not(.button--profile),
  .topbar__logout {
    display: none !important;
  }

  .topbar__nav,
  .topbar__actions,
  .topbar .profile-menu {
    display: contents !important;
  }

  .topbar__nav a,
  .topbar .button--profile,
  .topbar .profile-menu > summary.button--profile {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: rgba(244, 239, 255, .84) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .topbar__nav a.is-active,
  .topbar__nav a:hover,
  .topbar__nav a:focus-visible,
  .topbar .button--profile:hover,
  .topbar .button--profile:focus-visible {
    background: rgba(151, 105, 255, .18) !important;
    color: #fff !important;
  }

  .topbar__nav a::after,
  .topbar .button--profile::after,
  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar .button--profile img.nav-icon {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .topbar .profile-mini-avatar {
    display: grid !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    place-items: center !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .topbar .profile-menu[open]::before {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    content: "" !important;
    background: rgba(4, 3, 8, .62) !important;
  }

  .topbar .profile-menu__panel {
    position: fixed !important;
    right: 14px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    left: 14px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 18px !important;
  }
}

.profile-email-row {
  align-items: center;
}

.profile-email-status {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.profile-email-status--ok {
  color: #d8fff0;
  background: rgba(16, 185, 129, .24);
  border: 1px solid rgba(52, 211, 153, .48);
}

.profile-email-status--bad {
  color: #ffe1e1;
  background: rgba(239, 68, 68, .2);
  border: 1px solid rgba(248, 113, 113, .5);
}

.profile-history__open {
  display: block;
  margin: 0;
}

.profile-history__open .profile-history__thumb {
  width: 100%;
  cursor: pointer;
}

.profile-history__open .profile-history__thumb:focus-visible {
  outline: 3px solid rgba(168, 133, 255, .72);
  outline-offset: 3px;
}

.profile-history__body small {
  color: rgba(221, 210, 245, .68);
  font-size: 12px;
  font-weight: 800;
}

.profile-hero__copy h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-display-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-watch-verified {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  filter: brightness(0) saturate(100%) invert(54%) sepia(88%) saturate(3067%) hue-rotate(234deg) brightness(103%) contrast(101%) drop-shadow(0 0 18px rgba(150, 97, 255, .36));
}

.profile-login-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #67f5bd;
  font-size: 13px;
  font-weight: 900;
}

.profile-online-status::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, .72);
}

.topbar__mobile-profile {
  display: none;
}

/* 2026-07-10 final structural mobile nav: direct profile link, no dropdown. */
@media (max-width: 920px) {
  .topbar {
    position: fixed !important;
    inset: auto 10px calc(8px + env(safe-area-inset-bottom)) 10px !important;
    z-index: 140 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
    align-items: center !important;
    justify-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-height: 66px !important;
    padding: 6px !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }

  .topbar .brand,
  .topbar .profile-menu--desktop,
  .topbar__actions .button--create,
  .topbar__actions .button--login,
  .topbar__logout {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .topbar__nav,
  .topbar__actions {
    display: contents !important;
  }

  .topbar__mobile-profile {
    display: grid !important;
  }

  .topbar__nav a,
  .topbar__mobile-profile,
  .topbar__actions > .button--profile {
    width: 100% !important;
    height: 54px !important;
    min-width: 0 !important;
    min-height: 54px !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
  }

  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar__actions > .button--profile > span:not(.profile-mini-avatar),
  .topbar__mobile-profile > span:not(.profile-mini-avatar) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .topbar__nav img.nav-icon,
  .topbar__actions > .button--profile img.nav-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .topbar__mobile-profile .profile-mini-avatar {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    place-items: center !important;
    border-radius: 50% !important;
  }
}

/* 2026-07-10 final header/profile correction: top mobile bar and real profile menu. */
.profile-hero__copy h1 .profile-display-name {
  display: inline !important;
  color: inherit !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.profile-watch-verified {
  align-self: center;
}

@media (max-width: 920px) {
  body {
    padding-top: 84px !important;
    padding-bottom: 0 !important;
  }

  .topbar {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: 10px !important;
    bottom: auto !important;
    left: 10px !important;
    z-index: 160 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }

  .topbar .brand,
  .topbar__actions .button--create,
  .topbar__actions .button--login,
  .topbar__logout,
  .topbar__mobile-profile {
    display: none !important;
  }

  .topbar__nav,
  .topbar__actions,
  .topbar .profile-menu--main {
    display: contents !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .topbar__nav a,
  .topbar .profile-menu--main > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .topbar__nav a:hover,
  .topbar__nav a:focus-visible,
  .topbar__nav a.is-active,
  .topbar .profile-menu--main > summary.button--profile:hover,
  .topbar .profile-menu--main > summary.button--profile:focus-visible,
  .topbar .profile-menu--main[open] > summary.button--profile {
    background: rgba(151, 105, 255, .18) !important;
  }

  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar .profile-menu--main > summary.button--profile > span:not(.profile-mini-avatar),
  .topbar__actions > .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar__actions > .button--profile img.nav-icon {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    object-fit: contain !important;
  }

  .topbar .profile-menu--main .profile-mini-avatar {
    display: grid !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    place-items: center !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .topbar .profile-menu--main[open]::before {
    position: fixed !important;
    inset: 0 !important;
    z-index: 158 !important;
    display: block !important;
    content: "" !important;
    background: rgba(4, 3, 8, .56) !important;
  }

  .topbar .profile-menu--main .profile-menu__panel {
    position: fixed !important;
    top: calc(84px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    z-index: 161 !important;
    display: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(18, 14, 27, .98) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .46) !important;
  }

  .topbar .profile-menu--main[open] .profile-menu__panel {
    display: grid !important;
    gap: 10px !important;
  }

  .topbar .profile-menu--main .profile-menu__panel a,
  .topbar .profile-menu--main .profile-menu__panel button {
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
  }
}

/* 2026-07-10 fixed mobile header layout: children stay inside the bar. */
@media (max-width: 920px) {
  body {
    padding-top: 88px !important;
  }

  .topbar {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: 10px !important;
    bottom: auto !important;
    left: 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 4px !important;
    align-items: center !important;
    min-height: 66px !important;
    padding: 7px !important;
    overflow: visible !important;
  }

  .topbar .brand,
  .topbar__actions .button--create,
  .topbar__actions .button--login,
  .topbar__logout,
  .topbar__mobile-profile {
    display: none !important;
  }

  .topbar__nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .topbar__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .topbar .profile-menu--main {
    display: block !important;
    width: 58px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  .topbar__nav a,
  .topbar .profile-menu--main > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
  }

  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar .profile-menu--main > summary.button--profile > span:not(.profile-mini-avatar),
  .topbar__actions > .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar__actions > .button--profile img.nav-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .topbar .profile-menu--main .profile-mini-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .topbar .profile-menu--main .profile-menu__panel {
    top: auto !important;
  }

  .profile-hero--view {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 18px !important;
  }

  .profile-hero--view .profile-hero__avatar,
  .profile-hero--view .profile-hero__avatar img,
  .profile-hero--view .profile-hero__avatar span {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
  }

  .profile-hero--view .profile-hero__copy {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .profile-hero--view .profile-hero__copy h1 {
    display: flex !important;
    max-width: 100% !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 4px 0 2px !important;
    overflow: hidden !important;
    font-size: clamp(34px, 11vw, 44px) !important;
    line-height: .98 !important;
  }

  .profile-hero--view .profile-display-name {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .profile-hero--view .profile-watch-verified {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex: 0 0 22px !important;
  }

  .profile-hero--view > .button {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
}

/* Mobile profile menu opens as a bottom sheet, matching auth dialogs. */
@media (max-width: 920px) {
  .topbar .profile-menu--main[open]::before {
    position: fixed !important;
    inset: 0 !important;
    z-index: 158 !important;
    display: block !important;
    content: "" !important;
    background: rgba(4, 3, 8, .68) !important;
    backdrop-filter: blur(10px) !important;
  }

  .topbar .profile-menu--main .profile-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 162 !important;
    display: grid !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 10px !important;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(220, 205, 255, .16) !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    background: rgba(18, 14, 27, .98) !important;
    box-shadow: 0 -22px 70px rgba(0, 0, 0, .55) !important;
    transform: translateY(110%) !important;
    transition: transform .22s ease !important;
  }

  .topbar .profile-menu--main[open] .profile-menu__panel {
    transform: translateY(0) !important;
  }

  .topbar .profile-menu--main .profile-menu__identity {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 0 0 8px !important;
  }

  .topbar .profile-menu--main .profile-menu__panel a,
  .topbar .profile-menu--main .profile-menu__panel button {
    display: flex !important;
    width: 100% !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }
}

/* 2026-07-10 bottom app nav: large icons, profile opens like a modal. */
@media (max-width: 920px) {
  body {
    padding-top: 0 !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .topbar {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    z-index: 180 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 64px !important;
    gap: 4px !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-height: 66px !important;
    padding: 6px !important;
    border: 1px solid rgba(36, 44, 68, .12) !important;
    border-radius: 20px !important;
    background: rgba(250, 251, 255, .94) !important;
    box-shadow: 0 10px 34px rgba(14, 18, 35, .18) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    overflow: visible !important;
  }

  body.theme-light .topbar {
    background: rgba(250, 251, 255, .94) !important;
    border-color: rgba(36, 44, 68, .12) !important;
  }

  .topbar .brand,
  .topbar__actions .button--create,
  .topbar__actions .button--login,
  .topbar__logout,
  .topbar__mobile-profile {
    display: none !important;
  }

  .topbar__nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .topbar__actions {
    position: static !important;
    display: grid !important;
    width: 64px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .topbar .profile-menu--main {
    position: static !important;
    display: block !important;
    width: 64px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .topbar__nav a,
  .topbar .profile-menu--main > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #697086 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .topbar__nav a.is-active,
  .topbar__nav a:hover,
  .topbar__nav a:focus-visible,
  .topbar .profile-menu--main[open] > summary.button--profile,
  .topbar .profile-menu--main > summary.button--profile:hover,
  .topbar .profile-menu--main > summary.button--profile:focus-visible {
    background: rgba(139, 92, 246, .12) !important;
    color: #7c3aed !important;
  }

  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar .profile-menu--main > summary.button--profile > span:not(.profile-mini-avatar),
  .topbar__actions > .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar__actions > .button--profile img.nav-icon {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    opacity: 1 !important;
  }

  .topbar .profile-menu--main .profile-mini-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border: 2px solid rgba(139, 92, 246, .22) !important;
    border-radius: 50% !important;
  }

  .topbar .profile-menu--main[open]::before {
    position: fixed !important;
    inset: 0 !important;
    z-index: 181 !important;
    display: block !important;
    content: "" !important;
    background: rgba(5, 4, 10, .72) !important;
    backdrop-filter: blur(12px) !important;
  }

  .topbar .profile-menu--main .profile-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 182 !important;
    display: grid !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: 78dvh !important;
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(222, 211, 255, .16) !important;
    border-bottom: 0 !important;
    border-radius: 26px 26px 0 0 !important;
    background: rgba(18, 14, 27, .99) !important;
    box-shadow: 0 -26px 80px rgba(0, 0, 0, .58) !important;
    transform: translateY(110%) !important;
    transition: transform .24s ease !important;
    overflow: auto !important;
  }

  .topbar .profile-menu--main[open] .profile-menu__panel {
    transform: translateY(0) !important;
  }

  .profile-menu__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(218, 205, 255, .14) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .04) !important;
  }

  .profile-menu__close img {
    width: 18px !important;
    height: 18px !important;
  }

  .topbar .profile-menu--main .profile-menu__identity {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 4px 54px 10px 0 !important;
  }

  .topbar .profile-menu--main .profile-menu__avatar,
  .topbar .profile-menu--main .profile-menu__avatar img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
  }

  .topbar .profile-menu--main .profile-menu__identity strong {
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  .topbar .profile-menu--main .profile-menu__identity span {
    color: rgba(224, 213, 246, .7) !important;
    font-size: 14px !important;
  }

  .topbar .profile-menu--main .profile-menu__panel a,
  .topbar .profile-menu--main .profile-menu__panel button:not(.profile-menu__close) {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(139, 92, 246, .18) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
  }
}

/* 2026-07-10 avatar cropper: centered on mobile, no generated white padding. */
@media (max-width: 920px) {
  body.avatar-crop-open {
    overflow: hidden !important;
  }

  .avatar-crop-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1900 !important;
    display: grid !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 14px !important;
    background: rgba(6, 5, 10, .78) !important;
    backdrop-filter: blur(12px) !important;
  }

  .avatar-crop-dialog {
    width: min(94dvw, 440px) !important;
    max-height: min(92dvh, 720px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: rgba(26, 22, 34, .98) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55) !important;
  }

  .avatar-crop-stage {
    width: min(82dvw, 360px) !important;
    height: min(82dvw, 360px) !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    background: #111018 !important;
  }

  .avatar-crop-stage canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .avatar-crop-frame {
    width: 100% !important;
    height: 100% !important;
    border: 2px solid rgba(255, 255, 255, .88) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2) !important;
  }

  .avatar-crop-dialog p {
    font-size: 14px !important;
  }

  .avatar-crop-actions .button {
    width: 100% !important;
  }
}

/* 2026-07-10 final dark bottom header override. */
@media (max-width: 920px) {
  body {
    padding-top: 0 !important;
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .topbar {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    z-index: 180 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 64px !important;
    gap: 4px !important;
    align-items: center !important;
    width: auto !important;
    min-height: 66px !important;
    padding: 6px !important;
    border: 1px solid rgba(216, 202, 255, .16) !important;
    border-radius: 20px !important;
    background: rgba(16, 12, 24, .96) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .44) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
    overflow: visible !important;
  }

  body.theme-light .topbar {
    border-color: rgba(126, 95, 190, .18) !important;
    background: rgba(24, 18, 34, .94) !important;
    box-shadow: 0 16px 42px rgba(30, 18, 55, .28) !important;
  }

  .topbar .brand,
  .topbar__actions .button--create,
  .topbar__actions .button--login,
  .topbar__logout,
  .topbar__mobile-profile {
    display: none !important;
  }

  .topbar__nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .topbar__actions {
    position: static !important;
    display: grid !important;
    width: 64px !important;
    height: 54px !important;
    min-width: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .topbar .profile-menu--main {
    position: static !important;
    display: block !important;
    width: 64px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .topbar__nav a,
  .topbar .profile-menu--main > summary.button--profile,
  .topbar__actions > .button--profile {
    display: grid !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(244, 239, 255, .82) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .topbar__nav a.is-active,
  .topbar__nav a:hover,
  .topbar__nav a:focus-visible,
  .topbar .profile-menu--main[open] > summary.button--profile,
  .topbar .profile-menu--main > summary.button--profile:hover,
  .topbar .profile-menu--main > summary.button--profile:focus-visible {
    background: rgba(139, 92, 246, .22) !important;
    color: #fff !important;
  }

  .topbar .topbar__label,
  .topbar__nav a span,
  .topbar .profile-menu--main > summary.button--profile > span:not(.profile-mini-avatar),
  .topbar__actions > .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }

  .topbar__nav img.nav-icon,
  .topbar__actions > .button--profile img.nav-icon {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(0) saturate(100%) invert(93%) sepia(12%) saturate(550%) hue-rotate(213deg) brightness(104%) contrast(96%) !important;
  }

  .topbar .profile-menu--main .profile-mini-avatar {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    place-items: center !important;
    border: 2px solid rgba(168, 133, 255, .45) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* 2026-07-10 absolute mobile nav fix: beat legacy body:not(.auth-open) selectors. */
@media (max-width: 920px) {
  html body:not(.auth-open) .topbar.topbar,
  html body.auth-open .topbar.topbar,
  html body .topbar.topbar {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 68px !important;
    gap: 4px !important;
    align-items: center !important;
    min-height: 70px !important;
    padding: 6px !important;
    background: rgba(16, 12, 24, .97) !important;
    border: 1px solid rgba(216, 202, 255, .18) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .44) !important;
    transform: none !important;
  }

  html body:not(.auth-open) .topbar.topbar .brand,
  html body .topbar.topbar .brand,
  html body .topbar.topbar .button--create,
  html body .topbar.topbar .button--login,
  html body .topbar.topbar .topbar__logout {
    display: none !important;
  }

  html body:not(.auth-open) .topbar.topbar > .topbar__nav.topbar__nav,
  html body .topbar.topbar > .topbar__nav.topbar__nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body:not(.auth-open) .topbar.topbar > .topbar__actions.topbar__actions,
  html body .topbar.topbar > .topbar__actions.topbar__actions {
    position: static !important;
    display: grid !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body:not(.auth-open) .topbar.topbar .profile-menu.profile-menu--main,
  html body .topbar.topbar .profile-menu.profile-menu--main {
    position: static !important;
    display: block !important;
    width: 68px !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body:not(.auth-open) .topbar.topbar > .topbar__nav.topbar__nav > a,
  html body .topbar.topbar > .topbar__nav.topbar__nav > a,
  html body:not(.auth-open) .topbar.topbar .profile-menu.profile-menu--main > summary.button--profile,
  html body .topbar.topbar .profile-menu.profile-menu--main > summary.button--profile,
  html body .topbar.topbar .topbar__actions > .button--profile {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body:not(.auth-open) .topbar.topbar .topbar__nav.topbar__nav img.nav-icon,
  html body .topbar.topbar .topbar__nav.topbar__nav img.nav-icon,
  html body .topbar.topbar .topbar__actions .button--profile img.nav-icon {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(0) saturate(100%) invert(93%) sepia(12%) saturate(550%) hue-rotate(213deg) brightness(104%) contrast(96%) !important;
  }

  html body:not(.auth-open) .topbar.topbar .profile-menu.profile-menu--main .profile-mini-avatar,
  html body .topbar.topbar .profile-menu.profile-menu--main .profile-mini-avatar {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    place-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body:not(.auth-open) .topbar.topbar .topbar__label,
  html body .topbar.topbar .topbar__label,
  html body .topbar.topbar .topbar__nav.topbar__nav a span,
  html body .topbar.topbar .button--profile > span:not(.profile-mini-avatar) {
    display: none !important;
  }
}

/* 2026-07-10 polished bottom nav: equal cells, round avatars. */
@media (max-width: 920px) {
  html body .topbar.topbar {
    right: 6px !important;
    left: 6px !important;
    bottom: calc(6px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    min-height: 70px !important;
    padding: 6px !important;
  }

  html body .topbar.topbar > .topbar__nav.topbar__nav,
  html body .topbar.topbar > .topbar__actions.topbar__actions {
    display: contents !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body .topbar.topbar .profile-menu.profile-menu--main {
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  html body .topbar.topbar > .topbar__nav.topbar__nav > a,
  html body .topbar.topbar .profile-menu.profile-menu--main > summary.button--profile,
  html body .topbar.topbar .topbar__actions > .button--profile {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 14px !important;
    background: transparent !important;
  }

  html body .topbar.topbar > .topbar__nav.topbar__nav > a.is-active,
  html body .topbar.topbar > .topbar__nav.topbar__nav > a:hover,
  html body .topbar.topbar > .topbar__nav.topbar__nav > a:focus-visible,
  html body .topbar.topbar .profile-menu.profile-menu--main[open] > summary.button--profile {
    background: transparent !important;
    box-shadow: inset 0 -2px 0 rgba(168, 133, 255, .72) !important;
  }

  html body .topbar.topbar .topbar__nav.topbar__nav img.nav-icon,
  html body .topbar.topbar .topbar__actions .button--profile img.nav-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  html body .topbar.topbar .profile-menu.profile-menu--main .profile-mini-avatar,
  html body .topbar.topbar .profile-menu.profile-menu--main img.profile-mini-avatar {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    border: 2px solid rgba(168, 133, 255, .72) !important;
    border-radius: 999px !important;
    object-fit: cover !important;
  }

  html body .topbar.topbar .profile-menu.profile-menu--main .profile-mini-avatar--initial {
    display: grid !important;
    place-items: center !important;
  }

  html body .topbar.topbar .profile-menu.profile-menu--main .profile-menu__avatar,
  html body .topbar.topbar .profile-menu.profile-menu--main .profile-menu__avatar img,
  html body .topbar.topbar .profile-menu.profile-menu--main img.profile-menu__avatar {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    object-fit: cover !important;
  }

  html body .topbar.topbar .profile-menu.profile-menu--main .profile-menu__avatar--initial {
    display: grid !important;
    place-items: center !important;
  }
}

/* 2026-07-10 real mobile tabbar: isolated from legacy topbar rules. */
.mobile-tabbar {
  display: none;
}

@media (max-width: 920px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body > .topbar {
    display: none !important;
  }

  .mobile-tabbar {
    position: fixed;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 220;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 70px;
    padding: 6px;
    border: 1px solid rgba(216, 202, 255, .18);
    border-radius: 20px;
    background: rgba(16, 12, 24, .97);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .44);
    backdrop-filter: blur(18px) saturate(1.15);
  }

  .mobile-tabbar__profile,
  .mobile-tabbar .profile-menu--mobile {
    display: block;
    min-width: 0;
    height: 58px;
  }

  .mobile-tabbar__item {
    display: grid;
    width: 100%;
    height: 58px;
    min-height: 58px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .mobile-tabbar__item.is-active {
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .9);
  }

  .mobile-tabbar__icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: .62;
    filter: brightness(0) saturate(100%) invert(71%) sepia(10%) saturate(584%) hue-rotate(216deg) brightness(86%) contrast(88%);
  }

  .mobile-tabbar__item.is-active .mobile-tabbar__icon,
  .mobile-tabbar__item:hover .mobile-tabbar__icon,
  .mobile-tabbar__item:focus-visible .mobile-tabbar__icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(100%);
  }

  .mobile-tabbar__avatar {
    display: block;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    overflow: hidden;
    border: 2px solid rgba(168, 133, 255, .72);
    border-radius: 999px;
    object-fit: cover;
  }

  .mobile-tabbar__avatar--initial {
    display: grid;
    place-items: center;
    color: #fff;
    background: #8b5cf6;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-tabbar .profile-menu--mobile[open]::before {
    position: fixed;
    inset: 0;
    z-index: 221;
    display: block;
    content: "";
    background: rgba(5, 4, 10, .72);
    backdrop-filter: blur(12px);
  }

  .mobile-tabbar .profile-menu--mobile .profile-menu__panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 222;
    display: grid;
    gap: 12px;
    width: auto;
    min-width: 0;
    max-height: 78dvh;
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom));
    border: 1px solid rgba(222, 211, 255, .16);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: rgba(18, 14, 27, .99);
    box-shadow: 0 -26px 80px rgba(0, 0, 0, .58);
    transform: translateY(110%);
    transition: transform .24s ease;
    overflow: auto;
  }

  .mobile-tabbar .profile-menu--mobile[open] .profile-menu__panel {
    transform: translateY(0);
  }

  .mobile-tabbar .profile-menu__avatar,
  .mobile-tabbar .profile-menu__avatar img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 999px;
    object-fit: cover;
    overflow: hidden;
  }

  .mobile-tabbar .profile-menu__identity {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 4px 54px 10px 0;
  }

  .mobile-tabbar .profile-menu__identity strong {
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
  }

  .mobile-tabbar .profile-menu__identity span {
    color: rgba(224, 213, 246, .7);
    font-size: 14px;
  }

  .mobile-tabbar .profile-menu__panel a,
  .mobile-tabbar .profile-menu__panel button:not(.profile-menu__close) {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(139, 92, 246, .18);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
  }
}

/* 2026-07-10 mobile tabbar edge fill and clean active state. */
@media (max-width: 920px) {
  .mobile-tabbar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    min-height: calc(74px + env(safe-area-inset-bottom)) !important;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .mobile-tabbar__item,
  .mobile-tabbar__item.is-active,
  .mobile-tabbar__item:hover,
  .mobile-tabbar__item:focus-visible,
  .mobile-tabbar .profile-menu--mobile[open] > .mobile-tabbar__item {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .mobile-tabbar__icon {
    width: 34px !important;
    height: 34px !important;
  }

  .mobile-tabbar__avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-width: 2px !important;
    border-radius: 50% !important;
  }
}

/* 2026-07-10 avatar geometry and profile sheet animation. */
@media (max-width: 920px) {
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
  }

  .mobile-tabbar__avatar,
  img.mobile-tabbar__avatar {
    display: block !important;
    box-sizing: border-box !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border: 2px solid rgba(168, 133, 255, .78) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }

  .mobile-tabbar__avatar--initial {
    display: grid !important;
    place-items: center !important;
  }

  .mobile-tabbar .profile-menu--mobile::before {
    opacity: 0;
    transition: opacity .24s ease;
  }

  .mobile-tabbar .profile-menu--mobile.is-open::before {
    opacity: 1;
  }

  .mobile-tabbar .profile-menu--mobile.is-closing::before {
    opacity: 0;
  }

  .mobile-tabbar .profile-menu--mobile .profile-menu__panel {
    display: grid !important;
    opacity: 0;
    transform: translateY(110%) !important;
    transition: transform .24s ease, opacity .18s ease !important;
    will-change: transform, opacity;
  }

  .mobile-tabbar .profile-menu--mobile[open].is-open .profile-menu__panel {
    opacity: 1;
    transform: translateY(0) !important;
  }

  .mobile-tabbar .profile-menu--mobile.is-closing .profile-menu__panel {
    opacity: 0;
    transform: translateY(110%) !important;
  }
}

/* Borderless editorial sections on Home and About. */
.home-hero,
.home-story,
.home-open-rooms,
.page-hero--about,
.about-editorial,
.about-process {
  border: 0 !important;
}

/* 2026-07-10 center profile tab exactly like icon tabs. */
@media (max-width: 920px) {
  .mobile-tabbar__profile {
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    min-width: 0 !important;
    place-items: center !important;
  }

  .mobile-tabbar .profile-menu--mobile {
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    place-items: center !important;
  }

  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    appearance: none !important;
  }

  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item::marker,
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item::-webkit-details-marker {
    display: none !important;
    content: "" !important;
  }

  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item .mobile-tabbar__avatar {
    margin: 0 auto !important;
  }
}

/* 2026-07-10 optical center correction for mobile profile avatar. */
@media (max-width: 920px) {
  .mobile-tabbar {
    align-items: start !important;
  }

  .mobile-tabbar__item,
  .mobile-tabbar__profile,
  .mobile-tabbar .profile-menu--mobile,
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    height: 58px !important;
    min-height: 58px !important;
    align-self: start !important;
  }

  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item .mobile-tabbar__avatar,
  .mobile-tabbar__profile .mobile-tabbar__avatar {
    position: relative !important;
    top: 9px !important;
    transform: none !important;
  }
}

/* 2026-07-10 compact mobile tabbar, no ghost header layer. */
@media (max-width: 920px) {
  body > .topbar,
  body > .topbar::before,
  body > .topbar::after {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .mobile-tabbar {
    right: 10px !important;
    left: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 68px !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(216, 202, 255, .18) !important;
    border-radius: 20px !important;
  }

  .mobile-tabbar__profile,
  .mobile-tabbar .profile-menu--mobile {
    width: 50px !important;
    height: 52px !important;
    min-width: 50px !important;
  }

  .mobile-tabbar__item,
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    width: 50px !important;
    height: 52px !important;
    min-width: 50px !important;
    min-height: 52px !important;
  }

  .mobile-tabbar__icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  .mobile-tabbar__avatar,
  img.mobile-tabbar__avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    top: 2px !important;
  }
}

/* 2026-07-10 calmer mobile tabbar and desktop profile close isolation. */
.topbar .profile-menu--main .profile-menu__close {
  display: none !important;
}

@media (max-width: 920px) {
  .mobile-tabbar {
    right: 14px !important;
    left: 14px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 22px !important;
    min-height: 64px !important;
    padding: 7px 16px !important;
    border-radius: 19px !important;
  }

  .mobile-tabbar__profile,
  .mobile-tabbar .profile-menu--mobile {
    width: 46px !important;
    height: 50px !important;
    min-width: 46px !important;
  }

  .mobile-tabbar__item,
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    width: 46px !important;
    height: 50px !important;
    min-width: 46px !important;
    min-height: 50px !important;
  }

  .mobile-tabbar__icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }

  .mobile-tabbar__avatar,
  img.mobile-tabbar__avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    top: 3px !important;
  }

  .mobile-tabbar .profile-menu--mobile .profile-menu__close {
    display: grid !important;
  }
}

/* 2026-07-10 full-width balanced tabbar. */
@media (max-width: 920px) {
  .mobile-tabbar {
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100vw !important;
    min-height: calc(70px + env(safe-area-inset-bottom)) !important;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom)) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .mobile-tabbar__profile,
  .mobile-tabbar .profile-menu--mobile,
  .mobile-tabbar__item,
  .mobile-tabbar .profile-menu--mobile > summary.mobile-tabbar__item {
    display: grid !important;
    width: 100% !important;
    height: 58px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-tabbar__icon {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
  }

  .mobile-tabbar__avatar,
  img.mobile-tabbar__avatar {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    top: 0 !important;
  }
}

/* Home/About final section edge lock. */
main:has(.home-hero),
main:has(.page-hero--about),
.home-story,
.home-open-rooms,
.about-editorial,
.about-process {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

main:has(.home-hero)::before,
main:has(.home-hero)::after,
main:has(.page-hero--about)::before,
main:has(.page-hero--about)::after,
.home-story::before,
.home-story::after,
.home-open-rooms::before,
.home-open-rooms::after,
.about-editorial::before,
.about-editorial::after,
.about-process::before,
.about-process::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-hero,
.page-hero--about {
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 14px !important;
  outline: 0 !important;
  background-clip: padding-box !important;
  clip-path: inset(0 round 14px) !important;
}

/* The public-page shell must not create a rectangular band behind rounded sections. */
main:has(.home-hero),
main:has(.page-hero--about) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Match Home/About section boundaries to the Rooms page. */
.home-story,
.home-open-rooms,
.about-editorial,
.about-process {
  overflow: hidden !important;
  border: 1px solid rgba(226, 214, 255, .14) !important;
  border-radius: 14px !important;
  background: rgba(27, 23, 34, .72) !important;
  background-clip: padding-box !important;
}

body.theme-light .home-story,
body.theme-light .home-open-rooms,
body.theme-light .about-editorial,
body.theme-light .about-process {
  border-color: rgba(55, 43, 76, .14) !important;
  background: rgba(255, 255, 255, .76) !important;
}

/* About remains editorial: no card shells around its content sections. */
.about-editorial,
.about-process,
body.theme-light .about-editorial,
body.theme-light .about-process {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Public pages: final mobile width lock. Keep this rule last. */
@media (max-width: 920px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
  }

  main:has(.home-hero),
  main:has(.page-hero--rooms),
  main:has(.page-hero--about) {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 16px 0 calc(92px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  .home-hero,
  .page-hero,
  .home-story,
  .home-open-rooms,
  .rooms-section,
  .about-editorial,
  .about-process,
  .home-hero > *,
  .page-hero > *,
  .home-story > *,
  .about-editorial > *,
  .about-process > *,
  .rooms-grid,
  .home-room-strip,
  .room-tile {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .home-hero,
  .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    align-items: start !important;
    gap: 28px !important;
    padding: 28px 22px !important;
  }

  .home-hero__content,
  .page-hero__copy,
  .home-hero__facts,
  .page-hero__facts {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .home-story,
  .about-editorial,
  .about-process {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 36px 20px !important;
  }

  .home-open-rooms {
    padding: 24px 20px !important;
  }

  .rooms-grid,
  .home-room-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-hero h1,
  .page-hero h1,
  .home-story h2,
  .about-editorial h2,
  .about-process h2,
  .home-hero p,
  .page-hero p,
  .home-story p,
  .about-editorial p,
  .about-process li,
  .room-tile,
  .room-tile p {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 10.5vw, 58px) !important;
    line-height: .98 !important;
  }

  .home-story h2,
  .about-editorial h2,
  .about-process h2 {
    font-size: clamp(30px, 8.5vw, 46px) !important;
    line-height: 1.04 !important;
  }

  .home-hero__facts span,
  .page-hero__facts span {
    width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .page-heading,
  .section-title {
    min-width: 0 !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 520px) {
  main:has(.home-hero),
  main:has(.page-hero--rooms),
  main:has(.page-hero--about) {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    padding-top: 8px !important;
  }

  .home-hero,
  .page-hero {
    padding: 24px 18px !important;
  }
}
