/* R129j review: shared surface, vertical grips and native selectable scrolling. */
.cvb-height-panel{display:flex;flex-direction:column;flex:none;min-height:24px;height:var(--cvb-panel-height,88px);max-width:100%;overflow:hidden;box-sizing:border-box;background:var(--footer-glass);color:var(--footer-glass-ink)}
.cvb-height-grip{display:block;position:relative;flex:none;min-height:24px;height:24px;width:100%;box-sizing:border-box;cursor:ns-resize;touch-action:none;user-select:none;-webkit-user-select:none;background:var(--footer-glass);color:var(--cvb-grip-ink)}
.cvb-height-grip::before{content:'';position:absolute;left:calc(50% - 24px);top:calc(50% - 1px);width:48px;height:2px;background:var(--cvb-grip-ink)}
.cvb-height-grip:focus-visible{outline:2px solid var(--cvb-control-focus);outline-offset:-2px}
.cvb-panel-scroll{display:block;flex:1 1 0;min-height:0;max-width:100%;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;user-select:text;-webkit-user-select:text;overflow-wrap:anywhere;scrollbar-width:thin}
.cvb-panel-scroll[aria-hidden=true]{visibility:hidden}
.cvb-info-height-panel{margin:4px 0}
.cvb-info-height-panel .prompt-block{margin:0;padding:4px 8px;box-sizing:border-box}
.cvb-info-height-panel p{max-height:none!important;overflow:visible!important;white-space:pre-wrap;-webkit-line-clamp:unset!important}
.cvb-info-height-panel .prompt-block p{margin-block:2px!important}
.cvb-controls-pull{height:24px;min-height:24px}

/* Exhausted Related only: central grips leave native scroll space beside them. */
#image-viewer-footer[data-viewer-scrolling-bar] :is(#viewer-prompt-height-grip,#viewer-metadata-height-grip){width:96px;max-width:100%;align-self:center;margin-inline:auto;background:transparent}

/* Preserve the existing phone status grid under its constrained-only owner. */
/* Bottom map status only. Desktop/tablet floating counter and viewer drawers untouched. */
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status{
 position:relative!important;inset:auto!important;transform:none!important;order:5;
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content;
 column-gap:8px!important;row-gap:2px!important;align-items:center;justify-content:stretch;
 width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;
 margin:0!important;padding:4px max(6px,env(safe-area-inset-right)) 4px max(6px,env(safe-area-inset-left));
 min-height:44px;overflow:visible!important;font-variant-numeric:tabular-nums;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status>.cvb-owned-title{
 grid-column:1;grid-row:1/span 2;align-self:center;justify-self:start;
 width:auto!important;min-width:0;max-width:none!important;flex:none!important;margin:0!important;
 font-size:11px!important;line-height:14px!important;letter-spacing:0;white-space:normal;overflow:visible;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status>.cvb-owned-title .cvb-title-line{white-space:nowrap}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #match-count{
 grid-column:2;grid-row:1;display:flex!important;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:0 4px;
 min-width:0;max-width:100%;font-size:13px!important;line-height:16px!important;margin:0;white-space:normal;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #match-count::after{content:'total';font-size:11px;font-weight:400;line-height:14px}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #status-caption{
 grid-column:2;grid-row:2;display:flex!important;flex-flow:row wrap!important;justify-content:center;align-items:center;
 min-width:0;max-width:100%;gap:0 8px!important;margin:0;font-size:11px!important;line-height:14px!important;white-space:normal!important;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #status-caption .media-count-line{
 display:inline-block;flex:0 1 auto;min-width:0;max-width:100%;font-size:11px!important;line-height:14px!important;
 white-space:normal!important;text-align:center;overflow:visible;text-overflow:clip;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #status-caption .media-count-line::after{content:none!important}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #build-badge{
 grid-column:3;grid-row:1/span 2;justify-self:end;align-self:center;flex:none!important;
 width:auto!important;min-width:0!important;max-width:none!important;min-height:44px!important;
 margin:0!important;padding:4px!important;font-size:0!important;line-height:16px!important;
 overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;
}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status #build-badge::after{content:attr(data-phone-version);font-size:12px!important;line-height:16px;white-space:nowrap}

/* Bring the phone title and revision inward without changing type, shape or counters. */
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status{padding-inline:calc(max(6px,env(safe-area-inset-left)) + 12px) calc(max(6px,env(safe-area-inset-right)) + 12px)!important}
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content>.collection-status{flex:none}

/* One pixel end inset covers integer scroll-range rounding on fractional ports. */
#image-viewer-footer[data-viewer-scrolling-bar]>#viewer-drawer-content{padding-bottom:1px;box-sizing:border-box}

/* R130d handle labels: original 24px targets and all gesture owners unchanged. */
.cvb-height-grip{background:transparent!important}
.cvb-height-grip::after{content:'';position:absolute;inset:25% 0;box-sizing:border-box;border:1px solid var(--footer-glass-line,var(--cvb-control-line));border-radius:2px;background:var(--footer-glass);pointer-events:none;z-index:0}
.cvb-height-grip::before{z-index:1;pointer-events:none}
.cvb-grip-label{position:absolute;left:6px;top:50%;transform:translateY(-50%);z-index:2;pointer-events:none;user-select:none;font:500 10px/10px 'IBM Plex Sans',Arial,sans-serif;color:var(--cvb-grip-ink);text-align:left;white-space:nowrap}
#map-controls-pull-grip::after,#viewer-controls-pull-grip::after{inset:25% 0;z-index:0}
#image-viewer-footer[data-viewer-scrolling-bar] :is(#viewer-prompt-height-grip,#viewer-metadata-height-grip)::before{left:auto;right:6px;width:24px}
#viewer-controls-pull-grip{flex:none}
