@media (max-width: 900px) {
  body:has(#rsv-admin-menu) aside:has(#rsv-admin-menu) {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(280px, 85vw) !important;
    max-width: 85vw !important;
    height: 100dvh !important;
    z-index: 180 !important;
    box-shadow: 12px 0 40px #0009;
  }
  body:has(#rsv-admin-menu) aside:has(#rsv-admin-menu) + div {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  #rsv-admin { left: 0 !important; right: 0 !important; max-width: 100vw; }
  #rsv-admin *, #rs-cart-history-filter * { box-sizing: border-box; min-width: 0; }
  .rsv-shell { padding: 18px 16px 80px; }
  .rsv-head { flex-wrap: wrap; gap: 12px; }
  .rsv-head > div { flex: 1 1 200px; }
  .rsv-head .rsv-btn { min-height: 44px; white-space: nowrap; }
  .rsv-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; overflow: visible; }
  .rsv-tab { padding: 10px 6px; min-height: 44px; white-space: normal; font-size: 12px; }
  .rsv-hero, .rsv-split, .rsv-wizard, .rsv-form-grid { grid-template-columns: minmax(0,1fr); }
  .rsv-hero { padding: 20px 16px; }
  .rsv-hero h2 { font-size: 24px; line-height: 1.2; }
  .rsv-grid, .rsv-hero-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rsv-card { padding: 14px; }
  .rsv-card .rsv-muted { font-size: 12px; overflow-wrap: anywhere; }
  .rsv-actions { flex-wrap: wrap; }
  .rsv-preview { max-width: 100%; }
  #rs-cart-history-filter { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); width: auto !important; max-width: 100%; box-sizing: border-box; }
  #rs-cart-history-filter label:first-child, #rs-cart-history-filter small, #rs-cart-history-filter button { grid-column: 1 / -1; }
  #rs-cart-history-filter input, #rs-cart-history-filter select { width: 100%; }
}
@media(max-width:360px) {
  .rsv-grid, .rsv-hero-stats { grid-template-columns: minmax(0,1fr); }
}
