:root{--emr-blue:#0b61ff;--emr-navy:#06142f;--emr-green:#20c76a;--emr-red:#ed3945;--emr-white:#fff}
body.emr-lock{overflow:hidden!important}
.emr-app,.emr-app *{box-sizing:border-box}
.emr-viewer{position:fixed;inset:0;z-index:999990;background:#000;color:#fff;opacity:0;visibility:hidden;transform:scale(.985);transition:opacity .22s ease,transform .22s ease,visibility .22s;font-family:Inter,Arial,sans-serif}
.emr-app[data-open="1"] .emr-viewer{opacity:1;visibility:visible;transform:scale(1)}
.emr-topbar{position:absolute;z-index:8;inset:0 0 auto;height:72px;display:flex;align-items:center;padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));background:linear-gradient(180deg,rgba(0,10,30,.82),rgba(0,0,0,0));pointer-events:none}
.emr-brand{font-size:clamp(18px,2vw,26px);font-weight:800;letter-spacing:-.02em;text-shadow:0 2px 8px #000;pointer-events:auto}
.emr-admin-actions{display:flex;align-items:center;gap:12px;margin-left:auto;margin-right:68px;pointer-events:auto}
.emr-menu-button,.emr-add-button,.emr-close,.emr-side-actions button,.emr-ring,.emr-modal-close{border:0;color:#fff;cursor:pointer}
.emr-menu-button,.emr-add-button,.emr-close,.emr-side-actions button,.emr-ring,.emr-modal-close{aspect-ratio:1/1;border-radius:999px!important;-webkit-appearance:none!important;appearance:none!important;padding:0;flex-shrink:0}
.emr-menu-button{width:38px;height:38px;background:rgba(0,0,0,.38);border-radius:50%;padding:10px;display:grid;align-content:center;gap:4px}
.emr-menu-button span{display:block;height:2px;background:#fff;border-radius:2px}
.emr-add-wrap{display:flex;flex-direction:column;align-items:center;line-height:1}
.emr-add-wrap small{font-size:9px;margin-top:3px;white-space:nowrap;text-shadow:0 1px 3px #000}
.emr-add-button{width:42px;height:42px;border-radius:50%;background:var(--emr-blue);font-size:34px;font-weight:300;line-height:40px;box-shadow:0 5px 20px rgba(11,97,255,.45)}
.emr-close{position:absolute;right:max(18px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:46px;height:46px;border-radius:50%;background:var(--emr-red);font-size:34px;line-height:42px;box-shadow:0 5px 18px rgba(0,0,0,.35);pointer-events:auto;z-index:2}
.emr-menu{position:absolute;z-index:7;top:72px;left:18px;width:min(310px,calc(100vw - 36px));padding:20px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:rgba(3,16,43,.96);box-shadow:0 20px 50px rgba(0,0,0,.4);transform:translateY(-15px);opacity:0;visibility:hidden;transition:.2s}
.emr-menu.is-open{opacity:1;visibility:visible;transform:none}.emr-menu strong{font-size:20px}.emr-menu p{color:#b9c8e3;font-size:14px;line-height:1.5}.emr-menu-admin{border:0;border-radius:9px;background:var(--emr-blue);color:#fff;font-weight:700;padding:11px 15px;cursor:pointer}
.emr-feed{height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;background:#000}.emr-feed::-webkit-scrollbar{display:none}
.emr-reel{position:relative;width:100%;height:100dvh;min-height:520px;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#050505}
.emr-media,.emr-frame{position:absolute;inset:0;width:100%;height:100%}.emr-media{touch-action:pan-y}.emr-frame{object-fit:cover;opacity:0;transition:opacity .45s ease}.emr-frame--image{object-fit:contain!important;object-position:center center;background:#000}.emr-frame.is-active{opacity:1}.emr-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1) 50%,rgba(0,0,0,.86) 100%);pointer-events:none}
.emr-slideshow-controls{position:absolute;inset:0;z-index:4;pointer-events:none}.emr-slide-arrow{position:absolute;top:50%;width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:0!important;transform:translateY(-50%);border:1px solid rgba(255,255,255,.55)!important;border-radius:50%!important;background:rgba(0,0,0,.48)!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:38px!important;font-weight:300!important;line-height:42px!important;text-align:center;box-shadow:0 3px 16px rgba(0,0,0,.35);cursor:pointer;pointer-events:auto;-webkit-appearance:none!important;appearance:none!important}.emr-slide-prev{left:max(18px,env(safe-area-inset-left))}.emr-slide-next{right:max(18px,env(safe-area-inset-right))}.emr-slide-counter{position:absolute;top:108px;left:50%;transform:translateX(-50%);padding:4px 9px;border-radius:999px;background:rgba(0,0,0,.48);color:#fff;font-size:11px;font-weight:800;text-shadow:0 1px 3px #000}
.emr-date{position:absolute;z-index:3;top:78px;left:50%;transform:translateX(-50%);font-size:13px;font-weight:700;text-shadow:0 2px 8px #000;white-space:nowrap}
.emr-copy{position:absolute;z-index:3;left:max(22px,env(safe-area-inset-left));right:100px;bottom:max(72px,calc(env(safe-area-inset-bottom) + 50px));max-width:780px;text-shadow:0 2px 10px #000}
.emr-description{max-height:21vh;overflow:auto;font-size:clamp(14px,1.45vw,20px);line-height:1.45;color:#f7f8fb}.emr-description p{margin:0 0 8px}.emr-copy h2{font-size:clamp(23px,2.2vw,34px);margin:8px 0 12px;color:#fff}
.emr-whatsapp{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:80vw;max-width:80vw;min-height:50px;padding:12px 20px;border-radius:999px;background:var(--emr-green);color:#fff!important;text-decoration:none!important;font-size:16px;font-weight:800;box-shadow:none!important;text-shadow:none!important}.emr-whatsapp svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.emr-whatsapp svg circle{fill:#fff;stroke:none}.emr-whatsapp-label{font-size:inherit!important;line-height:1.2;text-shadow:none!important}
.emr-side-actions{position:absolute;z-index:4;right:max(18px,env(safe-area-inset-right));bottom:150px;display:flex;flex-direction:column;align-items:center;gap:11px}.emr-side-actions button,.emr-views{width:58px;height:58px;min-width:58px;min-height:58px;max-width:58px;max-height:58px;flex:0 0 58px;padding:0;border-radius:999px!important;background:rgba(0,0,0,.52);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-shadow:0 1px 4px #000}.emr-side-actions span{font-size:18px;font-weight:700}.emr-side-actions strong{font-size:11px;line-height:1.1;margin-top:1px;color:#fff}.emr-side-actions small{font-size:9px;margin-top:2px}.emr-like span{font-size:22px;transition:transform .2s,color .2s}.emr-like.is-liked span{color:#ff3d55;transform:scale(1.14)}.emr-like.is-liked{border-color:rgba(255,61,85,.75);box-shadow:0 0 18px rgba(255,61,85,.25)}.emr-like:disabled{cursor:wait;opacity:.7}.emr-views{cursor:default}.emr-views>span{font-size:20px}
.emr-ring{width:62px;height:62px;border-radius:50%;background:#07142c;border:2px solid #1e8aff;box-shadow:0 0 6px #fff,0 0 17px #087cff,0 0 32px #075ff0;display:grid;place-items:center;font-size:12px;font-weight:800}.emr-ring--closed{position:fixed;z-index:999980;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);transition:.2s}.emr-app[data-open="1"]>.emr-ring--closed{opacity:0;visibility:hidden}.emr-ring--open{position:absolute;z-index:5;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}
.emr-loader{height:70px;display:flex;align-items:center;justify-content:center;gap:6px;background:#000}.emr-loader[data-finished="1"]{display:none}.emr-loader span{width:8px;height:8px;background:#fff;border-radius:50%;animation:emrPulse .8s infinite alternate}.emr-loader span:nth-child(2){animation-delay:.2s}.emr-loader span:nth-child(3){animation-delay:.4s}@keyframes emrPulse{to{opacity:.25;transform:translateY(-5px)}}
.emr-modal{position:fixed;z-index:1000000;inset:0;padding:18px;display:flex;align-items:center;justify-content:center;background:rgba(0,6,22,.76);backdrop-filter:blur(9px);opacity:0;visibility:hidden;transition:.2s}.emr-modal.is-open{opacity:1;visibility:visible}.emr-modal-card{position:relative;width:min(540px,100%);max-height:92dvh;overflow:auto;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:#081934;color:#fff;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.55);font-family:Inter,Arial,sans-serif}.emr-modal-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;background:var(--emr-red);font-size:24px}.emr-modal h2{margin:0 40px 4px 0;font-size:24px}.emr-admin-only{color:#92a8ce;font-size:12px;margin:0 0 20px}.emr-modal label{display:block;margin:13px 0 0;font-size:12px;font-weight:700;color:#d9e3f5}.emr-modal input,.emr-modal textarea{display:block;width:100%;margin-top:6px;border:1px solid #345077;border-radius:8px;background:#0c2347;color:#fff;padding:11px 12px;outline:none}.emr-modal input:focus,.emr-modal textarea:focus{border-color:#3082ff;box-shadow:0 0 0 3px rgba(48,130,255,.18)}.emr-modal form>button{width:100%;margin-top:18px;border:0;border-radius:9px;background:linear-gradient(90deg,#078aff,#2457ff);color:#fff;font-weight:800;padding:13px;cursor:pointer}.emr-modal form>button:disabled{opacity:.6;cursor:wait}.emr-notice{display:none;margin-top:14px;padding:10px 12px;border-radius:8px;background:#12315d;font-size:13px}.emr-notice.is-error{display:block;background:#571b2a}.emr-notice.is-success{display:block;background:#124d34}
.emr-image-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px}.emr-image-preview img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}.emr-video-status{font-size:12px;color:#9eb5d9;margin-top:5px}.emr-video-status.is-error{color:#ff8790}
.emr-media-hint{margin-top:6px;color:#9eb5d9;font-size:11px;line-height:1.4}
.emr-admin-tabs{display:flex;gap:8px;margin:0 42px 20px 0}.emr-admin-tabs button{flex:1;min-height:40px;border:1px solid #345077;border-radius:9px;background:#0c2347;color:#c8d7ed;font-weight:800;cursor:pointer;-webkit-appearance:none;appearance:none}.emr-admin-tabs button.is-active{border-color:#3485ff;background:#1169ed;color:#fff}.emr-current-media{margin:12px 0;padding:10px 12px;border-radius:8px;background:#12315d;color:#dbe8fb;font-size:12px;line-height:1.45}.emr-current-media>strong,.emr-current-media>small{display:block}.emr-current-media>small{margin-top:8px;color:#b8cae4}.emr-current-gallery{display:flex;gap:8px;margin-top:9px;padding-bottom:4px;overflow-x:auto}.emr-current-gallery figure{flex:0 0 86px;margin:0;padding:5px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:#081934;text-align:center}.emr-current-gallery img,.emr-current-video>span{display:block;width:74px;height:74px;border-radius:6px;background:#020a17;object-fit:contain}.emr-current-video>span{display:grid;place-items:center;color:#fff;font-size:25px}.emr-current-gallery figcaption{margin-top:4px;overflow:hidden;color:#dbe8fb;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.emr-form-actions{display:flex;gap:10px;margin-top:18px}.emr-form-actions button{min-height:44px;border:0;border-radius:9px;color:#fff;font-weight:800;padding:11px 14px;cursor:pointer;-webkit-appearance:none;appearance:none}.emr-form-actions .emr-cancel-edit{flex:0 0 auto;background:#3a4c68}.emr-form-actions .emr-submit-reel{flex:1;background:linear-gradient(90deg,#078aff,#2457ff)}.emr-form-actions button:disabled{opacity:.6;cursor:wait}.emr-manage-list{display:grid;gap:10px;margin-top:16px}.emr-manage-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:#0c2347}.emr-manage-item img,.emr-manage-placeholder{width:64px;height:64px;border-radius:8px;object-fit:cover;background:#06142f}.emr-manage-placeholder{display:grid;place-items:center;color:#8eadd7}.emr-manage-info{min-width:0;display:flex;flex-direction:column;justify-content:center}.emr-manage-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.emr-manage-info small{margin-top:5px;color:#9fb4d3;font-size:11px}.emr-manage-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.emr-manage-actions button{min-height:36px;border:0;border-radius:7px;background:#176dec;color:#fff;font-size:12px;font-weight:800;cursor:pointer;-webkit-appearance:none;appearance:none}.emr-manage-actions button[data-admin-action="republish"]{background:#16834b}.emr-manage-actions button.is-danger{background:#c72e3b}.emr-manage-actions button:disabled{opacity:.55;cursor:wait}.emr-manage-loading,.emr-manage-empty{padding:24px 10px;text-align:center;color:#a9bddb;font-size:13px}
.emr-admin-logout{position:absolute;top:12px;right:56px;min-height:34px;margin:0!important;padding:7px 12px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;background:#263b59!important;color:#fff!important;font-size:12px!important;font-weight:800!important;line-height:1!important;cursor:pointer;-webkit-appearance:none;appearance:none}.emr-admin-logout:disabled{opacity:.6;cursor:wait}
.emr-reel--empty{display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#123567,#030914 65%)}.emr-empty-card{text-align:center;max-width:420px;padding:30px}.emr-empty-icon{margin:auto;width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:#0b61ff;box-shadow:0 0 35px rgba(11,97,255,.55);font-size:29px}.emr-empty-card h2{font-size:32px;margin:22px 0 10px}.emr-empty-card p{color:#c4d1e9;line-height:1.6}
@media(min-width:900px){.emr-copy{left:max(5vw,40px)}.emr-side-actions{right:max(5vw,30px)}}
@media(max-width:600px){.emr-topbar{height:66px;padding-left:14px}.emr-brand{font-size:18px}.emr-admin-actions{margin-right:52px;gap:7px}.emr-menu-button{width:34px;height:34px}.emr-add-button{width:38px;height:38px;line-height:36px}.emr-close{width:40px;height:40px;font-size:29px;line-height:36px;right:10px;top:12px}.emr-date{top:70px}.emr-slide-arrow{display:none!important}.emr-slide-counter{top:96px}.emr-copy{left:14px;right:82px;bottom:max(78px,calc(env(safe-area-inset-bottom) + 58px))}.emr-description{font-size:14px;max-height:20vh}.emr-copy h2{font-size:23px}.emr-whatsapp{width:80vw;max-width:80vw;padding:10px 16px;font-size:15px}.emr-side-actions{right:10px;bottom:140px;gap:9px}.emr-side-actions button,.emr-views{width:50px;height:50px;min-width:50px;min-height:50px;max-width:50px;max-height:50px;flex-basis:50px;border-radius:999px!important}.emr-ring{width:56px;height:56px}.emr-modal{padding:8px}.emr-modal-card{padding:22px 16px;border-radius:14px;max-height:96dvh}}
.emr-modal h2{color:#fff!important}

/* Keep every icon control perfectly circular on iOS and against theme button styles. */
button.emr-menu-button,button.emr-add-button,button.emr-close,button.emr-ring,button.emr-modal-close,.emr-side-actions button,.emr-side-actions .emr-views{box-sizing:border-box!important;min-width:0;min-height:0;margin:0!important;padding:0!important;border-radius:50%!important;-webkit-appearance:none!important;appearance:none!important;line-height:1!important;flex-grow:0!important;flex-shrink:0!important}
button.emr-menu-button{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important}
button.emr-add-button{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important}
button.emr-close{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important}
button.emr-ring{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important}
button.emr-modal-close{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important}
.emr-side-actions button,.emr-side-actions .emr-views{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;flex-basis:58px!important;overflow:hidden!important}
@media(max-width:600px){button.emr-menu-button{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;flex-basis:34px!important}button.emr-add-button{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important}button.emr-close{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important}button.emr-ring{width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;min-height:56px!important;max-height:56px!important}.emr-side-actions button,.emr-side-actions .emr-views{width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;min-height:50px!important;max-height:50px!important;flex-basis:50px!important}.emr-admin-tabs{margin-right:38px}.emr-manage-actions{grid-template-columns:1fr}.emr-form-actions{flex-wrap:wrap}.emr-form-actions .emr-cancel-edit{flex:1 1 100%}}

/* Timed image/video progress. */
.emr-media-progress{position:absolute;z-index:9;top:max(6px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;gap:5px;pointer-events:none}.emr-media-progress span{height:3px;flex:1;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.35);box-shadow:0 1px 3px rgba(0,0,0,.35)}.emr-media-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#fff}
.emr-sound-toggle{position:absolute;z-index:6;top:max(88px,calc(env(safe-area-inset-top) + 76px));right:max(18px,env(safe-area-inset-right));display:none!important;align-items:center;gap:6px;min-height:34px!important;margin:0!important;padding:7px 11px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:999px!important;background:rgba(0,0,0,.55)!important;color:#fff!important;font-size:13px!important;font-weight:800!important;line-height:1!important;cursor:pointer;-webkit-appearance:none!important;appearance:none!important}.emr-sound-toggle.is-visible{display:flex!important}.emr-sound-toggle span{font-size:17px}.emr-sound-toggle small{font-size:10px}

/* Comments bottom sheet. */
.emr-comments-sheet{position:fixed;z-index:1000002;inset:0;visibility:hidden;pointer-events:none;font-family:Inter,Arial,sans-serif}.emr-comments-sheet.is-open{visibility:visible;pointer-events:auto}.emr-comments-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .24s}.emr-comments-sheet.is-open .emr-comments-backdrop{opacity:1}.emr-comments-panel{position:absolute;left:50%;bottom:0;width:min(680px,100%);max-height:88dvh;display:flex;flex-direction:column;padding:22px 22px max(18px,env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.15);border-bottom:0;border-radius:22px 22px 0 0;background:#071831;color:#fff;box-shadow:0 -18px 60px rgba(0,0,0,.5);transform:translate(-50%,105%);transition:transform .28s ease}.emr-comments-sheet.is-open .emr-comments-panel{transform:translate(-50%,0)}.emr-comments-panel h2{margin:0 50px 14px 0;color:#fff!important;font-size:22px}.emr-comments-panel h2 small{display:inline-grid;min-width:24px;height:24px;place-items:center;margin-left:5px;border-radius:99px;background:#176dec;color:#fff;font-size:11px}.emr-comments-list{min-height:80px;max-height:38dvh;overflow:auto;padding:2px 3px 8px}.emr-comments-loading,.emr-comments-empty{padding:24px;text-align:center;color:#9fb4d3;font-size:13px}.emr-comment{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.09)}.emr-comment.is-reply{margin-left:36px}.emr-comment-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#176dec;color:#fff;font-size:14px;font-weight:900}.emr-comment-body{min-width:0}.emr-comment-body header{display:flex;align-items:baseline;gap:8px}.emr-comment-body header strong{color:#fff;font-size:13px}.emr-comment-body header small{color:#8299bc;font-size:10px}.emr-comment-body p{margin:5px 0;color:#e8effa;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.emr-comment-tools{display:flex;gap:12px}.emr-comment-tools button{margin:0!important;padding:2px 0!important;border:0!important;background:none!important;color:#8eb9ff!important;font-size:10px!important;font-weight:800!important;cursor:pointer}.emr-comment-tools button.is-danger{color:#ff7e88!important}.emr-comment-form{padding-top:10px;border-top:1px solid rgba(255,255,255,.13)}.emr-comment-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.emr-comment-form label{display:block;margin:7px 0 0;color:#cbd9ed;font-size:11px;font-weight:800}.emr-comment-form input,.emr-comment-form textarea{display:block;width:100%;margin-top:4px!important;padding:9px 10px!important;border:1px solid #345077!important;border-radius:8px!important;background:#0c2347!important;color:#fff!important;font:inherit!important;outline:none!important}.emr-comment-form input:focus,.emr-comment-form textarea:focus{border-color:#3a89ff!important;box-shadow:0 0 0 3px rgba(58,137,255,.16)!important}.emr-emoji-bar{display:flex;gap:4px;margin-top:7px;overflow-x:auto}.emr-emoji-bar button{flex:0 0 34px;width:34px!important;height:32px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:7px!important;background:#0c2347!important;font-size:17px!important;line-height:1!important;cursor:pointer}.emr-comment-actions{display:flex;gap:8px;margin-top:8px}.emr-comment-actions button{min-height:38px;margin:0!important;padding:9px 14px!important;border:0!important;border-radius:8px!important;color:#fff!important;font-size:12px!important;font-weight:900!important;cursor:pointer}.emr-comment-cancel{background:#40516b!important}.emr-comment-submit{flex:1;background:#176dec!important}.emr-replying-to{margin:0 42px 5px 0;padding:7px 9px;border-radius:7px;background:#12315d;color:#cfe1fa;font-size:11px}.emr-comment-notice{display:none;margin-top:7px;padding:7px 9px;border-radius:7px;font-size:11px}.emr-comment-notice.is-error{display:block;background:#621d2a}.emr-comment-notice.is-success{display:block;background:#135438}

/* Full image viewer. */
.emr-image-lightbox[hidden]{display:none!important}.emr-image-lightbox{position:fixed;z-index:1000004;inset:0;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#000;opacity:0;transition:opacity .2s;touch-action:manipulation}.emr-image-lightbox.is-open{opacity:1}.emr-image-lightbox img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}.emr-image-lightbox>small{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:99px;background:rgba(0,0,0,.62);color:#fff;font-size:10px;white-space:nowrap}

/* Fixed red circular X controls, including iOS theme overrides. */
button.emr-close,button.emr-modal-close,button.emr-comments-close,button.emr-lightbox-close{display:grid!important;place-items:center!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#ed3945!important;color:#fff!important;box-shadow:0 5px 18px rgba(0,0,0,.38)!important;line-height:1!important;-webkit-appearance:none!important;appearance:none!important;overflow:hidden!important;cursor:pointer}
button.emr-close>span,button.emr-modal-close>span,button.emr-comments-close>span,button.emr-lightbox-close>span{display:block!important;margin:0!important;padding:0!important;color:#fff!important;font-family:Arial,sans-serif!important;font-weight:700!important;line-height:1!important;text-align:center!important;transform:translateY(-1px)}
button.emr-close>span{font-size:30px!important}button.emr-modal-close>span{font-size:23px!important}.emr-comments-close,.emr-lightbox-close{position:absolute;z-index:3;top:12px;right:12px}.emr-comments-close{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important}.emr-comments-close>span{font-size:27px!important}.emr-lightbox-close{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important}.emr-lightbox-close>span{font-size:31px!important}

@media(max-width:600px){.emr-media-progress{top:max(5px,env(safe-area-inset-top));gap:3px}.emr-media-progress span{height:3px}.emr-sound-toggle{top:max(72px,calc(env(safe-area-inset-top) + 62px));right:10px}.emr-comments-panel{max-height:92dvh;padding:18px 12px max(12px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.emr-comments-list{max-height:38dvh}.emr-comment-fields{grid-template-columns:1fr 1fr}.emr-comment-fields label:first-child{grid-column:1/-1}.emr-comment.is-reply{margin-left:24px}.emr-comments-close{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important}}

/* Desktop videos stay centered at their natural aspect ratio without cropping. */
@media(min-width:601px){.emr-frame--video{object-fit:contain!important;object-position:center center!important;background:#000!important}}
