@media all {
  /* Media modes first, then a consistent row of sharing actions. */
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-title {padding:8px!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) repeat(3,44px)!important;
    gap:8px!important;
    justify-content:stretch!important;
  }
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions .guard-media-switch {
    grid-column:1/-1!important;grid-row:1!important;width:100%!important;
    padding:3px!important;border-radius:11px!important;background:#0b2133!important;
  }
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-switch-btn {border-radius:8px!important;font-size:13px!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions .guard-expand-btn {
    grid-column:1!important;grid-row:2!important;justify-self:start!important;
    min-width:88px!important;padding:8px 14px!important;border-radius:9px!important;
    background:#132d41!important;border:1px solid #33546d!important;color:#d3e7f3!important;
  }
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions .guard-media-tool-btn {
    grid-row:2!important;border-radius:9px!important;background:#132d41!important;
    border:1px solid #33546d!important;color:#d3e7f3!important;box-shadow:none!important;
  }
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions .ep-text-event-button {grid-column:2!important;color:#8dd8ff!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions [aria-label^="Download"] {grid-column:3!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-media-actions [aria-label^="Email"] {grid-column:4!important;}
  /* A single playback row; use the phone's own volume controls. */
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls {
    grid-template-columns:44px auto minmax(0,1fr) auto 44px 44px!important;
    grid-template-rows:44px!important;gap:4px!important;padding:6px!important;
    border:0!important;border-top:1px solid #29475d!important;border-radius:0!important;
    background:#0b2031!important;box-shadow:none!important;box-sizing:border-box!important;
  }
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls > * {grid-row:1!important;grid-column:auto!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls > .guard-clip-volume {display:none!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls > button:last-child {grid-column:6!important;grid-row:1!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls > .guard-clip-control-button {
    border:0!important;background:transparent!important;border-radius:8px!important;
  }
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-clip-controls .guard-clip-time {font-size:10px!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-inline-clip-zoom .zoom-pan-media-capture-layer,
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-expanded-clip-zoom .zoom-pan-media-capture-layer {bottom:56px!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-branded-media-body.is-clip > .edgepoint-media-watermark,
  html:where(.epr-mobile-view).epr-phone-app body #root .guard-expand-body.is-clip > .edgepoint-media-watermark {bottom:66px!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .zoom-pan-media-controls .zoom-pan-media-btn {display:none!important;}
  html:where(.epr-mobile-view).epr-phone-app body #root .zoom-pan-media:not(.is-zoomed) > .zoom-pan-media-controls {display:none!important;}
  /* Quiet closure details and one full-width secondary action. */
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-closure-summary {
    padding:10px 12px!important;border:1px solid #2c4a5e!important;border-radius:10px!important;
    background:#112b3c!important;box-shadow:none!important;gap:6px 10px!important;
  }
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-closure-state {color:#9fdec9!important;font-size:11px!important;letter-spacing:.06em!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-closure-info {font-size:11px!important;line-height:1.45!important;gap:3px 8px!important;color:#a9c2d2!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-closure-reason {flex:1 0 100%!important;font-size:12px!important;color:#d1e1eb!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-action-row .guard-btn-unclear-action {
    grid-column:1/-1!important;min-height:44px!important;border:1px solid #355971!important;
    border-radius:10px!important;background:#132d41!important;box-shadow:none!important;color:#c9e5f4!important;
  }
  /* Closed-event details scroll with the player instead of squeezing the video. */
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-console-page[data-phone-view=monitor] .guard-main:has(> .guard-action-row > .guard-btn-unclear-action) {overflow-y:auto!important;overflow-x:hidden!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-console-page[data-phone-view=monitor] .guard-main:has(> .guard-action-row > .guard-btn-unclear-action) .guard-media-grid {flex:0 0 auto!important;height:auto!important;overflow:visible!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-console-page[data-phone-view=monitor] .guard-main:has(> .guard-action-row > .guard-btn-unclear-action) .guard-media-grid > .guard-media-card:first-child {flex:0 0 auto!important;height:auto!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-console-page[data-phone-view=monitor] .guard-main:has(> .guard-action-row > .guard-btn-unclear-action) .guard-branded-media-body.is-clip {flex:0 0 auto!important;height:auto!important;}
  html:where(.epr-mobile-view).epr-phone-events body #root .guard-console-page[data-phone-view=monitor] .guard-main:has(> .guard-action-row > .guard-btn-unclear-action) .guard-branded-media-body.is-clip > .guard-inline-clip-zoom {flex:none!important;height:clamp(240px,42dvh,420px)!important;}
}
