.native-app-shell {
  --native-shell-nav-height: 4.775rem;
  --native-shell-footer-radius: 22px;
  --native-shell-footer-bg: rgba(24, 43, 33, 0.95);
  --native-shell-footer-ink: #c5dbbf;
  --native-shell-footer-active: rgba(177, 211, 165, 0.13);
  --native-shell-footer-line: rgba(210, 230, 209, 0.12);
  --native-shell-bottom-offset: calc(
    var(--native-shell-nav-height) + var(--native-news-height, 0px) +
      env(safe-area-inset-bottom, 0px)
  );
  min-height: 100vh;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  color: var(--ps-text-primary);
  background: var(--ps-bg-base);
}

.theme-light .native-app-shell {
  --native-shell-footer-bg: rgba(255, 254, 248, 0.96);
  --native-shell-footer-ink: #244b35;
  --native-shell-footer-active: #e9eee3;
  --native-shell-footer-line: rgba(46, 76, 49, 0.1);
}

.native-app-shell [hidden] {
  display: none !important;
}

.native-app-shell button,
.native-app-shell a {
  -webkit-tap-highlight-color: transparent;
}

.native-shell-topbar svg,
.native-shell-bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.native-shell-topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  padding: 1rem 1rem 0;
  /* border-bottom: 1px solid var(--ps-border); */
  background: var(--ps-glass-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.native-shell-topbar__inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.native-shell-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.native-shell-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ps-text-primary);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.native-shell-brand img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.native-shell-brand strong {
  color: var(--ps-primary);
}

.native-shell-brand em {
  color: var(--ps-gold);
  font-style: normal;
}

.native-shell-qualified {
  flex: 0 0 auto;
  padding: 0.35rem 0.25rem;
  color: transparent;
  background: linear-gradient(90deg, #f97316, #facc15);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.native-shell-qualified.is-qualified {
  background-image: linear-gradient(90deg, #22c55e, #facc15);
}

.native-shell-coins {
  min-height: 2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.native-shell-coins:hover {
  background: rgba(245, 158, 11, 0.2);
}

.native-shell-coins:active {
  transform: scale(0.97);
}

.native-shell-coins svg {
  width: 1rem;
  height: 1rem;
}

.native-shell-account-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.native-shell-popover {
  position: relative;
}

.native-shell-icon-button,
.native-shell-close {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  color: var(--ps-text-secondary);
  background: transparent;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.native-shell-icon-button:hover,
.native-shell-close:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-hover);
}

.native-shell-icon-button.has-unread-notifications > svg {
  color: var(--ps-gold, #eab308);
  transform-origin: 50% 15%;
  animation: native-shell-bell-ring 6s ease-in-out infinite;
}

@keyframes native-shell-bell-ring {
  0%,
  14%,
  100% {
    transform: rotate(0deg);
  }
  2%,
  6%,
  10% {
    transform: rotate(18deg);
  }
  4%,
  8%,
  12% {
    transform: rotate(-14deg);
  }
}

.native-shell-icon-button:focus-visible,
.native-shell-close:focus-visible,
.native-shell-top-item:focus-visible,
.native-shell-bottom-item:focus-visible,
.native-shell-quick-post:focus-visible,
.native-shell-more-menu a:focus-visible,
.native-shell-more-menu button:focus-visible {
  outline: 2px solid var(--ps-primary);
  outline-offset: 2px;
}

.native-shell-notification-badge,
.native-shell-chat-badge {
  position: absolute;
  min-width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 2px solid var(--ps-bg-surface);
  border-radius: 9999px;
  color: #fff;
  background: var(--ps-error);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
}

.native-shell-notification-badge {
  top: -0.25rem;
  right: -0.25rem;
}

.native-shell-chat-badge {
  top: -0.45rem;
  right: -0.6rem;
}

.native-shell-avatar {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  box-sizing: content-box;
  margin-left: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: var(--ps-primary);
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.5),
    inset -1px -1px 3px rgba(50, 50, 50, 0.3),
    0 0 0 2px rgba(40, 40, 40, 0.8);
  font-size: 0.875rem;
  font-weight: 800;
}

.native-shell-avatar-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: inherit;
}
.native-shell-avatar[data-avatar-tier] {
  background: transparent;
  box-shadow: none;
}
.native-shell-avatar[data-avatar-tier] .native-shell-avatar-face {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  color: #dfeee4;
  background: linear-gradient(145deg, #242d27, #111914);
}
.native-shell-avatar .native-shell-avatar-frame {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18));
}
.native-shell-avatar:focus-visible {
  outline: 2px solid var(--ps-primary);
  outline-offset: 6px;
}

.native-shell-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.native-shell-top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
}

.native-shell-top-navigation > .native-shell-top-item,
.native-shell-top-navigation > .native-shell-more-root {
  min-width: 0;
  flex: 1 1 0;
}

.native-shell-more-root > .native-shell-top-item {
  width: 100%;
}

.native-shell-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  color: var(--ps-text-secondary);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 100ms ease;
}

.native-shell-top-item:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-hover);
}

.native-shell-top-item.is-active,
.native-shell-top-item[aria-expanded="true"] {
  color: var(--ps-primary);
}

.native-shell-top-item.is-active svg {
  filter: drop-shadow(0 0 8px var(--ps-primary-glow));
}

.native-shell-top-item:active {
  transform: scale(0.96);
}

.native-shell-nav-icon {
  position: relative;
  display: inline-flex;
}

