:root {
  --user-shell-height: 64px;
  --user-shell-ink: var(--creator-brand-ink, #17231f);
  --user-shell-muted: var(--creator-brand-muted, #68756f);
  --user-shell-line: var(--creator-brand-line, #dfe5e2);
  --user-shell-line-strong: var(--creator-brand-line-strong, #c9d2ce);
  --user-shell-soft: var(--creator-brand-surface-muted, #f6f8f7);
  --user-shell-accent: var(--creator-brand-accent, #ee4d2d);
  --user-shell-accent-strong: var(--creator-brand-accent-strong, #d83d20);
}

.user-shell-header {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--user-shell-height);
  padding: 8px max(24px, calc((100vw - 1580px) / 2));
  border-bottom: 1px solid var(--user-shell-line);
  align-items: center;
  color: var(--user-shell-ink);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

body.user-shell-page .creator-layout,
body.user-shell-page .studio-main,
body.user-shell-page .conversation-sidebar {
  transition: opacity 140ms ease;
}

body.user-shell-page.user-shell-navigation-pending .creator-layout,
body.user-shell-page.user-shell-navigation-pending .studio-main,
body.user-shell-page.user-shell-navigation-pending .conversation-sidebar {
  opacity: 0.22;
  pointer-events: none;
}

body.user-shell-page.user-shell-navigation-pending .user-shell-header {
  opacity: 1;
}

.user-shell-brand-nav {
  display: flex;
  min-width: 0;
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
}

.user-shell-brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--user-shell-ink);
  text-decoration: none;
}

.user-shell-brand .creator-global-brand-mark {
  grid-row: 1 / 3;
}

.user-shell-brand > strong {
  grid-column: 2;
  color: var(--user-shell-ink);
  font-size: 16px;
  line-height: 1.2;
}

.user-shell-brand > .user-shell-brand-subtitle {
  grid-column: 2;
  color: var(--user-shell-muted);
  font-size: 11px;
  line-height: 1.2;
}

.user-shell-main-nav {
  display: flex;
  min-height: 48px;
  align-self: stretch;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.user-shell-main-nav :is(a, button) {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  align-items: center;
  color: #67736e;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.user-shell-main-nav :is(a, button):hover,
.user-shell-main-nav :is(a, button):focus-visible {
  color: var(--user-shell-accent-strong);
  background: #fff7f5;
  outline: 0;
  transform: translateY(-1px);
}

.user-shell-main-nav a.is-active {
  color: var(--user-shell-accent-strong);
}

.user-shell-main-nav :is(a, button)::after {
  position: absolute;
  right: 14px;
  bottom: -8px;
  left: 14px;
  height: 2px;
  background: var(--user-shell-accent);
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.user-shell-main-nav :is(a, button):hover::after,
.user-shell-main-nav :is(a, button):focus-visible::after {
  transform: scaleX(0.48);
}

.user-shell-main-nav a.is-active::after {
  transform: scaleX(1);
}

.user-shell-main-nav svg,
.user-shell-actions svg,
.user-shell-workspace-switcher svg,
.user-shell-payment-records-overlay svg,
.user-shell-contact-overlay svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-shell-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.user-shell-actions .admin-return-link {
  display: inline-flex;
  min-height: 38px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  align-items: center;
  color: #53605b;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.user-shell-actions .admin-return-link:hover {
  border-color: var(--user-shell-line-strong);
  color: var(--user-shell-ink);
}

.user-shell-actions .admin-return-link.is-hidden,
.user-shell-actions .user-shell-contact-action.is-hidden,
.user-shell-main-nav a.is-hidden,
.user-shell-main-nav button.is-hidden,
.user-shell-actions .creator-user-select,
.user-shell-actions .creator-user-badge {
  display: none;
}

.user-shell-actions .portal-notification-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  place-items: center;
  color: #53605b;
  background: transparent;
  text-decoration: none;
}

.user-shell-actions .portal-notification-button:hover {
  color: var(--user-shell-ink);
  background: var(--user-shell-soft);
}

.user-shell-contact-action {
  display: inline-flex;
  min-height: 38px;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  align-items: center;
  color: #53605b;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.user-shell-contact-action:hover,
.user-shell-contact-action:focus-visible {
  color: var(--user-shell-accent-strong);
  background: #fff7f5;
  outline: 0;
  transform: translateY(-1px);
}

.user-shell-actions .portal-notification-label {
  display: none;
}

.user-shell-account-quick-actions {
  display: flex;
  min-height: 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  background: #fff;
}

.user-shell-account-quick-actions[hidden] {
  display: none;
}

.user-shell-credit-summary {
  display: flex;
  min-width: 104px;
  gap: 6px;
  align-items: center;
  padding: 0 10px;
  color: #53605b;
  font-size: 12px;
}

.user-shell-credit-summary svg {
  color: var(--user-shell-accent-strong);
}

.user-shell-credit-summary strong {
  color: var(--user-shell-ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.user-shell-recharge {
  display: inline-flex;
  min-width: 72px;
  min-height: 38px;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--user-shell-line);
  align-items: center;
  color: #3f4c47;
  background: #f5f7f6;
  font-size: 12px;
  font-weight: 700;
}

.user-shell-recharge svg {
  color: #a44b38;
}

.user-shell-recharge:hover {
  color: var(--user-shell-ink);
  background: #e9eeeb;
}

.user-shell-account {
  position: relative;
  flex: 0 0 auto;
}

.user-shell-account .user-shell-account-trigger {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--user-shell-ink);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--user-shell-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.user-shell-account .user-shell-account-trigger:hover,
.user-shell-account .user-shell-account-trigger:focus-visible,
.user-shell-account.is-open .user-shell-account-trigger {
  border-color: var(--user-shell-accent);
  background: #263b34;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.18);
  outline: 0;
  transform: translateY(-1px);
}

.user-shell-account .user-shell-account-trigger svg {
  width: 19px;
  height: 19px;
}

.user-shell-account .user-shell-account-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  overflow: hidden;
  border: 1px solid var(--user-shell-line);
  border-radius: 8px;
  color: var(--user-shell-ink);
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 35, 31, 0.16);
  animation: user-shell-menu-in 150ms ease-out both;
}

.user-shell-account .user-shell-account-menu[hidden] {
  display: none;
}

.user-shell-account-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--user-shell-line);
}

.user-shell-account-profile-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--user-shell-ink);
}

.user-shell-account-profile-copy,
.user-shell-account-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-shell-account-profile-copy strong,
.user-shell-account-item-copy strong {
  color: var(--user-shell-ink);
  font-size: 13px;
}

.user-shell-account-profile-copy small,
.user-shell-account-item-copy small {
  color: var(--user-shell-muted);
  font-size: 10px;
}

.user-shell-account-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  border-bottom: 1px solid var(--user-shell-line);
}

.user-shell-account-info-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px;
}

.user-shell-account-item-icon,
.user-shell-account-action-icon {
  display: grid;
  place-items: center;
  color: #53605b;
}

.user-shell-account-menu-actions {
  display: grid;
  padding: 7px;
}

.user-shell-account-menu-action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  min-height: 42px;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  align-items: center;
  color: #3f4c47;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.user-shell-account-menu-action:hover {
  color: var(--user-shell-ink);
  background: var(--user-shell-soft);
}

