/* Panels stay bounded; existing positions, visibility and modal priorities remain intact. */
body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer],
body.aquarium-page .aquarium-tools-drawer,
body.aquarium-page .fish-manage-modal{box-sizing:border-box!important;min-width:0!important;max-width:calc(100vw - 8px)!important;max-height:calc(var(--aq-panel-height,100dvh) - 20px)!important}
body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer]{height:calc(var(--aq-panel-height,100dvh) - 20px)!important}
body.aquarium-page .aquarium-tools-drawer>header,
body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer]>header{flex-shrink:0;min-width:0}
body.aquarium-page .aquarium-tools-drawer [data-close-aquarium-tools],
body.aquarium-page .quick-feed-drawer [data-quick-feed-close]{flex:0 0 44px!important;width:44px!important;min-width:44px!important;min-height:44px!important;position:relative;z-index:3}
body.aquarium-page .aquarium-tools-drawer>*{min-width:0}
@media(min-width:821px) and (max-width:1500px){
 html body.aquarium-page #aquarium .stage-activity-clock{top:64px!important}
 html body.aquarium-page #aquarium .stage-status-row{top:116px!important}
}
@media(max-width:820px){
 body.aquarium-page .quick-feed-dock .quick-feed-drawer[data-quick-feed-drawer]{left:4px!important;right:4px!important;top:calc(4px + env(safe-area-inset-top,0px))!important;bottom:auto!important;width:calc(100vw - 8px)!important;height:calc(var(--aq-panel-height,100dvh) - 8px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;max-height:calc(var(--aq-panel-height,100dvh) - 8px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important}
 body.aquarium-page .aquarium-tools-drawer{max-width:calc(100vw - 12px)!important;max-height:calc(var(--aq-panel-height,100dvh) - 12px)!important}
 body.aquarium-page .quick-feed-drawer .quick-feed-header-actions{flex:0 0 auto;gap:4px}
}
@media(max-height:480px){
 body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer]{overflow-y:auto!important;overscroll-behavior:contain!important}
 body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer]>header{position:sticky!important;top:0!important;z-index:4;background:#073543}
 body.aquarium-page .quick-feed-drawer[data-quick-feed-drawer]>.quick-feed-list{min-height:100px!important}
}
