/* Current public-page adjustments requested for the reference shell. */

html[data-ui-theme] .page-shell .reference-header {
  isolation: isolate;
  overflow: hidden;
}

html[data-ui-theme] .page-shell .reference-header-nav {
  position: relative;
  z-index: 2;
  min-height: 68px;
  margin: 0 auto;
  padding: 7px 20px;
}

html[data-ui-theme] .page-shell .reference-header-brand {
  position: relative;
  display: block;
  width: min(252px, calc(100% - 44px));
  overflow: hidden;
  min-width: 0;
  line-height: 0;
}

/* Restore the reference site's moving highlight across the logo and wordmark. */
html[data-ui-theme] .page-shell .reference-header-brand::after {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -22%;
  z-index: 2;
  display: block;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-260%) skewX(-18deg);
  animation: ng-reference-header-sheen 5.8s ease-in-out infinite;
}

html[data-ui-theme] .page-shell .reference-header-logo {
  display: block;
  width: 100%;
  max-width: 252px;
  height: 49px;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

html[data-ui-theme] .page-shell .reference-header-share-hitbox {
  position: absolute;
  top: 8%;
  right: 2.2%;
  z-index: 3;
  width: 13%;
  height: 84%;
  min-width: 52px;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  cursor: pointer;
}

html[data-ui-theme] .page-shell .reference-header-share-hitbox:focus-visible {
  outline: 2px solid rgba(47, 107, 255, .9);
  outline-offset: -2px;
}

html[data-ui-theme] .page-shell .reference-header .ng-theme-hero-art {
  display: block;
}

html[data-ui-theme] .page-shell .reference-header-nav .brand {
  min-width: 0;
  flex: 0 1 auto;
}

html[data-ui-theme] .page-shell .nav .brand-custom-lockup {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

html[data-ui-theme] .page-shell .nav .brand-custom-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .28));
}

html[data-ui-theme] .page-shell .nav .brand-custom-copy {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 1px;
  align-content: center;
}

html[data-ui-theme] .page-shell .nav .brand-custom-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow: hidden;
  color: #fff !important;
  font-family: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html[data-ui-theme] .page-shell .nav .brand-custom-subtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff !important;
  font-family: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html[data-ui-theme] .page-shell .reference-header-share-button {
  width: 46px;
  min-width: 46px;
  height: 44px;
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
}

html[data-ui-theme] .page-shell .reference-header-share-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html[data-ui-theme] .page-shell .nav-section .category-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-ui-theme] .page-shell .nav-section .category-button {
  min-width: 0;
  min-height: 48px !important;
  font-size: 14px !important;
  grid-column: auto !important;
}

