.xr-user-app-shell > div > aside { display: none !important; }
.xr-user-app-shell [data-tour="user-mobile-menu"] { display: none; }
.xr-user-app-shell main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.xr-user-shell button[aria-label="移入回收站"] { opacity: 1; }
[data-slot="dialog-content"], [data-slot="alert-dialog-content"] { max-height: calc(100dvh - 24px); overflow-y: auto; }
#update-package { width: 100%; max-width: 100%; min-width: 0; }
.xr-user-brand { display: flex; min-width: 0; max-width: 100%; flex-direction: column; align-items: flex-start; gap: 0; text-decoration: none; }
.xr-user-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-user-brand-title { max-width: 100%; color: var(--foreground); font-size: 20px; font-weight: 700; line-height: 25px; letter-spacing: .03em; }
.xr-user-brand-tagline { max-width: 100%; color: var(--muted-foreground); font-size: 11px; font-weight: 400; line-height: 16px; }
.xr-user-home-route .xr-user-app-shell > div > div > header button[aria-label="返回上一页"] { display: none; }
.xr-user-bottom-nav { position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--border); background: var(--card); color: var(--foreground); padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px)); }
.xr-user-bottom-nav-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 820px; margin: auto; gap: 4px; }
.xr-user-nav-item { display: flex; min-width: 0; min-height: 57px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 8px; color: var(--muted-foreground); font-size: 12px; line-height: 17px; text-decoration: none; }
.xr-user-nav-item svg { width: 21px; height: 21px; }
.xr-user-nav-item.is-active { color: var(--foreground); background: var(--muted); font-weight: 600; }
.xr-user-nav-item:hover { background: var(--muted); color: var(--foreground); }
.xr-user-nav-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.xr-user-shell button[aria-label="联系客服"] { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .xr-user-app-shell > div > div > header { gap: 4px; }
  .xr-user-brand-title { font-size: 18px; line-height: 23px; }
  .xr-user-brand-tagline { font-size: 10px; line-height: 15px; }
  .xr-user-app-shell > div > div > header button[aria-label="返回上一页"] { width: 32px; padding-inline: 0; }
  .xr-user-app-shell > div > div > header button[aria-label="返回上一页"] span { display: none; }
  .xr-user-bottom-nav { padding-inline: 8px; }
  .xr-user-nav-item { font-size: 11px; }
}

/* Desktop user console. Mobile keeps the layout above. */
@media (min-width: 1024px) {
  .xr-user-app-shell main { width: 100%; max-width: 1248px; margin-inline: auto; padding: 28px 24px 108px; }
  .xr-user-app-shell > div > div > header { padding-inline: max(24px, calc((100vw - 1200px) / 2)); }
  .xr-user-bottom-nav { padding: 9px 24px; }
  .xr-user-bottom-nav-inner { max-width: 680px; gap: 8px; }
  .xr-user-nav-item { min-height: 42px; flex-direction: row; gap: 8px; padding-inline: 14px; font-size: 13px; }
  .xr-user-nav-item svg { width: 18px; height: 18px; }
  .xr-home-stats { gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
  .xr-home-stats > [data-slot="card"] { gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .xr-home-stats > [data-slot="card"] + [data-slot="card"] { border-left: 1px solid var(--border); }
  .xr-home-stats [data-slot="card-content"] { padding: 20px; }
  .xr-home-stats [data-slot="card-content"] > div:first-child { width: 36px; height: 36px; border-radius: 8px; }
  .xr-home-stats [data-slot="card-content"] > div:last-child > div:last-child { font-size: 24px; line-height: 30px; }
  .xr-user-customer-service { flex-direction: row; gap: 6px; padding: 8px 12px; border-radius: 8px; box-shadow: none; }
}

.xr-home-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.xr-home-panel { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow-wrap: anywhere; }
.xr-home-panel-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.xr-home-panel-heading > div { min-width: 0; flex: 1 1 160px; }
.xr-home-panel h2 { margin: 0; color: var(--foreground); font-size: 15px; font-weight: 600; line-height: 22px; }
.xr-home-panel-heading p, .xr-home-note { margin: 5px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.7; }
.xr-home-text-link { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding-block: 8px; flex-shrink: 0; color: var(--foreground); font-size: 12px; line-height: 22px; text-decoration: none; }
.xr-home-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.xr-home-text-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 2px; }
.xr-home-reminders { margin-top: 10px; }
.xr-home-reminder { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.xr-home-reminder + .xr-home-reminder { border-top: 1px solid var(--border); }
.xr-home-reminder h3, .xr-home-steps h3 { margin: 0; color: var(--foreground); font-size: 13px; font-weight: 500; line-height: 21px; }
.xr-home-reminder p, .xr-home-steps p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.7; }
.xr-home-reminder > div { min-width: 0; }
.xr-home-reminder > strong { flex-shrink: 0; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.xr-home-placeholder { margin: 28px 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.8; }
.xr-home-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.xr-home-steps li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.xr-home-steps li > div { min-width: 0; }
.xr-home-step { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); color: var(--foreground); font-size: 12px; font-weight: 600; }

@media (max-width: 1023px) {
  .xr-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .xr-home-stats [data-slot="card-content"] { gap: 8px; padding-inline: 12px; }
  .xr-home-stats [data-slot="card-content"] > div:first-child { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; }
}
@media (min-width: 768px) {
  .xr-home-overview { gap: 16px; margin-top: 20px; }
  .xr-home-panel { padding: 20px; }
  .xr-home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
}
@media (min-width: 1024px) {
  .xr-home-overview { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr); }
  .xr-home-panel { padding: 22px; }
  .xr-home-panel-heading { flex-wrap: nowrap; gap: 16px; }
  .xr-home-panel-heading > div { flex-basis: auto; }
  .xr-home-text-link { min-height: 0; padding-block: 0; }
}
@media (max-width: 360px) {
  .xr-home-panel { padding: 16px; }
  .xr-home-panel-heading { gap: 8px; }
}
