/* Ejaaba stories: mobile-first horizontal rings, immersive but restrained. */
.eja-story-strip{box-sizing:border-box;background:linear-gradient(130deg,#f8fcff,#eef5ff);border:1px solid #d5e5f4;border-radius:15px;margin:9px 0;padding:10px 12px;box-shadow:0 3px 14px #24446b0d;min-width:0;direction:rtl}
.eja-story-strip header{display:flex;gap:9px;align-items:center;margin:0 0 7px}
.eja-story-strip h2{font-size:13px;margin:0;color:#174c82;font-weight:800}
.eja-story-strip header span{font-size:10px;color:#7d91a6}
.eja-story-strip header a{margin-right:auto;font-size:11px;color:#286db4;text-decoration:none}
.eja-story-strip-row{display:flex;align-items:center;gap:5px;overflow:hidden}
.eja-story-mini-list{display:flex;overflow:auto;scrollbar-width:thin;gap:9px;min-width:0;scroll-snap-type:x proximity;padding:3px 1px}
.eja-story-mini{flex:0 0 68px;width:68px;padding:0;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#20537e;font-size:11px;cursor:pointer;text-align:center}
.eja-story-mini small{display:block;width:100%;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eja-story-mini-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;padding:3px;box-sizing:border-box;background:conic-gradient(#2e85eb,#7e5af4,#0b8ec8,#2e85eb);box-shadow:0 2px 10px #3972b92b}
.eja-story-mini-avatar img{border:3px solid #fff;width:100%;height:100%;object-fit:cover;border-radius:50%;box-sizing:border-box;background:#dfe8f3}
.eja-story-mini.is-seen .eja-story-mini-avatar{background:#b6c4d0;box-shadow:none}
.eja-story-mini-add .eja-story-mini-avatar{background:#deebfa;border:2px dashed #3c8fe2;color:#197add}
.eja-story-mini-add .eja-story-mini-avatar span{font-size:28px;font-weight:700}
.eja-story-loading{font-size:11px;color:#6c8196;margin:auto 8px}
.eja-story-dialog{border:0;background:transparent;padding:0;color:#172f4a;max-height:calc(100dvh - 18px);overscroll-behavior:contain}
.eja-story-dialog::backdrop{background:#04182be8;backdrop-filter:blur(6px)}
.eja-story-compose{width:min(420px,calc(100vw - 18px));border-radius:18px;background:#fff;box-shadow:0 16px 60px #0009}
.eja-story-compose form{display:grid;gap:13px;padding:19px}
.eja-story-compose header{display:flex;align-items:center;justify-content:space-between;color:#184578}
.eja-story-compose header strong{font-size:18px}
.eja-story-compose header button{border:0;border-radius:50%;width:33px;height:33px;background:#e6eff9;font-size:24px;color:#25466e}
.eja-story-compose p{font-size:12px;color:#64748b;margin:0}
.eja-story-compose label{display:grid;gap:6px;font-size:13px;font-weight:700}
.eja-story-compose input,.eja-story-compose textarea,.eja-story-compose select{box-sizing:border-box;max-width:100%;width:100%;border:1px solid #d0dded;border-radius:10px;padding:10px;color:#18344f;background:#f9fbff;font-size:14px}
.eja-story-compose input[type=file]{font-size:12px}
.eja-story-compose textarea{resize:vertical;min-height:80px}
.eja-story-compose button[type=submit]{background:linear-gradient(100deg,#0f4f96,#3285df);border:0;border-radius:11px;color:white;font-weight:800;padding:12px}
.eja-story-compose button[disabled]{opacity:.65;cursor:wait}
.eja-story-upload-preview{height:130px;border-radius:12px;overflow:hidden;background:#edf3fb}
.eja-story-upload-preview img{width:100%;height:100%;object-fit:cover}
.eja-story-view{width:min(400px,calc(100vw - 15px));overflow:hidden;border-radius:16px;box-shadow:0 19px 70px #000a}
.eja-story-view-frame{position:relative;min-height:min(680px,calc(100dvh - 24px));display:flex;flex-direction:column;color:#fff;background:linear-gradient(155deg,#123f76,#11294b 58%,#08192e);direction:rtl}
.eja-story-progress{height:3px;background:#ffffff55;margin:11px 12px;border-radius:4px;overflow:hidden}
.eja-story-progress i{display:block;height:100%;background:#fff;width:0}
.eja-story-view-frame>header{display:flex;align-items:center;gap:10px;padding:0 14px;z-index:2}
.eja-story-view-frame>header img{width:37px;height:37px;object-fit:cover;border-radius:50%;border:2px solid #fff}
.eja-story-view-frame>header strong{flex:1;font-size:13px}
.eja-story-view-frame>header button{background:#ffffff22;color:#fff;border:0;border-radius:50%;font-size:25px;width:35px;height:35px}
.eja-story-frame-body{position:relative;flex:1;min-height:310px;display:flex;align-items:center;justify-content:center;padding:18px;overflow:hidden}
.eja-story-frame-body>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#09182c}
.eja-story-frame-body>img[hidden]{display:none}
.eja-story-frame-body p{position:relative;text-align:center;line-height:1.9;font-weight:750;font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;text-shadow:0 2px 7px #000b}
.eja-story-frame-body:has(img:not([hidden])) p{align-self:flex-end;background:#0009;border-radius:12px;padding:10px 12px;font-size:14px}
.eja-story-view-frame nav{position:absolute;inset:80px 0 55px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;padding:0 6px}
.eja-story-view-frame nav button{pointer-events:auto;border:0;background:#091b3480;border-radius:20px;color:#fff;width:33px;height:42px;font-size:19px}
.eja-story-view-frame nav button:disabled{opacity:0;pointer-events:none}
.eja-story-view-frame footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;font-size:11px}
.eja-story-view-frame footer button{border:1px solid #ffffff66;background:#ffffff22;border-radius:7px;color:#fff;padding:7px}
.eja-story-toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#133a61;color:#fff;z-index:100000;border-radius:12px;padding:12px 18px;box-shadow:0 10px 25px #0005;max-width:85vw;font-size:13px;text-align:center}
.eja-story-toast.is-error{background:#7d2b38}
.eja-story-watch-page{max-width:600px;margin:20px auto;padding:18px;border-radius:13px;background:#f7faff;text-align:center}
.eja-story-watch-content{display:grid;gap:10px;margin:auto;max-width:390px;background:#132a4b;color:#fff;border-radius:13px;overflow:hidden;min-height:300px;place-content:center}
.eja-story-watch-content img{max-height:62vh;max-width:100%;object-fit:contain}
.eja-story-watch-content p{padding:15px;white-space:pre-wrap}
.eja-story-watch-page>a{display:inline-block;margin:12px;color:#1767b2}
.classic-member-profile .ejabat-portrait.ejaaba-story-ring{border:0!important;border-radius:50%!important;padding:5px!important;background:conic-gradient(#137bf1,#7668ed,#23a0e8,#137bf1)!important;box-shadow:0 0 0 2px #f8fbff,0 4px 18px #2d7ed955!important;overflow:hidden!important}
.classic-member-profile .ejabat-portrait.ejaaba-story-ring img{border-radius:50%!important;border:3px solid #fff!important;box-sizing:border-box!important}
.classic-member-profile .ejabat-portrait.ejaaba-story-ring:hover{filter:brightness(1.07)}
/* Use one short horizontal strip in the verified community too, never giant cards. */
.evc-stories-section{padding:10px 12px!important;border-radius:14px!important}
.evc-stories-section .evc-stories-header{margin-bottom:7px!important}
.evc-stories-section .evc-stories-rail{gap:9px!important;min-height:90px!important;padding:1px!important;align-items:flex-start}
.evc-stories-section .evc-story-card{flex:0 0 68px!important;width:68px!important;min-width:68px!important;height:86px!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;transform:none!important}
.evc-stories-section .evc-story-card::after,.evc-stories-section .evc-story-cover,.evc-stories-section .evc-story-text-cover{display:none!important}
.evc-stories-section .evc-story-owner-avatar{position:absolute!important;top:3px!important;right:5px!important;width:58px!important;height:58px!important;box-sizing:border-box!important;border:3px solid #fff!important;box-shadow:0 0 0 3px #197ce8!important;border-radius:50%!important}
.evc-stories-section .evc-story-card.is-seen .evc-story-owner-avatar{box-shadow:0 0 0 3px #b4c3d0!important}
.evc-stories-section .evc-story-owner-name{position:absolute!important;bottom:0!important;left:0!important;right:0!important;font-size:10px!important;text-align:center!important;color:#19416a!important;text-shadow:none!important}
.evc-stories-section .evc-story-add{display:flex!important;justify-content:flex-end!important;align-items:center!important;padding-bottom:0!important}
.evc-stories-section .evc-story-add strong{margin:0!important;font-size:10px!important;color:#1a568f!important}
.evc-stories-section .evc-story-add-plus{top:3px!important;right:7px!important;width:54px!important;height:54px!important;display:grid!important;place-items:center!important;border-radius:50%!important;line-height:1!important;background:#ddecff!important;border:2px dashed #4394f1!important;color:#237acc!important;font-size:26px!important}
.evc-stories-section .evc-stories-none{padding:17px 8px!important}
@media(max-width:480px){.eja-story-strip{padding:8px;margin:7px 0}.eja-story-strip h2{font-size:12px}.eja-story-mini{flex-basis:62px;width:62px}.eja-story-mini-avatar{width:54px;height:54px}.eja-story-view-frame{min-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.eja-story-view-frame *, .eja-story-strip *{animation:none!important;transition:none!important}}
