/* R154 phone-only block tap selection and immediate edge-resize. No reader changes. */
@media (max-width:760px) and (pointer:coarse){
 /* Before selection, block edges do NOT intercept touch scrolling or buttons. */
 html body main.as-page #blocks :is(.as-block,.as-column-block):not(.cb-r154-touch-selected) > :is(.as-resize-grip-v30.cb-v55-invisible-width-edge,.cb-v55-resize-edge){
  pointer-events:none!important;touch-action:pan-y!important;
 }
 /* Once deliberately tapped, the full edge is an immediate drag target. */
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > .as-resize-grip-v30.cb-v55-invisible-width-edge{
  display:block!important;pointer-events:auto!important;touch-action:none!important;
  width:21px!important;right:-6px!important;top:0!important;bottom:0!important;height:100%!important;
  border-right-color:rgba(107,113,123,.75)!important;z-index:45!important;
 }
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > .cb-v55-resize-edge{
  display:block!important;pointer-events:auto!important;touch-action:none!important;
  height:15px!important;z-index:44!important;
 }
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > .cb-v55-resize-edge::before{
  content:"";position:absolute;left:0;right:0;height:2px;background:rgba(107,113,123,.75);pointer-events:none;
 }
 /* Keep Settings, ×, Add and text controls above the edge hit targets. */
 html body main.as-page #blocks :is(.as-block,.as-column-block) > :is(.as-block-head,.as-column-block-actions,.as-block-controls,.as-insert-slot,.cb92-insert-right,.cb91-edge-slot){z-index:190!important;}
}

/* R154.1 phone: selected edges remain real touch targets even when a visual
   control overlaps part of the former 5px strip. Preserve button priority. */
@media (max-width:760px) and (pointer:coarse){
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > .as-resize-grip-v30.cb-v55-invisible-width-edge{
  width:27px!important;right:-3px!important;z-index:175!important;
  touch-action:none!important;pointer-events:auto!important;
 }
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > .cb-v55-resize-edge{
  height:18px!important;z-index:174!important;touch-action:none!important;pointer-events:auto!important;
 }
 html body main.as-page #blocks :is(.as-block,.as-column-block).cb-r154-touch-selected > :is(.as-block-head,.as-column-block-actions,.as-block-controls,.as-insert-slot,.cb92-insert-right,.cb91-edge-slot){
  z-index:190!important;
 }
}
/* Existing <=620px mobile rules forcibly made every resized block 100% wide.
   Honour an explicit user-defined block width in the editor on phones. */
@media (max-width:620px) and (pointer:coarse){
 html body main.as-page #blocks > .as-block.as-has-width-v30,
 html body main.as-page #blocks > .cb-v45-editor-section > .as-block.as-has-width-v30{
  flex-basis:var(--cb-block-width)!important;
  width:var(--cb-block-width)!important;max-width:var(--cb-block-width)!important;
 }
 html body main.as-page #blocks .as-column-cell > .as-column-block.as-has-width-v30{
  width:var(--cb-block-width)!important;max-width:var(--cb-block-width)!important;
 }
}