.user-shell-account-menu-action.is-hidden {
  display: none;
}

.user-shell-account-menu-action.user-shell-mobile-contact-entry {
  display: none;
}

.user-shell-account-menu-action.is-logout {
  color: #9d3929;
}

.user-shell-account-menu-action > svg {
  width: 14px;
  height: 14px;
  justify-self: end;
}

.user-shell-workspace-switcher {
  position: relative;
  display: grid;
  width: min(320px, 100%);
  max-width: 100%;
  gap: 6px;
}

.user-shell-workspace-label {
  color: var(--user-shell-muted);
  font-size: 11px;
  font-weight: 700;
}

.user-shell-workspace-trigger {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 16px;
  width: 100%;
  min-height: 54px;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--user-shell-line);
  border-radius: 7px;
  align-items: center;
  text-align: left;
  color: var(--user-shell-ink);
  background: #ffffff;
}

.user-shell-workspace-trigger:hover,
.user-shell-workspace-switcher.is-open .user-shell-workspace-trigger {
  border-color: #aeb9b3;
  background: var(--user-shell-soft);
}

.user-shell-workspace-trigger > svg {
  width: 15px;
  height: 15px;
  color: var(--user-shell-muted);
  transition: transform 160ms ease;
}

.user-shell-workspace-switcher.is-open .user-shell-workspace-trigger > svg {
  transform: rotate(180deg);
}

