/* v2.16.113 - story module IRANSans force */
@font-face{font-family:'IRANSans';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype'),url('/assets/fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype')}
@font-face{font-family:'IRANSans';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype'),url('/assets/fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype')}
@font-face{font-family:'IRANSans';font-style:normal;font-weight:700 900;font-display:swap;src:url('/assets/fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype'),url('/assets/fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype')}
.qs-story-root,.qs-story-root *,.qs-story-editor,.qs-story-editor *,.qs-story-viewer,.qs-story-viewer *,.qs-public-profile-modal,.qs-public-profile-modal *,.qs-story-public-profile-modal,.qs-story-public-profile-modal *{font-family:'IRANSans',Tahoma,Arial,sans-serif!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.qs-story-host{width:100%;margin:0;padding:3px 8px 4px;box-sizing:border-box;background:transparent;border:0;box-shadow:none;position:relative;z-index:2}
.qs-story-host[style*="display: none"]{padding:0;margin:0;height:0;overflow:hidden}
.qs-story-strip{display:flex;flex-direction:row;gap:9px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 3px;scrollbar-width:none;min-height:64px;align-items:center;background:transparent;border:0;box-shadow:none}
.qs-story-strip::-webkit-scrollbar{display:none}
.qs-story-loading{color:#64748b;font-size:12px;padding:8px 0;white-space:nowrap}
.qs-story-item{display:flex;flex-direction:column;align-items:center;gap:2px;flex:0 0 56px;cursor:pointer;position:relative;min-width:56px;max-width:56px}
.qs-story-ring{width:48px;height:48px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4);position:relative;box-shadow:none}
.qs-story-ring.is-seen{background:linear-gradient(135deg,#cbd5e1,#94a3b8)}
.qs-story-ring.is-pending{background:linear-gradient(135deg,#f59e0b,#f97316)}
.qs-story-avatar{width:100%;height:100%;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.qs-story-avatar img{width:100%;height:100%;object-fit:cover}
.qs-story-initial{font-size:17px;font-weight:900;color:#475569}
.qs-story-label{max-width:56px;font-size:10.5px;line-height:1.25;color:#334155;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qs-story-plus{position:absolute;left:-1px;bottom:-1px;width:17px;height:17px;border-radius:50%;background:#2563eb;color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 3px 8px rgba(37,99,235,.25)}
.qs-story-badge{position:absolute;top:-5px;left:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(239,68,68,.25)}
.qs-story-status{font-size:9.5px;color:#f97316;line-height:1;white-space:nowrap}
.qs-story-modal,.qs-story-editor{position:fixed;inset:0;z-index:20000;background:rgba(2,6,23,.74);display:none;align-items:center;justify-content:center;padding:16px}
.qs-story-modal.open,.qs-story-editor.open{display:flex}
.qs-story-viewer{width:min(430px,100%);height:min(92vh,760px);background:#020617;border-radius:30px;overflow:hidden;position:relative;box-shadow:0 40px 90px rgba(2,6,23,.45)}
.qs-story-media-wrap{position:absolute;inset:0;background:#020617;display:flex;align-items:center;justify-content:center}
.qs-story-media-wrap img,.qs-story-media-wrap video{width:100%;height:100%;object-fit:contain;background:#020617}
.qs-story-bars{position:absolute;top:12px;left:12px;right:12px;display:flex;gap:4px;z-index:2}.qs-story-bar{flex:1;height:3px;border-radius:999px;background:rgba(255,255,255,.25);overflow:hidden}.qs-story-bar>span{display:block;height:100%;width:0;background:#fff}.qs-story-bar.done>span{width:100%}
.qs-story-header{position:absolute;top:24px;right:16px;left:16px;display:flex;align-items:center;justify-content:space-between;z-index:2;color:#fff}.qs-story-owner{display:flex;align-items:center;gap:10px;max-width:75%}.qs-story-owner-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.18);flex:0 0 38px}.qs-story-owner-avatar img{width:100%;height:100%;object-fit:cover}.qs-story-owner-name{font-size:14px;font-weight:700}.qs-story-owner-time{font-size:11px;opacity:.8}.qs-story-close{border:0;background:transparent;color:#fff;font-size:34px;line-height:1;cursor:pointer;padding:0 2px}
.qs-story-overlay-text{position:absolute;right:20px;left:20px;bottom:110px;text-align:center;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55);z-index:2}.qs-story-overlay-text .big{font-size:22px;font-weight:800;line-height:1.7;white-space:pre-wrap}.qs-story-link,.qs-story-location{display:inline-flex;align-items:center;gap:6px;margin-top:10px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);padding:8px 12px;border-radius:999px;font-size:12px;color:#fff;text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qs-story-bottom{position:absolute;right:14px;left:14px;bottom:12px;z-index:2;display:flex;flex-direction:column;gap:10px}.qs-story-stats{display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:12px}.qs-story-action-row{display:flex;align-items:center;gap:8px}.qs-story-action-btn{border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:16px;padding:10px 12px;cursor:pointer;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:700;backdrop-filter:blur(8px)}.qs-story-action-btn.like.active{background:rgba(239,68,68,.22)}.qs-story-reply-box{flex:1;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);border-radius:18px;padding:8px 10px}.qs-story-reply-box input{flex:1;border:0;background:transparent;color:#fff;outline:0;font-family:'IRANSans',Tahoma,Arial,sans-serif!important}.qs-story-reply-box input::placeholder{color:rgba(255,255,255,.75)}.qs-story-nav{position:absolute;top:0;bottom:0;width:35%;z-index:1}.qs-story-nav.prev{right:0}.qs-story-nav.next{left:0}
.qs-story-editor-card{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;padding:18px;box-shadow:0 30px 70px rgba(15,23,42,.28)}.qs-story-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.qs-story-editor-head h3{margin:0;font-size:18px;color:#0f172a}.qs-story-editor-close{border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#0f172a}.qs-story-editor-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.qs-story-preview{border-radius:24px;background:linear-gradient(180deg,#0f172a,#1e293b);aspect-ratio:9/16;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;color:#fff}.qs-story-preview img,.qs-story-preview video{width:100%;height:100%;object-fit:contain}.qs-story-preview-empty{padding:22px;text-align:center;color:#cbd5e1;line-height:1.8}.qs-story-editor-fields{display:flex;flex-direction:column;gap:10px}.qs-story-editor-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#334155}.qs-story-editor-fields input,.qs-story-editor-fields textarea{border:1px solid #cbd5e1;border-radius:14px;padding:10px 12px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;outline:0}.qs-story-editor-fields textarea{min-height:84px;resize:vertical}.qs-story-file{display:flex;align-items:center;justify-content:center;border:1px dashed #94a3b8;border-radius:16px;padding:12px;background:#f8fafc}.qs-story-upload-progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;display:none}.qs-story-upload-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#ec4899,#8b5cf6,#2563eb)}.qs-story-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.qs-story-editor-actions button{border:0;border-radius:14px;padding:12px 16px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:800;cursor:pointer}.qs-story-editor-actions .primary{background:#2563eb;color:#fff}.qs-story-editor-actions .muted{background:#e2e8f0;color:#0f172a}.qs-story-toast{position:fixed;right:18px;bottom:18px;z-index:25000;background:#0f172a;color:#fff;padding:12px 14px;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.24);display:none;max-width:min(360px,calc(100vw - 36px))}.qs-story-toast.open{display:block}
@media (max-width:700px){.qs-story-host{padding:2px 6px 3px}.qs-story-strip{gap:8px;min-height:58px;padding:1px 2px 2px}.qs-story-item{flex-basis:52px;min-width:52px;max-width:52px}.qs-story-ring{width:44px;height:44px}.qs-story-label{font-size:10px;max-width:52px}.qs-story-editor-card{padding:16px;border-radius:24px}.qs-story-editor-grid{grid-template-columns:1fr}.qs-story-viewer{height:min(94vh,780px)}.qs-story-overlay-text{bottom:118px}}

/* v2.16.42 - visual story editor and no-empty-strip behavior */
.qs-story-host{transition:height .18s ease, opacity .18s ease}
.qs-story-host[style*="display: none"]{display:none!important;padding:0!important;margin:0!important;height:0!important;min-height:0!important;overflow:hidden!important}
.qs-story-editor-card{width:min(780px,100%);padding:16px;border-radius:26px}
.qs-story-editor-grid{grid-template-columns:minmax(260px,360px) 1fr;align-items:start}
.qs-story-visual-editor{display:flex;flex-direction:column;gap:8px;align-items:center}
.qs-story-stage{width:min(320px,74vw);aspect-ratio:9/16;background:#020617;border-radius:26px;overflow:hidden;position:relative;touch-action:none;box-shadow:0 18px 45px rgba(15,23,42,.2);user-select:none}
.qs-story-stage-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:#cbd5e1;line-height:1.8;padding:20px;background:linear-gradient(180deg,#0f172a,#1e293b);z-index:0}
.qs-story-media-layer{position:absolute;inset:0;z-index:1;overflow:hidden;background:#020617}
.qs-story-stage-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:center center;will-change:transform;cursor:grab}.qs-story-stage-media:active{cursor:grabbing}
.qs-story-editor-layers{position:absolute;inset:0;z-index:3;pointer-events:none}
.qs-story-edit-layer{position:absolute;transform:translate(-50%,-50%);max-width:84%;text-align:center;line-height:1.35;font-weight:850;text-shadow:0 2px 13px rgba(0,0,0,.48);pointer-events:auto;cursor:grab;border:1.5px solid transparent;border-radius:14px;padding:5px 8px;white-space:pre-wrap;word-break:break-word}.qs-story-edit-layer:active{cursor:grabbing}.qs-story-edit-layer.selected{border-color:rgba(255,255,255,.9);box-shadow:0 0 0 2px rgba(37,99,235,.55)}
.qs-story-edit-layer.link,.qs-story-edit-layer.location{font-weight:800;background:rgba(17,24,39,.72);backdrop-filter:blur(8px);border-radius:999px;padding:8px 13px;text-shadow:none}
.qs-story-stage-help{font-size:11px;color:#64748b;text-align:center;line-height:1.6;max-width:320px}.qs-story-mini-tools{display:flex;gap:7px;justify-content:center}.qs-story-mini-tools button{border:0;border-radius:999px;background:#e0f2fe;color:#0369a1;padding:7px 12px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:800;cursor:pointer}
.qs-story-tool-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.qs-story-tool-row button{border:0;border-radius:12px;background:#eff6ff;color:#1d4ed8;padding:9px 8px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:800;cursor:pointer;font-size:12px}
.qs-story-layer-editor{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:10px;display:flex;flex-direction:column;gap:9px}.qs-story-layer-editor label{gap:5px!important}.qs-story-layer-inline{display:grid;grid-template-columns:1fr 58px;gap:8px;align-items:end}.qs-story-layer-inline input[type=color]{height:38px;padding:2px!important}.qs-story-layer-placeholder,.qs-story-layer-hint{font-size:12px;color:#64748b;line-height:1.7}.qs-story-delete-layer{border:0;border-radius:12px;background:#fee2e2;color:#b91c1c;padding:9px 12px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:800;cursor:pointer}
.qs-story-live-layer{position:absolute;transform:translate(-50%,-50%);z-index:4;text-align:center;font-weight:850;max-width:82%;line-height:1.35;text-shadow:0 2px 13px rgba(0,0,0,.48);word-break:break-word;white-space:pre-wrap;pointer-events:auto}.qs-story-live-layer.link,.qs-story-live-layer.location{background:rgba(17,24,39,.72);backdrop-filter:blur(8px);border-radius:999px;padding:8px 13px;text-shadow:none}.qs-story-live-layer a{color:inherit;text-decoration:none}.qs-story-visual-layer{position:absolute;inset:0;z-index:2;pointer-events:none}
@media (max-width:700px){.qs-story-editor{padding:8px}.qs-story-editor-card{width:100%;max-height:96vh;border-radius:22px;padding:12px}.qs-story-editor-grid{grid-template-columns:1fr;gap:12px}.qs-story-stage{width:min(290px,78vw)}.qs-story-tool-row{grid-template-columns:repeat(3,1fr)}.qs-story-editor-fields{gap:8px}.qs-story-editor-actions button{padding:10px 12px}}

/* v2.16.43 - exact visual output, native-like viewer controls */
.qs-story-media-wrap,.qs-story-viewer{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}
.qs-story-media-wrap img{pointer-events:none;-webkit-user-drag:none;user-drag:none}
.qs-story-media-canvas{width:100%;height:100%;display:block;background:#020617;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.qs-story-ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle;flex:0 0 18px}.qs-story-ico circle{fill:none;stroke:currentColor}
.qs-story-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1}.qs-story-action-btn.like.active .qs-story-ico{fill:#ef4444;stroke:#ef4444}.qs-story-stat-line{display:flex;align-items:center;gap:6px;color:#fff}.qs-story-pending-note{margin-inline-start:8px;color:#fbbf24;font-size:11px}.qs-story-close{display:flex;align-items:center;justify-content:center;width:38px;height:38px}.qs-story-close .qs-story-ico{width:26px;height:26px;stroke-width:2.2}
.qs-story-ring.is-uploading{animation:qsStorySpin 1s linear infinite}.qs-story-ring.is-uploading:after{content:'';position:absolute;inset:-3px;border-radius:50%;border:2px solid rgba(37,99,235,.22);border-top-color:#2563eb}.qs-story-fly-ghost{position:fixed;z-index:30000;background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);border-radius:28px;transition:transform .68s cubic-bezier(.2,.85,.2,1),opacity .68s ease,border-radius .68s ease;pointer-events:none;box-shadow:0 25px 60px rgba(79,70,229,.28)}@keyframes qsStorySpin{to{transform:rotate(360deg)}}
.qs-story-layer-editor select{border:1px solid #cbd5e1;border-radius:12px;padding:9px 10px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;background:#fff;outline:0}.qs-story-edit-layer,.qs-story-live-layer{font-family:IRANSans, Vazirmatn, Tahoma, Arial, sans-serif}.qs-story-edit-layer.link,.qs-story-edit-layer.location,.qs-story-live-layer.link,.qs-story-live-layer.location{background:rgba(17,24,39,.78);border:1px solid rgba(255,255,255,.12)}
.qs-story-reply-box .qs-story-action-btn{padding:8px 10px;border-radius:14px}.qs-story-reply-box .qs-story-ico{width:17px;height:17px}.qs-story-nav{cursor:pointer}.qs-story-viewer:after{content:'';position:absolute;left:50%;bottom:5px;width:44px;height:4px;border-radius:999px;background:rgba(255,255,255,.22);transform:translateX(-50%);z-index:5;display:none}@media(max-width:700px){.qs-story-viewer:after{display:block}.qs-story-viewer{border-radius:26px}.qs-story-stats{font-size:11px}.qs-story-action-btn span{font-size:11px}}

/* v2.16.45 - exact story viewer readability and loading */
.qs-story-viewer::before,.qs-story-viewer::after{content:'';position:absolute;left:0;right:0;pointer-events:none;z-index:1}
.qs-story-viewer::before{top:0;height:130px;background:linear-gradient(180deg,rgba(0,0,0,.62),rgba(0,0,0,.28),rgba(0,0,0,0))}
.qs-story-viewer::after{bottom:0;height:170px;background:linear-gradient(0deg,rgba(0,0,0,.68),rgba(0,0,0,.28),rgba(0,0,0,0));transform:none;width:auto;border-radius:0;display:block}
.qs-story-bars,.qs-story-header,.qs-story-bottom{z-index:6}.qs-story-nav{z-index:5}.qs-story-media-wrap{z-index:0}.qs-story-visual-layer,.qs-story-overlay-text{z-index:4}
.qs-story-ring.is-loading{animation:qsStorySpin 1s linear infinite}.qs-story-ring.is-loading:after{content:'';position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(236,72,153,.18);border-top-color:#ec4899;border-left-color:#8b5cf6}
.qs-story-item.is-loading .qs-story-label{color:#8b5cf6;font-weight:800}.qs-story-viewer .qs-story-action-row:empty{display:none}
.qs-story-media-canvas{object-fit:cover}.qs-story-edit-layer,.qs-story-stage-media{will-change:transform}.qs-story-stage{background:#020617!important}
@media(max-width:700px){.qs-story-viewer::before{height:118px}.qs-story-viewer::after{height:150px}}

/* Malavan story preview modal */
.su-story-modal{position:fixed;inset:0;background:rgba(2,6,23,.72);display:none;align-items:center;justify-content:center;z-index:20000;padding:18px}.su-story-modal.open{display:flex}.su-story-view{width:min(430px,94vw);aspect-ratio:9/16;background:#020617;border-radius:30px;overflow:hidden;position:relative;box-shadow:0 35px 80px rgba(2,6,23,.45)}.su-story-view:before,.su-story-view:after{content:'';position:absolute;left:0;right:0;pointer-events:none;z-index:2}.su-story-view:before{top:0;height:110px;background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,0))}.su-story-view:after{bottom:0;height:145px;background:linear-gradient(0deg,rgba(0,0,0,.65),rgba(0,0,0,0))}.su-story-view-media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#020617}.su-story-view-media img,.su-story-view-media video{width:100%;height:100%;object-fit:cover}.su-story-view-close{position:absolute;top:14px;left:14px;z-index:5;border:0;background:rgba(0,0,0,.22);color:#fff;width:38px;height:38px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}.su-story-view-title{position:absolute;right:16px;top:18px;z-index:5;color:#fff;font-weight:800}.su-story-view-meta{position:absolute;right:16px;left:16px;bottom:16px;z-index:5;color:#fff;font-size:12px;line-height:1.8}.su-preview{cursor:pointer;transition:transform .15s ease}.su-preview:hover{transform:scale(1.03)}

/* v2.16.47 - professional visual editor layers, typography and native viewer gesture */
.qs-story-editor-card{width:min(980px,100%);max-height:calc(100dvh - 20px);overflow:auto;padding:12px;border-radius:24px}
.qs-story-editor-head{margin-bottom:10px}.qs-story-editor-head h3{font-size:16px}
.qs-story-editor-grid{grid-template-columns:minmax(250px,340px) minmax(280px,1fr);gap:12px}
.qs-story-visual-editor{gap:7px}.qs-story-stage{overflow:hidden;background:#020617;border-radius:24px}
.qs-story-stage-media{object-fit:contain!important;inset:0;width:100%;height:100%;transform-origin:center center;background:#020617}
.qs-story-edit-layer{max-width:none!important;width:max-content!important;min-width:0!important;white-space:pre!important;word-break:normal!important;overflow:visible!important;box-sizing:border-box;line-height:1.32;border:1.5px solid transparent;backdrop-filter:none}
.qs-story-edit-layer span{display:inline-block;white-space:pre!important;word-break:normal!important;max-width:none!important;min-width:0!important}
.qs-story-edit-layer.selected{border-color:rgba(255,255,255,.92);box-shadow:0 0 0 2px rgba(37,99,235,.7),0 10px 26px rgba(0,0,0,.2)}
.qs-story-edit-layer.link,.qs-story-edit-layer.location{border-radius:999px;background:rgba(17,24,39,.76)}
.qs-story-layer-editor{max-height:52vh;overflow:auto;background:#f8fafc;border-radius:18px;padding:9px;gap:8px}
.qs-story-prop-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:10px;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.qs-story-prop-title{font-weight:900;color:#0f172a;font-size:13px;margin-bottom:2px}
.qs-story-layer-manager{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:7px}
.qs-story-layer-manager-title{font-weight:900;color:#334155;font-size:12px}
.qs-story-layer-list{display:flex;flex-direction:column;gap:6px;max-height:128px;overflow:auto}
.qs-story-layer-row{border:1px solid #e2e8f0;background:#f8fafc;color:#334155;border-radius:12px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-size:12px;cursor:pointer;text-align:right}
.qs-story-layer-row.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;font-weight:800}.qs-story-layer-row small{color:#64748b;font-size:10px;white-space:nowrap}.qs-story-layer-empty{font-size:12px;color:#94a3b8;line-height:1.7}
.qs-story-layer-editor textarea{border:1px solid #cbd5e1;border-radius:12px;padding:9px 10px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;min-height:54px;resize:vertical;outline:0}
.qs-story-layer-editor input[type=range]{accent-color:#2563eb}.qs-story-layer-editor input[type=color]{height:36px;border-radius:10px;overflow:hidden}
.qs-story-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-weight:700;color:#334155}.qs-story-toggle input{width:18px;height:18px;accent-color:#2563eb}
.qs-story-layer-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.qs-story-layer-actions button{border:0;border-radius:12px;background:#e0f2fe;color:#0369a1;padding:9px 8px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-size:12px;font-weight:900;cursor:pointer}.qs-story-layer-actions .danger{background:#fee2e2;color:#b91c1c}
.qs-story-tool-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.qs-story-tool-row button{padding:8px 6px;border-radius:11px}
.qs-story-editor-fields{gap:8px}.qs-story-editor-fields label{font-size:12px}.qs-story-editor-fields input,.qs-story-editor-fields textarea,.qs-story-layer-editor select{border-radius:12px;padding:9px 10px}
.qs-story-mini-tools button{padding:6px 11px;border-radius:12px}.qs-story-stage-help{font-size:10px;line-height:1.5}
.qs-story-viewer{transition:transform .28s cubic-bezier(.2,.85,.2,1), opacity .28s ease;will-change:transform,opacity}.qs-story-viewer.is-dragging{transition:none!important}
@media(max-width:700px){
  .qs-story-modal,.qs-story-editor{padding:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);align-items:stretch;justify-content:center}
  .qs-story-viewer{width:100vw!important;height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;max-height:none!important;border-radius:0!important;margin:0;box-shadow:none}
  .qs-story-editor-card{width:100vw;max-height:100dvh;border-radius:0;padding:10px 10px calc(10px + env(safe-area-inset-bottom));box-shadow:none}
  .qs-story-editor-grid{grid-template-columns:1fr;gap:10px}.qs-story-stage{width:min(290px,82vw);border-radius:22px}.qs-story-layer-editor{max-height:38vh}.qs-story-prop-card{padding:8px}.qs-story-layer-actions{grid-template-columns:1fr 1fr 1fr}.qs-story-layer-actions button{font-size:11px;padding:8px 5px}
}

/* v2.16.49 - story phase 2/3 compact editor, safe hotspots, non-rotating avatar ring */
.qs-story-ring{animation:none!important;transform:none!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.qs-story-ring::before{content:'';position:absolute;inset:-3px;border-radius:50%;background:linear-gradient(135deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4);z-index:0;pointer-events:none}
.qs-story-ring.is-seen::before{background:linear-gradient(135deg,#cbd5e1,#94a3b8)!important}
.qs-story-ring.is-pending::before{background:linear-gradient(135deg,#f59e0b,#f97316)!important}
.qs-story-ring.is-empty-own::before{background:linear-gradient(135deg,#cbd5e1,#e2e8f0)!important}
.qs-story-avatar{position:absolute!important;inset:2px!important;width:auto!important;height:auto!important;z-index:1;border:2px solid #fff;box-sizing:border-box}
.qs-story-ring.is-uploading,.qs-story-ring.is-loading{animation:none!important}
.qs-story-ring.is-uploading:after,.qs-story-ring.is-loading:after{content:''!important;position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(37,99,235,.18);border-top-color:#2563eb;border-left-color:#ec4899;animation:qsStoryBorderSpin .95s linear infinite;z-index:2;pointer-events:none;background:transparent!important}
@keyframes qsStoryBorderSpin{to{transform:rotate(360deg)}}
.qs-story-badge{display:none!important}
.qs-story-plus{z-index:3}

.qs-story-editor-card{width:min(900px,100%);max-height:calc(100dvh - 18px);padding:10px;border-radius:22px;overflow:hidden;display:flex;flex-direction:column}
.qs-story-editor-head{margin-bottom:8px;flex:0 0 auto}.qs-story-editor-head h3{font-size:15px}.qs-story-editor-close{font-size:26px}
.qs-story-editor-card form{min-height:0;overflow:auto;padding-inline:1px}.qs-story-editor-grid{grid-template-columns:minmax(240px,320px) minmax(260px,1fr);gap:10px;align-items:start}.qs-story-visual-editor{display:flex;flex-direction:column;gap:7px;align-items:center}.qs-story-stage{width:min(300px,72vw);border-radius:22px}.qs-story-stage-help{display:none!important}
.qs-story-editor-fields{gap:7px;min-height:0}.qs-story-tool-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}.qs-story-tool-row button{min-height:50px;padding:7px 4px!important;border-radius:13px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10.5px!important;line-height:1.2}.qs-story-tool-row .qs-story-ico{width:19px;height:19px}
.qs-story-layer-editor{max-height:calc(100dvh - 220px);overflow:auto;padding:7px;border-radius:15px;background:#f8fafc;display:flex;flex-direction:column;gap:7px}.qs-story-layer-manager,.qs-story-prop-card{border-radius:14px;padding:7px}.qs-story-layer-list{max-height:112px;overflow:auto}.qs-story-layer-row{min-height:34px;padding:6px 8px;border-radius:10px;font-size:11px}.qs-story-layer-row small{font-size:9px}.qs-story-prop-title{font-size:12px}.qs-story-layer-hint{font-size:10px;color:#64748b;line-height:1.6;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:5px 7px}.qs-story-prop-card label{font-size:11px!important;gap:4px!important}.qs-story-layer-editor textarea{min-height:42px;max-height:82px;padding:7px 8px;font-size:11px}.qs-story-layer-editor input,.qs-story-layer-editor select{min-height:34px!important;padding:7px 8px!important;font-size:11px!important;border-radius:10px!important}.qs-story-layer-inline{display:grid;grid-template-columns:1fr 1fr;gap:7px}.qs-story-layer-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.qs-story-layer-actions button{padding:7px 5px!important;font-size:10.5px!important;border-radius:10px!important}.qs-story-mini-tools{gap:5px}.qs-story-mini-tools button{font-size:11px;padding:5px 9px!important}.qs-story-editor-actions{margin-top:3px}.qs-story-editor-actions button{min-height:38px;padding:8px 12px!important;border-radius:12px!important;font-size:11.5px!important}.qs-story-upload-progress{height:6px}

.qs-story-edit-layer{max-width:86%!important;width:auto!important;min-width:24px!important;white-space:pre-wrap!important;word-break:break-word!important;overflow:visible!important;box-sizing:border-box;line-height:1.28;user-select:text;-webkit-user-select:text}.qs-story-edit-layer span[contenteditable]{outline:0;cursor:text;display:inline-block;min-width:10px}.qs-story-edit-layer.selected span[contenteditable]{caret-color:#fff}.qs-story-layer-x{position:absolute;top:-12px;left:-12px;width:23px;height:23px;border:0;border-radius:50%;background:#ef4444!important;color:#fff!important;display:flex!important;align-items:center;justify-content:center;font-size:16px!important;line-height:1;font-weight:900;box-shadow:0 6px 14px rgba(239,68,68,.28);z-index:8;cursor:pointer;padding:0!important}.qs-story-edit-layer:not(.selected) .qs-story-layer-x{opacity:0;pointer-events:none}.qs-story-edit-layer.selected .qs-story-layer-x{opacity:1;pointer-events:auto}

.qs-story-visual-layer{z-index:7!important;pointer-events:none}.qs-story-live-layer{pointer-events:auto!important;border:0;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;max-width:84%;box-sizing:border-box;white-space:pre-wrap;word-break:break-word}.qs-story-live-layer.link,.qs-story-live-layer.ship{cursor:pointer;text-decoration:none}.qs-story-live-layer.is-hotspot{min-width:84px;min-height:42px;opacity:.01;background:rgba(255,255,255,.01)!important;text-shadow:none!important;border:0!important}.qs-story-live-layer.is-hotspot:focus-visible{opacity:1;color:#fff!important;background:rgba(37,99,235,.55)!important;outline:2px solid #fff}.qs-story-live-layer.ship{color:#fff;border:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.qs-story-action-row{gap:7px}.qs-story-reply-box{display:flex;flex:1;flex-wrap:wrap;gap:6px;padding:7px 8px;border-radius:17px}.qs-story-reactions{flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:1px 2px}.qs-story-reactions button{border:0;background:rgba(255,255,255,.12);border-radius:999px;width:34px;height:34px;font-size:23px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s ease}.qs-story-reactions button:active{transform:scale(1.22)}.qs-story-reply-box input{min-width:0;font-size:12px}.qs-story-heart-burst{position:absolute;inset:0;z-index:9;pointer-events:none;overflow:hidden}.qs-story-heart-burst b{--x:0px;--r:0deg;--s:1;position:absolute;left:50%;bottom:88px;color:#ef4444;font-size:24px;line-height:1;text-shadow:0 3px 12px rgba(0,0,0,.25);animation:qsHeartFloat 1.05s ease-out forwards;transform:translateX(-50%) scale(var(--s)) rotate(var(--r))}@keyframes qsHeartFloat{0%{opacity:0;transform:translate(-50%,0) scale(.4) rotate(0deg)}12%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),-230px) scale(var(--s)) rotate(var(--r))}}
.qs-story-viewer .qs-story-action-btn.like.active .qs-story-ico{fill:#ef4444;stroke:#ef4444}.qs-story-viewer .qs-story-action-btn{position:relative;z-index:8}

@media(max-width:700px){.qs-story-editor-card{width:100vw;max-height:100dvh;border-radius:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:none}.qs-story-editor-card form{overflow:auto}.qs-story-editor-grid{grid-template-columns:1fr;gap:8px}.qs-story-stage{width:min(282px,80vw);border-radius:20px}.qs-story-tool-row button{min-height:46px;font-size:10px!important}.qs-story-layer-editor{max-height:34vh}.qs-story-layer-inline{grid-template-columns:1fr 1fr}.qs-story-reactions button{width:31px;height:31px;font-size:21px}.qs-story-bottom{bottom:calc(10px + env(safe-area-inset-bottom));right:10px;left:10px}.qs-story-viewer::after{display:none!important}}

/* v2.16.50 - delicate Instagram-like ring, editable text layers, text-only backgrounds, mobile reach fixes */
.qs-story-ring{width:48px!important;height:48px!important;padding:0!important;overflow:visible!important;background:transparent!important;box-sizing:border-box!important}
.qs-story-ring::before{inset:-1.5px!important;border-radius:50%!important;box-shadow:none!important}
.qs-story-avatar{inset:2px!important;border:1.5px solid #fff!important;box-shadow:0 1px 4px rgba(15,23,42,.08)!important}
.qs-story-ring.is-uploading:after,.qs-story-ring.is-loading:after{inset:-3px!important;border-width:1.5px!important}
.qs-story-item{overflow:visible!important}
.qs-story-strip{overflow-y:visible!important;padding-top:4px!important;padding-bottom:5px!important}

.qs-story-stage{background:linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed)}
.qs-story-media-layer{background:transparent!important;pointer-events:none}
.qs-story-stage-media{pointer-events:auto}
.qs-story-stage-empty{font-size:12px;font-weight:800;color:rgba(255,255,255,.85);text-shadow:0 2px 12px rgba(0,0,0,.25)}
.qs-story-bg-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:5px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}
.qs-story-bg-picker button{border:0;background:transparent;border-radius:999px;padding:2px;display:flex;align-items:center;justify-content:center;cursor:pointer;min-height:30px}
.qs-story-bg-picker button span{width:25px;height:25px;border-radius:50%;display:block;border:1px solid rgba(15,23,42,.12);box-shadow:0 3px 8px rgba(15,23,42,.10)}
.qs-story-bg-picker button.active{background:#dbeafe;box-shadow:inset 0 0 0 1px #60a5fa}

.qs-story-edit-layer{touch-action:none!important;isolation:isolate!important;outline:1px dashed rgba(255,255,255,.28);outline-offset:3px;background-clip:padding-box!important}
.qs-story-edit-layer span[contenteditable]{display:inline-block!important;min-width:18px!important;max-width:100%;cursor:text!important;user-select:text!important;-webkit-user-select:text!important;caret-color:#fff!important;touch-action:manipulation!important;position:relative;z-index:2}
.qs-story-edit-layer span[contenteditable]:focus{outline:0;background:rgba(255,255,255,.08);border-radius:8px}
.qs-story-layer-move{position:absolute;right:-13px;bottom:-13px;width:24px;height:24px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.24);z-index:9;cursor:grab;opacity:0;pointer-events:none;user-select:none;-webkit-user-select:none}
.qs-story-edit-layer.selected .qs-story-layer-move{opacity:1;pointer-events:auto}
.qs-story-layer-move:active{cursor:grabbing;transform:scale(.96)}
.qs-story-edit-layer.selected{outline:1.5px solid rgba(255,255,255,.92)!important;outline-offset:4px!important}
.qs-story-edit-layer.selected span[contenteditable]{text-shadow:0 2px 13px rgba(0,0,0,.45)}

.qs-story-bottom{bottom:22px!important}
.qs-story-reply-box input{font-size:16px!important;line-height:1.4!important}
@media(max-width:700px){
  .qs-story-ring{width:44px!important;height:44px!important}.qs-story-ring::before{inset:-1.3px!important}.qs-story-avatar{inset:2px!important;border-width:1.4px!important}
  .qs-story-bottom{bottom:calc(28px + env(safe-area-inset-bottom))!important;right:12px!important;left:12px!important}
  .qs-story-action-row{gap:7px!important}.qs-story-action-btn{padding:9px 11px!important;border-radius:15px!important}.qs-story-reply-box{padding:8px 9px!important;border-radius:18px!important}
  .qs-story-bg-picker{grid-template-columns:repeat(7,1fr);gap:4px;padding:4px}.qs-story-bg-picker button{min-height:28px}.qs-story-bg-picker button span{width:22px;height:22px}
  .qs-story-layer-move{right:-12px;bottom:-12px;width:23px;height:23px;font-size:14px}
}
.qs-story-media-layer{pointer-events:auto!important}

/* v2.16.51 story refinements */
.qs-story-ring{width:46px!important;height:46px!important;padding:0!important;overflow:visible!important;background:transparent!important;box-sizing:border-box!important;box-shadow:none!important}
.qs-story-ring::before{content:''!important;position:absolute!important;inset:0!important;border-radius:50%!important;padding:1.25px!important;background:linear-gradient(135deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4)!important;box-shadow:none!important;pointer-events:none!important;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;-webkit-mask-composite:xor!important;mask-composite:exclude!important;z-index:1!important}
.qs-story-ring.is-seen::before{background:linear-gradient(135deg,#cbd5e1,#94a3b8)!important}.qs-story-ring.is-pending::before{background:linear-gradient(135deg,#f59e0b,#f97316)!important}.qs-story-ring.is-empty-own::before{background:linear-gradient(135deg,#cbd5e1,#e2e8f0)!important}
.qs-story-avatar{position:absolute!important;inset:3.2px!important;border-radius:50%!important;overflow:hidden!important;z-index:0!important;border:1px solid #fff!important;background:#fff!important}.qs-story-avatar img{width:100%;height:100%;object-fit:cover;display:block}.qs-story-plus{z-index:3!important}
.qs-story-ring.is-uploading:after,.qs-story-ring.is-loading:after{inset:1px!important;border-width:1.2px!important;z-index:2!important}
.qs-story-strip{overflow-y:visible!important;padding-top:3px!important;padding-bottom:4px!important}.qs-story-item{overflow:visible!important}
.qs-story-stage{background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important}.qs-story-stage-empty{background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important}.qs-story-media-layer:empty{background:transparent!important}
.qs-story-tool-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.qs-story-tool-row button{min-height:48px!important;padding:6px 3px!important;font-size:10px!important}.qs-story-tool-row .qs-story-ico{width:18px!important;height:18px!important}
.qs-story-edit-layer{cursor:default!important}.qs-story-edit-layer span[contenteditable]{cursor:text!important;touch-action:auto!important;-webkit-user-select:text!important;user-select:text!important;-webkit-user-modify:read-write-plaintext-only;min-width:28px!important;padding:2px 4px;border-radius:8px}.qs-story-edit-layer span[contenteditable]:focus{background:rgba(255,255,255,.13)!important;outline:0!important}.qs-story-layer-move{cursor:grab!important}.qs-story-layer-move:active{cursor:grabbing!important}
.qs-story-edit-layer.ship,.qs-story-live-layer.ship{border-radius:999px;background:rgba(14,116,144,.80)!important;backdrop-filter:blur(8px);padding:8px 13px;text-shadow:none!important;font-weight:850!important}
.qs-story-editor-fields{gap:8px!important}.qs-story-bg-picker{order:2}.qs-story-layer-editor{order:3}.qs-story-upload-progress{order:4}.qs-story-editor-actions{order:5}
@media(max-width:700px){.qs-story-ring{width:43px!important;height:43px!important}.qs-story-ring::before{padding:1.1px!important}.qs-story-avatar{inset:3px!important}.qs-story-tool-row{grid-template-columns:repeat(5,1fr)!important;gap:4px!important}.qs-story-tool-row button{min-height:43px!important;font-size:9.5px!important}.qs-story-tool-row .qs-story-ico{width:17px!important;height:17px!important}.qs-story-bottom{bottom:calc(34px + env(safe-area-inset-bottom))!important}}

/* v2.16.52 - mobile editor rewrite, thin progress rings, background uploads */
.qs-story-ico{fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;display:inline-block!important;vertical-align:middle!important}.qs-story-ico circle,.qs-story-ico rect,.qs-story-ico path{vector-effect:non-scaling-stroke}
.qs-story-ring{width:46px!important;height:46px!important;padding:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;animation:none!important}.qs-story-ring::before{content:''!important;position:absolute!important;inset:0!important;border-radius:50%!important;padding:1.1px!important;background:linear-gradient(135deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4)!important;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;-webkit-mask-composite:xor!important;mask-composite:exclude!important;pointer-events:none!important}.qs-story-ring.is-seen::before{background:linear-gradient(135deg,#d1d5db,#94a3b8)!important}.qs-story-ring.is-empty-own::before{background:linear-gradient(135deg,#dbeafe,#bfdbfe)!important}.qs-story-ring.is-pending::before{background:linear-gradient(135deg,#f59e0b,#f97316)!important}.qs-story-avatar{position:absolute!important;inset:3px!important;border-radius:50%!important;overflow:hidden!important;border:1px solid #fff!important;background:#fff!important;z-index:1!important}.qs-story-plus{z-index:4!important}.qs-story-ring.is-uploading:after,.qs-story-ring.is-loading:after{display:none!important}.qs-story-upload-ring{display:none;position:absolute;inset:-1px;border-radius:50%;background:conic-gradient(#2563eb var(--qs-upload-progress,0%),rgba(37,99,235,.14) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.1px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.1px));z-index:3;pointer-events:none}.qs-story-ring.is-uploading .qs-story-upload-ring,.qs-story-ring.is-loading .qs-story-upload-ring{display:block}.qs-story-ring.is-loading .qs-story-upload-ring{background:conic-gradient(#ec4899 0 22%,rgba(236,72,153,.14) 22%);animation:qsStoryUploadPulse 1s linear infinite}@keyframes qsStoryUploadPulse{to{transform:rotate(360deg)}}
.qs-story-header-actions{display:flex;align-items:center;gap:6px}.qs-story-mute,.qs-story-close{border:0!important;background:rgba(255,255,255,.12)!important;color:#fff!important;width:36px!important;height:36px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;backdrop-filter:blur(8px);padding:0!important}.qs-story-mute .qs-story-ico,.qs-story-close .qs-story-ico{width:20px!important;height:20px!important}.qs-story-close{background:transparent!important}
.qs-story-editor{padding:8px!important}.qs-story-editor-card{width:min(940px,100%)!important;max-height:calc(100dvh - 16px)!important;overflow:hidden!important;border-radius:22px!important;padding:10px!important}.qs-story-editor-card form{overflow:hidden!important}.qs-story-editor-head{margin-bottom:6px!important}.qs-story-editor-head h3{font-size:14px!important}.qs-story-editor-close{width:32px!important;height:32px!important;border-radius:999px!important;background:#f1f5f9!important;color:#0f172a!important;font-size:0!important;display:flex!important;align-items:center!important;justify-content:center!important}.qs-story-editor-close .qs-story-ico{width:18px!important;height:18px!important}.qs-story-editor-grid{grid-template-columns:minmax(250px,330px) minmax(0,1fr)!important;gap:8px!important}.qs-story-visual-editor{gap:5px!important}.qs-story-stage{width:min(320px,74vw)!important;max-height:calc(100dvh - 120px)!important;background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important;border-radius:20px!important;touch-action:none!important}.qs-story-stage-empty{background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important;font-size:11px!important}.qs-story-media-layer{background:transparent!important}.qs-story-stage-media{object-fit:contain!important;background:transparent!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important}.qs-story-editor-fields{gap:5px!important;min-width:0!important;overflow:hidden!important}.qs-story-tool-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}.qs-story-tool-row button{min-height:38px!important;padding:4px 2px!important;border-radius:10px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#1e293b!important;font-size:9.5px!important;line-height:1.1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important}.qs-story-tool-row button .qs-story-ico{width:16px!important;height:16px!important}.qs-story-bg-picker{display:grid!important;grid-template-columns:repeat(7,1fr)!important;gap:4px!important}.qs-story-bg-picker button{height:24px!important;min-height:24px!important;padding:2px!important;border-radius:8px!important}.qs-story-bg-picker span{border-radius:6px!important}.qs-story-layer-editor{max-height:calc(100dvh - 196px)!important;overflow:auto!important;padding:6px!important;gap:5px!important;border-radius:12px!important;background:#f8fafc!important}.qs-story-layer-manager-title,.qs-story-prop-title{font-size:11px!important;margin-bottom:4px!important}.qs-story-layer-list{max-height:86px!important;overflow:auto!important;display:flex!important;flex-direction:column!important;gap:3px!important}.qs-story-layer-row{min-height:28px!important;padding:4px 6px!important;border-radius:8px!important;font-size:10.5px!important;display:grid!important;grid-template-columns:18px 1fr auto!important;gap:5px!important;align-items:center!important}.qs-story-layer-row .qs-ico,.qs-layer-row-grip .qs-story-ico{width:14px!important;height:14px!important}.qs-story-layer-row.dragging{opacity:.55!important}.qs-story-prop-card{gap:5px!important}.qs-story-prop-card label,.qs-story-layer-editor label{font-size:10.5px!important;gap:3px!important}.qs-story-layer-editor textarea{min-height:36px!important;max-height:60px!important;padding:6px 7px!important;font-size:11px!important;border-radius:9px!important}.qs-story-layer-editor input,.qs-story-layer-editor select{min-height:30px!important;padding:5px 7px!important;font-size:10.5px!important;border-radius:9px!important}.qs-story-layer-inline{grid-template-columns:1fr 1fr!important;gap:5px!important}.qs-story-layer-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}.qs-story-layer-actions button{min-height:30px!important;padding:4px!important;border-radius:9px!important;font-size:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important}.qs-story-layer-actions .qs-story-ico{width:14px!important;height:14px!important}.qs-story-layer-hint,.qs-story-layer-placeholder{font-size:10px!important;line-height:1.45!important;padding:4px 6px!important}.qs-story-mini-tools button{min-height:28px!important;padding:4px 8px!important;font-size:10.5px!important}.qs-story-editor-actions{gap:5px!important;margin-top:4px!important}.qs-story-editor-actions button{min-height:34px!important;border-radius:10px!important;padding:6px 11px!important;font-size:11px!important}.qs-story-upload-progress{display:none!important}
.qs-story-editor-layers{pointer-events:none!important}.qs-story-edit-layer{pointer-events:auto!important;touch-action:none!important;cursor:grab!important;max-width:88%!important;width:auto!important;min-width:28px!important;white-space:pre-wrap!important;word-break:break-word!important;line-height:1.24!important;box-sizing:border-box!important;padding:4px 7px!important;border-radius:12px!important;user-select:none!important;-webkit-user-select:none!important}.qs-story-edit-layer.selected{border-color:rgba(255,255,255,.96)!important;box-shadow:0 0 0 2px rgba(37,99,235,.75),0 10px 26px rgba(0,0,0,.22)!important}.qs-story-edit-layer span[contenteditable]{display:inline-block!important;min-width:30px!important;max-width:min(76vw,270px)!important;outline:0!important;cursor:text!important;touch-action:manipulation!important;user-select:text!important;-webkit-user-select:text!important;-webkit-user-modify:read-write-plaintext-only!important;padding:2px 3px!important;border-radius:8px!important}.qs-story-edit-layer span[contenteditable]:focus{background:rgba(255,255,255,.14)!important;caret-color:#fff!important}.qs-story-layer-x,.qs-story-layer-move{position:absolute!important;width:24px!important;height:24px!important;border:0!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;z-index:20!important;opacity:0!important;pointer-events:none!important}.qs-story-layer-x{top:-13px!important;left:-13px!important;background:#ef4444!important;color:#fff!important}.qs-story-layer-move{right:-13px!important;bottom:-13px!important;background:rgba(15,23,42,.82)!important;color:#fff!important;cursor:grab!important;touch-action:none!important}.qs-story-layer-x .qs-story-ico,.qs-story-layer-move .qs-story-ico{width:14px!important;height:14px!important}.qs-story-edit-layer.selected .qs-story-layer-x,.qs-story-edit-layer.selected .qs-story-layer-move{opacity:1!important;pointer-events:auto!important}.qs-story-edit-layer.link,.qs-story-edit-layer.location,.qs-story-edit-layer.ship{border-radius:999px!important;background:rgba(17,24,39,.76)!important;padding:6px 10px!important}.qs-story-live-layer.ship{background:rgba(17,24,39,.76)!important;border-radius:999px!important;padding:8px 13px!important;text-shadow:none!important}
.qs-story-bottom{bottom:calc(24px + env(safe-area-inset-bottom))!important}.qs-story-reply-box{padding:7px 8px!important}.qs-story-reactions button{font-family:system-ui,Apple Color Emoji,Segoe UI Emoji,sans-serif!important}.qs-story-media-wrap video{background:#020617!important;object-fit:contain!important}
@media(max-width:700px){.qs-story-strip{min-height:58px!important;gap:7px!important;padding:3px 2px 5px!important}.qs-story-item{flex-basis:52px!important;min-width:52px!important;max-width:52px!important}.qs-story-ring{width:43px!important;height:43px!important}.qs-story-avatar{inset:2.8px!important}.qs-story-label{font-size:9.8px!important;max-width:52px!important}.qs-story-status{font-size:8.8px!important}.qs-story-editor-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:7px!important}.qs-story-editor-grid{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important;gap:6px!important}.qs-story-stage{width:min(284px,82vw)!important;max-height:48dvh!important;border-radius:18px!important}.qs-story-tool-row{gap:3px!important}.qs-story-tool-row button{min-height:36px!important;font-size:9px!important}.qs-story-bg-picker{gap:3px!important}.qs-story-bg-picker button{height:22px!important}.qs-story-layer-editor{max-height:31dvh!important}.qs-story-bottom{bottom:calc(38px + env(safe-area-inset-bottom))!important;right:10px!important;left:10px!important}.qs-story-action-row{gap:6px!important}.qs-story-action-btn{padding:8px 10px!important;border-radius:14px!important}.qs-story-reply-box input{font-size:12px!important}.qs-story-header{top:22px!important;right:12px!important;left:12px!important}.qs-story-bars{top:10px!important;left:10px!important;right:10px!important}.qs-story-mute,.qs-story-close{width:34px!important;height:34px!important}.qs-story-edit-layer span[contenteditable]{max-width:72vw!important}}


/* v2.16.53 - urgent mobile editor recovery and stable story progress */
.qs-story-stage{aspect-ratio:9/16!important;}
.qs-story-stage-media{width:100%!important;height:100%!important;object-fit:contain!important;}
.qs-story-ring.is-uploading .qs-story-upload-ring{display:block!important;animation:qsStoryUploadSpin .78s linear infinite!important;background:conic-gradient(#2563eb var(--qs-upload-progress,0%),rgba(37,99,235,.16) 0)!important;}
@keyframes qsStoryUploadSpin{to{transform:rotate(360deg)}}
.qs-story-ring.is-loading .qs-story-upload-ring{animation:qsStoryUploadSpin .78s linear infinite!important;}
.qs-story-status{font-size:8.8px!important;line-height:1.2!important;white-space:nowrap!important;}
@media(max-width:700px){
  .qs-story-editor.open{display:flex!important;align-items:stretch!important;justify-content:center!important;padding:0!important;padding-top:env(safe-area-inset-top)!important;background:rgba(2,6,23,.82)!important;}
  .qs-story-editor-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:6px 8px calc(8px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important;}
  .qs-story-editor-head{flex:0 0 auto!important;margin-bottom:5px!important;min-height:34px!important;}
  .qs-story-editor-card form{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
  .qs-story-editor-grid{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important;gap:5px!important;overflow:hidden!important;}
  .qs-story-visual-editor{flex:0 0 auto!important;gap:4px!important;min-height:0!important;align-items:center!important;overflow:visible!important;}
  .qs-story-stage{width:min(235px,64vw)!important;max-height:38dvh!important;aspect-ratio:9/16!important;border-radius:17px!important;flex:0 0 auto!important;}
  .qs-story-mini-tools{min-height:24px!important;gap:4px!important;margin:0!important;}
  .qs-story-mini-tools button{min-height:24px!important;padding:2px 8px!important;border-radius:8px!important;font-size:10px!important;}
  .qs-story-editor-fields{min-height:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;overflow:hidden!important;}
  .qs-story-tool-row{flex:0 0 auto!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;}
  .qs-story-tool-row button{min-height:34px!important;height:34px!important;padding:2px 1px!important;border-radius:9px!important;font-size:8.8px!important;line-height:1!important;gap:1px!important;}
  .qs-story-tool-row button .qs-story-ico{width:14px!important;height:14px!important;}
  .qs-story-bg-picker{flex:0 0 auto!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important;padding:0!important;margin:0!important;max-height:22px!important;overflow:hidden!important;}
  .qs-story-bg-picker button{height:20px!important;min-height:20px!important;padding:1px!important;border-radius:7px!important;}
  .qs-story-bg-picker span{height:16px!important;min-height:16px!important;border-radius:5px!important;display:block!important;}
  .qs-story-layer-editor{flex:1 1 auto!important;min-height:76px!important;max-height:none!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:5px!important;gap:4px!important;border-radius:11px!important;}
  .qs-story-layer-list{max-height:64px!important;}
  .qs-story-layer-row{min-height:25px!important;padding:3px 5px!important;font-size:9.5px!important;}
  .qs-story-prop-card{padding:5px!important;gap:4px!important;}
  .qs-story-prop-card label,.qs-story-layer-editor label{font-size:9.5px!important;gap:2px!important;}
  .qs-story-layer-editor textarea{min-height:30px!important;max-height:46px!important;padding:4px 6px!important;font-size:10px!important;}
  .qs-story-layer-editor input,.qs-story-layer-editor select{min-height:26px!important;padding:3px 6px!important;font-size:10px!important;border-radius:8px!important;}
  .qs-story-layer-actions button{min-height:26px!important;padding:3px!important;font-size:9px!important;}
  .qs-story-upload-progress{display:none!important;}
  .qs-story-editor-actions{position:sticky!important;bottom:0!important;z-index:30!important;flex:0 0 auto!important;background:linear-gradient(180deg,rgba(255,255,255,.85),#fff 42%)!important;margin-top:3px!important;padding-top:4px!important;display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:5px!important;box-shadow:0 -8px 18px rgba(15,23,42,.06)!important;}
  .qs-story-editor-actions button{width:100%!important;min-height:34px!important;height:34px!important;padding:5px 8px!important;border-radius:10px!important;font-size:11px!important;}
}
@media(max-width:700px) and (max-height:690px){
  .qs-story-stage{width:min(210px,58vw)!important;max-height:34dvh!important;}
  .qs-story-layer-editor{min-height:60px!important;}
  .qs-story-tool-row button{height:31px!important;min-height:31px!important;font-size:8.2px!important;}
  .qs-story-editor-actions button{height:32px!important;min-height:32px!important;}
}

/* v2.16.54 - Instagram-like full-screen story composer */
.qs-story-editor.open{display:flex!important;align-items:stretch!important;justify-content:center!important;padding:0!important;background:#020617!important;z-index:22000!important;overscroll-behavior:contain!important}
.qs-story-editor-card.qs-story-editor-full{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:0!important;background:#020617!important;color:#fff!important;box-shadow:none!important;overflow:hidden!important;display:block!important}
.qs-story-editor-full form{width:100%!important;height:100%!important;display:block!important;overflow:hidden!important;margin:0!important;padding:0!important}
.qs-story-compose{position:relative!important;width:100%!important;height:100%!important;overflow:hidden!important;background:#020617!important;display:flex!important;align-items:center!important;justify-content:center!important;direction:rtl!important}
.qs-story-editor-top{position:absolute!important;top:calc(10px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;z-index:40!important;display:grid!important;grid-template-columns:42px 1fr auto!important;align-items:center!important;gap:8px!important;pointer-events:auto!important}
.qs-story-editor-top strong{font-size:14px!important;font-weight:900!important;text-align:center!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.35)!important}
.qs-story-editor-close,.qs-story-pick-top{height:38px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:0 11px!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-weight:800!important;backdrop-filter:blur(12px)!important;cursor:pointer!important;box-shadow:none!important}
.qs-story-editor-close{width:38px!important;padding:0!important;font-size:0!important}.qs-story-pick-top span{font-size:11px!important}.qs-story-editor-close .qs-story-ico,.qs-story-pick-top .qs-story-ico{width:18px!important;height:18px!important;stroke:#fff!important}
.qs-story-stage-shell{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;padding:calc(58px + env(safe-area-inset-top)) 58px calc(112px + env(safe-area-inset-bottom)) 18px!important;box-sizing:border-box!important;overflow:hidden!important}
.qs-story-stage{height:min(calc(100dvh - 178px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),760px)!important;width:min(calc((100dvh - 178px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*9/16),calc(100vw - 86px),430px)!important;max-height:none!important;max-width:none!important;aspect-ratio:9/16!important;border-radius:28px!important;background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important;box-shadow:0 18px 70px rgba(0,0,0,.48)!important;overflow:hidden!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;position:relative!important;flex:0 0 auto!important}
.qs-story-stage-empty{background:var(--qs-story-bg,linear-gradient(135deg,#0ea5e9,#2563eb,#7c3aed))!important;color:#fff!important;display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:24px!important;font-size:13px!important;text-shadow:0 2px 14px rgba(0,0,0,.3)!important}.qs-story-stage-empty b{font-size:15px!important}.qs-story-stage-empty small{font-size:11px!important;opacity:.9!important}
.qs-story-media-layer{background:transparent!important}.qs-story-stage-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important;transform-origin:center center!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important}.qs-story-stage-media video{background:transparent!important}
.qs-story-side-tools{position:absolute!important;top:calc(84px + env(safe-area-inset-top))!important;right:10px!important;z-index:45!important;display:flex!important;flex-direction:column!important;gap:8px!important;pointer-events:auto!important}.qs-story-side-tools button{width:42px!important;height:42px!important;border:0!important;border-radius:999px!important;background:rgba(15,23,42,.48)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;backdrop-filter:blur(14px)!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important;cursor:pointer!important}.qs-story-side-tools .qs-story-ico{width:20px!important;height:20px!important;stroke:#fff!important}
.qs-story-bg-picker{position:absolute!important;right:12px!important;left:12px!important;bottom:calc(74px + env(safe-area-inset-bottom))!important;z-index:38!important;height:28px!important;display:flex!important;gap:8px!important;align-items:center!important;justify-content:center!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;scrollbar-width:none!important}.qs-story-bg-picker::-webkit-scrollbar{display:none!important}.qs-story-bg-picker button{width:28px!important;height:28px!important;min-width:28px!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;padding:2px!important;overflow:hidden!important}.qs-story-bg-picker button.active{border-color:#fff!important;box-shadow:0 0 0 2px rgba(37,99,235,.75)!important}.qs-story-bg-picker span{display:block!important;width:100%!important;height:100%!important;border-radius:999px!important}
.qs-story-editor-actions{position:absolute!important;right:10px!important;left:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;z-index:42!important;display:grid!important;grid-template-columns:92px 1fr!important;gap:8px!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}.qs-story-editor-actions button{height:48px!important;min-height:48px!important;border:0!important;border-radius:999px!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-weight:900!important;font-size:13px!important;cursor:pointer!important}.qs-story-editor-actions .muted{background:rgba(255,255,255,.16)!important;color:#fff!important;backdrop-filter:blur(12px)!important}.qs-story-editor-actions .primary{background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;box-shadow:0 14px 34px rgba(37,99,235,.35)!important}
.qs-story-upload-progress{display:none!important}
.qs-story-layer-editor{position:absolute!important;right:10px!important;left:10px!important;bottom:calc(110px + env(safe-area-inset-bottom))!important;z-index:44!important;display:none!important;max-height:188px!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:22px!important;background:rgba(15,23,42,.68)!important;backdrop-filter:blur(18px)!important;padding:10px!important;color:#fff!important;box-shadow:0 18px 60px rgba(0,0,0,.32)!important;gap:8px!important}.qs-story-layer-editor.open:not(:empty){display:flex!important;flex-direction:column!important}.qs-story-sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}.qs-story-sheet-head strong{font-size:12px!important;color:#fff!important}.qs-story-sheet-head button{border:0!important;width:28px!important;height:28px!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important}.qs-story-sheet-head .qs-story-ico{width:15px!important;height:15px!important}
.qs-story-font-scroll,.qs-story-color-scroll,.qs-story-bg-mode-row,.qs-story-sheet-actions{display:flex!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;padding:1px 0!important}.qs-story-font-scroll::-webkit-scrollbar,.qs-story-color-scroll::-webkit-scrollbar,.qs-story-bg-mode-row::-webkit-scrollbar,.qs-story-sheet-actions::-webkit-scrollbar{display:none!important}.qs-story-font-scroll button{min-width:max-content!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;padding:7px 12px!important;font-size:12px!important}.qs-story-font-scroll button.active{background:#fff!important;color:#0f172a!important}.qs-story-color-scroll button{width:28px!important;height:28px!important;min-width:28px!important;border-radius:999px!important;border:2px solid rgba(255,255,255,.5)!important;background:var(--c)!important}.qs-story-color-scroll button.active{box-shadow:0 0 0 3px rgba(255,255,255,.35)!important;border-color:#fff!important}.qs-story-bg-mode-row button,.qs-story-sheet-actions button{border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;min-height:34px!important;padding:7px 11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:11px!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-weight:800!important;white-space:nowrap!important}.qs-story-bg-mode-row button.active{background:#fff!important;color:#0f172a!important}.qs-story-sheet-actions .danger{background:rgba(239,68,68,.82)!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important}.qs-story-layer-editor input{width:100%!important;box-sizing:border-box!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:14px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;min-height:40px!important;padding:9px 12px!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-size:13px!important;outline:0!important}.qs-story-layer-editor input::placeholder{color:rgba(255,255,255,.66)!important}
.qs-story-editor-layers{position:absolute!important;inset:0!important;z-index:3!important;pointer-events:none!important}.qs-story-edit-layer{position:absolute!important;transform:translate(-50%,-50%)!important;pointer-events:auto!important;touch-action:none!important;cursor:grab!important;max-width:84%!important;width:auto!important;min-width:24px!important;white-space:pre-wrap!important;word-break:break-word!important;line-height:1.25!important;box-sizing:border-box!important;text-align:center!important;font-weight:850!important;border:1.5px solid transparent!important;user-select:none!important;-webkit-user-select:none!important}.qs-story-edit-layer.selected{border-color:rgba(255,255,255,.98)!important;box-shadow:0 0 0 2px rgba(37,99,235,.75),0 12px 30px rgba(0,0,0,.25)!important}.qs-story-edit-layer span[contenteditable]{display:inline-block!important;min-width:28px!important;max-width:min(74vw,320px)!important;outline:0!important;cursor:text!important;touch-action:manipulation!important;user-select:text!important;-webkit-user-select:text!important;-webkit-user-modify:read-write-plaintext-only!important;padding:2px 3px!important;border-radius:8px!important;caret-color:#fff!important}.qs-story-edit-layer span[contenteditable]:focus{background:rgba(255,255,255,.12)!important}.qs-story-layer-x,.qs-story-layer-move{position:absolute!important;width:26px!important;height:26px!important;border:0!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;z-index:20!important;opacity:0!important;pointer-events:none!important}.qs-story-layer-x{top:-14px!important;left:-14px!important;background:#ef4444!important;color:#fff!important}.qs-story-layer-move{right:-14px!important;bottom:-14px!important;background:rgba(15,23,42,.84)!important;color:#fff!important;cursor:grab!important;touch-action:none!important}.qs-story-layer-x .qs-story-ico,.qs-story-layer-move .qs-story-ico{width:14px!important;height:14px!important}.qs-story-edit-layer.selected .qs-story-layer-x,.qs-story-edit-layer.selected .qs-story-layer-move{opacity:1!important;pointer-events:auto!important}.qs-story-edit-layer.link,.qs-story-edit-layer.location,.qs-story-edit-layer.ship{border-radius:999px!important;backdrop-filter:blur(10px)!important;text-shadow:none!important}.qs-story-edit-layer.ship{font-weight:900!important}
.qs-story-trim-panel{position:absolute!important;inset:0!important;z-index:80!important;background:rgba(2,6,23,.96)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;box-sizing:border-box!important}.qs-story-trim-panel[hidden]{display:none!important}.qs-story-trim-card{width:min(430px,94vw)!important;display:flex!important;flex-direction:column!important;gap:12px!important;color:#fff!important}.qs-story-trim-card video{width:100%!important;max-height:62dvh!important;background:#000!important;border-radius:24px!important;object-fit:contain!important}.qs-story-trim-info{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;font-size:12px!important}.qs-story-trim-info strong{font-size:15px!important}.qs-story-trim-card label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:12px!important;color:#fff!important}.qs-story-trim-card input[type=range]{accent-color:#2563eb!important}.qs-story-trim-done{height:46px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-weight:900!important;cursor:pointer!important}
.qs-story-ring.is-uploading,.qs-story-ring.is-loading{animation:none!important;transform:none!important}.qs-story-ring.is-uploading:after,.qs-story-ring.is-loading:after{display:none!important}.qs-story-ring.is-uploading .qs-story-upload-ring{display:block!important;animation:qsStoryUploadSpin .72s linear infinite!important;background:conic-gradient(#2563eb var(--qs-upload-progress,0%),rgba(37,99,235,.12) 0)!important}.qs-story-ring.is-loading .qs-story-upload-ring{display:block!important;animation:qsStoryUploadSpin .72s linear infinite!important;background:conic-gradient(#ec4899 0 24%,rgba(236,72,153,.12) 24%)!important}@keyframes qsStoryUploadSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){.qs-story-stage-shell{padding:calc(54px + env(safe-area-inset-top)) 54px calc(108px + env(safe-area-inset-bottom)) 12px!important}.qs-story-stage{height:min(calc(100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),650px)!important;width:min(calc((100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*9/16),calc(100vw - 74px))!important;border-radius:24px!important}.qs-story-side-tools{right:7px!important;top:calc(76px + env(safe-area-inset-top))!important;gap:7px!important}.qs-story-side-tools button{width:40px!important;height:40px!important}.qs-story-bg-picker{bottom:calc(72px + env(safe-area-inset-bottom))!important}.qs-story-layer-editor{bottom:calc(108px + env(safe-area-inset-bottom))!important;max-height:182px!important;border-radius:20px!important}.qs-story-editor-actions{grid-template-columns:86px 1fr!important}.qs-story-editor-actions button{height:46px!important;min-height:46px!important}.qs-story-edit-layer span[contenteditable]{max-width:68vw!important}}
@media(max-height:650px){.qs-story-layer-editor{max-height:150px!important}.qs-story-bg-picker{display:none!important}.qs-story-stage-shell{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}.qs-story-editor-actions button{height:42px!important;min-height:42px!important}}

/* v2.16.55 - compact Instagram-like layer controls and safer mobile gestures */
.qs-story-layer-editor.open{
  max-height:162px!important;
  padding:8px!important;
  gap:5px!important;
  border-radius:18px!important;
  font-size:10.5px!important;
  transition:opacity .16s ease, transform .16s ease!important;
}
.qs-story-layer-editor.is-moving{
  opacity:0!important;
  transform:translateY(18px)!important;
  pointer-events:none!important;
}
.qs-story-sheet-head{min-height:24px!important}
.qs-story-sheet-head strong{font-size:11px!important;line-height:1!important}
.qs-story-sheet-head button{width:24px!important;height:24px!important}
.qs-story-font-scroll,.qs-story-color-scroll,.qs-story-bg-mode-row,.qs-story-sheet-actions,.qs-story-icon-choice-row,.qs-story-shadow-row{
  display:flex!important;
  gap:5px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  padding:2px 1px!important;
  min-height:30px!important;
  align-items:center!important;
}
.qs-story-font-scroll::-webkit-scrollbar,.qs-story-color-scroll::-webkit-scrollbar,.qs-story-bg-mode-row::-webkit-scrollbar,.qs-story-sheet-actions::-webkit-scrollbar,.qs-story-icon-choice-row::-webkit-scrollbar,.qs-story-shadow-row::-webkit-scrollbar,.qs-story-ship-results::-webkit-scrollbar{display:none!important}
.qs-story-font-scroll button{
  min-width:max-content!important;
  padding:5px 9px!important;
  min-height:28px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  line-height:1!important;
}
.qs-story-color-scroll button{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border-radius:999px!important;
  border:1.5px solid rgba(255,255,255,.62)!important;
  padding:0!important;
  overflow:visible!important;
}
.qs-story-color-scroll button.active{box-shadow:0 0 0 2px rgba(255,255,255,.42)!important}
.qs-story-size-row{
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  gap:8px!important;
  align-items:center!important;
  min-height:28px!important;
  color:#fff!important;
  font-size:10.5px!important;
}
.qs-story-size-row input{min-height:0!important;height:24px!important;padding:0!important;accent-color:#fff!important;background:transparent!important;border:0!important}
.qs-story-size-row b{font-size:10px!important;min-width:22px!important;text-align:center!important}
.qs-story-bg-mode-row button,.qs-story-sheet-actions button,.qs-story-icon-choice-row button,.qs-story-shadow-row button{
  min-height:28px!important;
  height:28px!important;
  padding:4px 9px!important;
  gap:4px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.qs-story-icon-choice-row button{min-width:54px!important}
.qs-icon-preview{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:18px!important}
.qs-icon-preview .qs-layer-symbol{width:17px!important;height:17px!important;stroke:currentColor!important}
.qs-layer-symbol{display:inline-block;width:1em;height:1em;margin-inline-end:.35em;vertical-align:-.14em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex:0 0 auto}
.qs-story-live-layer,.qs-story-edit-layer span[data-layer-editable]{align-items:center!important;justify-content:center!important}
.qs-story-edit-layer.location,.qs-story-edit-layer.link,.qs-story-edit-layer.ship,
.qs-story-live-layer.location,.qs-story-live-layer.link,.qs-story-live-layer.ship{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
}
.qs-story-edit-layer.no-bg:not(.selected),.qs-story-live-layer.no-bg{
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  border-color:transparent!important;
}
.qs-story-edit-layer.no-bg span[data-layer-editable]:focus{background:transparent!important}
.qs-story-layer-editor input{
  min-height:32px!important;
  height:32px!important;
  padding:6px 10px!important;
  border-radius:12px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.qs-story-ship-results{
  display:flex!important;
  gap:6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  min-height:34px!important;
  padding:1px 0!important;
  scrollbar-width:none!important;
}
.qs-story-ship-pick{
  min-width:max-content!important;
  height:32px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:5px 9px!important;
  font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;
  font-size:10.5px!important;
  font-weight:800!important;
}
.qs-story-ship-empty{font-size:10px;color:rgba(255,255,255,.72);padding:7px 4px;white-space:nowrap}
.qs-story-bg-picker{
  height:36px!important;
  padding:4px 0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  align-items:center!important;
}
.qs-story-bg-picker button{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  padding:3px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.qs-story-bg-picker button span{
  width:100%!important;
  height:100%!important;
  display:block!important;
  border-radius:999px!important;
  overflow:hidden!important;
}
.qs-story-bg-picker button.active{box-shadow:0 0 0 2px rgba(255,255,255,.35),0 0 0 4px rgba(37,99,235,.6)!important}
.qs-story-stage-media{transform-origin:center center!important;will-change:transform!important;max-width:none!important;max-height:none!important}
@media(max-width:700px){
  .qs-story-layer-editor.open{right:8px!important;left:8px!important;bottom:calc(106px + env(safe-area-inset-bottom))!important;max-height:154px!important;padding:7px!important;border-radius:18px!important;gap:4px!important}
  .qs-story-font-scroll button{font-size:10px!important;padding:5px 8px!important}
  .qs-story-bg-mode-row button,.qs-story-sheet-actions button,.qs-story-icon-choice-row button,.qs-story-shadow-row button{height:27px!important;min-height:27px!important;font-size:9.8px!important;padding:4px 8px!important}
  .qs-story-side-tools button{width:38px!important;height:38px!important}
  .qs-story-bg-picker{bottom:calc(70px + env(safe-area-inset-bottom))!important;height:36px!important}
}
.qs-story-edit-layer.no-bg.selected{border-color:transparent!important;box-shadow:none!important;background:transparent!important}

/* v2.16.56 - final render fidelity: baked non-interactive layers, safer viewer/static layers */
.qs-story-live-layer.is-static{pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important}
.qs-story-live-layer.is-hotspot{pointer-events:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;outline:0!important}
.qs-story-media-wrap video,.qs-story-media-wrap img,.qs-story-media-canvas{transform-origin:center center!important;will-change:transform!important}
.qs-story-edit-layer.no-bg,.qs-story-edit-layer.no-bg.selected,.qs-story-edit-layer.no-bg span[data-layer-editable]{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;padding-left:0!important;padding-right:0!important}
.qs-story-layer-editor .qs-story-size-row{flex:0 0 auto!important}
.qs-story-stage-empty[style*="display: none"]{pointer-events:none!important}
@media(max-width:700px){
  .qs-story-layer-editor.open{max-height:168px!important}
  .qs-story-size-row{grid-template-columns:42px 1fr 26px!important}
}

/* v2.16.57 - story media safety/cache controls */
.qs-story-video-sound{height:40px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-size:12px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 14px!important;cursor:pointer!important}
.qs-story-video-sound[aria-pressed="true"]{background:#fff!important;color:#0f172a!important}
.qs-story-video-sound .qs-story-ico{width:17px!important;height:17px!important}
.qs-story-own-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important}
.qs-story-action-btn.danger{background:rgba(239,68,68,.86)!important;color:#fff!important;border-color:rgba(255,255,255,.14)!important}
.qs-story-action-btn.danger .qs-story-ico{stroke:#fff!important}
.qs-story-ring.is-uploading .qs-story-upload-ring{animation:qsStoryUploadSpin .7s linear infinite!important;will-change:transform!important}
@media(max-width:700px){.qs-story-video-sound{height:38px!important;font-size:11px!important}.qs-story-own-actions{gap:6px!important}.qs-story-own-actions .qs-story-action-btn{min-height:36px!important;padding:7px 10px!important;font-size:11px!important}}
/* v2.16.66 safe rollback fixes */
.qs-story-owner-profile-btn{appearance:none;border:0;background:transparent;color:inherit;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-weight:900;padding:0;margin:0;cursor:pointer;text-align:inherit;display:inline-flex;align-items:center;gap:4px}
.qs-story-owner-profile-btn:after{content:'';width:5px;height:5px;border-radius:50%;background:#38bdf8;display:inline-block;box-shadow:0 0 0 2px rgba(56,189,248,.18)}
.qs-story-reply-box .qs-story-reactions{display:none!important;position:absolute;left:0;right:0;bottom:calc(100% + 8px);justify-content:center;gap:10px;pointer-events:auto}
.qs-story-reply-box.is-replying .qs-story-reactions{display:flex!important}
.qs-story-public-profile-modal{position:fixed;inset:0;z-index:2147483647;background:rgba(2,6,23,.58);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(8px)}
.qs-story-public-profile-card{width:min(390px,94vw);border-radius:24px;background:#fff;color:#0f172a;box-shadow:0 24px 80px rgba(2,6,23,.28);padding:16px;position:relative;direction:rtl;font-family:'IRANSans',Tahoma,Arial,sans-serif!important}
.qs-story-public-close{position:absolute;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:999px;background:#f1f5f9;color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer}
.qs-story-public-close .qs-story-ico{width:18px;height:18px}.qs-story-public-head{display:flex;gap:12px;align-items:center;padding-left:34px}.qs-story-public-avatar{width:64px;height:64px;border-radius:22px;background:linear-gradient(135deg,#dbeafe,#ede9fe);overflow:hidden;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.qs-story-public-avatar img{width:100%;height:100%;object-fit:cover}.qs-story-public-avatar span{width:28px;height:28px;border-radius:50%;background:#94a3b8;display:block}.qs-story-public-head h3{margin:0 0 4px;font-size:17px;font-weight:950;color:#0f172a}.qs-story-public-head p{margin:0;font-size:12px;color:#64748b}.qs-story-public-bio{margin-top:12px;border-radius:16px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.9;padding:10px 12px;white-space:pre-wrap}.qs-story-public-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.qs-story-public-links a{border-radius:999px;background:#eff6ff;color:#1d4ed8;text-decoration:none;padding:7px 10px;font-size:12px;font-weight:850}
.qs-user-story-direct-thread{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;margin-bottom:8px;overflow:hidden}.qs-user-story-direct-head{display:flex;align-items:center;gap:8px;padding:8px 9px;background:#fff;border-bottom:1px solid #eef2f7}.qs-user-story-direct-avatar{width:34px;height:34px;border-radius:12px;overflow:hidden;background:#e2e8f0;flex:0 0 auto}.qs-user-story-direct-avatar img{width:100%;height:100%;object-fit:cover}.qs-user-story-direct-title{font-size:11.5px;font-weight:950;color:#0f172a}.qs-user-story-direct-sub{font-size:9.5px;color:#64748b;margin-top:2px}.qs-user-story-direct-messages{display:flex;flex-direction:column;gap:5px;padding:8px}.qs-user-story-direct-msg{max-width:82%;border-radius:14px;padding:7px 9px;font-size:11.5px;line-height:1.8;white-space:pre-wrap}.qs-user-story-direct-msg.in{align-self:flex-start;background:#fff;color:#0f172a;border:1px solid #e2e8f0}.qs-user-story-direct-msg.out{align-self:flex-end;background:#0b66d6;color:#fff}.qs-user-story-direct-time{display:block;font-size:9px;opacity:.68;margin-top:3px}.qs-user-story-direct-form{display:flex;gap:5px;padding:7px 8px;border-top:1px solid #eef2f7;background:#fff}.qs-user-story-direct-form input{flex:1;border:1px solid #cbd5e1;border-radius:12px;padding:7px 9px;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-size:11px}.qs-user-story-direct-form button{border:0;border-radius:12px;background:#0b66d6;color:#fff;font-family:'IRANSans',Tahoma,Arial,sans-serif!important;font-size:10px;font-weight:900;padding:7px 9px}

/* v2.16.67 - Instagram-like viewer readability and top report action */
.qs-story-viewer::before,
.qs-story-viewer::after{
  content:''!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  pointer-events:none!important;
  z-index:3!important;
  display:block!important;
  width:auto!important;
  border-radius:0!important;
  transform:none!important;
}
.qs-story-viewer::before{
  top:0!important;
  height:156px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.44) 42%,rgba(0,0,0,.16) 72%,rgba(0,0,0,0) 100%)!important;
}
.qs-story-viewer::after{
  bottom:0!important;
  height:190px!important;
  background:linear-gradient(0deg,rgba(0,0,0,.74) 0%,rgba(0,0,0,.48) 38%,rgba(0,0,0,.18) 72%,rgba(0,0,0,0) 100%)!important;
}
.qs-story-bars,
.qs-story-header,
.qs-story-bottom{
  z-index:7!important;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.55))!important;
}
.qs-story-owner-name,
.qs-story-owner-time,
.qs-story-stats,
.qs-story-action-btn,
.qs-story-reply-box,
.qs-story-bar>span{
  text-shadow:0 1px 8px rgba(0,0,0,.75)!important;
}
.qs-story-bar{box-shadow:0 1px 8px rgba(0,0,0,.45)!important;background:rgba(255,255,255,.32)!important}
.qs-story-header-actions{display:flex!important;align-items:center!important;gap:7px!important;filter:drop-shadow(0 2px 9px rgba(0,0,0,.55))!important}
.qs-story-report-top,
.qs-story-mute,
.qs-story-close{
  border:0!important;
  background:rgba(0,0,0,.18)!important;
  color:#fff!important;
  width:36px!important;
  height:36px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  cursor:pointer!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  box-shadow:0 4px 16px rgba(0,0,0,.22)!important;
}
.qs-story-report-top .qs-story-ico,
.qs-story-mute .qs-story-ico,
.qs-story-close .qs-story-ico{width:20px!important;height:20px!important;stroke-width:2.2!important}
.qs-story-close{background:rgba(0,0,0,.08)!important}
.qs-story-report-top.is-done{background:rgba(239,68,68,.28)!important;color:#fff!important}
.qs-story-owner-profile-btn{color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.75)!important}
@media(max-width:700px){
  .qs-story-viewer::before{height:142px!important}
  .qs-story-viewer::after{height:178px!important}
  .qs-story-report-top,.qs-story-mute,.qs-story-close{width:34px!important;height:34px!important}
}
.qs-story-report-top[hidden],.qs-story-mute[hidden]{display:none!important}


/* v2.16.69 stable viewer fixes */
.qs-story-header-actions .qs-story-report-top,
.qs-story-header-actions .qs-story-mute,
.qs-story-header-actions .qs-story-close{display:flex!important;align-items:center!important;justify-content:center!important;visibility:visible;opacity:1}
.qs-story-header-actions .qs-story-report-top[hidden],
.qs-story-header-actions .qs-story-mute[hidden]{display:none!important}
.qs-story-action-btn.like{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important}
.qs-story-action-btn.like .qs-story-ico{fill:none!important;stroke:currentColor!important}
.qs-story-action-btn.like.active{background:rgba(255,255,255,.16)!important;color:#ef4444!important;border-color:rgba(239,68,68,.34)!important}
.qs-story-action-btn.like.active .qs-story-ico,
.qs-story-action-btn.like.active .qs-story-ico path{fill:#ef4444!important;stroke:#ef4444!important}
.qs-story-owner-profile-btn{border:0!important;background:transparent!important;padding:0!important;margin:0!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important!important;font-weight:900!important;color:#fff!important;cursor:pointer!important;text-align:right!important}
.qs-story-owner-profile-btn:hover{text-decoration:underline!important}
.qs-story-viewer .qs-story-header,.qs-story-viewer .qs-story-bars,.qs-story-viewer .qs-story-bottom{filter:drop-shadow(0 2px 8px rgba(0,0,0,.62))!important}
/* fallback: same public-profile modal used by ship cards */
.qs-public-profile-modal{position:fixed;inset:0;z-index:2147483647;background:rgba(15,23,42,.62);display:none;align-items:center;justify-content:center;padding:14px;box-sizing:border-box;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.qs-public-profile-modal.open{display:flex;animation:qsPublicFade .18s ease both}
.qs-public-profile-card{width:min(330px,92vw);background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid rgba(219,234,254,.95);border-radius:28px;box-shadow:0 24px 80px rgba(15,23,42,.36);overflow:hidden;text-align:center;direction:rtl;color:#0f172a;position:relative;animation:qsPublicPop .22s cubic-bezier(.2,.9,.2,1) both}
.qs-public-profile-head{position:absolute;top:9px;left:9px;right:auto;z-index:2;display:flex;align-items:center;justify-content:flex-end;padding:0;border:0;background:transparent}.qs-public-profile-close{width:31px;height:31px;border:0;border-radius:999px;background:rgba(255,255,255,.88);font-size:18px;cursor:pointer;color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.16)}
.qs-public-profile-body{padding:26px 17px 20px}.qs-public-profile-img{width:124px;height:124px;border-radius:50%;object-fit:cover;display:block;margin:5px auto 13px;background:linear-gradient(135deg,#0b66d6,#06b6d4);box-shadow:0 0 0 5px #fff,0 0 0 8px #e0f2fe,0 18px 38px rgba(37,99,235,.14);cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}.qs-public-profile-avatar{width:124px;height:124px;border-radius:50%;margin:5px auto 13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0b66d6,#06b6d4);color:#fff;font-size:44px;font-weight:950;box-shadow:0 0 0 5px #fff,0 0 0 8px #e0f2fe}.qs-public-profile-name{font-size:17px;font-weight:950;margin:0 0 8px}.qs-public-profile-member{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;border:1px solid #dbeafe;color:#475569;padding:6px 11px;font-size:11px;font-weight:900;margin:0}.qs-public-profile-bio{margin:10px auto 0;max-width:310px;font-size:12.3px;line-height:1.95;color:#334155;text-align:center;background:#fff;border:1px solid #e0f2fe;border-radius:18px;padding:9px 10px;box-shadow:0 8px 20px rgba(2,132,199,.05)}.qs-public-profile-info{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:9px}.qs-public-profile-info span{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:850;color:#475569}.qs-public-socials{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:10px}.qs-public-socials a{border:1px solid #dbeafe;background:#eff6ff;color:#0758bd;text-decoration:none;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;transition:transform .14s ease}.qs-comment-empty{padding:18px;text-align:center;color:#64748b;font-size:12px;font-weight:850;line-height:1.8}@keyframes qsPublicFade{from{opacity:0}to{opacity:1}}@keyframes qsPublicPop{from{transform:translateY(8px) scale(.96);opacity:.6}to{transform:translateY(0) scale(1);opacity:1}}

/* v2.16.69 - keep top sound button visible and icon-only Instagram like */
.qs-story-header-actions .qs-story-mute{display:flex!important;visibility:visible!important;opacity:1!important}
.qs-story-action-btn.like{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:999px!important;gap:0!important}
.qs-story-action-btn.like span{display:none!important}
.qs-story-action-btn.like .qs-story-ico{width:24px!important;height:24px!important}
.qs-story-action-btn.like.active .qs-story-ico,.qs-story-action-btn.like.active .qs-story-ico path{fill:#ef4444!important;stroke:#ef4444!important}

.qs-story-insights{position:fixed;inset:0;z-index:2147483646;background:rgba(2,6,23,.30);display:none;align-items:flex-end;justify-content:center;direction:rtl}.qs-story-insights.open{display:flex}.qs-story-insights-card{width:min(430px,100vw);height:min(56dvh,520px);background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -20px 70px rgba(0,0,0,.35);overflow:hidden;display:flex;flex-direction:column;animation:qsStoryInsightsIn .22s cubic-bezier(.2,.85,.2,1)}@keyframes qsStoryInsightsIn{from{transform:translateY(100%)}to{transform:translateY(0)}}.qs-story-insights-head{height:58px;display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid #e2e8f0}.qs-story-insights-head strong{font-size:14px;color:#0f172a}.qs-story-insights-head button{margin-right:auto;border:0;background:#f1f5f9;color:#0f172a;width:34px;height:34px;border-radius:999px;font-size:20px;cursor:pointer}.qs-story-insights-mini{width:34px;height:48px;border-radius:10px;overflow:hidden;background:#020617;flex:0 0 auto}.qs-story-insights-mini img,.qs-story-insights-mini video{width:100%;height:100%;object-fit:cover}.qs-story-insights-body{flex:1;overflow:auto;padding:10px 12px 18px;background:#f8fafc}.qs-story-insight-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.qs-story-insight-summary span{background:#fff;border:1px solid #e2e8f0;border-radius:15px;padding:8px;text-align:center;font-size:12px;font-weight:950;color:#0f172a}.qs-story-insights-body h4{font-size:12px;color:#334155;margin:12px 2px 7px}.qs-story-insight-user{width:100%;border:0;background:#fff;border-radius:16px;padding:7px 8px;margin-bottom:6px;display:grid;grid-template-columns:38px 1fr auto;gap:8px;align-items:center;text-align:right;color:#0f172a;box-shadow:0 4px 16px rgba(15,23,42,.04);cursor:default}.qs-story-insight-user.qs-story-insight-public{cursor:pointer}.qs-story-insight-user i{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#dbeafe;color:#0758bd;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:950}.qs-story-insight-user img{width:100%;height:100%;object-fit:cover}.qs-story-insight-user b{font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qs-story-insight-user small{font-size:10px;color:#64748b}.qs-story-insight-reply{background:#fff;border:1px solid #edf2f7;border-radius:18px;padding:7px;margin-bottom:7px}.qs-story-insight-reply .qs-story-insight-user{box-shadow:none;margin:0;padding:0}.qs-story-insight-reply p{margin:6px 46px 0 0;background:#eff6ff;border-radius:14px;padding:7px 9px;font-size:12px;line-height:1.8;white-space:pre-wrap}.qs-story-insight-empty{text-align:center;font-size:12px;color:#64748b;padding:14px;line-height:1.8}.qs-story-owner-time{font-variant-numeric:tabular-nums}.qs-story-header,.qs-story-bottom,.qs-story-bars{filter:drop-shadow(0 2px 7px rgba(0,0,0,.42))}

/* v2.16.71: centered insights and safe story public profile */
.qs-story-insights{align-items:center!important;justify-content:center!important;padding:16px!important;background:rgba(2,6,23,.46)!important;font-family:'IRANSans',Tahoma,Arial,sans-serif!important}.qs-story-insights-card{width:min(390px,94vw)!important;height:min(560px,82dvh)!important;border-radius:24px!important;box-shadow:0 24px 80px rgba(15,23,42,.36)!important;animation:qsStoryInsightsCenterIn .18s ease both!important}.qs-story-insights-head{height:50px!important;padding:7px 10px!important}.qs-story-insights-head strong{font-size:12.5px!important}.qs-story-insights-mini{width:30px!important;height:42px!important;border-radius:9px!important}.qs-story-insights-body{padding:8px 10px 12px!important}.qs-story-insight-summary{gap:6px!important;margin-bottom:7px!important}.qs-story-insight-summary span{padding:7px!important;border-radius:13px!important;font-size:11px!important}.qs-story-insights-body h4{font-size:11px!important;margin:9px 2px 5px!important}.qs-story-insight-user{grid-template-columns:34px 1fr auto!important;gap:7px!important;border-radius:14px!important;padding:6px 7px!important;margin-bottom:5px!important}.qs-story-insight-user i{width:34px!important;height:34px!important}.qs-story-insight-user b{font-size:11.5px!important}.qs-story-insight-user small{font-size:9.5px!important}.qs-story-insight-reply{border-radius:15px!important;padding:6px!important;margin-bottom:6px!important}.qs-story-insight-reply p{font-size:11.5px!important;margin:5px 40px 0 0!important;padding:6px 8px!important;border-radius:12px!important}@keyframes qsStoryInsightsCenterIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.qs-public-profile-modal[data-story-profile="1"] .qs-public-profile-img{cursor:default!important;transform:none!important}.qs-public-profile-modal[data-story-profile="1"]{z-index:2147483647!important}.qs-public-profile-modal[data-story-profile="1"] .qs-public-profile-card{font-family:'IRANSans',Tahoma,Arial,sans-serif!important}.qs-public-profile-modal[data-story-profile="1"] .qs-public-profile-img:hover{transform:none!important}


/* v2.16.113 icon font restore */
.qs-story-root i[class^="fa"],.qs-story-root i[class*=" fa-"],.qs-story-root .fa,.qs-story-root .fas,.qs-story-root .far,.qs-story-root .fab,.qs-story-root [class^="fa-"],.qs-story-root [class*=" fa-"]{font-family:"Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome"!important;font-style:normal!important}.qs-story-root .fas,.qs-story-root .fa-solid,.qs-story-root .fa{font-weight:900!important}.qs-story-root .fab,.qs-story-root .fa-brands{font-family:"Font Awesome 6 Brands","Font Awesome 5 Brands","FontAwesome"!important;font-weight:400!important}.qs-story-root .bi,.qs-story-root [class^="bi-"],.qs-story-root [class*=" bi-"]{font-family:"bootstrap-icons"!important;font-style:normal!important;font-weight:400!important}.qs-story-root .bi::before,.qs-story-root [class^="bi-"]::before,.qs-story-root [class*=" bi-"]::before{font-family:"bootstrap-icons"!important}
