/* Ejaaba Stories 2.0: mobile-first, isolated studio and interaction panel */
.eja-next-launch{border:1px solid #b9d6f5!important;border-radius:999px!important;padding:3px 9px!important;font-size:10px!important;background:#eaf4ff!important;color:#205d98!important;font-weight:800!important;cursor:pointer!important;white-space:nowrap}
.eja-next-launch:hover{background:#d5e8fe!important}
 .eja-next-dialog{box-sizing:border-box;width:min(490px,calc(100vw - 22px))!important;height:min(640px,75dvh)!important;max-height:75dvh!important;max-width:490px!important;margin:auto!important;border:1px solid #d4ad6d!important;border-radius:20px!important;padding:0!important;overflow:hidden!important;background:#f6f9ff!important;box-shadow:0 25px 80px #0009!important;color:#1b3857!important}
.eja-next-dialog::backdrop{background:rgba(4,15,29,.78)!important;backdrop-filter:blur(5px)}
.eja-next-shell{display:flex;flex-direction:column;height:100%;min-height:0;direction:rtl}
.eja-next-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;background:linear-gradient(125deg,#071c35,#155186);padding:13px 15px;color:#fff;border-bottom:2px solid #d3aa67}
.eja-next-head-emblem{flex:none;width:37px;height:37px;border-radius:12px;background:linear-gradient(140deg,#ffe0a6,#aa7739);display:grid;place-items:center;color:#152f50;font-size:23px}
.eja-next-head>div{flex:1;min-width:0}
.eja-next-head small{font:700 9px Arial,sans-serif;letter-spacing:1.1px;color:#e8c58a}
.eja-next-head h2{font-size:17px!important;line-height:1.45!important;margin:2px 0 0!important;color:#fff!important}
.eja-next-head>button{width:32px;height:32px;border-radius:50%;color:white;background:#ffffff20;border:1px solid #ffffff55;font-size:24px;cursor:pointer}
.eja-next-tabs{flex:0 0 auto;display:flex;gap:3px;overflow-x:auto;scrollbar-width:none;padding:7px 8px;background:#e9f2ff;border-bottom:1px solid #d8e5f3}
.eja-next-tabs button{flex:1 0 auto;border:0;border-radius:9px;background:transparent;color:#526e89;padding:9px 7px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.eja-next-tabs button.is-active{background:#174c7e;color:#fff;box-shadow:0 2px 8px #174c7e33}
.eja-next-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:13px 15px 20px;scrollbar-color:#91bbdd transparent;scrollbar-width:thin}
.eja-next-scroll [hidden]{display:none!important}
.eja-next-scroll section h3{font-size:16px!important;color:#164775;margin:8px 0}
.eja-next-scroll section h4{font-size:13px!important;color:#2a5f90;margin:15px 0 8px}
.eja-next-scroll section>p{font-size:12px;color:#60758a;line-height:1.9}
.eja-next-scroll form{display:grid;gap:12px}
.eja-next-field{display:grid;gap:5px;min-width:0}
.eja-next-field>label,.eja-next-choice-editor>label{font-size:12px;font-weight:800;color:#20537f}
.eja-next-field input,.eja-next-field select,.eja-next-field textarea,.eja-next-choice-editor input,.eja-next-choice-editor select,.eja-next-search input{font:inherit;font-size:13px;width:100%;min-width:0;box-sizing:border-box;border:1px solid #cfdeee;border-radius:10px;background:#fff;color:#1d3551;padding:10px;line-height:1.5}
.eja-next-field textarea{min-height:95px;resize:vertical;line-height:1.8}
.eja-next-field small{font-size:10px;color:#7b8da0;line-height:1.7}
.eja-next-dual{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.eja-next-choice-editor{display:grid;gap:8px;background:#ecf5fe;border:1px solid #cfdfef;border-radius:12px;padding:11px}
.eja-next-choice-editor [data-next-correct-row]{display:grid;gap:6px}
.eja-next-media{display:grid;gap:9px;padding:10px;background:#f2f7fe;border:1px solid #d6e5f5;border-radius:13px}
.eja-next-media canvas{width:100%;max-height:270px;object-fit:contain;background:#183353;border-radius:12px}
.eja-next-media [data-next-canvas-area]{display:grid;gap:7px}
.eja-next-media [data-next-canvas-area] input,.eja-next-media [data-next-canvas-area] select{padding:9px;border:1px solid #c5d8ed;border-radius:8px;min-width:0;background:white;color:#153a65}
.eja-next-upload-status{font-size:11px;line-height:1.7;color:#285e90;min-height:12px}
.eja-next-secondary{border:1px solid #7fafd7;background:#deedfb;color:#185a90;border-radius:10px;padding:10px 12px;font-weight:750;font-size:11px;cursor:pointer}
.eja-next-watermark{display:flex;align-items:flex-start;gap:9px;font-size:12px;background:#f7fbff;border:1px solid #dde8f3;padding:10px;border-radius:12px}
.eja-next-watermark>input{margin-top:3px;accent-color:#1666b2}
.eja-next-watermark span{display:grid;gap:3px}
.eja-next-watermark small{font-size:10px;color:#728499}
.eja-next-main-button{border:0;border-radius:13px;background:linear-gradient(120deg,#103d6c,#267bcc);color:#fff;padding:13px;font-weight:900;font-size:14px;cursor:pointer}
.eja-next-main-button:disabled{opacity:.65;cursor:wait}
.eja-next-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #d9e5f4;background:#f8fbff;padding:11px 14px}
.eja-next-footer>span{font-size:10px;line-height:1.6;color:#62809b;flex:1}
.eja-next-footer button{background:#185b92;color:white;border:0;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:750;cursor:pointer}
.eja-next-items{display:grid;gap:9px}
.eja-next-item{border:1px solid #dce7f4;border-radius:12px;background:#fff;padding:12px;display:grid;gap:8px}
.eja-next-item strong{color:#1d4f7e;font-size:13px}
.eja-next-item p{margin:0;font-size:11px;line-height:1.7;color:#647b90}
.eja-next-item small{font-size:10px;color:#7d90a4}
.eja-next-item>div:last-child{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.eja-next-item button,.eja-next-search button{border:1px solid #b8d5ef;border-radius:8px;background:#eaf4ff;padding:8px 10px;color:#195889;font-size:11px;font-weight:750;cursor:pointer}
.eja-next-item a{color:#2266aa;font-size:11px}
.eja-next-search{display:flex;gap:7px;margin:12px 0}
.eja-next-search input{flex:1}
.eja-next-search button{flex:none}
.eja-next-insights{height:min(580px,74dvh)!important}
.eja-next-insights [data-next-insights-content]{font-size:12px;line-height:1.8}
.eja-next-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.eja-next-stat{display:grid;gap:3px;background:#eff6fe;border:1px solid #dae8f7;padding:12px;border-radius:11px}
.eja-next-stat strong{font-size:22px;color:#1b65a2}
.eja-next-stat small{font-size:10px;color:#6d8295}
.eja-next-replies{display:grid;gap:9px;margin-top:16px}
.eja-next-replies article{padding:12px;border-radius:11px;border:1px solid #dae6f4;background:#fff}
.eja-next-replies article strong{font-size:12px;color:#1a537f}
.eja-next-replies article p{font-size:12px;color:#3b5877}
.eja-next-replies textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #cadeef;border-radius:8px;padding:8px;background:#f8fbff;color:#172f4c}
.eja-next-replies button{background:#195b96;color:white;border:0;border-radius:8px;padding:7px 12px;margin-top:5px}
.eja-next-interact{flex:0 0 auto;max-height:145px;overflow-y:auto;overscroll-behavior:contain;padding:8px 12px;background:#071b32e8;border-top:1px solid #ffffff26;color:#fff;direction:rtl;scrollbar-width:thin}
.eja-next-interact[hidden]{display:none!important}
.eja-next-interact h4{font-size:11px;margin:0 0 6px;color:#d7eafa}
.eja-next-reaction-bar{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0}
.eja-next-reaction-bar button{background:#ffffff19;border:1px solid #ffffff3f;border-radius:20px;color:#fff;padding:5px 8px;font-size:12px;cursor:pointer}
.eja-next-reaction-bar button.is-active{background:#2981e399;border-color:#b7d7ff}
.eja-next-interact input,.eja-next-interact textarea{box-sizing:border-box;border:1px solid #8bb0d0;background:#f6fbff;color:#17395b;border-radius:8px;padding:7px;width:100%;max-width:100%;font-size:12px}
.eja-next-interact button[data-next-vote]{display:block;width:100%;border:1px solid #95bfe0;background:#eff7ff;color:#185486;border-radius:8px;margin:4px 0;padding:7px;text-align:right;font-size:11px;cursor:pointer}
.eja-next-interact button[data-next-vote]:disabled{opacity:.75;cursor:default}
.eja-next-interact small{font-size:10px;color:#c3dbeb}
.eja-next-inline{display:flex;align-items:center;gap:6px;margin-top:6px}
.eja-next-inline button{flex:none;border:0;border-radius:8px;background:#2c85d8;color:white;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer}
.eja-next-interact a{color:#b8e2ff;font-size:11px}
.eja-profile-highlights{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px auto;min-height:0}
.eja-profile-highlights a{display:grid;place-items:center;gap:3px;text-decoration:none;width:66px;color:#215d93;font-size:10px;font-weight:750}
.eja-profile-highlights img,.eja-profile-highlights .eja-highlight-placeholder{display:grid;place-items:center;width:51px;height:51px;border-radius:50%;object-fit:cover;border:2px solid #c79b55;padding:2px;background:#edf6ff}
@media(max-width:520px){ .eja-next-dialog{width:calc(100vw - 18px)!important;height:min(610px,72dvh)!important;max-height:72dvh!important;border-radius:16px!important}.eja-next-head{padding:11px 12px}.eja-next-tabs{gap:1px}.eja-next-tabs button{padding:8px 6px;font-size:10px}.eja-next-scroll{padding:10px 12px}.eja-next-field input,.eja-next-field select{font-size:16px}.eja-next-dual{grid-template-columns:1fr 1fr;gap:7px}.eja-next-interact{max-height:170px}}
@media(prefers-reduced-motion:reduce){.eja-next-dialog *, .eja-next-interact *{transition:none!important;animation:none!important}}

/* Actual video story playback in both verified community and compact viewer. */
.eja-story-frame-body>video,.evc-story-body>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#091c31;z-index:1}
.eja-story-frame-body>video[hidden],.evc-story-body>video[hidden]{display:none!important}
.eja-story-frame-body:has(video:not([hidden])) p{align-self:flex-end;background:#081c30be;padding:10px 12px;border-radius:11px;font-size:12px}
.eja-next-search [data-next-mention-search]{font-size:12px}
.eja-next-media [data-next-video-preview][hidden]{display:none!important}
.eja-next-media input[type=range]{accent-color:#1d74bc;padding:0;width:100%}
.eja-next-media output{font-size:11px;color:#1d689f}