.user-shell-workspace-trigger-icon,
.user-shell-workspace-option-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--user-shell-ink);
}

.user-shell-workspace-trigger-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.user-shell-workspace-trigger-icon.is-studio {
  background: #315b4a;
}

.user-shell-workspace-trigger-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-shell-workspace-trigger-copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-shell-workspace-trigger-copy small {
  overflow: hidden;
  color: var(--user-shell-muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-shell-workspace-trigger-action {
  color: var(--user-shell-muted);
  font-size: 11px;
  font-weight: 700;
}

.user-shell-workspace-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 320px;
  padding: 6px;
  border: 1px solid var(--user-shell-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 35, 31, 0.16);
  animation: user-shell-menu-in 150ms ease-out both;
}

.user-shell-workspace-menu-title {
  padding: 7px 9px 5px;
  color: var(--user-shell-muted);
  font-size: 11px;
  font-weight: 700;
}

.user-shell-workspace-menu[hidden] {
  display: none;
}

.user-shell-workspace-menu > a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  min-height: 60px;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 5px;
  align-items: center;
  color: var(--user-shell-ink);
  text-decoration: none;
}

.user-shell-workspace-menu > a:hover {
  background: var(--user-shell-soft);
}

.user-shell-workspace-option-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  color: var(--user-shell-ink);
  background: #fff;
}

.user-shell-workspace-option-icon.is-studio {
  color: #315b4a;
  background: #f1f6f3;
}

.user-shell-workspace-option-copy {
  display: grid;
  gap: 3px;
}

.user-shell-workspace-option-copy strong {
  color: var(--user-shell-ink);
  font-size: 12px;
}

.user-shell-workspace-option-copy small {
  color: var(--user-shell-muted);
  font-size: 10px;
}

.user-shell-workspace-menu > a > svg {
  justify-self: center;
  color: var(--user-shell-brand-success, #18794e);
}

.user-shell-workspace-menu .studio-entry-lock {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid #e5b7bf;
  border-radius: 50%;
  place-items: center;
  justify-self: center;
  color: var(--user-shell-accent-strong);
  background: #fff7f8;
}

.user-shell-workspace-menu .studio-entry-lock[hidden] {
  display: none;
}

.user-shell-workspace-menu .studio-entry-lock svg {
  width: 13px;
  height: 13px;
}

body.user-shell-payment-records-open {
  overflow: hidden;
}

body.user-shell-contact-open {
  overflow: hidden;
}

.user-shell-contact-overlay[hidden] {
  display: none;
}

.user-shell-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(15, 22, 19, 0.46);
  backdrop-filter: blur(4px);
  animation: user-shell-overlay-in 160ms ease-out both;
}

.user-shell-contact-dialog {
  width: min(440px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  border: 1px solid var(--user-shell-line);
  border-radius: 8px;
  color: var(--user-shell-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 22, 19, 0.24);
  animation: user-shell-dialog-in 180ms ease-out both;
}

.user-shell-contact-header {
  display: flex;
  min-height: 84px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--user-shell-line);
}

.user-shell-contact-header h2,
.user-shell-contact-header p,
.user-shell-contact-qr {
  margin: 0;
}

