/* Persistent mobile enhancements kept outside hashed build artifacts. */
@media (max-width:767px) {
  body.xskx-mobile-nav-drawer-enabled { --mobile-nav-clearance: .75rem; overflow-x: hidden; }
  .xskx-mobile-nav-source { display: none !important; }
  .xskx-mobile-nav-trigger { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-content: center; gap: .2rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: hsl(var(--foreground)); }
  .xskx-mobile-nav-trigger span { display: block; width: .875rem; height: 1.5px; border-radius: 999px; background: currentColor; }
  .xskx-mobile-nav-backdrop { position: fixed; inset: 0; z-index: 64; background: #020617a6; opacity: 0; transition: opacity .2s ease; }
  .xskx-mobile-nav-backdrop[hidden] { display: none; }
  .xskx-mobile-nav-backdrop-open { opacity: 1; }
  .xskx-mobile-nav-drawer { position: fixed; inset: 0 auto 0 0; z-index: 65; display: flex; width: min(86vw, 20rem); height: 100dvh; max-width: 100%; flex-direction: column; overflow: hidden; border: 1px solid hsl(var(--border)); border-left: 0; border-radius: 0 .75rem .75rem 0; background: hsl(var(--card)); color: hsl(var(--card-foreground)); box-shadow: 20px 0 45px #0008; transform: translateX(-105%); transition: transform .2s ease; }
  .xskx-mobile-nav-drawer-open { transform: translateX(0); }
  .xskx-mobile-nav-drawer-header { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.75rem + env(safe-area-inset-top)) 1rem .75rem; border-bottom: 1px solid hsl(var(--border)); }
  .xskx-mobile-nav-drawer-brand { display: flex; min-width: 0; flex-direction: column; }
  .xskx-mobile-nav-drawer-brand strong { font-size: .875rem; line-height: 1.25rem; }
  .xskx-mobile-nav-drawer-brand span { font-size: .6875rem; line-height: 1rem; color: hsl(var(--muted-foreground)); }
  .xskx-mobile-nav-close { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); font-size: 1.5rem; line-height: 1; }
  .xskx-mobile-nav-close:hover, .xskx-mobile-nav-close:focus-visible { background: hsl(var(--secondary)); color: hsl(var(--foreground)); outline: none; }
  .xskx-mobile-nav-links { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: .25rem; overflow-x: hidden; overflow-y: auto; padding: .75rem max(.75rem, env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); overscroll-behavior: contain; }
  .xskx-mobile-nav-item { position: relative; display: flex; width: 100%; min-height: 2.75rem; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); font-size: .875rem; font-weight: 500; text-align: left; transition: background-color .15s ease, color .15s ease; }
  .xskx-mobile-nav-item:hover, .xskx-mobile-nav-item:focus-visible { background: hsl(var(--secondary)); color: hsl(var(--foreground)); outline: none; }
  .xskx-mobile-nav-item-active { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
  .xskx-mobile-nav-item-active::before { position: absolute; top: 50%; left: 0; width: 2px; height: 1.25rem; border-radius: 999px; background: hsl(var(--primary)); content: ''; transform: translateY(-50%); }
  .xskx-mobile-nav-icon { width: 1rem; height: 1rem; flex: 0 0 1rem; }

  .xskx-mobile-mission-search, .xskx-mobile-loot-filters, .xskx-mobile-loot-original, .xskx-mobile-mission-count-clutter, .xskx-mobile-mission-summary-strip { display: none !important; }
  .xskx-mobile-loot-dropdown { position: relative; display: block; min-width: 0; flex: 0 1 12rem; }
  .xskx-mobile-loot-trigger { display: flex; width: 100%; min-height: 2.5rem; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--secondary) / .6); color: hsl(var(--foreground)); font-size: .8125rem; text-align: left; }
  .xskx-mobile-loot-trigger::after { color: hsl(var(--muted-foreground)); content: '⌄'; }
  .xskx-mobile-loot-popover { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 70; display: grid; width: min(16rem, calc(100vw - 2rem)); max-height: min(60dvh, 24rem); overflow-y: auto; padding: .35rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); box-shadow: 0 12px 30px #0008; }
  .xskx-mobile-loot-popover[hidden] { display: none; }
  .xskx-mobile-loot-option { min-height: 2.5rem; padding: .5rem .625rem; border-radius: calc(var(--radius) - 4px); color: inherit; font-size: .8125rem; text-align: left; }
  .xskx-mobile-loot-option:hover, .xskx-mobile-loot-option:focus-visible { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); outline: none; }

  .xskx-mobile-mission-card { height: auto !important; min-height: 0 !important; overflow: hidden !important; perspective: none !important; }
  .xskx-mobile-mission-inner { position: static !important; width: 100% !important; height: auto !important; transform: none !important; transition: none !important; }
  .xskx-mobile-mission-front { display: grid !important; position: static !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .625rem !important; height: auto !important; min-height: 0 !important; padding: .625rem !important; transform: none !important; backface-visibility: visible !important; overflow: visible !important; }
  .xskx-mobile-mission-back { display: none !important; }
  .xskx-mobile-mission-header { grid-column: 1; min-width: 0; }
  .xskx-mobile-mission-header > div, .xskx-mobile-mission-metadata > *:not(.xskx-mobile-mission-tier), .xskx-mobile-mission-expiry { display: none !important; }
  .xskx-mobile-mission-header > p { font-size: .875rem !important; white-space: nowrap; }
  .xskx-mobile-mission-metadata { display: block !important; grid-column: 2; margin: 0 !important; }
  .xskx-mobile-mission-tier { display: inline-flex !important; height: 1.5rem; align-items: center; padding: 0 .5rem !important; border-radius: .375rem; background: hsl(var(--secondary)); color: hsl(var(--foreground)) !important; font-size: .75rem !important; }
  .xskx-mobile-mission-summary-loot { display: flex !important; grid-column: 1; align-items: center; gap: .375rem !important; min-width: 0; margin: 0 !important; }
  .xskx-mobile-mission-loot-item { display: grid !important; width: 2.25rem; height: 2.25rem; min-width: 2.25rem; place-items: center; padding: 0 !important; overflow: hidden; border-radius: .375rem !important; background: hsl(var(--secondary)) !important; }
  .xskx-mobile-mission-loot-item > * { display: none !important; }
  .xskx-mobile-mission-loot-item > .xskx-mobile-mission-loot-image { display: grid !important; width: 2rem !important; height: 2rem !important; place-items: center; object-fit: cover; border-radius: .25rem !important; }
  .xskx-mobile-mission-loot-empty { display: none !important; }
  .xskx-mobile-mission-send { grid-column: 2; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .xskx-mobile-mission-send button { min-height: 2.25rem !important; height: 2.25rem !important; }
  .xskx-mobile-mission-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #020617b8; }
  .xskx-mobile-mission-dialog { width: min(100%, 26rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1rem; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--card)); color: hsl(var(--card-foreground)); box-shadow: 0 20px 45px #0008; }
  .xskx-mobile-mission-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
  .xskx-mobile-mission-dialog-header h3 { font-size: 1rem; font-weight: 600; }
  .xskx-mobile-mission-close { min-width: 44px; min-height: 44px; border-radius: .5rem; color: hsl(var(--muted-foreground)); font-size: 1.5rem; line-height: 1; }
  .xskx-mobile-mission-dialog-details { display: grid; gap: .75rem; }
  .xskx-mobile-mission-dialog-details .xskx-mobile-mission-dialog-back { position: static !important; display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; transform: none !important; }
  .xskx-mobile-mission-popup-image { display: block !important; width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .xskx-mobile-nav-drawer, .xskx-mobile-nav-backdrop, .xskx-mobile-mission-card * { transition: none !important; animation: none !important; }
}
