/* r-slides3 (5baa90aa): defect fixes from the r-slides2 strict review. Touch / short-sideways only unless noted. */
/* 1. File menu (and every popup menu) items: 44 px on touch */
@media (pointer:coarse),(max-width:760px){:root:root .pop>button,:root:root .smenu>button,:root:root .pop[role=menu] button{min-height:44px}}
/* 2. Transition / animation gallery: wrap instead of clipping inside a side-scroller on phones */
@media (max-width:760px){:root .fxgal{flex-wrap:wrap;overflow:visible;max-width:100%;width:100%;justify-content:flex-start}
  :root .rbody:has(.fxgal){flex-wrap:wrap}
  :root .rg:has(.fxgal){flex:1 0 100%;max-width:100%;min-width:0}
  :root .rg:has(.fxgal) :is(.rgi,.rgr){width:100%;max-width:100%}}
/* 3. AI-create suggestion chips: 44 px on touch */
@media (pointer:coarse){:root:root :is([role=dialog],.modal,.mbody,.aibody) button.chip,:root:root button.chip[data-ex]{min-height:44px}}
/* 4. Home header does not stick over the theme cards on short sideways screens */
@media (orientation:landscape) and (max-height:500px){body.slides-app:not(.editing)>#home:not([hidden])>.htop{position:relative}
  .trow,.rcard,.hsec{scroll-margin-top:72px}}
/* 5. Form labels in the AI dialog get a solid backing (they sat on the dialog's background image) */
label.pf>span{background:var(--card,#fff);border-radius:6px;padding:0 6px;margin-inline-start:-6px;width:max-content;max-width:100%}
/* 6. «50» points pill: the shared header rule paints it white for the coloured legacy bar; on the light header it was 1.45:1 */
html[data-yo-app]:not(.yo-legacy-bars) :is(header.htop,header#hdr,header#titlebar,header#tb,header.top) .pts:not(.yoc *){color:var(--brand,#4b3fb0)!important;background:var(--brand-soft,#ecebfa)!important;border-color:transparent!important}
html[data-yo-app]:not(.yo-legacy-bars) :is(header.htop,header#hdr,header#titlebar,header#tb,header.top) .pts:not(.yoc *) :is(b,.ic){color:inherit!important}
/* 7. Short sideways editor: the round floating AI button sat over the slide's edge; the title bar already carries the AI button */
@media (orientation:landscape) and (max-height:500px){html.yoc-phone.yoc-collapsed:has(body.editing) aside.yoc{display:none!important}}