.user-shell-contact-header h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.user-shell-contact-header p {
  max-width: 340px;
  margin-top: 5px;
  color: var(--user-shell-muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.user-shell-contact-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.user-shell-contact-body.has-contact.has-qr {
  grid-template-columns: 1fr;
}

.user-shell-contact-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-content: center;
  align-items: center;
  padding: 24px 28px;
}

.user-shell-contact-body.has-contact.has-qr .user-shell-contact-copy {
  border-bottom: 1px solid var(--user-shell-line);
}

.user-shell-contact-copy > span {
  grid-column: 1;
  color: var(--user-shell-muted);
  font-size: 11px;
}

.user-shell-contact-copy strong {
  grid-column: 1;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.user-shell-contact-copy button {
  grid-column: 2;
  grid-row: 1 / 3;
  display: inline-flex;
  min-height: 38px;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  align-items: center;
  color: var(--user-shell-ink);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.user-shell-contact-copy button:hover,
.user-shell-contact-copy button:focus-visible {
  border-color: var(--user-shell-line-strong);
  background: var(--user-shell-soft);
  outline: 0;
}

.user-shell-contact-qr {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px 28px 28px;
  border-left: 0;
  background: #fafbfa;
}

.user-shell-contact-qr a {
  display: block;
  width: min(210px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  background: #fff;
}

.user-shell-contact-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-shell-contact-qr figcaption {
  color: var(--user-shell-muted);
  font-size: 11px;
  text-align: center;
}

.user-shell-payment-records-overlay[hidden] {
  display: none;
}

.user-shell-payment-records-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(15, 22, 19, 0.42);
  backdrop-filter: blur(3px);
}

.user-shell-payment-records-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(680px, 100%);
  max-height: min(720px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid var(--user-shell-line);
  border-radius: 8px;
  color: var(--user-shell-ink);
  background: #fff;
  box-shadow: 0 24px 72px rgba(15, 22, 19, 0.22);
}

.user-shell-payment-records-header {
  display: flex;
  min-height: 80px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--user-shell-line);
}

.user-shell-payment-records-header h2,
.user-shell-payment-records-header p {
  margin: 0;
}

.user-shell-payment-records-header h2 {
  font-size: 18px;
}

.user-shell-payment-records-header p {
  margin-top: 4px;
  color: var(--user-shell-muted);
  font-size: 12px;
}

.user-shell-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  place-items: center;
  color: #53605b;
  background: #fff;
}

.user-shell-icon-button:disabled {
  opacity: 0.38;
}

.user-shell-payment-records-filters {
  display: flex;
  width: max-content;
  gap: 3px;
  margin: 14px 20px 6px;
  padding: 3px;
  border: 1px solid var(--user-shell-line);
  border-radius: 6px;
  background: var(--user-shell-soft);
}

.user-shell-payment-records-filters button {
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  color: var(--user-shell-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.user-shell-payment-records-filters button[aria-pressed="true"] {
  color: var(--user-shell-ink);
  background: #fff;
}

.user-shell-payment-records-content {
  min-height: 260px;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

.user-shell-payment-records-loading,
.user-shell-payment-records-empty {
  display: grid;
  min-height: 260px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--user-shell-muted);
  text-align: center;
}

.user-shell-payment-records-loading span {
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8e5;
  border-top-color: var(--user-shell-accent);
  border-radius: 50%;
  animation: user-shell-spin 700ms linear infinite;
}

.user-shell-payment-records-empty p {
  max-width: 330px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.user-shell-payment-records-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  color: #53605b;
  background: var(--user-shell-soft);
}

.user-shell-payment-records-recharge,
.user-shell-payment-records-retry {
  min-height: 34px;
  margin-top: 5px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--user-shell-accent);
  font-size: 12px;
  font-weight: 800;
}

.user-shell-payment-records-retry {
  color: var(--user-shell-ink);
  background: var(--user-shell-soft);
}

.user-shell-payment-records-list {
  border-top: 1px solid var(--user-shell-line);
}

.user-shell-payment-record-item {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) 80px 96px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 4px;
  border-bottom: 1px solid #edf0ee;
}

.user-shell-payment-record-main {
  display: grid;
  gap: 3px;
}

.user-shell-payment-record-main strong,
.user-shell-payment-record-amount {
  color: var(--user-shell-ink);
  font-size: 13px;
}

.user-shell-payment-record-main span,
.user-shell-payment-record-benefit {
  color: var(--user-shell-muted);
  font-size: 11px;
}

.user-shell-payment-record-amount {
  text-align: right;
}

.user-shell-payment-record-status {
  display: inline-flex;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  align-items: center;
  justify-self: end;
  color: #5d6863;
  background: #f1f3f2;
  font-size: 11px;
  font-weight: 700;
}

.user-shell-payment-record-status.is-complete {
  color: #1d6a49;
  background: #edf8f2;
}

.user-shell-payment-record-status.is-pending {
  color: #8a4a13;
  background: #fff4e8;
}

.user-shell-payment-records-pagination {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  color: var(--user-shell-muted);
  font-size: 11px;
}

.user-shell-payment-records-pagination > div {
  display: flex;
  gap: 6px;
}

@keyframes user-shell-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes user-shell-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes user-shell-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .user-shell-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 20px;
    padding-left: 20px;
  }

  .user-shell-main-nav a {
    padding-right: 10px;
    padding-left: 10px;
  }

  .user-shell-main-nav :is(a, button) {
    padding-right: 10px;
    padding-left: 10px;
  }

  .user-shell-actions .admin-return-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .user-shell-actions .admin-return-link span {
    display: none;
  }

  .user-shell-contact-action {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .user-shell-contact-action span {
    display: none;
  }
}