.native-clubhouse-icon {
  --clubhouse-roof: #9fc9b1;
  --clubhouse-window: #91bdd1;
  --clubhouse-gold: #dabb7b;
}
.native-clubhouse-cupola,
.native-clubhouse-door {
  fill: var(--clubhouse-gold);
  fill-opacity: 0.65;
}
.native-clubhouse-roof {
  fill: var(--clubhouse-roof);
  fill-opacity: 0.75;
  transition: fill-opacity 200ms ease;
}
.native-clubhouse-walls {
  fill: var(--ps-bg-surface);
}
.native-clubhouse-windows {
  fill: var(--clubhouse-window);
  animation: native-clubhouse-window-light 10s ease-in-out infinite;
}
.native-clubhouse-glint {
  stroke: var(--clubhouse-gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: native-clubhouse-glint 10s ease-in-out infinite;
}
.theme-dark .native-clubhouse-icon {
  --clubhouse-roof: #70a68c;
  --clubhouse-window: #83aec4;
  --clubhouse-gold: #d5b475;
}
:is(.native-shell-bottom-item, .native-shell-top-item):is(
    :hover,
    :focus-visible,
    .is-active
  )
  .native-clubhouse-roof {
  fill-opacity: 1;
}
@keyframes native-clubhouse-window-light {
  0%,
  58%,
  100% {
    fill: var(--clubhouse-window);
    fill-opacity: 0.75;
  }
  70%,
  80% {
    fill: var(--clubhouse-gold);
    fill-opacity: 0.95;
  }
}
@keyframes native-clubhouse-glint {
  0%,
  65%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  74%,
  79% {
    opacity: 0.7;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .native-clubhouse-roof {
    transition: none;
  }
  .native-clubhouse-windows,
  .native-clubhouse-glint {
    animation: none;
  }
}

.native-shell-notifications,
.native-shell-more-menu {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 0.5rem);
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: native-shell-menu-enter 140ms ease-out both;
}

.native-shell-notifications {
  width: 20rem;
  max-width: calc(100vw - 2rem);
}

.native-shell-notifications > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ps-border);
}

.native-shell-notifications > header h2 {
  margin: 0;
  color: var(--ps-text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  text-transform: none;
}

.native-shell-notifications > header > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.native-shell-mark-read {
  padding: 0.25rem;
  border: 0;
  color: #60a5fa;
  background: transparent;
  font-size: 0.75rem;
}

.native-shell-mark-read:hover {
  color: #93c5fd;
}

.native-shell-close {
  width: 1.75rem;
  height: 1.75rem;
}

.native-shell-close svg {
  width: 1rem;
  height: 1rem;
}

.native-shell-notifications__list {
  max-height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.native-shell-notifications > footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--ps-border);
  color: var(--ps-text-muted);
  background: var(--ps-bg-elevated);
  font-size: 0.75rem;
  text-align: center;
}

.native-shell-notification-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--ps-border);
  color: var(--ps-text-secondary);
  background: var(--ps-bg-surface);
  text-align: left;
  transition: background-color 150ms ease;
}

.native-shell-notification-item:hover {
  background: var(--ps-bg-hover);
}

.native-shell-notification-item.is-unread {
  color: var(--ps-text-primary);
  background: var(--ps-bg-elevated);
}

.native-shell-notification-avatar,
.native-shell-notification-avatar img,
.native-shell-notification-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
}

.native-shell-notification-avatar {
  display: inline-flex;
  overflow: hidden;
}

.native-shell-notification-avatar img {
  object-fit: cover;
}

.native-shell-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: rgba(107, 114, 128, 0.2);
}

.native-shell-notification-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.native-shell-notification-icon--friend {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
}
.native-shell-notification-icon--message,
.native-shell-notification-icon--chat {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
}
.native-shell-notification-icon--game {
  color: #facc15;
  background: rgba(234, 179, 8, 0.2);
}
.native-shell-notification-icon--event {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.2);
}
.native-shell-notification-icon--payment {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.native-shell-notification-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.native-shell-notification-copy strong,
.native-shell-notification-copy span,
.native-shell-notification-copy time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-shell-notification-copy strong {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.native-shell-notification-copy span,
.native-shell-notification-copy time {
  color: var(--ps-text-muted);
  font-size: 0.75rem;
}

.native-shell-unread-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
}

.native-shell-notification-arrow {
  width: 1rem !important;
  height: 1rem !important;
  align-self: center;
  color: var(--ps-text-muted);
}

.native-shell-panel-state {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: var(--ps-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.native-shell-panel-state > svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.5;
}

.native-shell-panel-state--error > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ps-error);
  opacity: 1;
}

.native-shell-spinner {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  border: 2px solid var(--ps-border-light);
  border-top-color: var(--ps-primary);
  border-radius: 50%;
  animation: native-shell-spin 650ms linear infinite;
}

.native-shell-spinner--small {
  width: 1rem;
  height: 1rem;
}

.native-shell-more-root {
  min-width: 0;
}

.native-shell-more-menu {
  width: auto;
  min-width: 12.5rem;
  max-height: min(35rem, calc(100vh - 8rem));
  overflow-y: auto;
  padding: 0.25rem 0;
}

.native-shell-more-menu > a,
.native-shell-more-menu > button,
.native-shell-ai-submenu a {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  color: var(--ps-text-primary);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: background-color 150ms ease;
}

.native-shell-more-menu > a:hover,
.native-shell-more-menu > button:hover,
.native-shell-ai-submenu a:hover {
  background: var(--ps-bg-hover);
}

.native-shell-more-menu svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ps-text-secondary);
}

.native-shell-menu-label {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.native-shell-menu-label > svg {
  color: var(--ps-gold);
}

.native-shell-menu-chevron {
  transition: transform 150ms ease;
}

[data-action="toggle-ai-tools"][aria-expanded="true"]
  .native-shell-menu-chevron {
  transform: rotate(90deg);
}

.native-shell-menu-divider {
  height: 1px;
  margin: 0.25rem 0;
  background: var(--ps-border);
}

.native-shell-ai-submenu {
  margin: 0 0.5rem 0.25rem 1.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--ps-border);
}

