/* Accessibility and layout repairs from the functional acceptance audit. */
.hm-editor-route #pc-bulkbar:not([hidden]){display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0;padding:10px;border:1px solid #cadbf5;border-radius:10px;background:#f0f6ff}
.hm-editor-route #pc-bulkbar[hidden],.hm-editor-route #pc-viewer[hidden]{display:none!important}
.hm-editor-route #pc-bulkbar>div{display:flex;gap:6px;flex-wrap:wrap}
.hm-editor-route.pc-organize-mode #pc-grid .pc-tile,.hm-editor-route .pc-organize-mode #pc-grid .pc-tile{width:var(--pc-thumb-width,180px)!important;flex:0 0 var(--pc-thumb-width,180px)!important;max-width:100%!important}
.hm-editor-route .pc-grid-organize{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--pc-thumb-width,180px)),var(--pc-thumb-width,180px)))!important}
@media(max-width:1099px){
 header:not(.hm-mobile-open) #hm-primary-nav{display:none!important}
 header.hm-mobile-open #hm-primary-nav{display:flex!important}
}
@media(max-width:900px){
 #pc-workspace .pc-v5-layout>div:first-child{position:static!important;inset:auto!important;order:0!important;transform:none!important}
 #pc-workspace .pc-tools{position:static!important;inset:auto!important;transform:none!important;z-index:auto!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;max-height:none!important;width:100%!important}
 #pc-workspace #pc-thumbs-rail{height:auto!important;min-height:0!important;max-height:220px!important;overflow:auto!important}
 #pc-workspace #pc-thumbs-rail #pc-grid{max-height:150px!important;overflow:auto!important}
 #pc-workspace .pc-v5-settings .pc-sidebar-ad,#pc-workspace .pc-v5-settings .pc-v5-ad,#pc-workspace #pc-thumb-ad,.hm-editor-route .ad-placeholder{display:none!important}
 .hm-editor-route .pc-workspace .pc-v5-layout{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:0!important}
 .hm-editor-route .pc-v5-layout>div:first-child{order:0!important;max-height:none!important;min-height:0!important}
 .hm-editor-route .pc-tools{display:flex!important;flex-direction:row!important;overflow-x:auto!important;gap:5px!important;max-width:100%!important}
 .hm-editor-route .pc-tool{flex:0 0 auto!important;width:auto!important;min-height:44px!important}
 .hm-editor-route .pc-center{order:1!important;min-height:0!important;height:auto!important}
 .hm-editor-route .pc-v5-settings{order:2!important;position:static!important;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
 .hm-editor-route .pc-v52-thumbs{order:3!important;min-height:0!important;height:auto!important;max-height:220px!important;overflow:auto!important}
 .hm-editor-route .pc-v52-thumbs .pc-grid{max-height:150px!important;overflow:auto!important}
 .hm-editor-route .pc-viewer.pc-v5-docked{margin:0!important;height:auto!important;min-height:0!important}
 .hm-editor-route .pc-v5-docked .pc-viewer-card{height:56dvh!important;min-height:320px!important;max-height:650px!important}
 .hm-editor-route .pc-v5-docked .pc-viewer-page{min-height:0!important;flex:1!important;overflow:auto!important}
 .hm-editor-route .pc-v5-settings .pc-panel{min-height:0!important;margin:0!important}
 .hm-editor-route .pc-sidebar-ad,.hm-editor-route .pc-thumb-ad,.hm-editor-route .pc-help{display:none!important}
 .hm-editor-route .pc-v5-empty{min-height:0!important;margin:0!important;padding:22px 12px!important}
 .hm-editor-route .pc-workspace:not(.pc-v5-live) .pc-v52-thumbs{display:none!important}
 .hm-editor-route .pc-workspace:not(.pc-v5-live) .pc-v5-settings:has(#pc-options:empty){display:none!important}
 .hm-editor-route .pc-toolbar{position:static!important;min-height:0!important;gap:6px!important}
}
