/* AMM v2.28.27 · compact Catalogue Health workspace for touch devices.
   Presentation only; all audio, rights, attachment and permission logic is unchanged. */
@media(max-width:900px){
 html,body.admin-body{scroll-padding-top:98px;scroll-padding-bottom:calc(185px + env(safe-area-inset-bottom,0px));}
 body.admin-body .amm-v56-history{display:none!important;} /* shared universal back/forward is already present */
 body.admin-body .amm-universal-history{position:relative!important;top:auto!important;min-height:48px;z-index:1050;margin:0!important;padding:6px 15px!important;}
 body.admin-body #ammGuideSkip{top:-130px!important;left:14px;max-width:min(275px,calc(100vw - 28px));white-space:normal;font-size:14px;}
 body.admin-body #ammGuideSkip:focus{top:calc(72px + env(safe-area-inset-top,0px))!important;}
 body.admin-body .admin-shell{padding-bottom:calc(165px + env(safe-area-inset-bottom,0px))!important;}
 body.admin-body #catalogueManager{min-width:0;padding:14px!important;border-radius:20px;overflow:visible;}
 #catalogueManager .amm-catalogue-mobile-switcher{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px;position:relative;z-index:1;}
 #catalogueManager .amm-catalogue-mobile-switcher button{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:50px!important;border-radius:13px;border:1px solid #426079;background:#111f31;color:#d7e8f7;font:750 15px/1.2 system-ui;padding:10px 6px!important;}
 #catalogueManager .amm-catalogue-mobile-switcher button[aria-pressed="true"]{color:#091325;background:linear-gradient(115deg,#a4dcff,#c1a0fc);border-color:#b3d7fe;box-shadow:0 5px 20px #7c69cc2a;}
 #catalogueManager.amm-health-mode>.panel-head,#catalogueManager.amm-health-mode>.admin-help,#catalogueManager.amm-health-mode>#sharedCatalogueRestore,#catalogueManager.amm-health-mode>#adminTrackList,#catalogueManager.amm-health-mode>a[href="/catalogue-repair/"]{display:none!important;}
 #catalogueManager:not(.amm-health-mode)>.amm-health{display:none!important;}
 #catalogueManager:not(.amm-health-mode)>.panel-head{display:flex!important;flex-direction:column;gap:12px;}
 #catalogueManager:not(.amm-health-mode)>.panel-head h2{font-size:24px!important;line-height:1.2!important;margin:2px 0!important;}
 #catalogueManager:not(.amm-health-mode)>.panel-head .panel-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:9px!important;}
 #catalogueManager:not(.amm-health-mode)>.panel-head .panel-actions a,#catalogueManager:not(.amm-health-mode)>.panel-head .panel-actions button{white-space:normal!important;min-width:0;min-height:49px!important;text-align:center;font-size:14px!important;line-height:1.25!important;padding:9px 7px!important;}
 #catalogueManager:not(.amm-health-mode)>.panel-head .panel-actions #ammOpenMissingAudio{grid-column:1/-1;background:#202b50;color:#f4e9ff;border-color:#987cdb;}
 #catalogueManager.amm-health-mode>.amm-health{display:block!important;}
 #catalogueManager .amm-health{scroll-margin-top:100px;margin:0 0 15px!important;padding:18px 13px 22px!important;border-radius:19px;box-shadow:none;}
 #catalogueManager .amm-health-header{display:block;}
 #catalogueManager .amm-health-eyebrow{font-size:10px;letter-spacing:.10em;}
 #catalogueManager .amm-health-header h2{font-size:29px;line-height:1.1;letter-spacing:-.025em;margin:8px 0;}
 #catalogueManager .amm-health-header p{font-size:13px;line-height:1.45;color:#bfd2e5;margin:0;}
 #catalogueManager .amm-health-badge{display:none;}
 #catalogueManager .amm-health-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0!important;}
 #catalogueManager .amm-health-tabs button{min-width:0;min-height:50px!important;width:100%;padding:9px 4px!important;font-size:12px!important;line-height:1.2;border-radius:12px;white-space:normal;text-align:center;}
 #catalogueManager .amm-health-searchbar{margin-bottom:12px;}
 #catalogueManager .amm-health-searchbar label{font-size:12px;margin:0;}
 #catalogueManager .amm-health-searchbar input{min-height:49px!important;font-size:16px!important;padding:10px 12px;}
 #catalogueManager .amm-health-searchbar small{font-size:11px;line-height:1.4;}
 #catalogueManager .amm-audio-recovery{padding:4px 0!important;}
 #catalogueManager .amm-audio-recovery-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;}
 #catalogueManager .amm-audio-recovery-head h3{font-size:20px!important;margin:2px 0 5px;}
 #catalogueManager .amm-audio-recovery-head p{font-size:13px!important;line-height:1.45!important;margin:3px 0;}
 #catalogueManager .amm-audio-recovery-head small{font-size:10px;}
 #catalogueManager .amm-audio-recovery-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%;}
 #catalogueManager .amm-audio-recovery-actions button{width:100%;min-width:0;min-height:54px!important;font-size:12.5px!important;padding:9px 7px!important;white-space:normal!important;line-height:1.25;border-radius:12px;overflow-wrap:anywhere;}
 #catalogueManager .amm-audio-recovery-actions #ammRunAudioAudit{grid-column:1/-1;min-height:52px!important;font-size:14px!important;}
 #catalogueManager .amm-audio-recovery-evidence{padding:12px;border-radius:12px;}
 #catalogueManager .amm-audio-recovery-row{scroll-margin-top:104px;scroll-margin-bottom:175px;}
 #catalogueManager .amm-audio-recovery-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 #catalogueManager .amm-audio-recovery-filters[hidden]{display:none!important;}
 #catalogueManager .amm-audio-recovery-filters button{font-size:12px!important;min-width:0;min-height:47px;padding:8px 5px;}
 #catalogueManager .amm-audio-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
 #catalogueManager .amm-audio-stats strong{font-size:24px;}
 #catalogueManager .amm-health-view{padding-bottom:calc(65px + env(safe-area-inset-bottom,0px));}
}
@media(max-width:370px){#catalogueManager .amm-health-tabs button{font-size:11px!important}#catalogueManager .amm-audio-recovery-actions button{font-size:12px!important}}
@media(min-width:901px){#catalogueManager .amm-catalogue-mobile-switcher{display:none!important}}

/* 2.28.50: prevent bottom dock obscuring recovery controls on iOS */
@media(max-width:900px){body.admin-body #catalogueManager .amm-audio-recovery-rows{padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}body.admin-body #catalogueManager .amm-audio-recovery-row button{min-height:48px!important}body.admin-body #catalogueManager .amm-audio-recovery-actions button:disabled{opacity:.5;cursor:not-allowed}}
