.sws,.sws *,.sws-dialog,.sws-dialog *{box-sizing:border-box}.sws{--sws-blue:#1f3b74;--sws-gold:#b08a4a;font-family:inherit}.sws-strip{display:flex;gap:18px;overflow-x:auto;padding:12px 5px 16px;scrollbar-width:thin}.sws .sws-story{border:0;background:transparent;padding:0;flex:0 0 92px;min-width:0;color:#18243a;font:inherit;cursor:pointer;text-align:center;box-shadow:none}.sws-ring{display:flex;align-items:center;justify-content:center;width:86px;height:86px;margin:auto;padding:3px;border:2px solid var(--sws-gold);border-radius:50%;background:white}.sws-ring img,.sws-placeholder{width:100%;height:100%;object-fit:cover;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf0f5;color:var(--sws-blue)}.sws-viewed .sws-ring{border-color:#aeb6c4}.sws-title{display:block;font-size:12px;line-height:1.8;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sws button:focus-visible,.sws-dialog a:focus-visible,.sws-dialog button:focus-visible{outline:3px solid #b08a4a;outline-offset:3px}.sws-dialog{position:fixed;inset:0;width:min(440px,100vw);max-width:100vw;height:min(800px,100dvh);max-height:100dvh;border:0;padding:0;margin:auto;background:#080d16;color:white;border-radius:14px;font-family:inherit;overflow:hidden}.sws-dialog::backdrop{background:rgba(2,6,15,.87)}.sws-stage{position:relative;width:100%;height:100%;isolation:isolate}.sws-progress{position:absolute;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:4px;z-index:5;direction:ltr}.sws-track{flex:1;height:3px;background:#ffffff55;border-radius:4px;overflow:hidden}.sws-fill{display:block;height:100%;background:white}.sws-header{position:absolute;top:calc(max(10px,env(safe-area-inset-top)) + 14px);left:12px;right:12px;display:flex;align-items:center;gap:6px;z-index:5}.sws-heading{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;text-shadow:0 1px 5px #000}.sws-dialog .sws-control,.sws-dialog .sws-prev,.sws-dialog .sws-next{font-family:inherit;border:0;box-shadow:none;color:white;background:#0009;border-radius:9px;cursor:pointer;min-height:44px;padding:6px 10px;line-height:1.5;font-size:11px}.sws-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center;touch-action:pan-y}.sws-media{display:block;width:100%;height:100%;object-fit:contain;margin:0}.sws-stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#0008,transparent 20%,transparent 60%,#000a);z-index:1}.sws-caption{position:absolute;bottom:105px;right:24px;left:24px;text-align:center;color:white;font-size:15px;line-height:1.9;z-index:3;max-height:25%;overflow-y:auto;text-shadow:0 1px 4px #000;margin:0}.sws-dialog .sws-cta{position:absolute;bottom:max(48px,calc(env(safe-area-inset-bottom) + 20px));left:24px;right:24px;display:block;text-align:center;padding:12px 18px;border-radius:10px;background:white;color:#14213b;font-size:14px;line-height:1.6;font-weight:600;text-decoration:none;z-index:4}.sws-dialog [hidden]{display:none!important}.sws-dialog .sws-prev,.sws-dialog .sws-next{position:absolute;top:48%;z-index:3;font-size:11px;padding:8px}.sws-prev{right:8px}.sws-next{left:8px}.sws-error{padding:28px;text-align:center;font-size:14px;line-height:2}.sws-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:600px){.sws-strip{gap:10px}.sws .sws-story{flex-basis:80px}.sws-ring{width:74px;height:74px}.sws-dialog{width:100vw;height:100dvh;border-radius:0}.sws-caption{font-size:14px}}@media(prefers-reduced-motion:reduce){.sws-strip{scroll-behavior:auto}}
/* نوار استوری تک‌ردیفه — نسخه ۱.۰.۱ */
.sws{width:100%;max-width:100%;min-width:0;overflow:hidden}
.sws .sws-strip{display:flex!important;flex-flow:row nowrap!important;align-items:flex-start;justify-content:flex-start;gap:24px;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:hidden;direction:rtl;padding:12px 8px 16px;scroll-snap-type:x proximity;scroll-padding-inline:8px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:none;-ms-overflow-style:none}
.sws .sws-strip::-webkit-scrollbar{display:none}
.sws .sws-story{display:block!important;flex:0 0 104px!important;width:104px!important;max-width:104px!important;min-width:104px!important;margin:0!important;padding:0!important;scroll-snap-align:start;background:transparent!important;border:0!important;border-radius:0!important;transform:none!important}
.sws .sws-ring{width:94px;height:94px;margin-inline:auto;padding:4px;border:2px solid #b08a4a;background:#fff;border-radius:50%;overflow:hidden}
.sws .sws-ring img{display:block;width:100%!important;height:100%!important;aspect-ratio:1;object-fit:cover!important;border-radius:50%!important}
.sws .sws-title{font-family:inherit;font-size:12px;font-weight:500;line-height:1.9;color:#222;margin-top:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sws .sws-viewed .sws-ring{border-color:#c7c7c7}
@media(max-width:767px){
.sws .sws-strip{gap:12px;padding:8px 2px 12px;scroll-padding-inline:2px}
.sws .sws-story{flex:0 0 80px!important;width:80px!important;max-width:80px!important;min-width:80px!important}
.sws .sws-ring{width:74px;height:74px;padding:3px;border-width:2px}
.sws .sws-title{font-size:11px;line-height:1.8;margin-top:7px}
}

/* مرکزچین در فضای کافی؛ اسکرول از ابتدای ردیف هنگام سرریز */
.sws .sws-story:first-child{margin-inline-start:auto!important}
.sws .sws-story:last-child{margin-inline-end:auto!important}
.sws .sws-title{color:var(--sws-title-color,#18243a)!important}

/* تنظیم قطعی برای زمینه‌های المنتور و لایه‌های تصویری */
.sws[data-theme="dark"] .sws-title{color:#fff!important}
.sws[data-theme="light"] .sws-title{color:#18243a!important}