.native-shell-ai-submenu a {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.native-shell-ai-submenu .native-shell-tracer-link,
.native-shell-ai-submenu .native-shell-tracer-link svg {
  color: #facc15;
}

.native-shell-more-menu .native-shell-logout,
.native-shell-more-menu .native-shell-logout svg {
  color: var(--ps-error);
}

.native-main {
  min-height: calc(100vh - 7.25rem);
}

.native-app-shell .dark-main-content {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding-top: var(--native-shell-topbar-height, 7.625rem);
  padding-bottom: 0;
}

.native-shell-bottom-nav {
  position: fixed;
  height: calc(
    var(--native-shell-nav-height) + env(safe-area-inset-bottom, 0px)
  );
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--native-shell-footer-line);
  border-radius: var(--native-shell-footer-radius)
    var(--native-shell-footer-radius) 0 0;
  box-shadow: 0 -6px 28px rgba(18, 39, 25, 0.06);
}

.native-app-shell .native-shell-bottom-nav.glass-nav {
  background: var(--native-shell-footer-bg);
}

.native-shell-bottom-nav__inner {
  width: 100%;
  height: 100%;
  max-width: 40rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 auto;
  padding: 4px 1rem;
}

.native-shell-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: var(--ps-text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  transition:
    color 150ms ease,
    transform 100ms ease;
}

.native-shell-bottom-item:hover {
  color: var(--ps-text-primary);
}

.native-shell-bottom-item.is-active {
  color: var(--native-shell-footer-ink);
  font-weight: 700;
}

.native-shell-bottom-item .native-shell-nav-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 28px;
  border-radius: 10px;
}

.native-shell-bottom-item.is-active .native-shell-nav-icon {
  background: var(--native-shell-footer-active);
}

.native-shell-bottom-item:active {
  transform: scale(0.95);
}

.native-shell-bottom-item svg {
  width: 1.5rem;
  height: 1.5rem;
}

.native-shell-quick-post {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 0;
  color: #fff;
  background: transparent;
  transition: transform 150ms ease;
}

