/* Desktop layout is deliberately outside these mobile-only rules. */
.rp-ios-status-shield{display:none}
@media(max-width:900px){
 :root{--rp-mobile-safe-top:env(safe-area-inset-top,0px)}
 html.rp-ios-standalone{--rp-mobile-safe-top:max(env(safe-area-inset-top,0px),44px)}
 .rp-ios-status-shield{display:block;position:fixed;inset:0 0 auto;height:var(--rp-mobile-safe-top);background:#000;z-index:9999;pointer-events:none}
 body.riderpress-ui .rp-topbar{padding-top:calc(12px + var(--rp-mobile-safe-top))!important;top:0!important}
 /* Badges, poster and information must never occupy a shared grid row. */
 body.riderpress-ui .rp-agenda-event,body.riderpress-ui .rp-agenda-event:has(>.rp-event-poster){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important;min-height:0!important;padding:14px!important}
 body.riderpress-ui .rp-agenda-event>.rp-recommend,body.riderpress-ui .rp-agenda-event>.rp-notice{order:0;position:static!important;width:100%;grid-area:auto!important;margin:0!important;box-sizing:border-box}
 body.riderpress-ui .rp-agenda-event>.rp-event-poster{order:1;position:static!important;grid-area:auto!important;align-self:center!important;width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:360px!important;object-fit:contain!important;margin:0 auto!important}
 body.riderpress-ui .rp-agenda-event>.rp-event-info{order:2;position:static!important;grid-area:auto!important;width:100%;min-width:0;align-self:stretch!important;box-sizing:border-box}
 body.riderpress-ui .rp-agenda-event .rp-event-info h3{overflow-wrap:anywhere;line-height:1.3}
 body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions{display:flex;flex-wrap:wrap;gap:8px}
 body.riderpress-ui .rp-agenda-event .rp-agenda-event-actions a{flex:1 1 130px;min-height:44px;white-space:normal;text-align:center;box-sizing:border-box}
}

/* The animated pseudo-element must be positioned against the badge, not the card. */
@media(max-width:900px){
 body.riderpress-ui .rp-agenda-event>.rp-recommend{position:relative!important;flex:0 0 auto!important;align-self:stretch!important;isolation:isolate;overflow:hidden!important;height:auto!important;min-height:36px!important;max-height:70px!important;padding:10px 12px!important;line-height:1.4;font-size:12px!important}
 body.riderpress-ui .rp-agenda-event>.rp-recommend::before{position:absolute!important;inset:0 auto 0 0!important;height:100%!important;max-height:100%!important;pointer-events:none}
 body.rp-garage-page .rp-carbon-dialog>.rp-carbon-close{display:flex!important;align-items:center;justify-content:center;position:sticky;top:0;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:8px 0 10px auto!important;background:#101214!important;color:#ffe000!important;border:1px solid #ffe000;border-radius:4px;font-size:26px!important;line-height:1!important;box-sizing:border-box;z-index:5}
 body.rp-garage-page .rp-carbon-close-label{display:none}
 body.rp-garage-page .rp-carbon-dialog>.rp-carbon-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
}
