/* Compact repeated mobile controls. Desktop geometry and form-field tokens stay local. */
@media (max-width:640px) {
  /* Resource menus share one compact row in the catalog and public programmes. */
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow {
    width:280px; max-width:calc(100vw - 24px); padding:4px; border-radius:12px;
  }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-event-menu .rs-overflow > :is(a,button) {
    box-sizing:border-box; grid-template-columns:22px minmax(0,1fr) 12px; gap:8px;
    height:auto; min-height:40px; margin:0; padding:4px 8px; border-radius:7px;
    font-size:12px; line-height:16px;
  }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-event-menu .rs-overflow > :is(a,button) > svg {
    width:16px; height:16px; justify-self:center;
  }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow > a > svg:last-child { width:12px; height:12px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-menu-divider { margin:2px 6px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow :is(.rs-menu-organizer,.rs-menu-artists,.rs-music-link) {
    grid-template-columns:22px minmax(0,1fr) 12px; gap:8px;
  }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-event-menu .rs-overflow .rs-menu-organizer > .rs-people-avatar,
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-event-menu .rs-overflow .rs-menu-organizer > .rs-people-avatar img {
    width:22px; min-width:22px; max-width:22px; height:22px; min-height:22px; max-height:22px; font-size:9px;
  }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow :is(.rs-menu-organizer-copy,.rs-menu-artists-copy,.rs-music-copy) { gap:1px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow .rs-menu-organizer-copy strong { font-size:12px; line-height:16px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow :is(.rs-menu-organizer-copy,.rs-menu-artists-copy,.rs-music-copy) small { font-size:10px; line-height:13px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-overflow :is(.rs-menu-artists-copy,.rs-music-copy) strong { font-size:12px; line-height:16px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-music-play { width:22px; height:22px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-music-play svg { width:12px; height:12px; }
  body:is(.search-results-page,.public-organizer-page,[data-artist-page="public"]) .rs-menu-artists-count { padding:0 5px; font-size:10px; line-height:15px; }

  /* Repeated directory cards and result tools, without resizing event posters. */
  body.search-results-page #searchResultsList .rs-section:not(.rs-section--events) > .rs-items { gap:8px; }
  body.search-results-page .rs-entity { gap:10px; padding:8px 10px; }
  body.search-results-page :is(.rs-entity-icon,.rs-avatar) { width:36px; height:36px; font-size:13px; }
  body.search-results-page #searchResultsList .rs-artist-row { padding:8px 10px; gap:8px; }
  body.search-results-page #searchResultsList .rs-artist-link { gap:10px; }
  body.search-results-page #searchResultsList .rs-artist-avatar { width:52px; height:52px; flex-basis:52px; font-size:18px; }
  body.search-results-page #searchResultsList .rs-artist-link .rs-entity-copy { gap:2px; }
  body.search-results-page #searchResultsList .rs-artist-link .rs-entity-copy strong { font-size:17px; }
  body.search-results-page #searchResultsList .rs-artist-actions { gap:6px; }
  body.search-results-page #searchResultsList .rs-artist-row :is(.rs-artist-follow,.rs-artist-profile-link) { min-height:40px; padding:6px 10px; font-size:12px; gap:5px; }
  body.search-results-page .rs-toolbar { padding:5px; gap:6px; border-radius:12px; }
  body.search-results-page .rs-filter-open { padding:6px 9px; font-size:13px; }
  body.search-results-page .rs-end--paged { padding-top:12px; gap:8px 12px; }
  body.search-results-page .rs-load-more { padding-inline:16px; }
  body.search-results-page .rs-empty { padding:24px 16px; gap:10px; }
  body.search-results-page #searchFilterDialog .rs-filter-panel { padding-inline:14px; }
  body.search-results-page #searchFilterDialog .rs-filter-heading { padding-block:4px; }
  body.search-results-page #searchFilterDialog .rs-filter-footer { margin-top:12px; padding-top:8px; padding-bottom:max(8px,env(safe-area-inset-bottom)); gap:8px; }
  body.search-results-page #searchFilterDialog .rs-filter-fields fieldset { margin-top:14px; }
  body :is(#searchTagFilter,#mapTagFilter) .rs-tag-options { gap:6px; }
  body :is(#searchTagFilter,#mapTagFilter) .rs-tag-options > .rs-tag-group { padding:7px 6px; }
  :is(body.map-page #mapFilterPanel, body.search-results-page #searchFilterDialog #searchFilterPanel .rs-map-filters)
    > .panel-section:where(.proximity-section,.mobile-time-section,.mobile-category-section) { padding-block:8px; }

  /* Sheet density comes from its rows and framing, preserving full labels. */
  #eventPeopleDialog.event-people-dialog .event-people-header { height:60px; min-height:60px; grid-template-rows:40px; padding:10px 12px 9px; }
  #eventPeopleDialog.event-people-dialog .event-people-heading { padding-inline:36px 44px; gap:6px; }
  #eventPeopleDialog.event-people-dialog[data-people-search-available="true"] .event-people-heading { padding-right:88px; }
  #eventPeopleDialog.event-people-dialog .event-people-header h2 { font-size:18px; }
  #eventPeopleDialog.event-people-dialog .event-people-symbol { top:15px; left:12px; width:28px; height:28px; border-radius:8px; }
  #eventPeopleDialog.event-people-dialog .event-people-symbol svg { width:17px; height:17px; }
  #eventPeopleDialog.event-people-dialog .event-people-body { padding:8px 8px max(10px,env(safe-area-inset-bottom)); }
  #eventPeopleDialog.event-people-dialog .event-people-list { gap:5px; }
  #eventPeopleDialog.event-people-dialog .event-people-row { min-height:52px; padding:5px 7px; gap:7px; border-radius:9px; }
  #eventPeopleDialog.event-people-dialog .event-people-person { min-height:40px; gap:7px; }
  #eventPeopleDialog.event-people-dialog .event-people-person strong { font-size:13px; line-height:18px; }
  #eventPeopleDialog.event-people-dialog .event-people-person small { font-size:11px; line-height:15px; }
  #eventPeopleDialog.event-people-dialog .event-people-avatar { width:32px; height:32px; flex-basis:32px; font-size:10px; }
  #eventPeopleDialog.event-people-dialog :is(.event-people-follow,.event-people-retry) { min-height:40px; width:88px; min-width:88px; flex-basis:88px; padding:5px 6px; font-size:12px; gap:4px; border-radius:8px; }
  #eventPeopleDialog.event-people-dialog .event-people-follow-icon { width:14px; height:14px; flex-basis:14px; }
  #eventPeopleDialog.event-people-dialog .event-people-search-toggle { top:8px; right:52px; }
  #eventPeopleDialog.event-people-dialog .event-people-search { top:8px; left:12px; right:52px; height:40px; }
  #eventPeopleDialog.event-people-dialog .event-people-search-button { width:40px; min-width:40px; height:40px; min-height:40px; flex-basis:40px; }
  #eventPeopleDialog.event-people-dialog .event-people-search-input { height:40px; padding-block:6px; }
  #eventPeopleDialog.event-people-dialog .event-people-context { top:8px; left:12px; right:56px; height:40px; }

  /* Close hit areas still measure 44px; their surrounding headers become shorter. */
  body :is(#eventPeopleDialog .event-people-close,#searchFilterDialog [data-close-filters],#notificationPanelClose).outlo-close { --outlo-close-size:44px; --outlo-close-icon-size:18px; padding:12px !important; }
  body :is(#eventPeopleDialog .event-people-close,#searchFilterDialog [data-close-filters],#notificationPanelClose).outlo-close::after { inset:6px !important; }

  /* Less framing around detail information and profile programmes. */
  body.map-page #detailPanel .detail-content { padding:16px; gap:14px; }
  body.map-page #detailPanel .detail-about-section { gap:8px; padding-top:12px; }
  body.map-page #detailPanel .detail-secondary-actions { gap:12px !important; }
  body.public-organizer-page .public-organizer-actions { margin-top:12px; padding-top:12px; gap:6px; }
  body.public-organizer-page .public-organizer-metrics { margin-top:12px; padding-top:12px; gap:8px; }
  body:is(.public-organizer-page,[data-artist-page="public"]) :is(.op-event-row,.ap-event) { padding:10px; gap:8px; }
  body:is(.public-organizer-page,[data-artist-page="public"]) :is(.op-event-actions,.ap-event-actions) { gap:6px; }
  body:is(.public-organizer-page,[data-artist-page="public"]) :is(.op-event-actions,.ap-event-actions) > .rs-ticket-link { min-height:40px; padding:6px 10px; font-size:12px; }
  body[data-artist-page="public"] .ap-page .ap-presentation { gap:12px; }
  body[data-artist-page="public"] .ap-page .ap-event { padding:10px; gap:8px; }
  body[data-artist-page="public"] .ap-page .ap-event-actions { gap:6px; }
  body[data-artist-page="public"] .ap-page .ap-follow { margin-top:12px; }

  /* Shared account and notification panels. */
  body .topbar.app-topbar #userMenuPanel { padding:5px; gap:1px; }
  body .topbar.app-topbar #userMenuPanel .menu-item { height:auto; min-height:40px; padding:6px 9px; font-size:13px; line-height:18px; border-radius:8px; }
  body .topbar.app-topbar #userMenuPanel > .user-menu-identity { padding:7px 9px; gap:8px; }
  body .topbar.app-topbar #userMenuPanel .user-menu-identity .nav-user-avatar { width:32px; height:32px; flex-basis:32px; }
  body .topbar.app-topbar #userMenuPanel .user-menu-section-label { padding:7px 9px 3px; font-size:10px; }
  body .topbar.app-topbar #userMenuPanel .user-menu-footer { margin-top:3px; padding-top:4px; }
  body #notificationPanel .notification-panel-header { min-height:48px; padding:2px 4px 2px 12px; }
  body #notificationPanel :is(.notification-item,.notification-skeleton-row) { --notification-visual-size:40px; --notification-row-gap:8px; --notification-row-padding:8px; }
  body #notificationPanel .notification-item { min-height:64px; }
  body #notificationPanel .notification-item-content { gap:3px; }
  body #notificationPanel .notification-item-title { font-size:14px; }
  body #notificationPanel .notification-item-body { font-size:12px; }
  body #notificationPanel .notification-group-title { padding-block:7px; }
  body #notificationPanel .notification-empty { padding:20px 16px; }

  /* Search suggestions keep text at a readable size and reduce image framing. */
  body #globalSearchSuggestions .global-search-option { min-height:48px; padding:4px 6px; gap:8px; grid-template-columns:36px minmax(0,1fr) 16px; }
  body #globalSearchSuggestions .global-search-option-media { width:36px; height:36px; }
  body #globalSearchSuggestions .global-search-option--events { grid-template-columns:88px minmax(0,1fr) 16px; }
  body #globalSearchSuggestions .global-search-option--events .global-search-option-media { width:88px; height:55px; border-radius:7px; }
  body #globalSearchSuggestions .global-search-option-copy { gap:3px; }
  body #globalSearchSuggestions .global-search-option + .global-search-option { margin-top:2px; }

  /* Secondary lists in the personal centre; primary form controls retain their size. */
  body.personal-center .pc-profile-card .pc-navigation a { min-height:44px; }
  body.personal-center .pc-overview { gap:12px; padding-top:14px; }
  body.personal-center .pc-overview .pc-section { padding:14px; }
  body.personal-center .pc-overview .pc-section-heading { margin-bottom:8px; }
  body.personal-center .pc-event { padding-block:9px; gap:10px; }
  body.personal-center .pc-event-media { min-height:72px; }
  body.personal-center .pc-organizer { min-height:60px; padding-block:8px; }
  body.auth-modern .auth-panel { padding:20px 18px 0; }
  body.auth-modern .auth-heading { margin-bottom:18px; }
  body.auth-modern .auth-heading-symbol { width:36px; height:36px; }
  body.auth-modern .auth-google { margin:0 0 14px; gap:12px; }
  body.auth-modern .auth-footer { margin:18px -18px 0; }

  /* Repeated workspace menus and the organizer chooser use the same density. */
  body.admin-modern .action-menu-panel { padding:4px; gap:1px; }
  body.admin-modern .action-menu-panel > :is(button,a) { min-height:40px !important; height:auto; padding:6px 9px; font-size:12px; line-height:1.35; border-radius:7px; }
  body.admin-modern .admin-user-actions-menu { padding:4px; }
  body.admin-modern .admin-user-actions-menu hr { margin-block:3px; }
  body.admin-modern .admin-menu { gap:10px !important; }
  body.admin-modern .admin-nav-group { gap:1px; }
  body.admin-modern .admin-nav-group > p { margin-bottom:3px; }
  body.admin-modern .admin-sidebar { padding:16px 12px 12px !important; }
  body.admin-modern .admin-brand { padding-bottom:16px; }
  body dialog.outlo-organizer-picker { padding:14px; border-radius:14px; }
  body .outlo-organizer-picker .outlo-organizer-picker-head { gap:10px; }
  body .outlo-organizer-picker h2 { font-size:18px; }
  body #organizerCreatePickerDescription { margin:10px 0 12px; }
  body .outlo-organizer-picker .outlo-organizer-picker-results { margin:8px 0; }
  body .outlo-organizer-picker .outlo-organizer-choice { grid-template-columns:36px minmax(0,1fr) 16px; min-height:64px; height:auto; padding:8px 10px; gap:10px; }
  body .outlo-organizer-picker :is(.outlo-organizer-choice-avatar,.outlo-organizer-choice-fallback) { width:36px; height:36px; border-radius:10px; font-size:14px; }
  body .outlo-organizer-picker .outlo-organizer-choice-copy { gap:3px; }
  body .outlo-organizer-picker .outlo-organizer-choice-copy strong { font-size:14px; }
}