@media (max-width: 900px) {
  .user-shell-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .user-shell-brand-nav {
    gap: 12px;
  }

  .user-shell-brand > strong,
  .user-shell-brand > .user-shell-brand-subtitle,
  .user-shell-credit-summary span,
  .user-shell-recharge span {
    display: none;
  }

  .user-shell-brand {
    display: block;
  }

  .user-shell-credit-summary {
    min-width: 60px;
  }

  .user-shell-recharge {
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root { --user-shell-height: 58px; }

  .user-shell-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: var(--user-shell-height);
    padding: 6px 12px;
  }

  .user-shell-main-nav {
    min-height: 46px;
    gap: 0;
  }

  .user-shell-main-nav a {
    min-height: 46px;
    padding: 0 5px;
    font-size: 10px;
  }

  .user-shell-main-nav a svg,
  .user-shell-actions .portal-notification-button,
  .user-shell-credit-summary,
  .user-shell-actions .admin-return-link,
  .user-shell-contact-action {
    display: none;
  }

  .user-shell-account-menu-action.user-shell-mobile-contact-entry:not(.is-hidden) {
    display: grid;
  }

  .user-shell-actions {
    gap: 6px;
  }

  .user-shell-account-quick-actions {
    border: 0;
  }

  .user-shell-recharge {
    border: 0;
    border-radius: 6px;
  }

  .user-shell-account .user-shell-account-trigger {
    width: 36px;
    height: 36px;
  }

  .user-shell-account .user-shell-account-menu {
    position: fixed;
    top: calc(var(--user-shell-height) + 6px);
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  .user-shell-workspace-menu {
    right: 0;
    left: 0;
    width: min(310px, calc(100vw - 36px));
  }

  .user-shell-payment-records-overlay {
    padding: 12px;
  }

  .user-shell-contact-overlay {
    padding: 12px;
  }

  .user-shell-contact-dialog {
    max-height: calc(100svh - 24px);
  }

  .user-shell-contact-header {
    min-height: 84px;
    padding: 16px 18px;
  }

  .user-shell-contact-header h2 {
    font-size: 20px;
  }

  .user-shell-contact-body.has-contact.has-qr {
    grid-template-columns: 1fr;
  }

  .user-shell-contact-copy {
    padding: 22px;
  }

  .user-shell-contact-qr {
    padding: 22px 20px 26px;
    border-left: 0;
  }

  .user-shell-payment-records-dialog {
    max-height: calc(100svh - 24px);
  }

  .user-shell-payment-record-item {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 82px;
  }

  .user-shell-payment-record-benefit {
    grid-row: 2;
  }

  .user-shell-payment-record-amount {
    grid-row: 1;
    grid-column: 2;
  }

  .user-shell-payment-record-status {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.user-shell-page .creator-layout,
  body.user-shell-page .studio-main,
  body.user-shell-page .conversation-sidebar,
  .user-shell-account .user-shell-account-menu,
  .user-shell-workspace-menu,
  .user-shell-payment-records-loading span,
  .user-shell-contact-overlay,
  .user-shell-contact-dialog {
    animation: none;
  }
}