.native-shell-quick-post > span {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #426849, #234c35);
  box-shadow:
    0 4px 10px rgba(28, 67, 40, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 150ms ease;
}

.native-shell-quick-post:hover > span {
  transform: scale(1.1);
}

.native-shell-quick-post:active > span {
  transform: scale(0.95);
}

.native-shell-quick-post svg {
  color: #fffdf2;
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.native-trend-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.native-chart__reference {
  stroke: var(--ps-primary);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}

.native-chart__line {
  fill: none;
  stroke: var(--ps-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.native-chart__point {
  fill: var(--ps-primary);
  stroke: var(--ps-bg-surface);
  stroke-width: 2;
}

.native-chart__label {
  fill: var(--ps-text-muted);
  font-size: 12px;
}

.native-empty-chart {
  margin-bottom: 1rem;
  color: var(--ps-text-muted);
  font-size: 4rem;
  line-height: 1;
}

@keyframes native-shell-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-0.25rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes native-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .native-app-shell {
    --native-shell-bottom-offset: 0px;
    padding-bottom: 1rem;
  }

  .native-app-shell .dark-main-content {
    padding-top: calc(var(--native-shell-topbar-height, 7.625rem) + 1rem);
  }

  .native-shell-bottom-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .native-shell-topbar {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .native-shell-brand-row {
    gap: 0.35rem;
  }

  .native-shell-top-navigation {
    gap: 0;
  }

  .native-shell-top-item {
    padding-right: 0.125rem;
    padding-left: 0.125rem;
    font-size: clamp(0.5rem, 2vw, 0.65rem);
    letter-spacing: 0.025em;
    white-space: nowrap;
  }

  .native-shell-brand {
    gap: 0.35rem;
    font-size: 0.875rem;
  }

  .native-shell-brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .native-shell-qualified {
    font-size: 0.75rem;
  }

  .native-shell-coins {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .native-shell-account-actions {
    gap: 0.25rem;
  }

  .native-shell-icon-button,
  .native-shell-avatar {
    width: 2rem;
    height: 2rem;
  }

  .native-shell-notifications {
    position: fixed;
    top: 4rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 370px) {
  .native-shell-brand {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .native-shell-icon-button.has-unread-notifications > svg,
  .native-shell-notifications,
  .native-shell-more-menu,
  .native-shell-spinner,
  .native-shell-quick-post > span {
    animation: none;
  }
}

/* Global shell extras: news ticker, RonRo assistant and game invitations. */
[data-component="ps-golf-news-ticker"],
[data-component="ps-ronro-help"],
[data-component="ps-game-invite-manager"],
[data-component="ps-game-invite-popup"] {
  font: inherit;
}

.native-shell-quick-post-host .am-shot-backdrop {
  z-index: 150;
}

.native-news-ticker {
  position: fixed;
  z-index: 49;
  right: 0;
  bottom: calc(
    var(--native-shell-nav-height) + env(safe-area-inset-bottom, 0px)
  );
  left: 0;
  height: 2.25rem;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding-inline: 12px 8px;
  overflow: hidden;
  border-top: 1px solid var(--native-shell-footer-line);
  border-bottom: 1px solid var(--native-shell-footer-line);
  border-radius: var(--native-shell-footer-radius)
    var(--native-shell-footer-radius) 0 0;
  background: var(--native-shell-footer-bg);
  box-shadow: 0 -6px 28px rgba(18, 39, 25, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.native-news-ticker--compact {
  height: 1.75rem;
  font-size: 0.75rem;
}
.native-news-ticker--normal {
  height: 2.25rem;
  font-size: 0.875rem;
}
.native-news-ticker--large {
  height: 2.75rem;
  font-size: 1rem;
}

.native-news-ticker__viewport {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.native-news-ticker__content {
  display: inline-block;
  padding-left: 100%;
  color: var(--native-shell-footer-ink);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
  animation: native-news-scroll var(--ticker-duration, 40s) linear infinite;
}

.native-news-ticker__content:hover {
  animation-play-state: paused;
}

.native-news-ticker__menu-button {
  width: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block: 1px;
  border: 0;
  margin: 6px 0;
  border-radius: 12px;
  color: var(--native-shell-footer-ink);
  background: var(--native-shell-footer-active);
  cursor: pointer;
}

.native-news-ticker__menu-button:hover {
  background: color-mix(
    in srgb,
    var(--native-shell-footer-ink) 15%,
    var(--native-shell-footer-bg)
  );
}

.native-news-ticker__menu-button:focus-visible {
  outline: 2px solid var(--native-shell-footer-ink);
  outline-offset: -2px;
}

.native-news-ticker__menu-button svg,
.native-news-settings svg {
  width: 1.1rem;
  height: 1.1rem;
}

.native-news-settings {
  position: fixed;
  z-index: 90;
  right: 0.75rem;
  bottom: calc(
    var(--native-shell-nav-height) + var(--native-news-height, 0px) +
      env(safe-area-inset-bottom, 0px) + 0.5rem
  );
  width: min(14rem, calc(100vw - 1.5rem));
  max-height: calc(
    100dvh - var(--native-shell-nav-height) - var(--native-news-height, 0px) -
      env(safe-area-inset-bottom, 0px) - 1rem
  );
  overflow-y: auto;
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
  animation: native-shell-menu-enter 150ms ease-out;
}

.native-news-settings > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--ps-border);
}

.native-news-settings > header span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.native-news-settings > header strong {
  font-size: 0.875rem;
}
.native-news-settings > header small {
  color: var(--ps-text-muted);
  font-size: 0.7rem;
}
.native-news-settings > header button {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.4rem;
  color: var(--ps-text-muted);
  background: transparent;
}
.native-news-settings > header button:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-hover);
}
.native-news-settings__body {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem;
}

.native-news-settings__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  color: var(--ps-text-primary);
  background: transparent;
  font-size: 0.82rem;
  text-align: left;
}

.native-news-settings__row:hover {
  background: var(--ps-bg-hover);
}
.native-news-settings__row:first-child svg {
  color: var(--ps-primary);
}
.native-news-settings__row.is-loading svg {
  animation: native-shell-spin 800ms linear infinite;
}

.native-news-settings__options {
  margin: 0.15rem 0;
  padding: 0.55rem 0.7rem 0.65rem;
  border: 0;
  border-top: 1px solid var(--ps-border);
}

.native-news-settings__options legend {
  float: left;
  width: 100%;
  margin-bottom: 0.45rem;
  color: var(--ps-text-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.native-news-settings__options > div {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}
.native-news-settings__options button {
  padding: 0.38rem 0.15rem;
  border: 0;
  border-radius: 0.4rem;
  color: var(--ps-text-secondary);
  background: var(--ps-bg-elevated);
  font-size: 0.68rem;
  font-weight: 700;
}
.native-news-settings__options button.is-active {
  color: #fff;
  background: var(--ps-primary);
}

@keyframes native-news-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.native-app-shell:has(.native-news-ticker) {
  --native-news-height: 2.25rem;
  padding-bottom: calc(
    var(--native-shell-nav-height) + var(--native-news-height) +
      env(safe-area-inset-bottom, 0px)
  );
}

/* The news strip owns the dock's top corners while it is visible. */
.native-app-shell:has(.native-news-ticker) .native-shell-bottom-nav {
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.native-app-shell:has(.native-news-ticker--compact) {
  --native-news-height: 1.75rem;
}

.native-app-shell:has(.native-news-ticker--large) {
  --native-news-height: 2.75rem;
}

.native-app-shell:has(.native-news-ticker) .native-shell-more-menu {
  bottom: auto;
  max-height: min(
    35rem,
    calc(100vh - var(--native-shell-topbar-height, 7.625rem) - 1rem)
  );
}

.native-ronro {
  position: fixed;
  isolation: isolate;
  z-index: 100;
  right: 1rem;
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2rem);
  color: var(--ps-text-primary);
}

.native-ronro-button {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow:
    0 0 1rem rgba(16, 185, 129, 0.5),
    0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.native-ronro-button:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 1.4rem rgba(16, 185, 129, 0.65),
    0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
}
.native-ronro-button > span {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #047857;
}
.native-ronro-button.native-ronro-eagleman {
  display: block;
  z-index: 0;
  width: clamp(96px, 26vw, 128px);
  height: clamp(144px, 39vw, 192px);
  padding: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.native-ronro-button.native-ronro-eagleman:hover {
  box-shadow: none;
  transform: none;
}
.native-ronro-eagleman > [data-ronro-eagleman] {
  overflow: visible;
  border-radius: 12px;
  background: transparent;
}
.native-ronro--eagleman[data-facing="left"] [data-ronro-eagleman] {
  transform: scaleX(-1);
}
.native-ronro--eagleman[data-facing="right"] [data-ronro-eagleman] {
  transform: scaleX(1);
}
.native-ronro--eagleman[data-facing="left"] .home-eagle-error {
  transform: scaleX(-1);
}
.native-ronro--eagleman.is-dragging .native-ronro-eagleman {
  cursor: grabbing;
}
.native-ronro--eagleman .native-ronro-tooltip {
  bottom: calc(100% + 8px);
}
.native-ronro--eagleman[data-facing="right"] .native-ronro-tooltip {
  left: 0;
  right: auto;
}
.native-ronro--open {
  z-index: 1200;
}
.native-ronro-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  touch-action: none;
}
.native-ronro-backdrop[hidden] {
  display: none;
}
.native-ronro-panel {
  position: absolute;
  z-index: 2;
  width: max-content;
}
.native-ronro-panel[hidden] {
  display: none;
}
.native-ronro-panel > [role="dialog"] {
  outline: none;
}

.native-ronro-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--ps-border);
  border-radius: 0.8rem;
  background: var(--ps-bg-surface);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  animation: native-ronro-bounce 2s ease-in-out infinite;
}
.native-ronro-tooltip strong {
  font-size: 0.8rem;
}
.native-ronro-tooltip span {
  color: var(--ps-text-muted);
  font-size: 0.7rem;
}

.native-ronro-card {
  width: min(21.25rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 1rem;
  background: var(--ps-bg-surface);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.5);
  animation: none;
}
.native-ronro-chat {
  width: min(22.5rem, calc(100vw - 2rem));
  height: min(29rem, calc(var(--ronro-viewport-height, 100dvh) - 32px));
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(24, 50, 35, 0.2);
}
.native-ronro--bubble .native-ronro-panel::after {
  position: absolute;
  left: var(--ronro-tail-x, 1.8rem);
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--ps-border);
  border-bottom: 1px solid var(--ps-border);
  background: var(--ps-bg-surface);
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}
.native-ronro--bubble .native-ronro-panel[data-placement="below"]::after {
  top: -7px;
  bottom: auto;
  transform: rotate(225deg);
}

.native-ronro-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ps-border);
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
}
.native-ronro-avatar {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 50%;
  background: #e7eee5;
}
.native-ronro-eagle-head {
  display: block;
  width: 100%;
  height: 100%;
}
.native-ronro-avatar,
.native-ronro-message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #245c43;
  font-weight: 600;
  text-decoration: none;
}
.native-ronro-avatar img,
.native-ronro-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.native-ronro-profile-name {
  color: inherit;
  text-decoration: none;
}
.native-ronro-header a:focus-visible {
  outline: 2px solid var(--ps-primary);
  outline-offset: 3px;
}
.native-ronro-header > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.native-ronro-header strong {
  font-size: 0.88rem;
}
.native-ronro-header small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ps-text-muted);
  font-size: 0.7rem;
}
.native-ronro-header__actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.native-ronro-header__actions button {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  color: var(--ps-text-muted);
  background: transparent;
}
.native-ronro-header__actions button:hover {
  color: var(--ps-text-primary);
  background: var(--ps-bg-elevated);
}
.native-ronro-header__actions svg {
  width: 1rem;
  height: 1rem;
}

