@media (max-width: 720px) {
  #userDashboard,
  #savedGroups {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--receiver-accent) 4%, var(--page-bg-soft));
  }

  .dashboard-tabs::-webkit-scrollbar {
    height: 6px;
  }

  .dashboard-tabs::-webkit-scrollbar-track {
    background: #dfeaec;
    border-radius: 999px;
  }

  .dashboard-tabs::-webkit-scrollbar-thumb {
    background: var(--receiver-accent);
    border-radius: 999px;
  }

  .dashboard-tabs button {
    flex: none;
    width: 100%;
    min-height: 43px;
    padding: 10px 13px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 9px;
    text-align: left;
    white-space: normal;
  }

  .dashboard-tabs button.active {
    border-bottom-color: transparent;
    border-left-color: var(--receiver-accent);
    background: color-mix(in srgb, var(--receiver-accent) 12%, var(--page-bg-soft));
  }

  .dashboard-tab-panel {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-tab-toolbar {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--receiver-accent) #dfeaec;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-tab-toolbar::-webkit-scrollbar,
  .dashboard-item-actions::-webkit-scrollbar {
    height: 6px;
  }

  .dashboard-tab-toolbar::-webkit-scrollbar-track,
  .dashboard-item-actions::-webkit-scrollbar-track {
    background: #dfeaec;
    border-radius: 999px;
  }

  .dashboard-tab-toolbar::-webkit-scrollbar-thumb,
  .dashboard-item-actions::-webkit-scrollbar-thumb {
    background: var(--receiver-accent);
    border-radius: 999px;
  }

  .dashboard-tab-toolbar > *,
  .receiver-selection-actions,
  .dashboard-add-button {
    flex: 0 0 auto;
  }

  .receiver-selection-actions {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    justify-content: center;
    gap: 9px;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 9px 11px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid color-mix(in srgb, var(--receiver-accent) 38%, var(--line));
    border-radius: 15px;
    background: color-mix(in srgb, var(--page-bg-soft) 94%, transparent);
    box-shadow: 0 12px 34px rgba(4, 35, 43, .28);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
  }

  .receiver-selection-actions[hidden] {
    display: none !important;
  }

  .receiver-selection-actions .receiver-selection-action {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .receiver-selection-actions .receiver-selection-action::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 3;
    width: max-content;
    max-width: min(210px, calc(100vw - 32px));
    padding: 7px 9px;
    border-radius: 8px;
    background: #123b46;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .22);
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .16s ease, transform .16s ease;
  }

  .receiver-selection-actions .receiver-selection-action:hover::after,
  .receiver-selection-actions .receiver-selection-action:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .dashboard-item-actions {
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 7px;
    scrollbar-width: thin;
    scrollbar-color: var(--receiver-accent) #dfeaec;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-item-actions > * {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .receiver-selection-actions {
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 100px);
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    transform: none;
  }
}