.ng-system-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 146;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 16, 25, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ng-system-notice-card {
  width: min(282px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ng-accent, #6f43dc) 62%, #fff);
  border-radius: 12px;
  color: var(--ng-ink, #34203d);
  background: var(--ng-panel-solid, #fff);
  box-shadow: var(--ng-shadow, 0 20px 50px rgba(40, 20, 70, .18));
  animation: ng-system-notice-in .2s cubic-bezier(.22, 1, .36, 1) both;
}

.ng-system-notice-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  color: #fff;
  background-color: var(--ng-accent, #6f43dc);
  background-image: var(--ng-button-decoration), var(--ng-button, linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137));
  box-shadow: var(--ng-button-shadow, 0 6px 0 rgba(68, 29, 116, .4), 0 14px 27px rgba(80, 36, 130, .3)), inset 0 1px rgba(255, 255, 255, .28);
}

.ng-system-notice-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1;
}

.ng-system-notice-head strong svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ng-system-notice-head button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(52, 22, 92, .24);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.ng-system-notice-body {
  display: grid;
  gap: 16px;
  min-height: 108px;
  padding: 16px 12px 14px;
  place-items: center;
  color: var(--ng-ink, #34203d);
  background: color-mix(in srgb, var(--ng-panel-solid, #fff) 92%, var(--ng-accent, #6f43dc) 8%);
}

.ng-system-notice-body p {
  width: 100%;
  margin: 0;
  color: var(--ng-muted, #816d88);
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
}

.ng-system-notice-confirm {
  min-width: 88px;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid var(--ng-button-edge, rgba(255, 214, 112, .66));
  border-radius: 999px;
  color: var(--ng-on-accent, #fff);
  background-color: var(--ng-accent, #6f43dc);
  background-image: var(--ng-button-decoration), var(--ng-button, linear-gradient(125deg, #6b3fe9, #8e50ff 48%, #ff8137));
  box-shadow: var(--ng-button-shadow, 0 6px 0 rgba(68, 29, 116, .4), 0 14px 27px rgba(80, 36, 130, .3)), inset 0 1px rgba(255, 255, 255, .28);
  font-size: 12px;
  font-weight: 800;
}

.ng-system-notice-head button:hover,
.ng-system-notice-confirm:hover {
  filter: brightness(1.06);
}

.ng-system-notice-head button:active,
.ng-system-notice-confirm:active {
  transform: translateY(1px) scale(.98);
}

@keyframes ng-system-notice-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes ng-reference-header-sheen {
  0%, 18% { opacity: 0; transform: translateX(-260%) skewX(-18deg); }
  32% { opacity: .72; }
  56% { opacity: .45; }
  74%, 100% { opacity: 0; transform: translateX(760%) skewX(-18deg); }
}

@media (max-width: 768px) {
  html[data-ui-theme] .page-shell .nav {
    gap: 8px;
  }

  html[data-ui-theme] .page-shell .reference-header-nav {
    min-height: 56px;
    padding: 6px 12px;
  }

  html[data-ui-theme] .page-shell .reference-header-logo {
    width: min(189px, calc(100vw - 44px));
    max-width: 189px;
    height: 36px;
  }

  html[data-ui-theme] .page-shell .reference-header-brand {
    width: min(189px, calc(100% - 44px));
  }

  html[data-ui-theme] .page-shell .nav .brand-logo {
    max-width: min(189px, calc(100vw - 118px));
  }

  html[data-ui-theme] .page-shell .nav .brand-custom-text {
    font-size: 17px;
  }

  html[data-ui-theme] .page-shell .nav .brand-custom-copy {
    max-width: calc(100vw - 118px);
  }

  html[data-ui-theme] .page-shell .nav .brand-custom-subtitle {
    font-size: 8px;
  }

  html[data-ui-theme] .page-shell .nav .brand-custom-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  html[data-ui-theme] .page-shell .reference-header-share-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    gap: 0;
    padding: 0;
    border-radius: 13px;
  }

  html[data-ui-theme] .page-shell .reference-header-share-button svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 8px;
  }

  html[data-ui-theme] .page-shell .reference-header-share-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  html[data-ui-theme] body .ng-action-hub-toggle {
    display: none !important;
  }

  html[data-ui-theme] body :is(.theme-mode-toggle, .activity-hall-toggle, .page-shell .service-float-btn) {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html[data-ui-theme] body .page-shell .service-float-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body .theme-mode-toggle {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body .activity-hall-toggle {
    bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.activity-hall-open .theme-mode-toggle,
  body.activity-hall-open .page-shell .service-float-btn,
  body.theme-service-open .theme-mode-toggle,
  body.theme-service-open .activity-hall-toggle,
  body.system-notice-open :is(.theme-mode-toggle, .activity-hall-toggle, .page-shell .service-float-btn) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ng-system-notice-card { animation: none; }
  html[data-ui-theme] .page-shell .reference-header-brand::after { animation: none; }
}

/* Match the reference navigation icon mapping. */
.page-shell .category-button[data-fixed-category="recommendation"]::before {
  content: "◉";
}

.page-shell .category-button[data-fixed-category="adult"]::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f6bff' d='M8 5.5v13L18 12z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.page-shell .category-button[data-fixed-category="adult"].active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M8 5.5v13L18 12z'/%3E%3C/svg%3E");
}

/* Add a quiet sheen to the notice strip without changing its geometry. */
.page-shell .marquee-wrap .ng-notice-sheen {
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -18%;
  z-index: 3;
  display: block;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-250%) skewX(-18deg);
  animation: ng-notice-sheen 5.8s ease-in-out infinite;
}

@keyframes ng-notice-sheen {
  0%, 16% { opacity: 0; transform: translateX(-250%) skewX(-18deg); }
  29% { opacity: .72; }
  54% { opacity: .48; }
  73%, 100% { opacity: 0; transform: translateX(720%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell .marquee-wrap .ng-notice-sheen { animation: none; }
}

/* The service control only expands or collapses the four fixed shortcuts. */
html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle {
  right: var(--ng-float-rail-right, max(22px, env(safe-area-inset-right))) !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 86 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle[data-hub-state="closed"] {
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
}

@media (min-width: 769px) {
  html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle {
    right: max(18px, env(safe-area-inset-right)) !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}

/* Keep the collapsed pair fixed at the bottom with a compact eight-pixel gap. */
html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .ng-record-float {
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .ng-record-float {
  right: max(18px, env(safe-area-inset-right)) !important;
  /* Move above the music button while the three shortcuts are expanded. */
  bottom: calc(324px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .service-float-btn.ng-action-hub-toggle {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle .ng-action-hub-unread {
  display: grid !important;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}

html[data-ui-theme] body.ng-floating-hub-enabled :is(
  #musicFloatToggle,
  .activity-hall-toggle,
  .theme-mode-toggle
) {
  right: var(--ng-float-rail-right, max(22px, env(safe-area-inset-right))) !important;
  /* The dock should appear as one immediate action after the hub is tapped. */
  transition: none !important;
  transition-delay: 0s !important;
  will-change: auto;
}

html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) #musicFloatToggle {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(180px) scale(.72) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .activity-hall-toggle {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(120px) scale(.72) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .theme-mode-toggle {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(60px) scale(.72) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open #musicFloatToggle,
html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .activity-hall-toggle,
html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .theme-mode-toggle {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  transition-delay: 0s !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open #musicFloatToggle {
  bottom: calc(264px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .activity-hall-toggle {
  bottom: calc(204px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .theme-mode-toggle {
  bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
}

html.launch-active body .page-shell .service-float-btn.ng-action-hub-toggle,
html[data-ui-theme] body:is(.theme-service-open, .activity-hall-open, .system-notice-open, .trial-game-open, .collector-detail-open) .page-shell .service-float-btn.ng-action-hub-toggle {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  html[data-ui-theme] body.ng-floating-hub-enabled {
    --ng-float-control-size: 56px;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled #musicFloatToggle {
    width: var(--ng-float-control-size, 48px) !important;
    height: var(--ng-float-control-size, 48px) !important;
    min-width: var(--ng-float-control-size, 48px) !important;
    min-height: var(--ng-float-control-size, 48px) !important;
    max-width: var(--ng-float-control-size, 48px) !important;
    max-height: var(--ng-float-control-size, 48px) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled :is(
    #musicFloatToggle,
    .activity-hall-toggle,
    .theme-mode-toggle
  ) {
    right: max(12px, env(safe-area-inset-right)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled .page-shell .service-float-btn.ng-action-hub-toggle[data-hub-state="closed"] {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .ng-record-float {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .ng-record-float {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(324px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .service-float-btn.ng-action-hub-toggle {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open #musicFloatToggle {
    bottom: calc(260px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .activity-hall-toggle {
    bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .theme-mode-toggle {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-theme] body.ng-floating-hub-enabled :is(#musicFloatToggle, .activity-hall-toggle, .theme-mode-toggle) {
    transition: none !important;
  }
}

/* Activity hall profile card matching the supplied account panel reference. */
html[data-ui-theme] body .activity-hall-backdrop[data-activity-template="profile"] .activity-hall-body {
  padding: 18px;
}

html[data-ui-theme] body .activity-profile-stack {
  gap: 14px;
}

html[data-ui-theme] body .activity-profile-card {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 16px 16px;
  border: 1px solid #dbe4f1;
  border-radius: 16px;
  color: #1d2a41;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 64%);
  box-shadow: 0 10px 24px rgba(47, 76, 126, .08), inset 0 1px rgba(255, 255, 255, .96);
}

html[data-ui-theme] body .activity-profile-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 0 4px 16px;
  border-bottom: 1px solid #e8eef7;
}

html[data-ui-theme] body .activity-profile-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border: 1px solid #e0e8f4;
  border-radius: 50%;
  background: #f1f6ff;
  box-shadow: 0 5px 13px rgba(45, 86, 151, .14), inset 0 1px rgba(255, 255, 255, .9);
}

html[data-ui-theme] body .activity-profile-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

html[data-ui-theme] body .activity-profile-copy strong,
html[data-ui-theme] body .activity-profile-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ui-theme] body .activity-profile-copy strong {
  color: #1c2a41;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
}

html[data-ui-theme] body .activity-profile-copy span {
  color: #71809a;
  font-size: 12px;
  line-height: 1.2;
}

html[data-ui-theme] body .activity-profile-account {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  align-items: center;
  margin-top: 16px;
}

html[data-ui-theme] body .activity-profile-account-label {
  color: #4e5e78;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

html[data-ui-theme] body .activity-profile-account-field {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d9e2f0;
  border-radius: 10px;
  color: #7a8497;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(46, 80, 129, .04);
  font-size: 14px;
  letter-spacing: 1px;
}

html[data-ui-theme] body .activity-profile-id-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(145deg, #8a42ba, #bc68cf);
  box-shadow: 0 3px 7px rgba(123, 64, 178, .18);
  font-size: 11px;
  letter-spacing: 0;
}

html[data-ui-theme] body .activity-profile-copy-button {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(100deg, #2877f2, #48b2ed);
  box-shadow: 0 7px 13px rgba(43, 122, 237, .18), inset 0 1px rgba(255, 255, 255, .25);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

html[data-ui-theme] body .activity-profile-copy-button:hover {
  filter: brightness(1.05);
}

html[data-ui-theme] body .activity-profile-copy-button:active {
  transform: translateY(1px);
}

html[data-theme="dark"] body .activity-profile-card {
  border-color: #2d4565;
  color: #e8f0ff;
  background: linear-gradient(180deg, #132943 0%, #0f2037 64%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .04);
}

html[data-theme="dark"] body .activity-profile-brand {
  border-bottom-color: #29415f;
}

html[data-theme="dark"] body .activity-profile-copy strong {
  color: #eef5ff;
}

html[data-theme="dark"] body .activity-profile-copy span,
html[data-theme="dark"] body .activity-profile-account-label {
  color: #9eb0cb;
}

html[data-theme="dark"] body .activity-profile-account-field {
  border-color: #2b4666;
  color: #bdc9dc;
  background: #0b192b;
}

@media (max-width: 560px) {
  html[data-ui-theme] body .activity-hall-backdrop[data-activity-template="profile"] .activity-hall-body {
    padding: 14px;
  }

  html[data-ui-theme] body .activity-profile-card {
    padding: 16px 14px 14px;
  }

  html[data-ui-theme] body .activity-profile-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  html[data-ui-theme] body .activity-profile-copy strong {
    font-size: 18px;
  }
}

/* Keep the reference header artwork interactive while the image remains decorative. */
html[data-ui-theme] .page-shell .ng-theme-hero-art {
  z-index: 3;
  pointer-events: none;
}

html[data-ui-theme] .page-shell .reference-header-art-share {
  position: absolute;
  top: 50%;
  right: clamp(20px, 6vw, 72px);
  z-index: 4;
  display: grid;
  width: clamp(56px, 7.5vw, 88px);
  height: clamp(56px, 7.5vw, 88px);
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: filter .18s ease, transform .18s ease;
}

html[data-ui-theme] .page-shell .reference-header-art-share::before {
  display: none;
}

html[data-ui-theme] .page-shell .reference-header-art-share:hover {
  filter: brightness(1.08);
  transform: translateY(calc(-50% - 2px));
}

html[data-ui-theme] .page-shell .reference-header-art-share:active {
  transform: translateY(-50%);
}

html[data-ui-theme] .page-shell .reference-header-art-share:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .78);
  outline-offset: 3px;
}

html[data-ui-theme] .page-shell .reference-header-art-share img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Keep the action artwork, but remove the extra translucent ring around these three controls. */
html[data-ui-theme] body :is(
  .activity-hall-toggle,
  .theme-mode-toggle,
  .page-shell .service-float-btn.ng-action-hub-toggle
)::before {
  display: none !important;
  content: none !important;
}

/* The hub already contains an SVG chat mark; suppress the legacy CSS-drawn duplicate. */
html[data-ui-theme] body .page-shell .service-float-btn.ng-action-hub-toggle > span,
html[data-ui-theme] body .page-shell .service-float-btn.ng-action-hub-toggle > span > .icon {
  display: grid;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  place-items: center;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

html[data-ui-theme] body .page-shell .service-float-btn.ng-action-hub-toggle span::before,
html[data-ui-theme] body .page-shell .service-float-btn.ng-action-hub-toggle span::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

html[data-ui-theme] body .page-shell .service-float-btn.ng-action-hub-toggle .icon svg {
  display: block;
  width: 26px !important;
  height: 26px !important;
}

html[data-ui-theme] body.ng-action-hub-open .page-shell .service-float-btn.ng-action-hub-toggle .icon svg {
  transform: none !important;
}

/* The closed dock follows the supplied reference: record above, service below. */
html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .service-float-btn.ng-action-hub-toggle {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .ng-record-float {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Keep the animated record above the expanded music shortcut. */
html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .ng-record-float {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open #musicFloatToggle {
  bottom: calc(264px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .activity-hall-toggle {
  bottom: calc(204px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .theme-mode-toggle {
  bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .service-float-btn.ng-action-hub-toggle {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Activity entry uses the supplied customer-service portrait and a persistent 2 badge. */
html[data-ui-theme] body .activity-hall-toggle > .activity-hall-toggle-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 3px 9px rgba(20, 35, 76, .24);
}

html[data-ui-theme] body .activity-hall-toggle > .activity-hall-toggle-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: inherit;
}

html[data-ui-theme] body .activity-hall-toggle > b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-variant-numeric: tabular-nums;
}

html[data-ui-theme] body .activity-profile-copy-button.is-copied {
  background: linear-gradient(100deg, #2aaf7b, #39c79b);
}

/* Use the same play mark on the light and dark versions of the category row. */
html[data-ui-theme] .page-shell .category-button[data-fixed-category="adult"]::before {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-right: 7px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f6bff' d='M8 5.5v13L18 12z'/%3E%3C/svg%3E") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}

html[data-ui-theme] .page-shell .category-button[data-fixed-category="adult"].active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M8 5.5v13L18 12z'/%3E%3C/svg%3E") !important;
}

@media (max-width: 768px) {
  html[data-ui-theme] .page-shell .reference-header-art-share {
    right: 21px;
    width: 52px;
    height: 52px;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .service-float-btn.ng-action-hub-toggle {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled:not(.ng-action-hub-open) .page-shell .ng-record-float {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open #musicFloatToggle {
    bottom: calc(260px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .activity-hall-toggle {
    bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .theme-mode-toggle {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open .page-shell .service-float-btn.ng-action-hub-toggle {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-ui-theme] body .activity-hall-toggle > .activity-hall-toggle-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Keep every expanded shortcut on one rail with identical outer geometry. */
html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open :is(
  #musicFloatToggle,
  .activity-hall-toggle,
  .theme-mode-toggle,
  .page-shell .service-float-btn.ng-action-hub-toggle
) {
  right: var(--ng-float-rail-right, max(22px, env(safe-area-inset-right))) !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}


@media (max-width: 768px) {
  html[data-ui-theme] body.ng-floating-hub-enabled.ng-action-hub-open :is(
    #musicFloatToggle,
    .activity-hall-toggle,
    .theme-mode-toggle,
    .page-shell .service-float-btn.ng-action-hub-toggle
  ) {
    right: max(12px, env(safe-area-inset-right)) !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
}