.native-ronro-messages {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.85rem;
  background: var(--ps-bg-elevated);
}
.native-ronro-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--ps-text-muted);
  text-align: center;
  font-size: 0.72rem;
}
.native-ronro-welcome strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ps-text-primary);
  font-size: 0.82rem;
}
.native-ronro-message {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}
.native-ronro-message-avatar {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #e7eee5;
}
.native-ronro-message p {
  max-width: 85%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.native-ronro-message.is-ronro {
  justify-content: flex-start;
}
.native-ronro-message.is-ronro p {
  max-width: calc(100% - 2.25rem);
  border-bottom-left-radius: 0.25rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
}
.native-ronro-message.is-user {
  justify-content: flex-end;
}
.native-ronro-message.is-user p {
  border-bottom-right-radius: 0.25rem;
  color: #fff;
  background: #059669;
}
.native-ronro-message.is-pending {
  opacity: 0.65;
}
.native-ronro-typing {
  align-self: flex-start;
  display: flex;
  gap: 0.2rem;
  margin-left: 2.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  background: var(--ps-bg-surface);
}
.native-ronro-typing i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #10b981;
  animation: native-ronro-dot 900ms ease-in-out infinite;
}
.native-ronro-typing i:nth-child(2) {
  animation-delay: 150ms;
}
.native-ronro-typing i:nth-child(3) {
  animation-delay: 300ms;
}
.native-ronro-form {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  margin: 0 0.85rem;
  padding: 0.8rem 0 0.3rem;
  border-top: 1px solid var(--ps-border);
}
.native-ronro-form input {
  min-width: 0;
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ps-border);
  border-radius: 1.4rem;
  outline: 0;
  color: var(--ps-text-primary);
  background: var(--ps-bg-elevated);
  font: inherit;
  font-size: 0.78rem;
}
.native-ronro-form input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.native-ronro-form button {
  width: 2.5rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #059669;
}
.native-ronro-form button:disabled {
  opacity: 0.45;
}
.native-ronro-form svg {
  width: 1rem;
  height: 1rem;
}
.native-ronro-chat-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.5rem;
  padding: 0.25rem 1rem 0.7rem;
}
.native-ronro-chat-tools:empty {
  display: none;
}
.native-ronro-chat-tools button {
  border: 0;
  padding: 0.25rem 0;
  color: var(--ps-text-muted);
  background: transparent;
  font-size: 0.65rem;
}
.native-ronro-chat-tools button:first-child:not(:last-child) {
  margin-right: auto;
}
.native-ronro-chat-tools button:hover {
  color: var(--ps-text-primary);
}
.native-ronro-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: 2.25rem;
}
.native-ronro-prompts button,
.native-ronro-retry {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ps-border);
  border-radius: 1rem;
  color: var(--ps-text-primary);
  background: var(--ps-bg-surface);
  font: inherit;
  font-size: 0.68rem;
}
.native-ronro-prompts button:hover,
.native-ronro-retry:hover {
  border-color: #059669;
}

@keyframes native-ronro-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25rem);
  }
}
@keyframes native-ronro-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-0.2rem);
    opacity: 1;
  }
}

.native-game-invite-overlay,
.native-game-profile-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.85);
}

