/* v14.2: mobile-only account UI. Desktop/WebView (>900px) is untouched. */
@media(max-width:900px){
body.page-account .account-nav{display:none!important}
body.page-account .account-card .library-tile[href="settings.php"]{display:none!important}
body.adc-shell-embedded .mobile-mini-player,body.adc-shell-embedded .adc-global-mini,body.adc-shell-embedded .global-mini-player,body.adc-shell-embedded .mobile-bottom-nav{display:none!important}
body.page-search .account-person-avatar,body.page-library .account-person-avatar{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex:0 0 40px!important;border-radius:50%!important;overflow:hidden!important;box-sizing:border-box!important}
body.page-search .account-person-avatar img,body.page-library .account-person-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
body.page-account .library-song-row strong{font-size:14px!important;font-weight:700!important;line-height:1.35!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-account .library-song-row small{font-size:12px!important;line-height:1.4!important;font-weight:400!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.adc-mobile-profile-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:10020;min-width:164px;background:#181514;border:1px solid #39312d;border-radius:12px;padding:5px;box-shadow:0 12px 30px #0009}
.account-person-header{position:relative}
.adc-mobile-profile-menu button{display:block;width:100%;border:0;color:#fff;background:transparent;text-align:left;border-radius:8px;font:600 14px inherit;padding:12px 13px;cursor:pointer}
.adc-mobile-profile-menu button:active{background:#34302b}
}

@media(max-width:900px){.adc-mobile-account-back{margin:0 0 12px}.adc-mobile-account-back button{background:none;color:#eee;border:0;padding:8px 0;font-size:14px;font-weight:600;cursor:pointer}body.adc-shell-embedded .adc-mobile-account-back{display:none!important}body.page-account .adc-mobile-profile-menu[hidden]{display:none!important}.adc-mobile-profile-menu[hidden]{display:none!important}}
@media(min-width:901px){.adc-mobile-account-back{display:none!important}}

/* v14.5: mobile Account Tools only; desktop and WebView retain existing tools. */
@media(max-width:900px){body.page-account .adc-account-tools .library-tile{display:none!important}body.page-account .adc-account-tools .library-tile[href="settings.php"],body.page-account .adc-account-tools .library-tile[href="../music-v3-test/artist-dashboard.php"]{display:block!important}}

/* v14.8: Hide redundant account links only on the mobile DJ Professional application.
   Exclude the dedicated desktop/WebView account navigation even on narrow windows. */
@media (max-width:900px){
  body.page-professional-apply .account-nav:not(.adc-embedded-account-nav){display:none!important;}
}

/* v14.9: Admin Dashboard available on mobile Account Tools for admin role only.
   Account PHP already enforces the admin role before rendering the link. */
@media(max-width:900px){
 body.page-account .adc-account-tools .library-tile[href="../music-v3-test/admin.php"]{display:block!important}
 body.page-account .adc-admin-desktop-label{display:none!important}
 body.page-account .adc-admin-mobile-label{display:inline!important}
}
@media(min-width:901px){.adc-admin-mobile-label{display:none!important}}

/* v14.11: Keep the existing role-gated Admin Dashboard visible inside
   desktop/WebView account panels, including their retained iframe layout. */
body.page-account .adc-account-tools .library-grid > a.adc-admin-dashboard-tile {
 display:block!important; visibility:visible!important; opacity:1!important;
 position:relative!important; height:auto!important; min-height:76px;
 pointer-events:auto!important;
}
@media(min-width:901px){
 body.page-account .adc-account-tools .library-grid > a.adc-admin-dashboard-tile { grid-column:auto; }
}
