:root{--bg:#fbfbfd;--card:#fff;--text:#111318;--muted:#66707c;--line:rgba(17,20,24,.075);--shadow:0 22px 70px rgba(17,20,24,.065);--accent:#5b5cf6;--gold:#d89a00}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Inter","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-weight:400}a{color:inherit}button,input,textarea{font:inherit}.topbar{height:86px;display:flex;align-items:center;gap:28px;padding:0 26px;background:rgba(255,255,255,.84);backdrop-filter:blur(24px);position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(0,0,0,.03)}.brand{display:flex;align-items:center;gap:14px;min-width:250px}.logo{width:54px;height:54px;border-radius:16px;background:#050506;color:#fff;display:grid;place-items:center;box-shadow:0 12px 32px rgba(0,0,0,.12)}.brand h1{font-size:27px;line-height:.9;margin:0;font-weight:720;letter-spacing:-.055em}.brand small{font-size:12px;color:#8a9098;font-weight:650;letter-spacing:.08em}.search{height:54px;width:min(560px,36vw);background:#fff;border:1px solid var(--line);box-shadow:0 12px 38px rgba(0,0,0,.045);border-radius:999px;display:flex;align-items:center;gap:12px;padding:0 18px;color:#7c8490}.search input{border:0;outline:0;width:100%;font-size:16px;background:transparent;color:#555}.nav{margin-left:auto;display:flex;gap:30px;align-items:center}.nav a{font-weight:560;text-decoration:none;color:#59616d;padding:30px 0 22px;position:relative}.nav a.active{color:#111;font-weight:650}.nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:17px;height:3px;border-radius:9px;background:var(--accent)}.pill{border:0;background:#fff;border-radius:999px;padding:14px 20px;font-weight:650;box-shadow:0 12px 30px rgba(0,0,0,.045);text-decoration:none}.bell{width:54px;height:54px;border:0;border-radius:999px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.045);display:grid;place-items:center}.shell{display:grid;grid-template-columns:190px minmax(0,1fr) 410px;gap:28px;max-width:1700px;margin:36px auto;padding:0 24px}.sidebar{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px;min-height:720px;padding:22px 16px;position:sticky;top:112px}.side-logo{width:52px;height:52px;border-radius:14px;background:#080808;color:#fff;display:grid;place-items:center;margin:0 auto 32px}.side-link{height:66px;border-radius:999px;display:flex;align-items:center;gap:14px;padding:0 18px;text-decoration:none;color:#20242a;margin-bottom:10px;font-weight:520}.side-link.active{background:#f1f2f5;font-weight:650}.side-bottom{position:absolute;left:16px;right:16px;bottom:22px;display:flex;align-items:center;gap:12px}.avatar-sm{width:52px;height:52px;border-radius:999px;object-fit:cover;background:#111}.card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px}.composer{padding:28px}.composer-top{display:flex;align-items:center;gap:20px}.avatar{width:72px;height:72px;border-radius:999px;object-fit:cover;background:#111}.composer h2{font-size:22px;margin:0 0 8px;font-weight:610;letter-spacing:-.02em}.muted{color:var(--muted)}.plus{margin-left:auto;width:58px;height:58px;border:1px solid #d8dbe2;border-radius:14px;background:#fff;font-size:34px;color:#222;cursor:pointer}.composer-form{margin-top:20px;display:none}.composer.open .composer-form{display:block}.input,textarea{width:100%;border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px 18px;outline:0;color:#222}textarea{min-height:120px;resize:vertical}.row{display:flex;gap:12px}.btn{border:0;border-radius:999px;background:#1e2329;color:#fff;padding:14px 24px;font-weight:650;cursor:pointer}.btn.light{background:#f2f3f5;color:#111}.actions{border-top:1px solid var(--line);margin-top:24px;display:grid;grid-template-columns:repeat(4,1fr)}.action{height:62px;display:flex;align-items:center;justify-content:center;gap:10px;color:#3d444d;font-weight:520}.stories{padding:28px;margin-top:28px}.stories h3,.right h3{margin:0 0 22px;font-size:20px;font-weight:620;letter-spacing:-.015em}.story-row{display:flex;gap:28px;align-items:center}.story{min-width:82px;text-align:center}.story-ring{width:78px;height:78px;border-radius:999px;padding:3px;background:linear-gradient(135deg,#5b5cf6,#87d7ff,#d5a11e);display:grid;place-items:center}.story-ring img{width:72px;height:72px;border-radius:999px;border:4px solid #fff;object-fit:cover}.story-add{width:78px;height:78px;border:1px dashed #cfd4db;border-radius:999px;display:grid;place-items:center;font-size:28px}.story span{display:block;margin-top:10px;font-weight:520;font-size:14px}.post{padding:28px;margin-top:28px}.post-head{display:flex;gap:16px;align-items:center}.post-author{font-weight:650;font-size:18px}.post-meta{color:var(--muted);font-size:15px}.post-copy{font-size:17px;line-height:1.55;margin:22px 0;color:#252932}.post-img{width:100%;max-height:620px;object-fit:cover;border-radius:18px;border:1px solid var(--line);display:block}.post-actions{display:flex;gap:24px;margin-top:18px;color:#4d5561}.post-actions button{border:0;background:transparent;font-weight:520;color:#4d5561;cursor:pointer}.right{display:flex;flex-direction:column;gap:28px}.right-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px;padding:26px}.user-row,.activity-row{display:flex;align-items:center;gap:14px;margin:16px 0}.user-row b,.activity-row b{font-weight:650}.follow{margin-left:auto;border:0;border-radius:999px;padding:12px 18px;background:#f1f2f4;font-weight:620;cursor:pointer}.activity-row small{margin-left:auto;color:#697280}.cover{height:300px;border-radius:28px 28px 0 0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.35)),url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1800&q=80') center/cover}.profile-card{margin-top:-1px;overflow:hidden}.profile-inner{margin:-70px 65px 0;background:#fff;border-radius:26px;box-shadow:var(--shadow);padding:34px 42px;display:grid;grid-template-columns:150px 1fr auto;gap:28px;align-items:center}.profile-avatar{width:142px;height:142px;border-radius:32px;background:#111;color:#fff;object-fit:cover;border:6px solid #fff}.profile-inner h2{font-size:44px;margin:0 0 8px;font-weight:680;letter-spacing:-.055em}.badges{display:flex;gap:8px;align-items:center}.badge{border-radius:999px;padding:7px 12px;font-weight:650;font-size:14px;background:#eaf4ff;color:#1264b3}.badge.dark{background:#111;color:#fff}.stats{display:inline-flex;margin:18px 0;border-radius:999px;background:#fbfbfc;border:1px solid var(--line);padding:10px 16px;gap:18px}.stats b{font-weight:650}.tabs{display:flex;gap:22px;margin:32px 65px;border-bottom:1px solid var(--line);padding-bottom:22px}.tabs a{text-decoration:none;color:#56606b}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 65px 50px}.grid img{width:100%;height:260px;object-fit:cover;border-radius:18px}.auth{max-width:1200px;margin:40px auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:28px}.auth-card{padding:60px}.auth-card h2{font-size:48px;line-height:1;margin:0 0 18px;font-weight:680;letter-spacing:-.06em}.auth-form{display:grid;gap:16px;margin-top:32px}.alert{padding:14px 18px;background:#fff2f2;color:#9d1b1b;border-radius:16px;border:1px solid #ffd5d5;margin-bottom:16px}.ok{background:#f0fff4;color:#146c2e;border-color:#c9f2d2}.email-preview{background:#111;color:#fff;border-radius:32px;padding:36px}.email-card{margin-top:24px;background:#fff;color:#111;border-radius:28px;padding:38px}.mobile-bottom{display:none}@media(max-width:1200px){.shell{grid-template-columns:1fr}.sidebar,.right{display:none}.search{display:none}.nav{gap:18px}.profile-inner{margin:-45px 18px 0;grid-template-columns:1fr;text-align:left}.grid{margin:0 18px 40px;grid-template-columns:1fr 1fr}.auth{grid-template-columns:1fr}}@media(max-width:700px){.topbar{height:auto;padding:14px;gap:12px}.brand{min-width:auto}.brand h1{font-size:24px}.nav a:not(.active){display:none}.pill{display:none}.shell{margin:16px auto;padding:0 12px}.composer,.stories,.post,.right-card{padding:18px}.actions{grid-template-columns:repeat(2,1fr)}.cover{height:160px}.profile-inner h2{font-size:32px}.grid{grid-template-columns:1fr}.auth-card{padding:28px}.auth-card h2{font-size:38px}}

/* RELIK Core V1.1 — Apple-light typography + Follow UX + badges */
:root{--accent:#111827;--blue:#0a84ff;--green:#16a34a}
body{font-weight:380!important;letter-spacing:-.005em}.brand h1{font-weight:650!important}.brand small{font-weight:520!important}.nav a,.side-link,.action,.follow,.btn,.pill{font-weight:520!important}.nav a.active,.side-link.active,.post-author,.user-row b,.activity-row b,.stats b{font-weight:620!important}.composer h2,.stories h3,.right h3{font-weight:580!important}.profile-inner h2{font-weight:640!important}.post-copy{font-weight:370!important}.muted,.post-meta{font-weight:360!important}.follow{border:0;transition:.18s ease;white-space:nowrap}.follow:hover{transform:translateY(-1px);background:#e7e9ee}.follow.is-following{background:#111827!important;color:#fff!important}.follow.is-following:hover{background:#fee2e2!important;color:#b91c1c!important}.follow:disabled{opacity:.65;cursor:wait}.verified-dot{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#0a84ff;color:#fff;font-size:12px;font-weight:700;margin-left:6px;vertical-align:middle}.verified-badge{background:#eaf4ff!important;color:#0a64c7!important}.badge{font-weight:540!important}.badge.dark{background:#111827!important;color:#fff!important}.post-author a,.user-row a{text-decoration:none}.stats{font-weight:390!important}.stats span{white-space:nowrap}@media(max-width:700px){.badges{flex-wrap:wrap}.profile-inner{padding:24px!important}.stats{display:flex!important;overflow-x:auto;width:100%;gap:14px}.row{flex-direction:column}}

/* RELIK Core V1.2 — Social actions */
.post-stats{display:flex;gap:18px;margin-top:16px;color:#697280;font-size:14px}.post-stats b{font-weight:620;color:#111}.social-actions{flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}.social-actions button{padding:8px 0;border-radius:12px;transition:.18s ease}.social-actions button:hover{transform:translateY(-1px);color:#111}.social-actions button.is-active{color:#0a84ff!important;font-weight:620!important}.comments-box{display:none;margin-top:16px;border-top:1px solid var(--line);padding-top:16px}.comments-box.open{display:block}.comments-list{display:grid;gap:12px;margin-bottom:14px}.comment{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start}.comment.is-reply{margin-left:38px}.comment img{width:38px;height:38px;border-radius:999px;object-fit:cover;background:#111}.comment div{background:#f6f7f9;border:1px solid rgba(17,20,24,.04);border-radius:18px;padding:10px 13px}.comment b{font-weight:620}.comment p{margin:4px 0 6px;line-height:1.45;color:#252932}.reply-btn{border:0;background:transparent;color:#697280;font-size:13px;padding:0;cursor:pointer}.reply-btn:hover{color:#111}.comment-form{display:grid;grid-template-columns:1fr auto;gap:10px}.comment-form input{border:1px solid var(--line);border-radius:999px;padding:12px 15px;outline:0}.comment-form button{border:0;border-radius:999px;background:#111827;color:#fff;padding:0 18px;font-weight:520}.verified-dot.tiny{width:15px;height:15px;font-size:10px;margin-left:4px}@media(max-width:700px){.post-stats{flex-wrap:wrap;gap:10px}.social-actions{gap:12px}.comment-form{grid-template-columns:1fr}.comment.is-reply{margin-left:18px}}

/* RELIK Core V1.3 — Stories 24h + profile reposts */
.story-button{border:0;background:transparent;cursor:pointer;color:inherit;font:inherit}.story-add{cursor:pointer;position:relative;background:#fff}.story-add input{position:absolute;inset:0;opacity:0;cursor:pointer}.story-empty{align-self:center}.story-viewer{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.86);display:none;align-items:center;justify-content:center;color:#fff}.story-viewer.open{display:flex}.story-media{width:min(420px,100vw);height:min(760px,100vh);object-fit:cover;border-radius:28px;box-shadow:0 30px 120px rgba(0,0,0,.45)}.story-progress{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 34px));height:4px;background:rgba(255,255,255,.26);border-radius:99px;overflow:hidden;z-index:3}.story-progress span{display:block;width:0;height:100%;background:#fff;border-radius:99px}.story-close{position:absolute;top:34px;right:34px;width:46px;height:46px;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:30px;z-index:4;cursor:pointer}.story-top{position:absolute;top:42px;left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 34px));display:flex;align-items:center;gap:12px;z-index:4;padding:0 12px}.story-top img{width:42px;height:42px;border-radius:999px;object-fit:cover}.story-top b{display:block;font-weight:620}.story-top small{display:block;color:rgba(255,255,255,.74)}.story-delete{margin-left:auto;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;padding:9px 13px;font-weight:520;cursor:pointer}.story-nav{position:absolute;top:0;bottom:0;width:50%;border:0;background:transparent;z-index:2;cursor:pointer}.story-prev{left:0}.story-next{right:0}.tabs a.active{color:#111;font-weight:620}.repost-grid a{text-decoration:none;color:inherit}.repost-card{position:relative;display:block}.repost-card img,.repost-text{width:100%;height:260px;object-fit:cover;border-radius:18px;background:#f3f4f6;border:1px solid var(--line)}.repost-text{display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:#4b5563}.repost-card span{display:block;margin-top:8px;color:#66707c;font-size:14px}@media(max-width:700px){.story-media{width:100vw;height:100vh;border-radius:0}.story-progress,.story-top{width:calc(100vw - 28px)}.story-close{top:26px;right:16px}.story-row{overflow-x:auto}.story-nav{width:42%}}

/* RELIK V1.3.1 story crop editor */
.story-crop-modal{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;background:rgba(8,10,14,.42);backdrop-filter:blur(18px);padding:18px}.story-crop-modal.open{display:flex}.story-crop-card{width:min(460px,100%);max-height:calc(100vh - 28px);overflow:auto;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.75);box-shadow:0 30px 100px rgba(0,0,0,.24);border-radius:28px;padding:18px;color:#15171a}.crop-head{height:46px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.crop-head b{font-weight:620;font-size:18px}.crop-head button{width:40px;height:40px;border:0;border-radius:999px;background:#f0f1f4;font-size:24px;cursor:pointer}.crop-frame{position:relative;margin:0 auto 16px;width:min(300px,78vw);aspect-ratio:9/16;border-radius:24px;overflow:hidden;background:#111;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 16px 50px rgba(0,0,0,.16)}.crop-frame img{position:absolute;left:50%;top:50%;min-width:100%;min-height:100%;width:auto;height:auto;transform:translate(-50%,-50%) scale(1);transform-origin:center;user-select:none;pointer-events:none}.crop-label{display:block;margin:12px 0;color:#59616d;font-weight:520;font-size:14px}.crop-label input[type=range]{width:100%;accent-color:#111;margin-top:8px}.crop-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}.crop-note{font-size:13px;margin:12px 2px 0}.story-crop-card .input{margin-top:6px}.story-delete:disabled{opacity:.6;cursor:not-allowed}@media(max-width:700px){.story-crop-modal{padding:0}.story-crop-card{width:100%;height:100%;max-height:none;border-radius:0}.crop-frame{width:min(330px,82vw)}}

/* RELIK V1.3.2 — Story editor with iPhone preview + non-destructive fit */
.story-crop-pro{background:rgba(3,7,12,.72)!important;backdrop-filter:blur(24px) saturate(140%)!important;padding:18px!important;align-items:center!important;justify-content:center!important}.story-crop-workspace{width:min(1120px,calc(100vw - 28px));max-height:calc(100vh - 28px);display:grid;grid-template-columns:minmax(360px,1fr) 390px;gap:18px;color:#f7f8fb}.story-editor-panel,.iphone-preview-panel{background:linear-gradient(180deg,rgba(18,24,32,.92),rgba(8,12,18,.92));border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 110px rgba(0,0,0,.38);border-radius:30px;padding:24px;overflow:auto}.story-crop-pro .crop-head{height:auto;margin-bottom:18px}.story-crop-pro .crop-head b{color:#fff;font-size:26px;font-weight:640;letter-spacing:-.035em}.story-crop-pro .crop-head small{display:block;margin-top:7px;color:#aeb7c5;font-size:15px}.story-crop-pro .crop-head button{background:rgba(255,255,255,.08);color:#fff}.crop-stage{position:relative;width:min(430px,74vw);aspect-ratio:9/16;margin:0 auto 18px;border-radius:24px;overflow:hidden;background:#05070a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 18px 60px rgba(0,0,0,.28)}.crop-stage:before{content:"";position:absolute;inset:-36px;background-image:inherit;background-size:cover;background-position:center;filter:blur(30px) brightness(.62);transform:scale(1.08);z-index:0}.crop-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;background-size:cover;background-position:center;z-index:1;transform:none!important}.crop-grid{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,transparent 33.2%,rgba(255,255,255,.28) 33.4%,transparent 33.6%,transparent 66.2%,rgba(255,255,255,.28) 66.4%,transparent 66.6%),linear-gradient(180deg,transparent 33.2%,rgba(255,255,255,.28) 33.4%,transparent 33.6%,transparent 66.2%,rgba(255,255,255,.28) 66.4%,transparent 66.6%)}.story-crop-pro .crop-label{color:#d7dce5;font-size:14px;font-weight:520}.story-crop-pro .crop-label span{float:right;color:#fff}.story-crop-pro input[type=range]{accent-color:#fff}.crop-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-crop-pro .input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}.story-crop-pro .input::placeholder{color:#9ba5b4}.story-crop-pro .btn.light{background:rgba(255,255,255,.08)!important;color:#fff!important}.story-crop-pro .btn{background:#fff!important;color:#080b10!important}.story-crop-pro .crop-note{color:#aeb7c5}.iphone-label{margin-bottom:16px}.iphone-label b{display:block;font-size:26px;font-weight:640;letter-spacing:-.035em}.iphone-label span{display:block;margin-top:5px;color:#aeb7c5}.iphone-mock{width:318px;height:650px;margin:0 auto;border-radius:54px;padding:10px;background:linear-gradient(145deg,#3b4048,#050608 44%,#282d35);box-shadow:inset 0 0 0 2px rgba(255,255,255,.14),0 25px 70px rgba(0,0,0,.45);position:relative}.iphone-dynamic{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:94px;height:28px;border-radius:99px;background:#030405;z-index:8}.iphone-screen{position:relative;width:100%;height:100%;border-radius:46px;overflow:hidden;background:#000}.iphone-screen canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.iphone-status{position:absolute;top:15px;left:22px;right:22px;display:flex;justify-content:space-between;color:#fff;font-weight:620;font-size:13px;z-index:3}.iphone-progress{position:absolute;top:54px;left:18px;right:18px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;z-index:3}.iphone-progress span{height:3px;border-radius:99px;background:rgba(255,255,255,.74)}.iphone-user{position:absolute;top:67px;left:18px;right:18px;display:flex;align-items:center;gap:8px;z-index:3;color:#fff}.iphone-user img{width:31px;height:31px;border-radius:999px;object-fit:cover}.iphone-user b{font-size:13px;font-weight:620}.iphone-user small{color:rgba(255,255,255,.75)}.iphone-user em{margin-left:auto;font-style:normal;font-size:28px;line-height:1}.iphone-reply{position:absolute;left:16px;right:16px;bottom:18px;display:grid;grid-template-columns:38px 1fr 28px 28px;align-items:center;gap:8px;z-index:3;color:#fff}.iphone-reply button{width:38px;height:38px;border:1px solid rgba(255,255,255,.5);background:rgba(0,0,0,.28);border-radius:999px;color:#fff}.iphone-reply div{height:38px;border:1px solid rgba(255,255,255,.45);border-radius:999px;display:flex;align-items:center;padding:0 14px;color:rgba(255,255,255,.82);font-size:12px}.iphone-reply span{font-size:24px;text-align:center}.iphone-tip{margin:18px auto 0;width:318px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:16px;color:#fff}.iphone-tip b{display:block;font-weight:620}.iphone-tip span{display:block;margin-top:6px;color:#d4dae4}.iphone-tip small{display:block;margin-top:12px;color:#9ee6b1}@media(max-width:980px){.story-crop-workspace{grid-template-columns:1fr}.iphone-preview-panel{display:block}.iphone-mock,.iphone-tip{width:min(318px,86vw)}}@media(max-width:640px){.story-crop-pro{padding:0!important}.story-crop-workspace{width:100vw;max-height:none;height:100vh;display:block;overflow:auto}.story-editor-panel,.iphone-preview-panel{border-radius:0;border-left:0;border-right:0}.crop-mini-grid{grid-template-columns:1fr}.crop-stage{width:min(340px,86vw)}.iphone-mock{height:620px}}

/* RELIK V1.3.3 — Story editor iPhone central, white Apple-style */
.story-crop-modal.story-crop-ios{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
  background:rgba(247,248,251,.88)!important;
  backdrop-filter:blur(24px) saturate(150%)!important;
  color:#111318!important;
}
.story-crop-modal.story-crop-ios.open{display:flex!important;}
.story-ios-sheet{
  position:relative!important;
  width:min(620px,100%)!important;
  max-height:calc(100vh - 34px)!important;
  overflow:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:16px!important;
  padding:24px!important;
  border-radius:34px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(17,20,24,.06)!important;
  box-shadow:0 28px 90px rgba(17,20,24,.14)!important;
}
.story-ios-close{
  position:absolute!important;
  right:18px!important;
  top:18px!important;
  width:46px!important;
  height:46px!important;
  border:0!important;
  border-radius:999px!important;
  background:#f0f2f6!important;
  color:#111!important;
  font-size:28px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.story-ios-head{text-align:center!important;padding:2px 54px 0!important;}
.story-ios-head b{display:block!important;font-size:26px!important;letter-spacing:-.04em!important;font-weight:650!important;}
.story-ios-head small{display:block!important;margin-top:6px!important;color:#6b7280!important;font-size:14px!important;line-height:1.35!important;}
.story-ios-phone{
  position:relative!important;
  width:min(330px,82vw)!important;
  aspect-ratio:390/844!important;
  border-radius:46px!important;
  padding:10px!important;
  background:linear-gradient(145deg,#17191d,#050506)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.18)!important;
  touch-action:none!important;
  user-select:none!important;
  cursor:grab!important;
}
.story-ios-phone.is-dragging{cursor:grabbing!important;}
.story-ios-screen{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  border-radius:38px!important;
  overflow:hidden!important;
  background:#000!important;
}
.story-ios-screen canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.story-ios-phone .iphone-dynamic{
  position:absolute!important;
  top:18px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:92px!important;
  height:28px!important;
  border-radius:999px!important;
  background:#050506!important;
  z-index:5!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important;
}
.story-ios-status,.story-ios-progress,.story-ios-user,.story-ios-reply{position:absolute!important;left:16px!important;right:16px!important;z-index:4!important;color:#fff!important;}
.story-ios-status{top:14px!important;display:flex!important;justify-content:space-between!important;font-size:12px!important;font-weight:650!important;text-shadow:0 1px 8px rgba(0,0,0,.4)!important;}
.story-ios-progress{top:50px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;}
.story-ios-progress span{height:3px!important;border-radius:999px!important;background:rgba(255,255,255,.72)!important;}
.story-ios-progress span:not(:first-child){opacity:.55!important;}
.story-ios-user{top:64px!important;display:flex!important;align-items:center!important;gap:8px!important;text-shadow:0 1px 12px rgba(0,0,0,.55)!important;}
.story-ios-user img{width:30px!important;height:30px!important;border-radius:999px!important;object-fit:cover!important;border:1px solid rgba(255,255,255,.65)!important;}
.story-ios-user b{font-size:13px!important;font-weight:650!important;}
.story-ios-user small{font-size:12px!important;opacity:.82!important;}
.story-ios-user em{margin-left:auto!important;font-style:normal!important;font-size:25px!important;line-height:1!important;}
.story-ios-reply{bottom:18px!important;display:flex!important;align-items:center!important;gap:9px!important;}
.story-ios-reply button{width:36px!important;height:36px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.75)!important;background:rgba(255,255,255,.12)!important;color:#fff!important;}
.story-ios-reply div{flex:1!important;border:1px solid rgba(255,255,255,.62)!important;border-radius:999px!important;padding:10px 14px!important;font-size:12px!important;background:rgba(0,0,0,.14)!important;backdrop-filter:blur(10px)!important;color:#fff!important;}
.story-ios-reply span{font-size:22px!important;text-shadow:0 1px 10px rgba(0,0,0,.45)!important;}
.story-ios-zoom{width:min(420px,100%)!important;display:flex!important;align-items:center!important;gap:12px!important;color:#3b414a!important;font-size:14px!important;font-weight:520!important;}
.story-ios-zoom span{margin-left:auto!important;color:#111!important;font-weight:650!important;}
.story-ios-zoom input{width:100%!important;accent-color:#111827!important;}
.story-ios-caption{width:min(420px,100%)!important;background:#f7f8fb!important;}
.story-ios-actions{width:min(420px,100%)!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
.story-ios-note{width:min(420px,100%)!important;text-align:center!important;font-size:13px!important;line-height:1.4!important;margin:0!important;}
@media(max-width:700px){
  .story-crop-modal.story-crop-ios{padding:0!important;align-items:stretch!important;}
  .story-ios-sheet{width:100%!important;min-height:100vh!important;max-height:100vh!important;border-radius:0!important;padding:18px 16px 22px!important;justify-content:flex-start!important;}
  .story-ios-head{padding:8px 50px 0!important;}
  .story-ios-head b{font-size:23px!important;}
  .story-ios-phone{width:min(315px,88vw)!important;}
  .story-ios-actions{padding-bottom:8px!important;}
}
@media(max-height:760px){
  .story-ios-sheet{gap:10px!important;padding-top:16px!important;}
  .story-ios-head small{display:none!important;}
  .story-ios-phone{width:min(270px,76vw)!important;}
}

/* === RELIK V1.3.4: Story editor no-squash + liquid glass background === */
.story-crop-modal.story-crop-ios{
  background:rgba(250,251,253,.92)!important;
  backdrop-filter:blur(22px) saturate(165%)!important;
}
.story-ios-sheet{
  width:min(560px,100%)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 26px 80px rgba(17,24,39,.12)!important;
}
.story-ios-phone{
  width:min(335px,82vw)!important;
  aspect-ratio:9/16!important;
  border-radius:46px!important;
  padding:10px!important;
  background:linear-gradient(145deg,#1b1d22,#050506 62%,#242832)!important;
}
.story-ios-screen{
  width:100%!important;
  height:100%!important;
  aspect-ratio:9/16!important;
  border-radius:38px!important;
  background:linear-gradient(135deg,#f8fafc,#dce3ed 55%,#b8c1ce)!important;
}
.story-ios-screen canvas{
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  image-rendering:auto!important;
}
.story-ios-head b{font-weight:620!important;}
.story-ios-note{display:none!important;}
.story-ios-zoom{margin-top:2px!important;}
.story-ios-caption{border-radius:16px!important;}
@media(max-width:700px){
  .story-ios-phone{width:min(330px,88vw)!important;}
  .story-ios-sheet{gap:13px!important;}
}
@media(max-height:760px){
  .story-ios-phone{width:min(285px,74vw)!important;}
}
@media(max-height:650px){
  .story-ios-head small{display:none!important;}
  .story-ios-phone{width:min(245px,68vw)!important;}
}

/* === RELIK V1.3.5: Liquid Glass story overlay + slimmer iPhone editor === */
/* Story viewer: platform remains visible behind a premium iOS/liquid-glass veil */
.story-viewer{
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.72),rgba(255,255,255,0) 34%),
    radial-gradient(circle at 82% 78%,rgba(174,184,205,.34),rgba(174,184,205,0) 36%),
    rgba(248,250,253,.46)!important;
  backdrop-filter:blur(22px) saturate(165%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(165%)!important;
}
.story-viewer:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.25),rgba(255,255,255,.05));
}
.story-media{
  width:min(360px,calc(100vw - 42px))!important;
  height:min(640px,calc(100vh - 42px))!important;
  object-fit:contain!important;
  border-radius:38px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(218,225,235,.88) 55%,rgba(185,196,211,.88))!important;
  box-shadow:0 30px 100px rgba(17,24,39,.22), inset 0 0 0 1px rgba(255,255,255,.72)!important;
  position:relative;
  z-index:1;
}
.story-progress,.story-top{
  width:min(340px,calc(100vw - 74px))!important;
  z-index:5!important;
}
.story-top{
  color:#fff!important;
  text-shadow:0 1px 14px rgba(0,0,0,.45)!important;
}
.story-delete,.story-close{
  background:rgba(255,255,255,.24)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}

/* Story editor overlay: white/liquid glass, with the platform visible behind it */
.story-crop-modal.story-crop-ios{
  background:
    radial-gradient(circle at 14% 12%,rgba(255,255,255,.74),rgba(255,255,255,0) 35%),
    radial-gradient(circle at 88% 82%,rgba(196,205,221,.45),rgba(196,205,221,0) 36%),
    rgba(248,250,253,.52)!important;
  backdrop-filter:blur(24px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(170%)!important;
}
.story-ios-sheet{
  width:min(500px,calc(100vw - 28px))!important;
  background:rgba(255,255,255,.68)!important;
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:0 28px 90px rgba(17,24,39,.16), inset 0 1px 0 rgba(255,255,255,.85)!important;
  backdrop-filter:blur(28px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(170%)!important;
}
.story-ios-head b{font-size:25px!important;font-weight:620!important;letter-spacing:-.045em!important;}
.story-ios-head small{color:#586170!important;}
.story-ios-close{background:rgba(241,244,248,.78)!important;backdrop-filter:blur(16px)!important;}

/* Slimmer iPhone: closer to real iOS proportions and less wide on desktop */
.story-ios-phone{
  width:min(292px,76vw)!important;
  aspect-ratio:390/844!important;
  border-radius:48px!important;
  padding:9px!important;
  background:linear-gradient(145deg,#262a31,#050506 54%,#2d333c)!important;
  box-shadow:0 24px 80px rgba(17,24,39,.24), inset 0 0 0 1px rgba(255,255,255,.16)!important;
}
.story-ios-screen{
  border-radius:39px!important;
  background:linear-gradient(135deg,#f8fafc,#dfe6ef 58%,#bac4d0)!important;
}
.story-ios-screen canvas{
  object-fit:contain!important;
  background:transparent!important;
}
.story-ios-phone .iphone-dynamic{
  width:82px!important;
  height:25px!important;
  top:17px!important;
}
.story-ios-status{top:13px!important;left:20px!important;right:20px!important;font-size:11px!important;}
.story-ios-progress{top:49px!important;left:18px!important;right:18px!important;}
.story-ios-user{top:63px!important;left:18px!important;right:18px!important;}
.story-ios-user img{width:28px!important;height:28px!important;}
.story-ios-user b{font-size:12px!important;}
.story-ios-user small{font-size:11px!important;}
.story-ios-reply{left:16px!important;right:16px!important;bottom:17px!important;gap:7px!important;}
.story-ios-reply button{width:34px!important;height:34px!important;}
.story-ios-reply div{height:34px!important;padding:0 12px!important;font-size:11px!important;display:flex!important;align-items:center!important;}
.story-ios-reply span{font-size:20px!important;}
.story-ios-zoom,.story-ios-caption,.story-ios-actions{width:min(390px,100%)!important;}

@media(max-width:700px){
  .story-crop-modal.story-crop-ios{align-items:center!important;padding:10px!important;}
  .story-ios-sheet{
    width:100%!important;
    min-height:auto!important;
    max-height:calc(100vh - 20px)!important;
    border-radius:30px!important;
    padding:18px 14px!important;
    overflow:auto!important;
  }
  .story-ios-phone{width:min(286px,74vw)!important;}
  .story-ios-head{padding:4px 50px 0!important;}
  .story-ios-head b{font-size:22px!important;}
  .story-ios-head small{font-size:13px!important;}
}
@media(max-width:420px){
  .story-ios-phone{width:min(270px,76vw)!important;}
  .story-ios-sheet{gap:10px!important;}
  .story-ios-zoom{gap:8px!important;font-size:13px!important;}
}
@media(max-height:760px){
  .story-ios-phone{width:min(250px,62vw)!important;}
  .story-ios-sheet{gap:9px!important;}
}
@media(max-height:660px){
  .story-ios-head small{display:none!important;}
  .story-ios-phone{width:min(220px,58vw)!important;}
}
@media(max-width:700px){
  .story-media{width:min(360px,calc(100vw - 30px))!important;height:min(640px,calc(100vh - 30px))!important;border-radius:34px!important;}
  .story-progress,.story-top{width:min(330px,calc(100vw - 58px))!important;}
}


/* === RELIK V1.3.6: Smart Story Background + better crop interaction === */
.story-ios-screen{
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(220,228,240,.78),rgba(174,186,204,.76))!important;
}
.story-ios-screen canvas{
  cursor:grab!important;
  touch-action:none!important;
}
.story-ios-phone.is-dragging .story-ios-screen canvas,
.story-ios-phone.is-dragging{cursor:grabbing!important;}
.story-ios-zoom input{
  height:26px!important;
  cursor:pointer!important;
}
.story-ios-zoom:after{
  content:'Trage poza în ecran pentru poziționare. Mărește pentru crop.';
  display:block!important;
  width:100%!important;
  color:#747b86!important;
  font-size:12px!important;
  font-weight:430!important;
  margin-top:4px!important;
}
.story-ios-zoom{
  flex-wrap:wrap!important;
}
.story-ios-zoom label,
.story-ios-zoom > b,
.story-ios-zoom > span:first-child{
  white-space:nowrap!important;
}
.story-ios-zoom input{flex:1 1 180px!important;}
.story-viewer .story-media,
.story-media{
  background:rgba(255,255,255,.18)!important;
}
@media(max-width:700px){
  .story-ios-zoom:after{font-size:11.5px!important;text-align:center!important;}
}


/* === RELIK V1.3.7: viewer/editor use the same smart background logic === */
.story-viewer{
  overflow:hidden!important;
}
.story-viewer:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:min(360px,calc(100vw - 42px));
  height:min(640px,calc(100vh - 42px));
  transform:translate(-50%,-50%) scale(1.06);
  border-radius:38px;
  background-image:linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.28)),var(--story-bg);
  background-size:cover;
  background-position:center;
  filter:blur(26px) saturate(1.18) brightness(.82);
  opacity:.88;
  z-index:0;
  pointer-events:none;
}
.story-media{
  object-fit:contain!important;
  background:rgba(255,255,255,.10)!important;
  z-index:2!important;
}
.story-top,.story-progress,.story-delete,.story-close{z-index:6!important;}
.story-ios-screen{
  background:rgba(238,243,249,.58)!important;
}
/* Keep the iPhone preview slimmer and prevent the screen from looking too wide. */
.story-ios-phone{
  width:min(282px,72vw)!important;
  aspect-ratio:390/844!important;
}
.story-ios-screen canvas{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
@media(max-width:700px){
  .story-viewer:after{width:min(360px,calc(100vw - 30px));height:min(640px,calc(100vh - 30px));border-radius:34px;}
  .story-ios-phone{width:min(276px,74vw)!important;}
}
@media(max-height:760px){
  .story-ios-phone{width:min(242px,62vw)!important;}
}


/* === RELIK V1.3.8: Full-bleed Story Header Controls === */
.story-viewer.open{
  align-items:center!important;
  justify-content:center!important;
}
.story-viewer:before{
  background:rgba(255,255,255,.02)!important;
}
.story-viewer:after{
  width:min(360px,calc(100vw - 42px))!important;
  height:min(640px,calc(100vh - 42px))!important;
  border-radius:38px!important;
  filter:blur(32px) saturate(1.22) brightness(.72)!important;
  transform:translate(-50%,-50%) scale(1.09)!important;
}
.story-media{
  width:min(360px,calc(100vw - 42px))!important;
  height:min(640px,calc(100vh - 42px))!important;
  border-radius:38px!important;
  object-fit:contain!important;
  background-image:
    linear-gradient(180deg,rgba(0,0,0,.46),rgba(0,0,0,.02) 28%,rgba(0,0,0,.10) 58%,rgba(0,0,0,.42)),
    var(--story-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  box-shadow:0 30px 105px rgba(15,23,42,.26), inset 0 0 0 1px rgba(255,255,255,.18)!important;
}
.story-progress{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 18px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  height:3px!important;
  background:rgba(255,255,255,.30)!important;
  z-index:8!important;
}
.story-progress span{background:rgba(255,255,255,.96)!important;}
.story-top{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 34px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  padding:0!important;
  gap:9px!important;
  z-index:8!important;
  color:#fff!important;
  text-shadow:0 1px 16px rgba(0,0,0,.62)!important;
}
.story-top:before{
  content:"";
  position:absolute;
  left:-22px;right:-22px;top:-44px;height:128px;
  background:linear-gradient(180deg,rgba(0,0,0,.48),rgba(0,0,0,.23) 42%,rgba(0,0,0,0));
  pointer-events:none;
  z-index:-1;
}
.story-top img{
  width:42px!important;
  height:42px!important;
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
.story-top b{
  font-size:15px!important;
  line-height:1.05!important;
  font-weight:680!important;
  color:#fff!important;
}
.story-top small{
  font-size:13px!important;
  line-height:1.15!important;
  color:rgba(255,255,255,.84)!important;
}
.story-delete{display:none!important;}
.story-close{
  display:none!important;
}
.story-controls{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  position:relative!important;
  z-index:10!important;
}
.story-pause,.story-more{
  border:0!important;
  width:36px!important;
  height:36px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:760!important;
  cursor:pointer!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)!important;
  text-shadow:0 1px 8px rgba(0,0,0,.45)!important;
}
.story-more{font-size:16px!important;letter-spacing:-2px!important;padding-bottom:2px!important;}
.story-pause:hover,.story-more:hover{background:rgba(255,255,255,.22)!important;}
.story-menu{
  position:absolute!important;
  right:0!important;
  top:44px!important;
  min-width:178px!important;
  padding:8px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.82)!important;
  color:#101318!important;
  box-shadow:0 20px 55px rgba(15,23,42,.22), inset 0 0 0 1px rgba(255,255,255,.75)!important;
  backdrop-filter:blur(26px) saturate(175%)!important;
  -webkit-backdrop-filter:blur(26px) saturate(175%)!important;
  display:none!important;
  overflow:hidden!important;
  text-shadow:none!important;
}
.story-menu.open{display:block!important;animation:storyMenuIn .16s ease both!important;}
@keyframes storyMenuIn{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
.story-menu button{
  width:100%!important;
  border:0!important;
  background:transparent!important;
  color:#111827!important;
  text-align:left!important;
  padding:11px 12px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:560!important;
  cursor:pointer!important;
}
.story-menu button:hover{background:rgba(17,24,39,.07)!important;}
.story-menu [data-story-menu-delete]{color:#d11f32!important;}
.story-nav{z-index:4!important;}
@media(max-width:700px){
  .story-media{width:min(360px,calc(100vw - 26px))!important;height:min(640px,calc(100vh - 26px))!important;border-radius:34px!important;}
  .story-viewer:after{width:min(360px,calc(100vw - 26px))!important;height:min(640px,calc(100vh - 26px))!important;border-radius:34px!important;}
  .story-progress{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 18px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-top{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 34px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-top img{width:38px!important;height:38px!important;}
  .story-top b{font-size:14px!important;}
  .story-top small{font-size:12px!important;}
  .story-pause,.story-more{width:34px!important;height:34px!important;}
}
@media(max-width:390px){
  .story-controls{gap:5px!important;}
  .story-pause,.story-more{width:31px!important;height:31px!important;font-size:15px!important;}
  .story-top{gap:7px!important;}
}


/* === RELIK V1.3.9: Story header polish / Instagram-like controls === */
.story-viewer.open{
  display:flex!important;
}
.story-viewer{
  overflow:hidden!important;
}
.story-media{
  overflow:hidden!important;
  clip-path:inset(0 round 34px)!important;
  border-radius:34px!important;
  background-color:#0b0b0b!important;
}
.story-viewer:after{
  border-radius:34px!important;
  pointer-events:none!important;
}
.story-progress{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 16px)!important;
  height:3px!important;
  background:rgba(255,255,255,.28)!important;
}
.story-progress span{
  background:rgba(255,255,255,.88)!important;
}
.story-top{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 32px)!important;
  align-items:center!important;
  gap:10px!important;
}
.story-top:before{
  left:-22px!important;
  right:-22px!important;
  top:-48px!important;
  height:138px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.28) 42%,rgba(0,0,0,0))!important;
}
.story-top img{
  width:42px!important;
  height:42px!important;
  flex:0 0 auto!important;
}
.story-top b{
  font-size:15px!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
  display:block!important;
  color:#fff!important;
}
.story-top small{
  display:block!important;
  margin-top:2px!important;
  font-size:13px!important;
  line-height:1.1!important;
  color:rgba(255,255,255,.80)!important;
  font-weight:430!important;
}
.story-verify{
  display:inline-grid!important;
  place-items:center!important;
  width:15px!important;
  height:15px!important;
  margin-left:3px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#111!important;
  font-size:10px!important;
  line-height:1!important;
  vertical-align:1px!important;
  text-shadow:none!important;
}
.story-time{
  margin-left:6px!important;
  color:rgba(255,255,255,.82)!important;
  font-weight:520!important;
}
.story-delete{display:none!important;}
.story-close{
  display:grid!important;
  place-items:center!important;
  position:absolute!important;
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 46px)!important;
  right:calc(50% - min(180px,calc((100vw - 42px)/2)) + 8px)!important;
  width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:rgba(255,255,255,.96)!important;
  font-size:32px!important;
  font-weight:300!important;
  line-height:1!important;
  z-index:12!important;
  cursor:pointer!important;
  text-shadow:0 2px 14px rgba(0,0,0,.55)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.story-close:hover{color:#fff!important;transform:scale(1.04)!important;}
.story-controls{
  margin-left:auto!important;
  gap:8px!important;
  padding-right:40px!important;
}
.story-pause,.story-more{
  width:34px!important;
  height:34px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.96)!important;
  text-shadow:0 2px 14px rgba(0,0,0,.55)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.story-pause{
  font-size:24px!important;
  font-weight:520!important;
  letter-spacing:-.08em!important;
}
.story-more{
  font-size:21px!important;
  font-weight:420!important;
  letter-spacing:-1px!important;
  padding-bottom:4px!important;
}
.story-pause:hover,.story-more:hover{background:rgba(255,255,255,.14)!important;}
.story-menu{
  right:42px!important;
  top:42px!important;
  min-width:154px!important;
}
.story-menu [data-story-menu-close]{display:none!important;}
@media(max-width:700px){
  .story-media{border-radius:30px!important;clip-path:inset(0 round 30px)!important;}
  .story-progress{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 16px)!important;}
  .story-top{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 32px)!important;}
  .story-close{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 44px)!important;right:calc(50% - min(180px,calc((100vw - 26px)/2)) + 7px)!important;}
  .story-controls{padding-right:38px!important;}
}
@media(max-width:390px){
  .story-top img{width:36px!important;height:36px!important;}
  .story-top b{font-size:13px!important;}
  .story-top small{font-size:11px!important;}
  .story-pause,.story-more,.story-close{width:30px!important;height:30px!important;}
  .story-controls{padding-right:34px!important;}
}

/* === RELIK V1.3.10: Story header exact polish ===
   - removes ugly top shadow/corner artifacts
   - aligns pause / more / close controls
   - shows verified badge + posted time on same line
   - hides secondary caption row under username
*/
.story-viewer.open{display:flex!important;align-items:center!important;justify-content:center!important;}
.story-viewer:after{display:none!important;content:none!important;}
.story-viewer:before{
  background:rgba(255,255,255,.10)!important;
  backdrop-filter:blur(18px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
}
.story-media{
  width:min(360px,calc(100vw - 42px))!important;
  height:min(640px,calc(100vh - 42px))!important;
  border-radius:34px!important;
  clip-path:inset(0 round 34px)!important;
  overflow:hidden!important;
  object-fit:cover!important;
  background-color:#090909!important;
  background-image:
    linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,0) 26%,rgba(0,0,0,.08) 70%,rgba(0,0,0,.28)),
    var(--story-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  box-shadow:0 24px 78px rgba(15,23,42,.18)!important;
}
.story-progress{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 22px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  height:3px!important;
  z-index:12!important;
  background:rgba(255,255,255,.34)!important;
}
.story-progress span{background:rgba(255,255,255,.94)!important;}
.story-top{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 48px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  height:44px!important;
  padding:0!important;
  gap:10px!important;
  align-items:center!important;
  z-index:13!important;
  color:#fff!important;
  text-shadow:0 2px 16px rgba(0,0,0,.62)!important;
}
.story-top:before{
  left:-22px!important;
  right:-22px!important;
  top:-62px!important;
  height:126px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.22) 45%,rgba(0,0,0,0))!important;
  border-radius:34px 34px 0 0!important;
}
.story-top img{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  object-fit:cover!important;
  box-shadow:0 8px 22px rgba(0,0,0,.28)!important;
}
.story-top > div:not(.story-controls){
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.story-top b{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:650!important;
  letter-spacing:-.02em!important;
  color:#fff!important;
}
.story-top small{display:none!important;}
.story-verify{
  display:inline-grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  margin-left:1px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#111!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  text-shadow:none!important;
}
.story-time{
  display:inline!important;
  margin-left:4px!important;
  color:rgba(255,255,255,.76)!important;
  font-size:17px!important;
  font-weight:440!important;
  letter-spacing:-.01em!important;
  text-shadow:0 2px 16px rgba(0,0,0,.62)!important;
}
.story-controls{
  margin-left:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:16px!important;
  padding-right:42px!important;
  height:44px!important;
  position:relative!important;
  z-index:14!important;
}
.story-pause,.story-more{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.96)!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:1!important;
  cursor:pointer!important;
  text-shadow:0 2px 16px rgba(0,0,0,.62)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.story-pause{
  font-size:28px!important;
  font-weight:520!important;
  letter-spacing:-.12em!important;
  transform:translateY(-1px)!important;
}
.story-more{
  font-size:25px!important;
  font-weight:260!important;
  letter-spacing:1.5px!important;
  opacity:.88!important;
  transform:translateY(-3px)!important;
}
.story-pause:hover,.story-more:hover{background:rgba(255,255,255,.10)!important;}
.story-close{
  display:grid!important;
  place-items:center!important;
  position:absolute!important;
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 54px)!important;
  right:calc(50% - min(180px,calc((100vw - 42px)/2)) + 20px)!important;
  width:32px!important;
  height:32px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:rgba(255,255,255,.96)!important;
  font-size:42px!important;
  font-weight:240!important;
  line-height:.7!important;
  z-index:15!important;
  cursor:pointer!important;
  text-shadow:0 2px 16px rgba(0,0,0,.62)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.story-menu{
  right:36px!important;
  top:38px!important;
  min-width:162px!important;
  border-radius:16px!important;
}
.story-delete{display:none!important;}
@media(max-width:700px){
  .story-media{width:min(360px,calc(100vw - 26px))!important;height:min(640px,calc(100vh - 26px))!important;border-radius:30px!important;clip-path:inset(0 round 30px)!important;}
  .story-progress{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 20px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-top{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 46px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-close{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 52px)!important;right:calc(50% - min(180px,calc((100vw - 26px)/2)) + 18px)!important;}
}
@media(max-width:390px){
  .story-top img{width:38px!important;height:38px!important;flex-basis:38px!important;}
  .story-top b,.story-time{font-size:14px!important;}
  .story-controls{gap:10px!important;padding-right:36px!important;}
  .story-pause{font-size:24px!important;}
  .story-more{font-size:21px!important;}
  .story-close{font-size:36px!important;}
}

/* === RELIK V1.3.11: Story header final size + no top shadow === */
.story-viewer.open{display:flex!important;align-items:center!important;justify-content:center!important;}
.story-viewer:after{display:none!important;content:none!important;}
.story-viewer:before{background:rgba(255,255,255,.08)!important;backdrop-filter:blur(18px) saturate(150%)!important;-webkit-backdrop-filter:blur(18px) saturate(150%)!important;}
.story-media{
  width:min(360px,calc(100vw - 42px))!important;
  height:min(640px,calc(100vh - 42px))!important;
  border-radius:34px!important;
  clip-path:inset(0 round 34px)!important;
  overflow:hidden!important;
  object-fit:cover!important;
  box-shadow:0 22px 68px rgba(15,23,42,.16)!important;
}
/* remove dark band/shadow above progress bar */
.story-top:before{display:none!important;content:none!important;background:none!important;}
.story-progress{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 18px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  height:3px!important;
  z-index:12!important;
  background:rgba(255,255,255,.32)!important;
  box-shadow:none!important;
}
.story-progress span{background:rgba(255,255,255,.92)!important;box-shadow:none!important;}
.story-top{
  top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 38px)!important;
  width:min(316px,calc(100vw - 86px))!important;
  height:40px!important;
  padding:0!important;
  gap:8px!important;
  align-items:center!important;
  z-index:13!important;
  color:#fff!important;
  text-shadow:0 1px 10px rgba(0,0,0,.52)!important;
  overflow:visible!important;
}
.story-top img{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.75)!important;object-fit:cover!important;box-shadow:0 6px 16px rgba(0,0,0,.24)!important;}
.story-top > div:not(.story-controls){min-width:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;overflow:hidden!important;}
.story-top b{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:15px!important;line-height:1!important;font-weight:650!important;letter-spacing:-.01em!important;color:#fff!important;}
.story-top small{display:none!important;}
.story-verify{display:inline-grid!important;place-items:center!important;width:15px!important;height:15px!important;flex:0 0 15px!important;margin-left:1px!important;border-radius:999px!important;background:#fff!important;color:#111!important;font-size:9px!important;font-weight:800!important;line-height:1!important;text-shadow:none!important;}
.story-time{display:inline!important;flex:0 0 auto!important;margin-left:3px!important;color:rgba(255,255,255,.78)!important;font-size:15px!important;font-weight:430!important;letter-spacing:-.01em!important;text-shadow:0 1px 10px rgba(0,0,0,.52)!important;}
.story-controls{margin-left:auto!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding-right:30px!important;height:40px!important;position:relative!important;z-index:14!important;}
.story-pause,.story-more{width:24px!important;height:24px!important;min-width:24px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:rgba(255,255,255,.94)!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;cursor:pointer!important;text-shadow:0 1px 10px rgba(0,0,0,.52)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
.story-pause{font-size:20px!important;font-weight:420!important;letter-spacing:-.08em!important;transform:none!important;}
.story-more{font-size:18px!important;font-weight:220!important;letter-spacing:1.2px!important;opacity:.74!important;transform:translateY(-1px)!important;}
.story-pause:hover,.story-more:hover{background:rgba(255,255,255,.08)!important;}
.story-close{display:grid!important;place-items:center!important;position:absolute!important;top:calc(50% - min(320px,calc((100vh - 42px)/2)) + 43px)!important;right:calc(50% - min(180px,calc((100vw - 42px)/2)) + 20px)!important;width:24px!important;height:24px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:rgba(255,255,255,.94)!important;font-size:31px!important;font-weight:220!important;line-height:.75!important;z-index:15!important;cursor:pointer!important;text-shadow:0 1px 10px rgba(0,0,0,.52)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
.story-menu{right:30px!important;top:34px!important;min-width:152px!important;border-radius:15px!important;}
.story-delete{display:none!important;}
@media(max-width:700px){
  .story-media{width:min(360px,calc(100vw - 26px))!important;height:min(640px,calc(100vh - 26px))!important;border-radius:30px!important;clip-path:inset(0 round 30px)!important;}
  .story-progress{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 17px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-top{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 36px)!important;width:min(316px,calc(100vw - 70px))!important;}
  .story-close{top:calc(50% - min(320px,calc((100vh - 26px)/2)) + 41px)!important;right:calc(50% - min(180px,calc((100vw - 26px)/2)) + 18px)!important;}
}
@media(max-width:390px){
  .story-top img{width:34px!important;height:34px!important;flex-basis:34px!important;}
  .story-top b,.story-time{font-size:13px!important;}
  .story-controls{gap:7px!important;padding-right:28px!important;}
  .story-pause{font-size:18px!important;}
  .story-more{font-size:16px!important;letter-spacing:1px!important;}
  .story-close{font-size:28px!important;}
}

/* RELIK V1.3.12 — Instagram-style web story carousel */
@media (min-width: 900px){
  .story-viewer.story-web-carousel{
    background:#171717!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:hidden!important;
  }
  .story-viewer.story-web-carousel:before,
  .story-viewer.story-web-carousel:after{display:none!important;content:none!important;}
  .story-viewer.story-web-carousel .story-media{
    position:relative!important;
    z-index:5!important;
    width:min(468px,calc((100vh - 70px)*9/16))!important;
    height:min(832px,calc(100vh - 70px))!important;
    max-width:calc(100vw - 680px)!important;
    object-fit:cover!important;
    border-radius:10px!important;
    clip-path:inset(0 round 10px)!important;
    box-shadow:0 26px 90px rgba(0,0,0,.35)!important;
    background:#000!important;
  }
  .story-viewer.story-web-carousel .story-progress{
    top:calc(50% - min(416px,calc((100vh - 70px)/2)) + 22px)!important;
    width:min(432px,calc((100vh - 110px)*9/16))!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    height:3px!important;
    background:rgba(255,255,255,.34)!important;
    z-index:12!important;
    border-radius:99px!important;
  }
  .story-viewer.story-web-carousel .story-progress span{background:rgba(255,255,255,.92)!important;border-radius:99px!important;}
  .story-viewer.story-web-carousel .story-top{
    top:calc(50% - min(416px,calc((100vh - 70px)/2)) + 48px)!important;
    width:min(432px,calc((100vh - 110px)*9/16))!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    z-index:13!important;
  }
  .story-viewer.story-web-carousel .story-top:before{
    content:""!important;
    position:absolute!important;
    left:-18px!important;right:-18px!important;top:-48px!important;height:136px!important;
    background:linear-gradient(180deg,rgba(0,0,0,.56),rgba(0,0,0,.22) 48%,rgba(0,0,0,0))!important;
    pointer-events:none!important;
    z-index:-1!important;
  }
  .story-viewer.story-web-carousel .story-top img{width:38px!important;height:38px!important;border:1.5px solid rgba(255,255,255,.82)!important;}
  .story-viewer.story-web-carousel .story-top b{font-size:15px!important;font-weight:650!important;color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.5)!important;}
  .story-viewer.story-web-carousel .story-time{font-size:14px!important;margin-left:5px!important;color:rgba(255,255,255,.75)!important;font-weight:500!important;}
  .story-viewer.story-web-carousel .story-verify{width:16px!important;height:16px!important;font-size:11px!important;margin-left:4px!important;vertical-align:middle!important;}
  .story-viewer.story-web-carousel .story-controls{
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    padding-right:46px!important;
    height:30px!important;
    z-index:15!important;
  }
  .story-viewer.story-web-carousel .story-pause,
  .story-viewer.story-web-carousel .story-more{
    width:24px!important;height:24px!important;
    border:0!important;background:transparent!important;box-shadow:none!important;
    color:rgba(255,255,255,.95)!important;text-shadow:0 1px 9px rgba(0,0,0,.55)!important;
    display:grid!important;place-items:center!important;padding:0!important;
    line-height:1!important;cursor:pointer!important;
  }
  .story-viewer.story-web-carousel .story-pause{font-size:20px!important;font-weight:520!important;letter-spacing:-4px!important;}
  .story-viewer.story-web-carousel .story-more{font-size:20px!important;font-weight:300!important;letter-spacing:1.8px!important;opacity:.88!important;}
  .story-viewer.story-web-carousel .story-close{
    position:fixed!important;
    top:22px!important;right:28px!important;
    width:42px!important;height:42px!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
    color:#fff!important;font-size:48px!important;font-weight:160!important;line-height:.8!important;
    z-index:30!important;text-shadow:0 2px 14px rgba(0,0,0,.55)!important;
    display:grid!important;place-items:center!important;padding:0!important;
  }
  .story-viewer.story-web-carousel .story-menu{
    top:32px!important;right:48px!important;
    background:rgba(22,22,22,.96)!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important;
    box-shadow:0 16px 45px rgba(0,0,0,.45)!important;
  }
  .story-carousel-card{
    position:fixed!important;
    top:50%!important;
    width:190px!important;height:342px!important;
    border:0!important;border-radius:8px!important;overflow:hidden!important;
    padding:0!important;background:#000!important;color:#fff!important;
    transform:translateY(-50%)!important;
    z-index:3!important;cursor:pointer!important;
    box-shadow:0 18px 60px rgba(0,0,0,.34)!important;
    transition:transform .2s ease,opacity .2s ease,filter .2s ease!important;
  }
  .story-carousel-card:hover{transform:translateY(-50%) scale(1.025)!important;filter:brightness(1.08)!important;}
  .story-carousel-card.left{left:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 250px)!important;}
  .story-carousel-card.left-far{left:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 495px)!important;opacity:.58!important;}
  .story-carousel-card.right{right:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 250px)!important;}
  .story-carousel-card.right-far{right:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 495px)!important;opacity:.58!important;}
  .story-carousel-img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
  .story-carousel-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,0) 45%,rgba(0,0,0,.34))!important;}
  .story-carousel-user{position:absolute!important;left:0!important;right:0!important;bottom:28px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;text-align:center!important;text-shadow:0 2px 10px rgba(0,0,0,.65)!important;padding:0 8px!important;}
  .story-carousel-user img{width:58px!important;height:58px!important;border-radius:999px!important;object-fit:cover!important;border:3px solid #fff!important;box-shadow:0 0 0 3px #e100ff,0 0 0 5px #ffb300!important;margin-bottom:5px!important;}
  .story-carousel-user b{font-size:15px!important;font-weight:700!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .story-carousel-user span{font-size:14px!important;color:rgba(255,255,255,.9)!important;}
  .story-viewer.story-web-carousel .story-nav{z-index:2!important;width:50%!important;}
}
@media (max-width:1180px) and (min-width:900px){
  .story-carousel-card.left-far,.story-carousel-card.right-far{display:none!important;}
  .story-carousel-card{width:160px!important;height:288px!important;}
  .story-carousel-card.left{left:28px!important;}
  .story-carousel-card.right{right:28px!important;}
  .story-viewer.story-web-carousel .story-media{max-width:calc(100vw - 420px)!important;}
}
@media (max-width:899px){
  .story-carousel-card{display:none!important;}
}


/* RELIK V1.3.13 — Story web carousel polish: white feed background, fixed render, light controls */
@media (min-width: 900px){
  .story-viewer.story-web-carousel{
    background:linear-gradient(180deg,#ffffff 0%,#f7f8fb 100%)!important;
    color:#111318!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .story-viewer.story-web-carousel:before,
  .story-viewer.story-web-carousel:after{display:none!important;content:none!important;}

  .story-web-logo{
    position:fixed!important;
    top:24px!important;
    left:28px!important;
    z-index:35!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    color:#111318!important;
    pointer-events:none!important;
  }
  .story-web-logo-mark{
    width:34px!important;
    height:34px!important;
    border-radius:11px!important;
    background:#050506!important;
    color:#fff!important;
    display:grid!important;
    place-items:center!important;
    font-size:14px!important;
    box-shadow:0 10px 28px rgba(0,0,0,.10)!important;
  }
  .story-web-logo b{
    font-size:24px!important;
    line-height:1!important;
    font-weight:720!important;
    letter-spacing:-.055em!important;
  }
  .story-viewer:not(.story-web-carousel) .story-web-logo{display:none!important;}

  .story-viewer.story-web-carousel .story-media{
    border-radius:12px!important;
    clip-path:inset(0 round 12px)!important;
    box-shadow:0 26px 90px rgba(17,20,24,.14)!important;
    background:#000!important;
  }

  .story-viewer.story-web-carousel .story-progress{
    height:3px!important;
    background:rgba(255,255,255,.34)!important;
    z-index:12!important;
    box-shadow:none!important;
  }
  .story-viewer.story-web-carousel .story-progress span{
    background:rgba(255,255,255,.92)!important;
    box-shadow:none!important;
  }

  .story-viewer.story-web-carousel .story-top{
    z-index:14!important;
    gap:9px!important;
  }
  .story-viewer.story-web-carousel .story-top:before{
    left:-18px!important;
    right:-18px!important;
    top:-48px!important;
    height:132px!important;
    background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.18) 52%,rgba(0,0,0,0))!important;
    box-shadow:none!important;
  }
  .story-viewer.story-web-carousel .story-top img{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .story-viewer.story-web-carousel .story-top b{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    max-width:185px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
    font-size:14px!important;
    line-height:1.1!important;
    font-weight:650!important;
  }
  .story-viewer.story-web-carousel .story-time{
    display:inline-block!important;
    margin-left:6px!important;
    flex:0 0 auto!important;
    font-size:13px!important;
    line-height:1!important;
    color:rgba(255,255,255,.72)!important;
    font-weight:440!important;
    vertical-align:baseline!important;
  }
  .story-viewer.story-web-carousel .story-verify{
    display:inline-grid!important;
    place-items:center!important;
    width:15px!important;
    height:15px!important;
    flex:0 0 15px!important;
    font-size:10px!important;
    margin-left:5px!important;
  }

  .story-viewer.story-web-carousel .story-controls{
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    padding-right:42px!important;
    height:24px!important;
    z-index:16!important;
  }
  .story-viewer.story-web-carousel .story-pause,
  .story-viewer.story-web-carousel .story-more{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:rgba(255,255,255,.86)!important;
    text-shadow:0 1px 8px rgba(0,0,0,.35)!important;
    opacity:.86!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    line-height:1!important;
  }
  .story-viewer.story-web-carousel .story-pause{
    font-size:17px!important;
    font-weight:420!important;
    letter-spacing:-3px!important;
  }
  .story-viewer.story-web-carousel .story-more{
    font-size:14px!important;
    font-weight:260!important;
    letter-spacing:1.4px!important;
  }
  .story-viewer.story-web-carousel .story-close{
    position:fixed!important;
    top:22px!important;
    right:28px!important;
    width:34px!important;
    height:34px!important;
    color:#111318!important;
    font-size:38px!important;
    font-weight:180!important;
    opacity:.82!important;
    text-shadow:none!important;
    z-index:40!important;
  }
  .story-viewer.story-web-carousel .story-close:hover{opacity:1!important;}
  .story-viewer.story-web-carousel .story-menu{
    top:30px!important;
    right:44px!important;
    border-radius:14px!important;
  }

  .story-carousel-card{
    background:#111!important;
    box-shadow:0 18px 60px rgba(17,20,24,.12)!important;
  }
  .story-carousel-card.left-far,
  .story-carousel-card.right-far{opacity:.48!important;}
  .story-carousel-user b{font-weight:620!important;}
  .story-carousel-user span{font-weight:420!important;}
}
@media (max-width:1180px) and (min-width:900px){
  .story-web-logo b{display:none!important;}
  .story-web-logo{left:18px!important;}
}


/* RELIK V1.3.14B — Story carousel polish stable fix */
@media (min-width:900px){
  .story-viewer.story-web-carousel{
    background:#fbfbfd!important;
  }
  .story-viewer.story-web-carousel .story-controls{
    padding-right:6px!important;
    gap:6px!important;
    transform:translateX(2px)!important;
  }
  .story-viewer.story-web-carousel .story-pause,
  .story-viewer.story-web-carousel .story-more{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    opacity:.78!important;
    color:rgba(255,255,255,.86)!important;
  }
  .story-viewer.story-web-carousel .story-pause{
    font-size:15px!important;
    font-weight:360!important;
    letter-spacing:-3px!important;
  }
  .story-viewer.story-web-carousel .story-more{
    font-size:12px!important;
    font-weight:200!important;
    letter-spacing:1.7px!important;
  }
  .story-viewer.story-web-carousel .story-menu{
    background:rgba(255,255,255,.96)!important;
    color:#111318!important;
    border:1px solid rgba(17,20,24,.08)!important;
    box-shadow:0 22px 60px rgba(17,20,24,.14)!important;
    backdrop-filter:blur(22px) saturate(160%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(160%)!important;
    right:8px!important;
    top:32px!important;
  }
  .story-viewer.story-web-carousel .story-menu button{
    color:#111318!important;
    background:transparent!important;
    font-weight:520!important;
  }
  .story-viewer.story-web-carousel .story-menu button:hover{
    background:#f4f5f7!important;
  }

  .story-carousel-card{
    border-radius:14px!important;
    box-shadow:0 18px 50px rgba(17,20,24,.13)!important;
    transition:transform .48s cubic-bezier(.18,.82,.24,1), opacity .48s ease, filter .48s ease, box-shadow .48s ease!important;
    will-change:transform, opacity, filter!important;
  }
  .story-carousel-card:hover{
    transform:translateY(-50%) scale(1.035)!important;
    filter:brightness(1.06) saturate(1.04)!important;
    box-shadow:0 24px 70px rgba(17,20,24,.18)!important;
  }
  .story-carousel-img{
    transition:transform .75s cubic-bezier(.18,.82,.24,1), filter .55s ease!important;
  }
  .story-carousel-card:hover .story-carousel-img{
    transform:scale(1.035)!important;
  }

  /* same visual gradient family as the feed stories */
  .story-carousel-user img{
    width:58px!important;
    height:58px!important;
    padding:3px!important;
    border:0!important;
    border-radius:999px!important;
    background:linear-gradient(135deg,#5b5cf6,#87d7ff,#d5a11e)!important;
    box-shadow:0 10px 26px rgba(91,92,246,.20)!important;
    object-fit:cover!important;
  }
}

/* RELIK V1.3.15 — Story arrows + Apple-style transitions */
@media (min-width:900px){
  .story-viewer.story-web-carousel .story-media{
    transition:opacity .24s ease, transform .34s cubic-bezier(.2,.78,.22,1), filter .32s ease!important;
    will-change:opacity, transform, filter!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-media{
    opacity:0!important;
    filter:blur(10px) saturate(.92)!important;
    transform:translateX(-18px) scale(.985)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-media{
    transform:translateX(18px) scale(.985)!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-media{
    animation:relikStoryEnter .34s cubic-bezier(.2,.78,.22,1) both!important;
  }
  @keyframes relikStoryEnter{
    from{opacity:0;filter:blur(9px) saturate(.94);transform:translateY(8px) scale(.982)}
    to{opacity:1;filter:blur(0) saturate(1);transform:translateY(0) scale(1)}
  }
  .story-viewer.story-web-carousel .story-carousel-card{
    transition:transform .46s cubic-bezier(.18,.82,.24,1), opacity .46s ease, filter .46s ease, box-shadow .46s ease!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-carousel-card{
    opacity:.28!important;
    filter:blur(6px) saturate(.88)!important;
  }

  .story-arrow{
    position:absolute!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:19!important;
    width:46px!important;
    height:46px!important;
    border:1px solid rgba(18,22,30,.08)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.82)!important;
    color:#17191d!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    box-shadow:0 16px 42px rgba(18,22,30,.12), inset 0 1px 0 rgba(255,255,255,.9)!important;
    backdrop-filter:blur(22px) saturate(170%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(170%)!important;
    cursor:pointer!important;
    transition:transform .24s cubic-bezier(.2,.8,.2,1), opacity .22s ease, background .22s ease, box-shadow .22s ease!important;
  }
  .story-arrow span{
    display:block!important;
    line-height:.82!important;
    font-size:42px!important;
    font-weight:260!important;
    transform:translateY(-2px)!important;
    opacity:.84!important;
  }
  .story-arrow:hover{
    transform:translateY(-50%) scale(1.065)!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 20px 54px rgba(18,22,30,.16), inset 0 1px 0 rgba(255,255,255,1)!important;
  }
  .story-arrow:active{transform:translateY(-50%) scale(.98)!important;}
  .story-arrow-prev{left:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 74px)!important;}
  .story-arrow-next{right:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 74px)!important;}
}
@media (max-width:899px){
  .story-arrow{display:none!important;}
}
@media (min-width:900px) and (max-width:1180px){
  .story-arrow-prev{left:18px!important;}
  .story-arrow-next{right:18px!important;}
}

/* RELIK V1.3.16 — Story controls sizing + zoom carousel transition */
@media (min-width:900px){
  /* controls: pause slightly stronger, more aligned, more attached to active story */
  .story-viewer.story-web-carousel .story-controls{
    height:26px!important;
    gap:5px!important;
    padding-right:2px!important;
    transform:translateX(8px)!important;
    align-items:center!important;
  }
  .story-viewer.story-web-carousel .story-pause,
  .story-viewer.story-web-carousel .story-more{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:rgba(255,255,255,.92)!important;
    text-shadow:0 1px 7px rgba(0,0,0,.34)!important;
  }
  .story-viewer.story-web-carousel .story-pause{
    font-size:19px!important;
    font-weight:680!important;
    letter-spacing:-3.5px!important;
    opacity:.96!important;
  }
  .story-viewer.story-web-carousel .story-more{
    font-size:13px!important;
    font-weight:240!important;
    letter-spacing:1.5px!important;
    opacity:.76!important;
    transform:translateY(0)!important;
  }

  /* smaller, better-fitted arrows */
  .story-arrow{
    width:38px!important;
    height:38px!important;
    opacity:.9!important;
    box-shadow:0 12px 34px rgba(18,22,30,.10), inset 0 1px 0 rgba(255,255,255,.9)!important;
  }
  .story-arrow span{
    font-size:34px!important;
    font-weight:230!important;
    transform:translateY(-2px)!important;
  }
  .story-arrow:hover{
    transform:translateY(-50%) scale(1.045)!important;
  }
  .story-arrow-prev{left:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 58px)!important;}
  .story-arrow-next{right:calc(50% - min(234px,calc((100vh - 70px)*9/32)) - 58px)!important;}

  /* zoom carousel transition: current story shrinks, next story grows in */
  .story-viewer.story-web-carousel .story-media{
    transform-origin:center center!important;
    transition:opacity .30s ease, transform .42s cubic-bezier(.16,.84,.24,1), filter .38s ease!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-media{
    opacity:0!important;
    filter:blur(12px) saturate(.88) brightness(.96)!important;
    transform:scale(.90) translateX(-8px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-media{
    transform:scale(.90) translateX(8px)!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-media{
    animation:relikStoryZoomEnter .44s cubic-bezier(.16,.84,.24,1) both!important;
  }
  @keyframes relikStoryZoomEnter{
    0%{opacity:0;filter:blur(12px) saturate(.9) brightness(.98);transform:scale(.90)}
    55%{opacity:1;filter:blur(2px) saturate(1.02);transform:scale(1.018)}
    100%{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}
  }
  .story-viewer.story-web-carousel.is-story-changing .story-carousel-card{
    opacity:.46!important;
    filter:blur(3px) saturate(.92)!important;
    transform:translateY(-50%) scale(.94)!important;
  }
}
@media (min-width:900px) and (max-width:1180px){
  .story-arrow-prev{left:14px!important;}
  .story-arrow-next{right:14px!important;}
}


/* RELIK V1.3.17 — Slower cinematic story transitions */
@media (min-width:900px){
  .story-viewer.story-web-carousel .story-media{
    transition:opacity .72s ease, transform .86s cubic-bezier(.22,.8,.2,1), filter .78s ease!important;
    transform-origin:center center!important;
    will-change:opacity,transform,filter!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-media{
    opacity:.08!important;
    filter:blur(18px) saturate(.86) brightness(.94)!important;
    transform:scale(.84) translateX(-14px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-media{
    transform:scale(.84) translateX(14px)!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-media{
    animation:relikStorySlowZoomEnter .88s cubic-bezier(.22,.8,.2,1) both!important;
  }
  @keyframes relikStorySlowZoomEnter{
    0%{opacity:0;filter:blur(18px) saturate(.88) brightness(.96);transform:scale(.84)}
    58%{opacity:1;filter:blur(4px) saturate(1.02);transform:scale(1.018)}
    100%{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}
  }
  .story-viewer.story-web-carousel .story-carousel-card{
    transition:transform .88s cubic-bezier(.22,.8,.2,1), opacity .76s ease, filter .76s ease, box-shadow .76s ease!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-carousel-card{
    opacity:.36!important;
    filter:blur(4px) saturate(.9)!important;
    transform:translateY(-50%) scale(.91)!important;
  }
}


/* RELIK V1.3.18 — Whole story transition + timing polish */
@media (min-width:900px){
  .story-viewer.story-web-carousel .story-media,
  .story-viewer.story-web-carousel .story-progress,
  .story-viewer.story-web-carousel .story-top,
  .story-viewer.story-web-carousel .story-close{
    transition:opacity .92s ease, transform 1.04s cubic-bezier(.22,.8,.2,1), filter .92s ease!important;
    will-change:opacity,transform,filter!important;
  }

  /* Current story leaves as one complete card: media + header + controls + time + X */
  .story-viewer.story-web-carousel.is-story-changing .story-media{
    opacity:.06!important;
    filter:blur(20px) saturate(.84) brightness(.94)!important;
    transform:scale(.82) translateX(-18px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-media{
    transform:scale(.82) translateX(18px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-top{
    opacity:.06!important;
    filter:blur(14px)!important;
    transform:translateX(calc(-50% - 18px)) scale(.82)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-top{
    transform:translateX(calc(-50% + 18px)) scale(.82)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-progress{
    opacity:.06!important;
    filter:blur(10px)!important;
    transform:scaleX(.82) translateX(-18px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-progress{
    transform:scaleX(.82) translateX(18px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-close{
    opacity:.06!important;
    filter:blur(10px)!important;
    transform:scale(.82) translateX(-12px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-close{
    transform:scale(.82) translateX(12px)!important;
  }

  .story-viewer.story-web-carousel.is-story-entering .story-media{
    animation:relikStoryWholeMediaEnter 1.12s cubic-bezier(.22,.8,.2,1) both!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-top{
    animation:relikStoryWholeTopEnter 1.12s cubic-bezier(.22,.8,.2,1) both!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-progress{
    animation:relikStoryWholeProgressEnter 1.12s cubic-bezier(.22,.8,.2,1) both!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-close{
    animation:relikStoryWholeCloseEnter 1.12s cubic-bezier(.22,.8,.2,1) both!important;
  }

  @keyframes relikStoryWholeMediaEnter{
    0%{opacity:0;filter:blur(20px) saturate(.86) brightness(.96);transform:scale(.82)}
    62%{opacity:1;filter:blur(4px) saturate(1.02);transform:scale(1.016)}
    100%{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}
  }
  @keyframes relikStoryWholeTopEnter{
    0%{opacity:0;filter:blur(14px);transform:translateX(-50%) scale(.82)}
    62%{opacity:1;filter:blur(3px);transform:translateX(-50%) scale(1.016)}
    100%{opacity:1;filter:blur(0);transform:translateX(-50%) scale(1)}
  }
  @keyframes relikStoryWholeProgressEnter{
    0%{opacity:0;filter:blur(10px);transform:scaleX(.82)}
    62%{opacity:1;filter:blur(2px);transform:scaleX(1.016)}
    100%{opacity:1;filter:blur(0);transform:scaleX(1)}
  }
  @keyframes relikStoryWholeCloseEnter{
    0%{opacity:0;filter:blur(10px);transform:scale(.82)}
    62%{opacity:.88;filter:blur(2px);transform:scale(1.016)}
    100%{opacity:.82;filter:blur(0);transform:scale(1)}
  }

  .story-viewer.story-web-carousel .story-time{
    max-width:46px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
}


/* RELIK V1.3.19 — Transition tuning + restore story editor preview/crop */
@media (min-width:900px){
  .story-viewer.story-web-carousel .story-media,
  .story-viewer.story-web-carousel .story-progress,
  .story-viewer.story-web-carousel .story-top,
  .story-viewer.story-web-carousel .story-close{
    transition:opacity .34s ease, transform .58s cubic-bezier(.22,.8,.2,1), filter .38s ease!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-media{
    opacity:.28!important;
    filter:blur(3px) saturate(.96) brightness(.98)!important;
    transform:scale(.92) translateX(-10px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-media{
    transform:scale(.92) translateX(10px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-top{
    opacity:.28!important;
    filter:blur(2px)!important;
    transform:translateX(calc(-50% - 10px)) scale(.92)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-top{
    transform:translateX(calc(-50% + 10px)) scale(.92)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-progress{
    opacity:.28!important;
    filter:blur(1px)!important;
    transform:scaleX(.92) translateX(-10px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-progress{
    transform:scaleX(.92) translateX(10px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing .story-close{
    opacity:.28!important;
    filter:blur(1px)!important;
    transform:scale(.92) translateX(-6px)!important;
  }
  .story-viewer.story-web-carousel.is-story-changing.slide-right .story-close{
    transform:scale(.92) translateX(6px)!important;
  }
  .story-viewer.story-web-carousel.is-story-entering .story-media{animation:relikStoryV19EnterMedia .56s cubic-bezier(.22,.8,.2,1) both!important;}
  .story-viewer.story-web-carousel.is-story-entering .story-top{animation:relikStoryV19EnterTop .56s cubic-bezier(.22,.8,.2,1) both!important;}
  .story-viewer.story-web-carousel.is-story-entering .story-progress{animation:relikStoryV19EnterProgress .56s cubic-bezier(.22,.8,.2,1) both!important;}
  .story-viewer.story-web-carousel.is-story-entering .story-close{animation:relikStoryV19EnterClose .56s cubic-bezier(.22,.8,.2,1) both!important;}
  @keyframes relikStoryV19EnterMedia{0%{opacity:0;filter:blur(3px) saturate(.98);transform:scale(.92)}70%{opacity:1;filter:blur(.4px) saturate(1);transform:scale(1.006)}100%{opacity:1;filter:blur(0);transform:scale(1)}}
  @keyframes relikStoryV19EnterTop{0%{opacity:0;filter:blur(2px);transform:translateX(-50%) scale(.92)}70%{opacity:1;filter:blur(.2px);transform:translateX(-50%) scale(1.006)}100%{opacity:1;filter:blur(0);transform:translateX(-50%) scale(1)}}
  @keyframes relikStoryV19EnterProgress{0%{opacity:0;filter:blur(1px);transform:scaleX(.92)}70%{opacity:1;filter:blur(0);transform:scaleX(1.006)}100%{opacity:1;filter:blur(0);transform:scaleX(1)}}
  @keyframes relikStoryV19EnterClose{0%{opacity:0;filter:blur(1px);transform:scale(.92)}70%{opacity:.88;filter:blur(0);transform:scale(1.006)}100%{opacity:.82;filter:blur(0);transform:scale(1)}}
  .story-viewer.story-web-carousel .story-carousel-card{transition:transform .56s cubic-bezier(.22,.8,.2,1), opacity .42s ease, filter .42s ease!important;}
  .story-viewer.story-web-carousel.is-story-changing .story-carousel-card{opacity:.62!important;filter:blur(1px) saturate(.98)!important;transform:translateY(-50%) scale(.96)!important;}
}

/* Make sure the crop/editor modal is above everything and stays usable after patching. */
.story-crop-modal.story-crop-ios{z-index:4000!important;}
.story-add input#storyFileInput{position:absolute!important;inset:0!important;opacity:0!important;cursor:pointer!important;}


/* === RELIK V1.3.20 — Story preview matches final viewer ===
   - blurred image background fills the entire iPhone preview
   - foreground image remains editable inside the canvas
   - preview controls include smaller/light pause + more buttons
*/
.story-crop-modal.story-crop-ios{
  background:rgba(248,249,252,.86)!important;
  backdrop-filter:blur(28px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(170%)!important;
}
.story-crop-modal.story-crop-ios .story-ios-sheet{
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(17,24,39,.06)!important;
  box-shadow:0 26px 90px rgba(15,23,42,.12)!important;
}
.story-crop-modal.story-crop-ios .story-ios-phone{
  width:min(286px,74vw)!important;
  aspect-ratio:390/844!important;
  border-radius:46px!important;
  padding:9px!important;
  background:linear-gradient(150deg,#191b20,#050506 62%,#2a2e36)!important;
  box-shadow:0 22px 66px rgba(15,23,42,.20), inset 0 0 0 1px rgba(255,255,255,.18)!important;
}
.story-crop-modal.story-crop-ios .story-ios-screen{
  border-radius:38px!important;
  background:#0b0d10!important;
  overflow:hidden!important;
}
.story-crop-modal.story-crop-ios .story-ios-screen canvas{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  image-rendering:auto!important;
}
.story-crop-modal.story-crop-ios .story-ios-screen:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.10) 20%,rgba(0,0,0,.02) 58%,rgba(0,0,0,.22) 100%)!important;
}
.story-crop-modal.story-crop-ios .story-ios-status{
  display:none!important;
}
.story-crop-modal.story-crop-ios .story-ios-progress{
  top:14px!important;
  left:14px!important;
  right:14px!important;
  gap:4px!important;
  z-index:5!important;
}
.story-crop-modal.story-crop-ios .story-ios-progress span{
  height:2.5px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 1px 8px rgba(0,0,0,.20)!important;
}
.story-crop-modal.story-crop-ios .story-ios-user{
  top:25px!important;
  left:14px!important;
  right:12px!important;
  z-index:5!important;
  gap:7px!important;
  min-width:0!important;
  text-shadow:0 1px 12px rgba(0,0,0,.45)!important;
}
.story-crop-modal.story-crop-ios .story-ios-user img{
  width:29px!important;
  height:29px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 2px 10px rgba(0,0,0,.16)!important;
}
.story-crop-modal.story-crop-ios .story-ios-user b{
  max-width:104px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12.5px!important;
  font-weight:610!important;
  color:#fff!important;
}
.story-crop-modal.story-crop-ios .story-ios-user small{
  flex:0 0 auto!important;
  font-size:11.5px!important;
  opacity:.78!important;
  color:#fff!important;
}
.story-ios-preview-controls{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  height:28px!important;
}
.story-ios-preview-controls button{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  border:0!important;
  border-radius:999px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.12)!important;
  color:rgba(255,255,255,.95)!important;
  box-shadow:none!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  cursor:pointer!important;
  line-height:1!important;
  text-shadow:0 1px 8px rgba(0,0,0,.30)!important;
}
.story-ios-preview-pause{
  font-size:15px!important;
  font-weight:580!important;
  letter-spacing:-.16em!important;
  padding-left:1px!important;
}
.story-ios-preview-pause.is-paused{
  font-size:11px!important;
  letter-spacing:0!important;
  padding-left:2px!important;
}
.story-ios-preview-more{
  font-size:11px!important;
  font-weight:360!important;
  letter-spacing:-1px!important;
}
.story-ios-preview-controls button:hover{
  background:rgba(255,255,255,.18)!important;
}
.story-crop-modal.story-crop-ios .story-ios-zoom{
  margin-top:0!important;
}
@media(max-width:700px){
  .story-crop-modal.story-crop-ios .story-ios-phone{width:min(284px,78vw)!important;}
  .story-crop-modal.story-crop-ios .story-ios-user b{max-width:92px!important;}
}
@media(max-height:760px){
  .story-crop-modal.story-crop-ios .story-ios-phone{width:min(252px,66vw)!important;}
  .story-crop-modal.story-crop-ios .story-ios-user b{max-width:82px!important;}
  .story-ios-preview-controls button{width:21px!important;height:21px!important;min-width:21px!important;}
}

/* === RELIK V1.3.21 — Story preview normal, fără mockup telefon + delete fix UI === */
.story-crop-modal.story-crop-ios{
  background:rgba(250,250,251,.78)!important;
  backdrop-filter:blur(26px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(26px) saturate(160%)!important;
}
.story-ios-sheet{
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(255,255,255,.9)!important;
  box-shadow:0 30px 100px rgba(22,24,29,.12)!important;
}
.story-ios-head b{font-weight:620!important;}
.story-ios-head small{color:#6b7280!important;}
.story-ios-phone{
  width:min(390px,calc(100vw - 34px))!important;
  aspect-ratio:9/16!important;
  height:auto!important;
  padding:0!important;
  border-radius:32px!important;
  background:#111!important;
  border:0!important;
  box-shadow:0 24px 70px rgba(17,24,39,.16)!important;
  overflow:hidden!important;
  cursor:grab!important;
}
.story-ios-phone .iphone-dynamic,
.story-ios-status{
  display:none!important;
}
.story-ios-screen{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:32px!important;
  overflow:hidden!important;
  background:#111!important;
  box-shadow:none!important;
}
.story-ios-screen:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,0) 22%,rgba(0,0,0,0) 72%,rgba(0,0,0,.18))!important;
}
.story-ios-screen canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:32px!important;
}
.story-ios-progress{
  top:12px!important;
  left:14px!important;
  right:14px!important;
  gap:4px!important;
  z-index:5!important;
}
.story-ios-progress span{
  height:3px!important;
  background:rgba(255,255,255,.52)!important;
  box-shadow:none!important;
}
.story-ios-progress span:first-child{background:#fff!important;}
.story-ios-user{
  top:24px!important;
  left:14px!important;
  right:14px!important;
  z-index:5!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  text-shadow:0 1px 12px rgba(0,0,0,.42)!important;
}
.story-ios-user img{
  width:34px!important;
  height:34px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.18)!important;
}
.story-ios-user b{
  max-width:120px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:13px!important;
  font-weight:650!important;
}
.story-ios-user small{
  flex:0 0 auto!important;
  font-size:12px!important;
  opacity:.86!important;
}
.story-ios-preview-controls{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}
.story-ios-preview-controls button,
.story-ios-preview-pause,
.story-ios-preview-more{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.18)!important;
  color:#fff!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  padding:0!important;
  box-shadow:none!important;
}
.story-ios-preview-pause{
  font-size:13px!important;
  font-weight:720!important;
}
.story-ios-preview-more{
  font-size:13px!important;
  font-weight:400!important;
  letter-spacing:.08em!important;
}
.story-ios-zoom{width:min(390px,calc(100vw - 34px))!important;}
.story-ios-caption{width:min(390px,calc(100vw - 34px))!important;}
.story-ios-actions{width:min(390px,calc(100vw - 34px))!important;}
@media(max-width:700px){
  .story-ios-phone{width:min(370px,calc(100vw - 28px))!important;border-radius:28px!important;}
  .story-ios-screen,.story-ios-screen canvas{border-radius:28px!important;}
  .story-ios-sheet{padding-left:14px!important;padding-right:14px!important;}
}
@media(max-height:760px){
  .story-ios-phone{width:min(315px,calc(100vw - 34px))!important;}
}

/* === RELIK V1.3.24 — Story Composer Apple 2026 / fullscreen preview, no phone mockup === */
.story-crop-modal.story-composer-2026{
  position:fixed!important;
  inset:0!important;
  z-index:6000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  color:#fff!important;
  background:#0b0d10!important;
  overflow:hidden!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,Arial,sans-serif!important;
}
.story-crop-modal.story-composer-2026.open{display:flex!important;}
.story-composer-2026 .story-compose-bg{
  position:absolute!important;
  inset:-42px!important;
  background-image:var(--composer-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  filter:blur(42px) saturate(1.18) brightness(.72)!important;
  transform:scale(1.08)!important;
  opacity:.92!important;
}
.story-composer-2026 .story-compose-bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 10%,rgba(255,255,255,.22),rgba(255,255,255,0) 36%),
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.22) 50%,rgba(0,0,0,.42));
}
.story-composer-2026 .story-compose-stage{
  position:relative!important;
  z-index:2!important;
  width:min(520px,100vw)!important;
  height:100dvh!important;
  max-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:20px 16px 20px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.story-composer-2026 .story-compose-close{
  position:absolute!important;
  top:max(18px,env(safe-area-inset-top))!important;
  left:18px!important;
  z-index:12!important;
  width:54px!important;
  height:54px!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.84)!important;
  color:#111318!important;
  font-size:36px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  box-shadow:0 12px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(22px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(160%)!important;
}
.story-composer-2026 .story-compose-toolbar{
  position:absolute!important;
  top:max(96px,calc(env(safe-area-inset-top) + 80px))!important;
  right:18px!important;
  z-index:12!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:12px!important;
}
.story-composer-2026 .story-tool-btn{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  padding:0!important;
  cursor:pointer!important;
  text-shadow:0 2px 14px rgba(0,0,0,.44)!important;
}
.story-composer-2026 .story-tool-btn b{
  order:1!important;
  font-size:16px!important;
  font-weight:620!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
}
.story-composer-2026 .story-tool-btn span,
.story-composer-2026 .story-tool-btn.story-ios-preview-pause{
  order:2!important;
  width:48px!important;
  height:48px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.88)!important;
  color:#111318!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.95)!important;
  backdrop-filter:blur(20px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(170%)!important;
  font-size:21px!important;
  font-weight:650!important;
}
.story-composer-2026 .story-tool-btn.story-ios-preview-pause{
  font-size:18px!important;
  padding-bottom:1px!important;
}
.story-composer-2026 .story-compose-preview{
  position:relative!important;
  width:min(430px,calc(100vw - 26px))!important;
  aspect-ratio:9/16!important;
  max-height:calc(100dvh - 180px)!important;
  border-radius:34px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.18)!important;
  box-shadow:0 32px 90px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.18)!important;
  cursor:grab!important;
  touch-action:none!important;
  user-select:none!important;
}
.story-composer-2026 .story-compose-preview.is-dragging,
.story-composer-2026 .story-compose-preview.is-dragging canvas{cursor:grabbing!important;}
.story-composer-2026 .story-compose-preview canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.story-composer-2026 .story-compose-top-gradient{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:160px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.32),rgba(0,0,0,.10) 58%,rgba(0,0,0,0))!important;
  pointer-events:none!important;
}
.story-composer-2026 .story-compose-userbar{
  position:absolute!important;
  top:18px!important;
  left:18px!important;
  right:92px!important;
  z-index:4!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  color:#fff!important;
  text-shadow:0 2px 14px rgba(0,0,0,.45)!important;
}
.story-composer-2026 .story-compose-userbar img{
  width:34px!important;
  height:34px!important;
  border-radius:999px!important;
  object-fit:cover!important;
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.2)!important;
}
.story-composer-2026 .story-compose-userbar b{
  max-width:165px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:14px!important;
  font-weight:650!important;
}
.story-composer-2026 .story-compose-userbar span{
  font-size:13px!important;
  opacity:.82!important;
  white-space:nowrap!important;
}
.story-composer-2026 .story-compose-hint{
  position:absolute!important;
  left:50%!important;
  bottom:18px!important;
  transform:translateX(-50%)!important;
  z-index:4!important;
  max-width:calc(100% - 40px)!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.20)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  color:rgba(255,255,255,.92)!important;
  font-size:12px!important;
  font-weight:520!important;
  backdrop-filter:blur(18px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(160%)!important;
  pointer-events:none!important;
}
.story-composer-2026 .story-compose-bottom{
  position:absolute!important;
  left:16px!important;
  right:16px!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  z-index:12!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  align-items:center!important;
  pointer-events:auto!important;
}
.story-composer-2026 .story-compose-zoom{
  width:min(430px,100%)!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(255,255,255,.66)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.9)!important;
  color:#111318!important;
  font-size:13px!important;
  font-weight:560!important;
  backdrop-filter:blur(20px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(160%)!important;
}
.story-composer-2026 .story-compose-zoom input{flex:1!important;accent-color:#111318!important;min-width:0!important;}
.story-composer-2026 .story-compose-zoom span{font-weight:650!important;min-width:42px!important;text-align:right!important;}
.story-composer-2026 .story-compose-caption{
  width:min(430px,100%)!important;
  height:50px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.80)!important;
  color:#111318!important;
  border:1px solid rgba(255,255,255,.70)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(22px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(170%)!important;
}
.story-composer-2026 .story-compose-caption::placeholder{color:#6b7280!important;}
.story-composer-2026 .story-compose-actions{
  width:min(430px,100%)!important;
  display:grid!important;
  grid-template-columns:1fr 1fr 58px!important;
  gap:10px!important;
  align-items:center!important;
}
.story-composer-2026 .story-audience-pill,
.story-composer-2026 .story-publish-btn{
  height:54px!important;
  border:1px solid rgba(255,255,255,.62)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.88)!important;
  color:#111318!important;
  box-shadow:0 14px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.94)!important;
  backdrop-filter:blur(22px) saturate(170%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(170%)!important;
  font-size:14px!important;
  font-weight:620!important;
  letter-spacing:-.015em!important;
}
.story-composer-2026 .story-audience-pill{opacity:.92!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:0 14px!important;}
.story-composer-2026 .story-publish-btn{
  width:58px!important;
  padding:0!important;
  font-size:26px!important;
  cursor:pointer!important;
  background:#fff!important;
}
.story-composer-2026 .story-publish-btn:disabled{opacity:.55!important;cursor:wait!important;}
.story-composer-2026 .story-ios-sheet,
.story-composer-2026 .story-ios-head,
.story-composer-2026 .story-ios-phone,
.story-composer-2026 .story-ios-screen,
.story-composer-2026 .story-ios-actions,
.story-composer-2026 .story-ios-note{all:unset;}
@media(min-width:760px){
  .story-composer-2026 .story-compose-stage{width:min(620px,100vw)!important;}
  .story-composer-2026 .story-compose-preview{width:min(420px,calc(100vw - 180px))!important;}
  .story-composer-2026 .story-compose-toolbar{right:calc(50% - 300px)!important;}
  .story-composer-2026 .story-compose-close{left:calc(50% - 300px)!important;}
}
@media(max-width:700px){
  .story-composer-2026 .story-compose-stage{justify-content:center!important;padding:88px 12px 188px!important;}
  .story-composer-2026 .story-compose-preview{width:min(100%,calc((100dvh - 285px) * 9 / 16))!important;max-height:calc(100dvh - 285px)!important;border-radius:30px!important;}
  .story-composer-2026 .story-compose-toolbar{top:max(96px,calc(env(safe-area-inset-top) + 78px))!important;right:12px!important;gap:10px!important;}
  .story-composer-2026 .story-tool-btn b{font-size:14px!important;}
  .story-composer-2026 .story-tool-btn span,.story-composer-2026 .story-tool-btn.story-ios-preview-pause{width:44px!important;height:44px!important;font-size:18px!important;}
  .story-composer-2026 .story-compose-close{top:max(18px,env(safe-area-inset-top))!important;left:14px!important;width:50px!important;height:50px!important;font-size:32px!important;}
  .story-composer-2026 .story-compose-actions{grid-template-columns:1fr 1fr 56px!important;}
  .story-composer-2026 .story-audience-pill{font-size:13px!important;padding:0 10px!important;}
}
@media(max-width:420px){
  .story-composer-2026 .story-compose-stage{padding-bottom:178px!important;}
  .story-composer-2026 .story-compose-actions{grid-template-columns:1fr 56px!important;}
  .story-composer-2026 .story-audience-pill:nth-child(2){display:none!important;}
}

/* === RELIK V1.3.25 Story Composer Cleanup ===
   Clean Apple-style composer: no toolbar, no audience pills, one centered publish button.
   Preview is the real story frame, with smart blurred background and direct drag/zoom. */
.story-crop-modal.story-composer-2026{
  background:rgba(248,249,251,.72)!important;
  backdrop-filter:blur(28px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(145%)!important;
}
.story-composer-2026 .story-compose-bg{
  opacity:.72!important;
  filter:blur(32px) saturate(1.1) brightness(.92)!important;
  transform:scale(1.08)!important;
}
.story-composer-2026 .story-compose-bg:after{
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.18),rgba(255,255,255,.55))!important;
}
.story-composer-2026 .story-compose-stage{
  width:100%!important;
  max-width:none!important;
  min-height:100dvh!important;
  padding:34px 18px 34px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
}
.story-composer-2026 .story-compose-close{
  position:fixed!important;
  top:max(18px,env(safe-area-inset-top))!important;
  left:max(18px,env(safe-area-inset-left))!important;
  width:52px!important;
  height:52px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(255,255,255,.92)!important;
  color:#121417!important;
  box-shadow:0 12px 34px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(18px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
  font-size:34px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  z-index:40!important;
}
.story-composer-2026 .story-compose-toolbar,
.story-composer-2026 .story-tool-btn,
.story-composer-2026 .story-audience-pill{display:none!important;}
.story-composer-2026 .story-compose-preview{
  width:min(440px,calc(100vw - 34px))!important;
  height:auto!important;
  aspect-ratio:9/16!important;
  max-height:calc(100dvh - 224px)!important;
  border-radius:34px!important;
  overflow:hidden!important;
  box-shadow:0 34px 90px rgba(15,23,42,.22), 0 0 0 1px rgba(255,255,255,.72)!important;
  border:1px solid rgba(255,255,255,.62)!important;
  background:#111!important;
  cursor:grab!important;
  touch-action:none!important;
}
.story-composer-2026 .story-compose-preview canvas{
  width:100%!important;
  height:100%!important;
  display:block!important;
  border-radius:inherit!important;
}
.story-composer-2026 .story-compose-top-gradient{
  height:112px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.18) 45%,rgba(0,0,0,0))!important;
}
.story-composer-2026 .story-compose-userbar{
  top:24px!important;
  left:22px!important;
  right:22px!important;
  gap:10px!important;
  color:#fff!important;
  text-shadow:0 2px 12px rgba(0,0,0,.35)!important;
}
.story-composer-2026 .story-compose-userbar img{width:40px!important;height:40px!important;border:1.5px solid rgba(255,255,255,.82)!important;}
.story-composer-2026 .story-compose-userbar b{font-size:15px!important;font-weight:650!important;}
.story-composer-2026 .story-compose-userbar span{font-size:14px!important;color:rgba(255,255,255,.88)!important;}
.story-composer-2026 .story-compose-hint{
  left:50%!important;
  bottom:16px!important;
  transform:translateX(-50%)!important;
  background:rgba(0,0,0,.28)!important;
  color:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,255,255,.20)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  white-space:nowrap!important;
  font-size:12px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
}
.story-composer-2026 .story-compose-bottom{
  position:static!important;
  width:min(440px,calc(100vw - 34px))!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  padding:0!important;
  margin:0 auto!important;
  background:transparent!important;
}
.story-composer-2026 .story-compose-zoom{
  height:48px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 12px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(18px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
  padding:0 16px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  font-size:14px!important;
  color:#252a31!important;
}
.story-composer-2026 .story-compose-zoom input{accent-color:#111827!important;}
.story-composer-2026 .story-compose-caption{
  height:54px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 12px 34px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(18px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
  color:#1f242c!important;
  padding:0 20px!important;
}
.story-composer-2026 .story-compose-actions.story-compose-actions-single,
.story-composer-2026 .story-compose-actions{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  grid-template-columns:none!important;
  width:100%!important;
  gap:0!important;
}
.story-composer-2026 .story-publish-btn{
  width:auto!important;
  min-width:190px!important;
  height:58px!important;
  border-radius:999px!important;
  padding:0 30px!important;
  background:rgba(255,255,255,.92)!important;
  color:#111827!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:0 18px 48px rgba(15,23,42,.15), inset 0 1px 0 rgba(255,255,255,.95)!important;
  backdrop-filter:blur(20px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(160%)!important;
  font-size:16px!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
}
.story-composer-2026 .story-publish-btn:hover{transform:translateY(-1px)!important;box-shadow:0 22px 58px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.95)!important;}
.story-composer-2026 .story-publish-btn:disabled{opacity:.55!important;cursor:wait!important;transform:none!important;}
@media(max-width:700px){
  .story-composer-2026 .story-compose-stage{padding:78px 14px 20px!important;justify-content:flex-start!important;}
  .story-composer-2026 .story-compose-preview{width:min(100%,calc((100dvh - 238px) * 9 / 16))!important;max-height:calc(100dvh - 238px)!important;border-radius:30px!important;}
  .story-composer-2026 .story-compose-bottom{width:min(100%,calc((100dvh - 238px) * 9 / 16))!important;}
  .story-composer-2026 .story-compose-close{width:48px!important;height:48px!important;font-size:31px!important;}
  .story-composer-2026 .story-compose-hint{display:none!important;}
  .story-composer-2026 .story-publish-btn{height:54px!important;min-width:170px!important;}
}
@media(max-height:760px){
  .story-composer-2026 .story-compose-preview{max-height:calc(100dvh - 198px)!important;}
  .story-composer-2026 .story-compose-bottom{gap:9px!important;}
  .story-composer-2026 .story-compose-caption{height:50px!important;}
  .story-composer-2026 .story-compose-zoom{height:44px!important;}
  .story-composer-2026 .story-publish-btn{height:52px!important;}
}


/* === RELIK V1.3.26 Story Composer Depth + Natural Fit ===
   Less flat, no ugly forced fill on first preview. 100% = whole image visible.
   The selected image creates a cinematic blurred/liquid background behind the main media. */
.story-crop-modal.story-composer-2026{
  background:rgba(248,249,251,.58)!important;
  backdrop-filter:blur(34px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(34px) saturate(160%)!important;
}
.story-composer-2026 .story-compose-bg{
  opacity:.96!important;
  filter:blur(42px) saturate(1.28) brightness(.88)!important;
  transform:scale(1.18)!important;
}
.story-composer-2026 .story-compose-bg:after{
  content:""!important;
  position:absolute!important;
  inset:-6%!important;
  background:
    radial-gradient(circle at 50% 14%,rgba(255,255,255,.34),rgba(255,255,255,0) 36%),
    linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.08) 50%,rgba(255,255,255,.22))!important;
}
.story-composer-2026 .story-compose-stage{
  padding:28px 18px 28px!important;
  gap:16px!important;
}
.story-composer-2026 .story-compose-preview{
  width:min(430px,calc(100vw - 36px))!important;
  aspect-ratio:9/16!important;
  max-height:calc(100dvh - 218px)!important;
  border-radius:30px!important;
  background:rgba(8,10,14,.72)!important;
  border:1px solid rgba(255,255,255,.42)!important;
  box-shadow:
    0 38px 95px rgba(15,23,42,.26),
    0 18px 44px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.18)!important;
}
.story-composer-2026 .story-compose-preview:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), inset 0 -70px 90px rgba(0,0,0,.18)!important;
  z-index:2!important;
}
.story-composer-2026 .story-compose-preview canvas{position:relative!important;z-index:1!important;}
.story-composer-2026 .story-compose-top-gradient{
  height:122px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.48),rgba(0,0,0,.18) 48%,rgba(0,0,0,0))!important;
  z-index:3!important;
}
.story-composer-2026 .story-compose-userbar{z-index:4!important;}
.story-composer-2026 .story-compose-hint{
  z-index:4!important;
  bottom:18px!important;
  background:rgba(255,255,255,.16)!important;
  color:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.12)!important;
}
.story-composer-2026 .story-compose-bottom{
  width:min(430px,calc(100vw - 36px))!important;
  gap:12px!important;
}
.story-composer-2026 .story-compose-zoom,
.story-composer-2026 .story-compose-caption{
  background:rgba(255,255,255,.70)!important;
  border:1px solid rgba(255,255,255,.86)!important;
  box-shadow:0 16px 44px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.88)!important;
}
.story-composer-2026 .story-publish-btn{
  background:#fff!important;
  min-width:176px!important;
  height:56px!important;
  box-shadow:0 18px 48px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.96)!important;
}
@media(max-width:700px){
  .story-composer-2026 .story-compose-stage{padding:76px 12px 18px!important;gap:12px!important;}
  .story-composer-2026 .story-compose-preview{width:min(100%,calc((100dvh - 224px) * 9 / 16))!important;max-height:calc(100dvh - 224px)!important;border-radius:28px!important;}
  .story-composer-2026 .story-compose-bottom{width:min(100%,calc((100dvh - 224px) * 9 / 16))!important;}
}
@media(max-height:760px){
  .story-composer-2026 .story-compose-stage{padding-top:18px!important;padding-bottom:18px!important;}
  .story-composer-2026 .story-compose-preview{max-height:calc(100dvh - 190px)!important;}
}

/* === RELIK V1.3.27 Story Preview Original Ratio Fix ===
   Fixes the composer preview being visually flattened on desktop.
   The frame is now sized from available height first, then width, so it keeps a true 9:16 ratio.
   The canvas also fills that exact frame without CSS distortion. */
.story-composer-2026 .story-compose-preview{
  width:min(430px, calc((100dvh - 218px) * 9 / 16), calc(100vw - 36px))!important;
  height:auto!important;
  aspect-ratio:9/16!important;
  max-height:none!important;
  overflow:hidden!important;
}
.story-composer-2026 .story-compose-preview canvas{
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.story-composer-2026 .story-compose-bottom{
  width:min(430px, calc((100dvh - 218px) * 9 / 16), calc(100vw - 36px))!important;
}
@media(max-width:700px){
  .story-composer-2026 .story-compose-preview{
    width:min(100%, calc((100dvh - 224px) * 9 / 16))!important;
    height:auto!important;
    aspect-ratio:9/16!important;
    max-height:none!important;
  }
  .story-composer-2026 .story-compose-bottom{
    width:min(100%, calc((100dvh - 224px) * 9 / 16))!important;
  }
}
@media(max-height:760px){
  .story-composer-2026 .story-compose-preview{
    width:min(430px, calc((100dvh - 190px) * 9 / 16), calc(100vw - 36px))!important;
    max-height:none!important;
  }
  .story-composer-2026 .story-compose-bottom{
    width:min(430px, calc((100dvh - 190px) * 9 / 16), calc(100vw - 36px))!important;
  }
}

/* === RELIK V1.4.1 Notifications === */
.relik-notifications{position:relative;display:inline-flex;align-items:center}
.relik-notif-btn{position:relative;overflow:visible!important}
.relik-notif-count{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#111;color:#fff;font-size:10px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.18);display:none}
.relik-notif-count.show{display:block}
.relik-notif-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(380px,calc(100vw - 24px));max-height:480px;overflow:hidden;border-radius:24px;background:rgba(255,255,255,.88);border:1px solid rgba(20,22,30,.08);box-shadow:0 24px 80px rgba(18,22,30,.16),inset 0 1px 0 rgba(255,255,255,.85);backdrop-filter:blur(24px) saturate(165%);z-index:2000;opacity:0;visibility:hidden;transform:translateY(-8px) scale(.98);transition:opacity .22s ease,transform .22s cubic-bezier(.22,.8,.2,1),visibility .22s}
.relik-notif-panel.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.relik-notif-head{height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(20,22,30,.06)}
.relik-notif-head b{font-size:16px;font-weight:680;letter-spacing:-.02em}
.relik-notif-head button{border:0;background:rgba(245,245,246,.9);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:600;color:#2d3036;cursor:pointer}
.relik-notif-list{max-height:420px;overflow:auto;padding:8px}
.relik-notif-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:18px;text-decoration:none;color:inherit;transition:background .18s ease,transform .18s ease}
.relik-notif-item:hover{background:rgba(245,245,246,.9);transform:translateY(-1px)}
.relik-notif-item.unread{background:rgba(227,163,18,.08)}
.relik-notif-item img{width:44px;height:44px;border-radius:999px;object-fit:cover;flex:0 0 auto;background:#eee}
.relik-notif-copy{min-width:0;flex:1}
.relik-notif-copy p{margin:0;font-size:14px;line-height:1.25;font-weight:500;color:#15171a}
.relik-notif-copy span{display:block;margin-top:4px;font-size:12px;color:#7a8089;font-weight:500}
.relik-notif-empty{padding:24px;text-align:center;color:#7a8089;font-weight:500;font-size:14px}
@media(max-width:767px){.relik-notif-panel{position:fixed;right:12px;left:12px;top:78px;width:auto;max-height:65vh}.relik-notif-list{max-height:calc(65vh - 58px)}}

/* === RELIK V1.4.2 Notifications White Liquid Glass UI === */
.relik-notifications{position:relative;display:inline-flex;align-items:center;z-index:2100}
.relik-notif-btn{position:relative!important;overflow:visible!important;background:rgba(255,255,255,.74)!important;border:1px solid rgba(255,255,255,.88)!important;box-shadow:0 12px 34px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;backdrop-filter:blur(18px) saturate(160%)!important;-webkit-backdrop-filter:blur(18px) saturate(160%)!important;color:#101318!important;transition:transform .22s cubic-bezier(.22,.8,.2,1),box-shadow .22s ease!important}
.relik-notif-btn:hover{transform:translateY(-1px)!important;box-shadow:0 18px 44px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.95)!important}
.relik-notif-count{position:absolute!important;right:-3px!important;top:-4px!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border-radius:999px!important;background:#0f172a!important;color:#fff!important;font-size:10px!important;font-weight:700!important;line-height:18px!important;text-align:center!important;box-shadow:0 8px 18px rgba(15,23,42,.22)!important;border:2px solid rgba(255,255,255,.92)!important;display:none!important}
.relik-notif-count.show{display:block!important}
.relik-notif-panel{position:absolute!important;right:0!important;top:calc(100% + 14px)!important;width:min(430px,calc(100vw - 24px))!important;max-height:min(680px,calc(100vh - 96px))!important;overflow:hidden!important;border-radius:34px!important;background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 34px 110px rgba(15,23,42,.18),0 14px 36px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.98)!important;backdrop-filter:blur(34px) saturate(180%)!important;-webkit-backdrop-filter:blur(34px) saturate(180%)!important;z-index:3000!important;opacity:0!important;visibility:hidden!important;transform:translateY(-10px) scale(.975)!important;transform-origin:top right!important;transition:opacity .24s ease,transform .34s cubic-bezier(.22,.8,.2,1),visibility .24s!important;color:#111827!important}
.relik-notif-panel:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 20% 0%,rgba(255,255,255,.86),rgba(255,255,255,0) 36%),linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.18));z-index:0}
.relik-notif-panel.open{opacity:1!important;visibility:visible!important;transform:translateY(0) scale(1)!important}
.relik-notif-panel>*{position:relative;z-index:1}
.relik-notif-head.v142-head{height:auto!important;padding:22px 22px 12px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;border-bottom:0!important;background:transparent!important}
.relik-notif-head.v142-head h3{margin:0!important;font-size:30px!important;line-height:1!important;letter-spacing:-.055em!important;font-weight:760!important;color:#101318!important}
.relik-notif-head.v142-head p{margin:7px 0 0!important;color:#7a8089!important;font-size:13px!important;font-weight:500!important;letter-spacing:-.01em!important}
.relik-notif-head.v142-head button{border:0!important;background:rgba(245,247,250,.86)!important;color:#1f2937!important;border-radius:999px!important;padding:9px 13px!important;font-size:12px!important;font-weight:650!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 22px rgba(15,23,42,.06)!important;white-space:nowrap!important;cursor:pointer!important;transition:.2s ease!important}
.relik-notif-head.v142-head button:hover{background:#fff!important;transform:translateY(-1px)!important}
.relik-notif-tabs{display:flex!important;gap:10px!important;padding:0 22px 12px!important}
.relik-notif-tabs button{border:0!important;border-radius:999px!important;background:rgba(243,245,248,.82)!important;color:#4b5563!important;padding:10px 16px!important;font-size:14px!important;font-weight:650!important;cursor:pointer!important;transition:background .2s ease,color .2s ease,transform .2s ease!important}
.relik-notif-tabs button.active{background:rgba(17,24,39,.92)!important;color:#fff!important;box-shadow:0 12px 28px rgba(17,24,39,.16)!important}
.relik-notif-tabs button:hover{transform:translateY(-1px)!important}
.relik-notif-list{max-height:min(535px,calc(100vh - 230px))!important;overflow:auto!important;padding:2px 12px 14px!important;scrollbar-width:thin!important}
.relik-notif-section{padding:15px 10px 9px!important;color:#111827!important;font-size:18px!important;line-height:1!important;font-weight:720!important;letter-spacing:-.035em!important}
.relik-notif-item{position:relative!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto 10px!important;align-items:center!important;gap:12px!important;padding:11px 10px!important;border-radius:24px!important;text-decoration:none!important;color:inherit!important;background:transparent!important;transition:background .2s ease,transform .2s cubic-bezier(.22,.8,.2,1),box-shadow .2s ease!important}
.relik-notif-item:hover{background:rgba(255,255,255,.72)!important;transform:translateY(-1px)!important;box-shadow:0 10px 28px rgba(15,23,42,.055)!important}
.relik-notif-item.unread{background:rgba(255,255,255,.52)!important}
.relik-notif-avatar-wrap{position:relative!important;width:56px!important;height:56px!important;display:block!important;flex:0 0 auto!important}
.relik-notif-avatar-wrap img{width:56px!important;height:56px!important;border-radius:999px!important;object-fit:cover!important;background:#eef0f3!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important}
.relik-notif-avatar-wrap i{position:absolute!important;right:-2px!important;bottom:-2px!important;width:24px!important;height:24px!important;border-radius:999px!important;background:linear-gradient(135deg,#111827,#334155)!important;color:#fff!important;display:grid!important;place-items:center!important;font-style:normal!important;font-size:12px!important;font-weight:700!important;border:2px solid rgba(255,255,255,.95)!important;box-shadow:0 8px 16px rgba(15,23,42,.16)!important}
.relik-notif-copy{min-width:0!important;display:block!important}
.relik-notif-copy b{display:inline!important;font-size:14px!important;line-height:1.22!important;font-weight:760!important;color:#111827!important;letter-spacing:-.02em!important;margin-right:3px!important}
.relik-notif-copy p{display:inline!important;margin:0!important;font-size:14px!important;line-height:1.32!important;font-weight:500!important;color:#4b5563!important;letter-spacing:-.015em!important}
.relik-notif-copy em{display:block!important;margin-top:4px!important;font-style:normal!important;font-size:12.5px!important;line-height:1!important;font-weight:650!important;color:#6d7cff!important;letter-spacing:-.01em!important}
.relik-notif-kind{justify-self:end!important;align-self:center!important;max-width:86px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;border-radius:999px!important;background:rgba(243,245,248,.86)!important;color:#64748b!important;font-size:11px!important;font-weight:650!important;padding:7px 9px!important}
.relik-notif-dot{display:block!important;width:9px!important;height:9px!important;border-radius:999px!important;background:#5b8cff!important;box-shadow:0 0 0 5px rgba(91,140,255,.12)!important}
.relik-notif-empty{padding:36px 22px!important;text-align:center!important;color:#7a8089!important;font-size:14px!important;font-weight:500!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important}
.relik-notif-empty span{width:54px!important;height:54px!important;border-radius:999px!important;background:rgba(243,245,248,.92)!important;display:grid!important;place-items:center!important;color:#111827!important;font-size:22px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important}
.relik-notif-empty b{font-size:15px!important;color:#111827!important;font-weight:700!important;letter-spacing:-.02em!important}
.relik-notif-empty small{font-size:13px!important;color:#8b919c!important;font-weight:500!important}
@media(max-width:767px){
  .relik-notif-panel{position:fixed!important;left:12px!important;right:12px!important;top:76px!important;width:auto!important;max-height:calc(100dvh - 96px)!important;border-radius:30px!important;transform-origin:top center!important}
  .relik-notif-head.v142-head{padding:20px 18px 10px!important}
  .relik-notif-head.v142-head h3{font-size:28px!important}
  .relik-notif-tabs{padding:0 18px 10px!important}
  .relik-notif-list{max-height:calc(100dvh - 220px)!important;padding:2px 8px 12px!important}
  .relik-notif-item{grid-template-columns:54px minmax(0,1fr) 8px!important;gap:11px!important;padding:10px 9px!important}
  .relik-notif-kind{display:none!important}
  .relik-notif-avatar-wrap,.relik-notif-avatar-wrap img{width:52px!important;height:52px!important}
}


/* === RELIK V1.4.3 Notifications Premium iOS Glass + Unread UI Fix === */
.relik-notif-panel{
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(255,255,255,.98)!important;
  box-shadow:0 34px 90px rgba(15,23,42,.16),0 8px 28px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,1)!important;
  backdrop-filter:blur(22px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
}
.relik-notif-panel:before{
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.18))!important;
  opacity:.75!important;
}
.relik-notif-head.v142-head h3{color:#0f172a!important;font-weight:780!important;}
.relik-notif-head.v142-head p{color:#667085!important;}
.relik-notif-tabs button{background:#f2f4f7!important;color:#475467!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;}
.relik-notif-tabs button.active{background:#111827!important;color:#fff!important;}
.relik-notif-item{
  background:rgba(255,255,255,.66)!important;
  border:1px solid rgba(15,23,42,.035)!important;
  margin:4px 0!important;
  box-shadow:0 6px 18px rgba(15,23,42,.025)!important;
}
.relik-notif-item:hover{
  background:#fff!important;
  box-shadow:0 14px 36px rgba(15,23,42,.075)!important;
}
.relik-notif-item.unread{
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(242,247,255,.94))!important;
  border-color:rgba(91,140,255,.18)!important;
  box-shadow:0 10px 28px rgba(91,140,255,.08)!important;
}
.relik-notif-copy b{color:#101828!important;font-weight:760!important;}
.relik-notif-copy p{color:#344054!important;font-weight:520!important;}
.relik-notif-copy em{color:#2563eb!important;font-weight:680!important;}
.relik-notif-kind{background:#f2f4f7!important;color:#667085!important;}
.relik-notif-dot{background:#2563eb!important;box-shadow:0 0 0 5px rgba(37,99,235,.12)!important;}
.relik-notif-avatar-wrap i{background:linear-gradient(135deg,#1d2939,#475467)!important;}
@media(max-width:767px){
  .relik-notif-panel{background:rgba(255,255,255,.96)!important;}
}


/* RELIK V1.4.4 — Notifications auto-read + iOS glass 80 */
.relik-notifications .relik-notif-panel,
.relik-notif-panel,
.notifications-glass{
  background:rgba(255,255,255,.80)!important;
  -webkit-backdrop-filter:blur(26px) saturate(160%)!important;
  backdrop-filter:blur(26px) saturate(160%)!important;
  border:1px solid rgba(255,255,255,.68)!important;
  box-shadow:0 24px 80px rgba(17,20,24,.13), inset 0 1px 0 rgba(255,255,255,.72)!important;
}
.relik-notif-item{
  background:rgba(255,255,255,.76)!important;
  border:1px solid rgba(17,20,24,.055)!important;
  color:#111318!important;
  text-decoration:none!important;
}
.relik-notif-item.unread{
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 10px 28px rgba(17,20,24,.07)!important;
}
.relik-notif-copy p{color:#343a43!important;}
.relik-notif-copy em{color:#737b87!important;}
.relik-notif-kind{background:rgba(242,244,248,.92)!important;color:#333b46!important;}