.native-game-invite {
  position: relative;
  width: min(22.5rem, 100%);
  overflow: hidden;
  border: 2px solid #22c55e;
  border-radius: 1.5rem;
  color: #fff;
  background: #1a1a1a;
  box-shadow:
    0 0 1.25rem rgba(34, 197, 94, 0.6),
    0 0 2.5rem rgba(34, 197, 94, 0.4),
    0 1.5rem 3rem rgba(0, 0, 0, 0.55);
  animation: native-game-border-glow 2.5s ease-in-out infinite alternate;
}
.native-game-invite__close {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.3);
}
.native-game-invite__close:hover {
  color: #fff;
  background: #333;
}
.native-game-invite__close svg {
  width: 1rem;
  height: 1rem;
}
.native-game-invite__header {
  padding: 1.25rem 2.5rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  background: linear-gradient(#1f1f1f, #1a1a1a);
  text-align: center;
}
.native-game-invite__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.native-game-invite__brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.5rem rgba(212, 165, 52, 0.4));
}
.native-game-invite__brand strong {
  color: #22c55e;
}
.native-game-invite__brand strong span {
  color: #d4a534;
}
.native-game-invite__header p {
  margin: 0 0 0.5rem;
  color: #22c55e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.25rem;
  text-shadow: 0 0 0.75rem rgba(34, 197, 94, 0.8);
}
.native-game-invite__header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.native-game-invite__body {
  padding: 1.25rem;
}
.native-game-invite__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.native-game-invite__summary strong {
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
}
.native-game-invite__summary span {
  color: #fbbf24;
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 0 0.75rem rgba(251, 191, 36, 0.35);
}
.native-game-invite__players {
  padding: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  background: #0f0f0f;
}
.native-game-invite__bubbles {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.native-game-player {
  width: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  color: #9ca3af;
  background: transparent;
  font: inherit;
}
.native-game-player > span {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 2px solid #333;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 150ms ease;
}
.native-game-player:not(:disabled):hover > span {
  transform: scale(1.1);
}
.native-game-player.is-you > span {
  border-color: #22c55e;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0.75rem rgba(34, 197, 94, 0.5);
}
.native-game-player.is-pending > span {
  border-color: #555;
  background: linear-gradient(135deg, #4b5563, #374151);
  opacity: 0.72;
}
.native-game-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.native-game-player i {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  color: #111;
  background: #22c55e;
  font-size: 0.55rem;
  font-style: normal;
}
.native-game-player.is-pending i {
  color: #d1d5db;
  background: #4b5563;
}
.native-game-player small {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.native-game-invite__more {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px dashed #444;
  border-radius: 50%;
  color: #9ca3af;
  background: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
}
.native-game-invite__more:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}
.native-game-invite__all {
  max-height: 13rem;
  overflow-y: auto;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2a2a2a;
}
.native-game-invite__all > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: #6b7280;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.native-game-invite__all > header button {
  display: flex;
  border: 0;
  color: #9ca3af;
  background: transparent;
  transform: rotate(180deg);
}
.native-game-invite__all > header svg {
  width: 0.9rem;
  height: 0.9rem;
}
.native-game-invite__all > button {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  border: 0;
  border-radius: 0.5rem;
  color: #d1d5db;
  background: transparent;
  text-align: left;
}
.native-game-invite__all > button:not(:disabled):hover {
  background: #1a1a1a;
}
.native-game-invite__all > button strong {
  font-size: 0.75rem;
}
.native-game-invite__all > button small {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.12);
  font-size: 0.6rem;
}
.native-game-invite__all > button small.is-confirmed {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
}
.native-game-invite__mini-avatar {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #374151;
  font-size: 0.7rem;
  font-weight: 800;
}
.native-game-invite__mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.native-game-invite__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 1.25rem;
}
.native-game-invite__footer button {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.native-game-invite__footer button:disabled {
  opacity: 0.55;
}
.native-game-invite__dismiss {
  border: 2px solid #444;
  color: #9ca3af;
  background: transparent;
}
.native-game-invite__dismiss:hover {
  border-color: #666;
  color: #e5e7eb;
}
.native-game-invite__join {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 0.25rem 1rem rgba(34, 197, 94, 0.4);
}
.native-game-invite__join:hover {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}
.native-game-invite__note {
  display: block;
  padding: 0.85rem 1rem 1.1rem;
  color: #4b5563;
  font-size: 0.65rem;
  text-align: center;
}

.native-game-profile-overlay {
  z-index: 1100;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}
.native-game-profile {
  position: relative;
  width: min(18.75rem, 100%);
  padding: 1.5rem;
  border: 2px solid #22c55e;
  border-radius: 1rem;
  background: #1a1a1a;
  box-shadow:
    0 0 2rem rgba(34, 197, 94, 0.4),
    0 1.25rem 2.5rem rgba(0, 0, 0, 0.5);
  text-align: center;
}
.native-game-profile > button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #9ca3af;
  background: #333;
}
.native-game-profile > button svg {
  width: 0.9rem;
  height: 0.9rem;
}
.native-game-profile__avatar {
  position: relative;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  border: 3px solid #22c55e;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 1.25rem rgba(34, 197, 94, 0.4);
}
.native-game-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.native-game-profile__avatar i {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  background: #22c55e;
}
.native-game-profile h3 {
  margin: 0;
  font-size: 1.2rem;
}
.native-game-profile > p {
  margin: 0.2rem 0 0;
  color: #4ade80;
  font-size: 0.8rem;
}
.native-game-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.25rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}
.native-game-profile__stats span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.native-game-profile__stats strong {
  font-size: 1rem;
}
.native-game-profile__stats small {
  color: #6b7280;
  font-size: 0.58rem;
  text-transform: uppercase;
}
.native-game-profile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.native-game-profile__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  border: 1px solid #333;
  border-radius: 0.6rem;
  color: #e5e7eb;
  background: transparent;
  font-weight: 700;
}
.native-game-profile__actions button:first-child {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.native-game-profile__actions svg {
  width: 0.9rem;
  height: 0.9rem;
}
.native-game-profile__buddy {
  display: block;
  margin-top: 0.8rem;
  color: #4ade80;
  font-size: 0.72rem;
}

@keyframes native-game-border-glow {
  from {
    box-shadow:
      0 0 1rem rgba(34, 197, 94, 0.5),
      0 0 2rem rgba(34, 197, 94, 0.3),
      0 1.5rem 3rem rgba(0, 0, 0, 0.55);
  }
  to {
    box-shadow:
      0 0 1.4rem rgba(34, 197, 94, 0.75),
      0 0 3rem rgba(34, 197, 94, 0.45),
      0 1.5rem 3rem rgba(0, 0, 0, 0.55);
  }
}

@media (min-width: 768px) {
  .native-news-ticker {
    display: none;
  }
  .native-news-settings {
    right: 1.5rem;
    bottom: 1.5rem;
    max-height: calc(100dvh - 3rem);
  }
  .native-app-shell:has(.native-news-ticker) {
    padding-bottom: 1rem;
  }
  .native-app-shell:has(.native-news-ticker) .native-shell-more-menu {
    bottom: auto;
  }
  .native-ronro {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-height: 700px) {
  .native-game-invite-overlay {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .native-news-ticker__content,
  .native-ronro-tooltip,
  .native-ronro-card,
  .native-ronro-typing i,
  .native-game-invite {
    animation: none;
  }
  .native-news-ticker__content {
    padding-left: 0;
    transform: none;
    will-change: auto;
  }
}
/* Match the current React shell account row, including the two-row phone layout. */
.native-shell-brand {
  width: 176px;
  max-width: 100%;
  height: 32px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.025em;
}
.native-shell-brand [data-header-user-name] {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.native-shell-local-trophy {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 8px;
  color: #eab308;
}
.native-shell-local-trophy svg {
  width: 16px;
  height: 16px;
}
.native-shell-qualified {
  padding: 0 8px;
  font-size: 16px;
  line-height: 24px;
  -webkit-text-fill-color: transparent;
}
.native-shell-top-item {
  line-height: 1.5;
}
.native-shell-bottom-item {
  line-height: 1.5;
}
.native-shell-topbar {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.native-shell-coins {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
}
.native-shell-account-actions {
  gap: 8px;
}
.native-shell-icon-button {
  width: 36px;
  height: 36px;
}
.native-shell-avatar {
  width: 36px;
  height: 36px;
}
.native-shell-top-navigation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.native-shell-top-navigation .native-shell-top-item {
  min-width: 0;
  width: 100%;
  padding-inline: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
@media (max-width: 520px) {
  .native-shell-top-navigation {
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
  }
}
.native-shell-bottom-nav__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-inline: 8px;
  gap: 2px;
}
.native-shell-bottom-item {
  min-width: 0;
  padding-inline: 2px;
}
@media (max-width: 480px) {
  .native-shell-brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .native-shell-brand {
    grid-area: 1/1;
  }
  .native-shell-account-actions {
    grid-area: 1/2;
    justify-self: end;
  }
  .native-shell-qualified {
    grid-area: 2/1;
    justify-self: start;
    padding-left: 0;
  }
  .native-shell-coins {
    grid-area: 2/2;
    justify-self: end;
    max-width: 100%;
  }
  .native-shell-brand-row.ps-shell-home-row {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    column-gap: 4px;
  }
  .ps-shell-home-row .native-shell-brand {
    grid-area: 1/1/2/3;
  }
  .ps-shell-home-row .native-shell-account-actions {
    grid-area: 1/3;
  }
  .ps-shell-home-row .native-shell-qualified {
    grid-area: 2/1;
  }
  .ps-shell-home-row .ps-header-handicap {
    grid-area: 2/2;
  }
  .ps-shell-home-row .native-shell-coins {
    grid-area: 2/3;
  }
}
@media (min-width: 768px) {
  .native-news-ticker {
    display: none;
  }
}
/* Source shell menus stay below the measured account/navigation rows. */
.native-shell-more-menu,
.native-shell-notifications {
  position: fixed;
  top: calc(var(--native-shell-topbar-height, 7.625rem) + 0.5rem);
  right: max(1rem, calc((100vw - 640px) / 2));
  left: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - var(--native-shell-topbar-height, 7.625rem) - 8rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.native-shell-more-menu > a,
.native-shell-more-menu > button {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 21px;
}
.native-shell-more-menu > a[href="/outings"] svg {
  color: #a855f7;
}
.native-shell-more-menu > a[href="/wallet"] svg {
  color: #22c55e;
}

/* Keep account details together on every route above the navigation. */
.native-app-shell .native-shell-brand-row.ps-shell-home-row {
  display: flex;
  gap: 8px;
}
.native-shell-home-identity {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
}
.native-shell-home-name {
  position: relative;
  flex: 0 1 auto;
  min-width: 3rem;
  padding-bottom: 11px;
}
.ps-shell-home-row .native-shell-brand {
  width: auto;
  max-width: 100%;
  height: 20px;
  flex: 0 1 auto;
  gap: 4px;
  line-height: 20px;
}
.ps-shell-home-row .native-shell-local-trophy {
  margin-left: 0;
}
.ps-shell-home-row .native-shell-qualified {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0;
  font-size: 9px;
  line-height: 11px;
}
.ps-shell-home-row .ps-header-handicap {
  flex-direction: row;
  gap: 4px;
  min-width: 0;
  /* padding: 0; */
}
.native-shell-hcp-mark {
  padding: 0 3px;
  border: 1px solid var(--ps-border);
  border-radius: 4px;
  color: var(--ps-text-secondary);
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
}
.ps-shell-home-row .ps-header-handicap-label {
  display: none;
}
.ps-shell-home-row .ps-header-handicap-value {
  font-size: 16px;
}
@media (max-width: 480px) {
  .native-shell-home-identity {
    gap: 4px;
  }
  .ps-shell-home-row .native-shell-brand {
    font-size: 14px;
    line-height: 20px;
  }
  .ps-shell-home-row .ps-header-handicap-value {
    font-size: 13px;
  }
  .ps-shell-home-row .native-shell-account-actions {
    gap: 6px;
  }
  .ps-shell-home-row .native-shell-icon-button,
  .ps-shell-home-row .native-shell-avatar {
    width: 32px;
    height: 32px;
  }
  .ps-shell-home-row .native-shell-coins {
    padding: 6px 8px;
    font-size: 12px;
  }
  .ps-shell-home-row .native-shell-coins svg {
    width: 14px;
    height: 14px;
  }
}

/* Shared balance entries keep just the stacked PS coins and amount. */
.native-shell-coins.native-shell-coins--club {
  min-height: 40px;
  max-width: min(34vw, 148px);
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  color: var(--ps-text-primary);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.native-shell-coins--club {
  --native-shell-coin-size: 20px;
}
.native-shell-coins--club .native-shell-coin-medallion {
  display: block;
  flex: 0 0 auto;
  width: var(--native-shell-coin-size);
  height: var(--native-shell-coin-size);
  object-fit: contain;
}
.native-shell-coins--club [data-coins] {
  overflow: hidden;
  color: var(--ps-text-primary);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.native-shell-coins.native-shell-coins--club:hover {
  opacity: 0.8;
}
.native-shell-coins.native-shell-coins--club:active {
  transform: none;
}
.native-shell-coins--club:focus-visible {
  outline: 2px solid var(--ps-primary);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .native-shell-coins--club [data-coins] {
    font-size: 15px;
  }
}

/* Shared header: quiet club colors and the same rounded surfaces as Home. */
.native-shell-topbar {
  --header-surface: rgba(13, 22, 17, .95);
  --header-rail: rgba(158, 187, 153, .055);
  --header-line: rgba(178, 202, 175, .14);
  --header-ink: #e9f1e8;
  --header-gold: #c6b58b;
  --header-muted: #a0afa1;
  --header-active: #dfefdc;
  --header-active-bg: #254331;
  --header-hover: rgba(162, 194, 155, .09);
  --header-status: #a6bfa4;
  background: var(--header-surface);
  border-bottom-color: var(--header-line);
  box-shadow: 0 6px 20px rgb(0 0 0 / .055);
}
.theme-light .native-shell-topbar {
  --header-surface: rgba(251, 252, 247, .96);
  --header-rail: #f0f3eb;
  --header-line: #dfe6d9;
  --header-ink: #244c35;
  --header-gold: #80683b;
  --header-muted: #607060;
  --header-active: #244f35;
  --header-active-bg: #fffef9;
  --header-hover: #e7eddf;
  --header-status: #54745b;
}
.native-shell-topbar .native-shell-home-identity { gap: 8px; }
.native-shell-topbar .native-shell-home-name {
  min-width: 0;
}
.native-shell-topbar .native-shell-brand {
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 650;
  letter-spacing: -.025em;
  text-transform: none;
}
.native-shell-topbar .native-shell-brand strong { color: var(--header-ink); font-weight: 650; }
.native-shell-topbar .native-shell-brand em { color: var(--header-gold); font-weight: 550; }
.native-shell-topbar .ps-header-handicap {
  flex: 0 0 auto;
  height: 28px;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid var(--header-line);
  border-radius: 8px;
  color: var(--header-ink);
  background: var(--header-rail);
}
.native-shell-topbar .native-shell-hcp-mark {
  padding: 0;
  border: 0;
  color: var(--header-muted);
  font-size: 8px;
  font-weight: 500;
}
.native-shell-topbar .ps-header-handicap-value { font-size: 14px; font-weight: 650; }
.native-shell-topbar .native-shell-top-navigation {
  position: relative;
  isolation: isolate;
  gap: 4px;
  padding: 5px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.native-shell-topbar .native-shell-top-navigation::before {
  content: '';
  position: absolute;
  inset: 0 calc((100% - 100vw) / 2);
  z-index: -1;
  pointer-events: none;
  border-block: 1px solid var(--header-line);
  background: var(--header-rail);
}
.native-shell-topbar .native-shell-top-navigation .native-shell-top-item {
  min-height: 46px;
  gap: 4px;
  padding: 5px 2px;
  border-radius: 10px;
  color: var(--header-muted);
  font-size: 10px;
  font-weight: 550;
  line-height: 14px;
  letter-spacing: .01em;
  text-transform: none;
}
.native-shell-topbar .native-shell-top-navigation .native-shell-nav-icon > svg { width: 18px; height: 18px; }
.native-shell-topbar .native-shell-top-item:hover { background: var(--header-hover); color: var(--header-ink); }
.native-shell-topbar .native-shell-top-item:is(.is-active, [aria-expanded="true"]) {
  background: var(--header-active-bg);
  color: var(--header-active);
  box-shadow: 0 1px 3px rgb(0 0 0 / .04);
}
.native-shell-topbar .native-shell-top-item.is-active svg { filter: none; }
.native-shell-topbar .native-shell-top-item:focus-visible { outline: 2px solid var(--header-status); outline-offset: 1px; }
@media (min-width: 521px) {
  .native-shell-topbar .native-shell-top-navigation .native-shell-top-item { font-size: 11px; }
}
@media (max-width: 360px) {
  .native-shell-topbar .native-shell-home-identity { gap: 5px; }
  .native-shell-topbar .ps-header-handicap { padding-inline: 4px; }
  .native-shell-topbar .ps-header-handicap-value { font-size: 12px; }
}
