:root{--accent:#E6336B;--blue:#0095F6;--warm:linear-gradient(to top right,#FFD600 0%,#FF7A00 25%,#FF0069 50%,#D300C5 75%,#7638FA 100%);--sat:env(safe-area-inset-top,0px);--htop:calc(var(--sat) + var(--hpad) + var(--hdr));--fade:linear-gradient(to bottom,transparent 0,transparent calc(var(--ftop) - 30px),rgba(0,0,0,.07) calc(var(--ftop) - 21px),rgba(0,0,0,.26) calc(var(--ftop) - 11px),rgba(0,0,0,.62) calc(var(--ftop) - 1px),rgba(0,0,0,.9) calc(var(--ftop) + 6px),#000 calc(var(--ftop) + 11px));--sab:env(safe-area-inset-bottom,0px);--tbb:max(8px,calc(var(--sab) - 10px));--tbh:56px;--ease:cubic-bezier(.32,.72,0,1);--hdr:44px;--drop:12px;--hpad:calc(16px + var(--drop));--ftop:calc(var(--htop) - var(--drop));--cgap:10px}
/* --drop: headers and every first row sit 12px (~2mm) lower so nothing rests in the iOS status-bar blur; the content fade stays anchored at --ftop (where it was), so the first row starts fully clear of it */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html,body{height:100%;overflow:hidden;overscroll-behavior:none;background:#0C0F14}
body{position:relative}
/* iOS home-screen apps (black-translucent + viewport-fit=cover): height:100% on html/body is measured against a viewport short by the status bar, leaving a band at the bottom; 100vh is the full screen there */
@media (display-mode:standalone){html,body{height:100vh}}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Inter,system-ui,sans-serif;color:#0b0b0c;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none}
img,video{-webkit-user-drag:none;-webkit-touch-callout:none;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation}
input,textarea{font:inherit;font-size:16px;-webkit-user-select:text;user-select:text}
#app{position:absolute;top:0;left:0;right:0;height:100%;overflow:hidden;background:#fff;max-width:480px;margin:0 auto}
@media (min-width:560px){body{background:#e8ebef}#app{box-shadow:0 0 0 1px rgba(0,0,0,.06),0 20px 60px rgba(0,0,0,.12)}}
.ic{display:inline-flex;width:26px;height:26px;flex:none}.ic svg{width:100%;height:100%}
.sp{flex:1}
/* panes & pages */
.pane{position:absolute;inset:0;visibility:hidden;pointer-events:none}
.pane.on{visibility:visible;pointer-events:auto}
.page{position:absolute;inset:0;background:#fff;overflow:hidden}
.page.anim{transition:transform .44s var(--ease);will-change:transform}
.page.off{transform:translateX(100%)}
.page.under{transform:translateX(-30%)}
.page .shade{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;z-index:99;transition:opacity .44s var(--ease)}
.page.under .shade{opacity:.12}
.page.root.under .shade{opacity:.12}
.edge{position:absolute;left:0;top:0;bottom:0;width:18px;z-index:60;touch-action:none}
.scroll{position:absolute;left:0;right:0;bottom:0;top:0;padding-top:calc(var(--htop) + var(--cgap));-webkit-mask-image:var(--fade);mask-image:var(--fade);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding-bottom:calc(var(--tbh) + var(--sab) + 16px)}
.scroll::-webkit-scrollbar{display:none}
/* top bars */
.topbar{position:absolute;top:0;left:0;right:0;z-index:30;padding:calc(var(--sat) + var(--hpad)) 8px 0 14px;height:calc(var(--sat) + var(--hpad) + var(--hdr));display:flex;align-items:center;gap:4px;background:transparent}

.wm{display:flex;align-items:center;justify-content:center;color:#0b0b0c}html.dark .wm{color:#F5F5F5}.wmk{display:block;width:auto;flex:none}
.wm svg{width:29px;height:29px}
.ib{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:22px}
.ib:active{opacity:.5}
.badge{position:absolute;top:9px;right:8px;width:9px;height:9px;border-radius:50%;background:#FF3040;border:2px solid #fff}
.nav{padding-left:4px}
/* nav bars (back + centered title) sit up on the black, centered just below the status bar; the content start (--htop) doesn't move */
.topbar.nav{padding-top:calc(var(--sat) + 6px);height:calc(var(--sat) + 50px)}
.nav .t{position:absolute;left:60px;right:60px;top:calc(var(--sat) + 6px);height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.15;pointer-events:none}
.nav .t small{display:block;font-size:12px;color:#737373;font-weight:500}
.nav .t b{font-size:16.5px;font-weight:700}
/* stories row */
.stories{display:flex;gap:12px;padding:0 9px 10px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:none;touch-action:pan-x pan-y;contain:layout paint;border-bottom:.5px solid #ececec;scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.st{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:92px;content-visibility:auto;contain-intrinsic-size:92px 112px}
.st:active .ring{transform:scale(.94)}
.sl{font-size:12.5px;color:#222;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-av{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--warm);color:#fff;font-weight:700;flex:none}
.lav{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:700;flex:none;text-transform:uppercase}
.feedin.pulling{will-change:transform}
.feedin.back{transition:transform .45s var(--ease)}
/* posts */
.post{background:#fff;padding-bottom:6px}
.ph{display:flex;align-items:center;gap:10px;padding:8px 6px 8px 12px}
.pn{min-width:0}
.un{font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:4px}
.vb{width:13px;height:13px}
.loc{font-size:12px;color:#444;margin-top:1px}
.media{position:relative;width:100%;aspect-ratio:4/5;background:#f1f1f1;overflow:hidden;touch-action:pan-x pan-y}
.car{display:flex;position:absolute;inset:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.car::-webkit-scrollbar{display:none}
.car img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:start;scroll-snap-stop:always}
.vslide{flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000}.vslide{position:relative}
.vslide video,.vslide img.vph{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
/* the cover stays over the player until its first frame is on screen */
.vslide img.vph{z-index:1;transition:opacity .12s}
.vslide.von img.vph{opacity:0}
.vslide.vblk::after{content:'';position:absolute;z-index:2;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;pointer-events:none;background:rgba(0,0,0,.38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a.8.8 0 0 0 1.2.7l10.4-6.5a.8.8 0 0 0 0-1.4L9.2 4.8A.8.8 0 0 0 8 5.5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50%/26px no-repeat}
.vmute{position:absolute;right:10px;bottom:10px;z-index:2;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(32,32,36,.62)}
.count{position:absolute;top:12px;right:12px;background:rgba(20,20,22,.6);color:#fff;font-size:12px;font-weight:600;padding:4px 9px;border-radius:9999px;transition:opacity .4s;pointer-events:none}
.count.hide{opacity:0}
.acts{display:flex;align-items:center;padding:4px 6px 2px;position:relative}
.acts .ib{width:40px;height:40px}
.acts .n{font-size:14px;font-weight:600;margin:0 8px 0 -4px;min-width:10px}
.lk.on{color:#FF3040}
.lk.on svg path{fill:#FF3040;stroke:#FF3040}
.lk.bump .ic{animation:bump .4s cubic-bezier(.2,.9,.3,1.4)}
@keyframes bump{40%{transform:scale(1.28)}}
.sv.on svg path{fill:#0b0b0c}
.dots{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:4px}
.dots i{width:6px;height:6px;border-radius:50%;background:#cfd3d8;flex:none;transition:background .2s,transform .25s var(--ease),width .25s var(--ease),margin .25s var(--ease)}
.dots i.sm{transform:scale(.67)}
.dots i.xs{transform:scale(.45)}
.dots i.out{width:0;margin:0 -2px;transform:scale(0)}
.cap{font-size:14px;line-height:1.38;padding:2px 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.cap.full{display:block}
.cap b{font-weight:600}
.vc{display:block;font-size:14px;color:#737373;padding:4px 12px 0;text-align:left}.vc[hidden]{display:none}
.when{font-size:11.5px;color:#8e8e8e;padding:4px 12px 12px}
/* glass tab bar (iOS liquid glass) */
.tabbar{position:absolute;left:24px;right:24px;bottom:var(--tbb);height:var(--tbh);transform-origin:50% 50%;border-radius:9999px;display:flex;align-items:center;justify-content:space-around;padding:0 4px;z-index:70;isolation:isolate;transform:translateZ(0) scale(1);
 background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);
 border:.5px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.14),inset 0 .5px 0 rgba(255,255,255,.9);
 transition:transform 260ms cubic-bezier(.3,1.15,.5,1),opacity .3s,background .3s}
.tabbar.compact{transform:translateZ(0) scale(.84);transition:transform 260ms cubic-bezier(.45,0,.25,1),opacity .3s,background .3s}
.tabbar.hidden{transform:translate3d(0,140%,0) scale(1);opacity:0;transition:transform .4s var(--ease),opacity .3s}
.lens{position:absolute;top:4px;left:0;height:48px;border-radius:9999px;background:rgba(255,255,255,.7);box-shadow:inset 0 .5px 0 #fff,0 1px 6px rgba(0,0,0,.08);transform-origin:50% 50%;will-change:transform;pointer-events:none;transition:background .25s,box-shadow .25s}
.tabbar.held .lens{background:rgba(255,255,255,.85)}
.tabbar{touch-action:none}
.tabbar{touch-action:none}
.ti{position:relative;z-index:1;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;height:50px;border-radius:9999px;color:#1d1d1f;transition:color .25s,transform .15s}
.ti:active{transform:scale(.92)}.tabbar.held .ti:active{transform:none}
.ti.on,.ti.hov{color:var(--accent)}.tabbar.held .ti.on:not(.hov){color:inherit}
.ti .ic{width:28px;height:28px}
.ti>.ic,.ti>.i1,.ti>.tav{height:30px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.tav{display:inline-flex;border-radius:50%;padding:1.5px;border:1.5px solid transparent}
.ti.on .tav{border-color:var(--accent)}
.tabbar.dark,html.dark .tabbar{background:rgba(30,30,30,.45);border-color:rgba(255,255,255,.14);box-shadow:0 8px 28px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.16),inset 0 -.5px 0 rgba(255,255,255,.06)}
html.dark .tabbar .ti.on,html.dark .tabbar .ti.hov{color:#fff}
.tabbar.dark .ti,html.dark .tabbar .ti{color:#F3F4F6}
.tabbar.dark .lens,html.dark .tabbar .lens{background:rgba(255,255,255,.14);box-shadow:inset 0 .5px 0 rgba(255,255,255,.25)}
.tabbar.dark.held .lens,html.dark .tabbar.held .lens{background:rgba(255,255,255,.24);box-shadow:inset 0 .5px 0 rgba(255,255,255,.4),0 4px 14px rgba(0,0,0,.25)}
.tabbar.dark .ti.on{color:#fff}
/* profile */
.prof-top{display:flex;align-items:center;gap:22px;padding:14px 16px 6px}
.stats{flex:1;display:flex;justify-content:space-around;text-align:center}
.stats b{display:block;font-size:17px;font-weight:700}.stats span{font-size:13px;color:#333}
.bio{padding:4px 16px 0;font-size:14px;line-height:1.38;white-space:pre-line}
.bio .nm{font-weight:600}.bio .ct{color:#737373}.bio .lnk{color:var(--blue);font-weight:600;text-decoration:none}.bio .lnk.mn{font-weight:400}.bio .lki{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin-right:4px;transform:rotate(-45deg)}
.pbtns{display:flex;gap:6px;padding:12px 16px 4px}
.btn{flex:1;height:36px;border-radius:9999px;font-weight:600;font-size:14px;background:#efeff1;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .2s,color .2s,transform .1s}
.btn:active{transform:scale(.97)}
.btn.pri{background:var(--blue);color:#fff}
.btn.sq{flex:0 0 40px}
.btn.bell.on{background:#FDE9F0;color:var(--accent)}
.hls{display:flex;gap:14px;padding:12px 14px 8px;overflow-x:auto;scrollbar-width:none}
.hls::-webkit-scrollbar{display:none}
.hl{display:flex;flex-direction:column;align-items:center;gap:5px;flex:none;width:66px;font-size:12px}
.hl .c{width:64px;height:64px;border-radius:50%;padding:2px;border:1px solid #d9d9dc}
.hl .c img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.ptabs{display:flex;border-bottom:.5px solid #ddd;margin-top:6px;position:sticky;top:0;z-index:2;background:#fff}html.dark .ptabs{background:#0C0F14}
.ptabs button{position:relative;flex:1;height:44px;display:flex;align-items:center;justify-content:center;color:#9a9a9a;font-weight:600;font-size:14px}
.ptabs button.on:after{content:'';position:absolute;left:50%;bottom:0;width:60px;height:1.5px;margin-left:-30px;border-radius:1px;background:currentColor}
.ptabs button.on{color:#0b0b0c}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px}
.grid.rgrid .tile{aspect-ratio:9/16}
.grid .tile .vw{position:absolute;left:7px;bottom:6px;display:flex;align-items:center;gap:3px;color:#fff;font-size:13px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.6)}.grid .tile .vw .ic{filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.grid .tile{position:relative;aspect-ratio:3/4;overflow:hidden;background:#eee}
.grid .tile img{width:100%;height:100%;object-fit:cover}
.grid .tile:active{opacity:.8}
.tile .multi{position:absolute;top:7px;right:7px;width:18px;height:18px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.empty{padding:50px 30px;text-align:center;color:#737373;font-size:14px}
.empty b{display:block;color:#0b0b0c;font-size:17px;margin-bottom:6px}
/* explore */
.search{flex:1;height:40px;border-radius:9999px;background:#efeff1;display:flex;align-items:center;gap:6px;padding:0 14px;margin-right:6px;color:#8e8e93}
.search input{flex:1;border:0;background:none;outline:none;color:#0b0b0c;min-width:0}
.ulist .row{display:flex;align-items:center;gap:12px;padding:8px 16px;width:100%;text-align:left}
.ulist .row:active{background:#f4f4f5}
.ulist .row img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.ulist .row .meta{flex:1;min-width:0;font-size:14px}
.ulist .row .meta b{display:flex;align-items:center;gap:4px;font-weight:600}
.ulist .row .meta span{color:#737373;font-size:13.5px}
.mini{height:32px;padding:0 18px;border-radius:9999px;font-weight:600;font-size:13.5px;background:#efeff1;flex:none;transition:background .2s,color .2s}
.mini.pri{background:var(--blue);color:#fff}
.note{padding:10px 16px;color:#737373;font-size:13px}
/* notifications */
/* settings */
.sgroup{margin:8px 16px 18px}
.sgroup h4{font-size:13px;font-weight:500;color:#6d6d72;text-transform:uppercase;letter-spacing:.2px;padding:0 18px 7px}
.scard{background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 0 0 .5px rgba(0,0,0,.06)}
.srow{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 16px;width:100%;text-align:left;font-size:16px;position:relative}
.srow+.srow:before{content:"";position:absolute;top:0;left:58px;right:0;border-top:.5px solid #e2e2e6}
.srow .si{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;flex:none}
.srow .si .ic{width:18px;height:18px}
.srow .lb{flex:1}
.srow .vl{color:#8e8e93;font-size:15px;display:flex;align-items:center;gap:4px}
.srow:active:not(.sw-row){background:#f2f2f4}
/* liquid-glass switch: capsule track, glass pill thumb that stretches while held and springs across */
.sw{--x:0px;--w:37px;position:relative;width:63px;height:28px;border-radius:9999px;background:rgba(120,120,128,.16);transition:background .3s ease;flex:none;touch-action:none;cursor:pointer}
.sw.on{--x:22px;background:#34C759}
.sw i{position:absolute;top:2px;left:2px;width:var(--w);height:24px;border-radius:9999px;transform:translateX(var(--x));background:linear-gradient(180deg,#fff 0%,#f4f4f7 100%);box-shadow:0 3px 8px rgba(0,0,0,.16),0 1px 1px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,1);transition:transform .35s cubic-bezier(.34,1.56,.64,1),width .22s var(--ease),background .2s,box-shadow .2s,scale .22s var(--ease)}
.sw i:after{content:"";position:absolute;left:6px;right:6px;top:1px;height:40%;border-radius:9999px;background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,0));opacity:0;transition:opacity .2s}
.sw.held{--w:45px}.sw.held.on{--x:14px}
.sw.held i{scale:1.12;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.16));-webkit-backdrop-filter:blur(2px) saturate(180%);backdrop-filter:blur(2px) saturate(180%);box-shadow:0 6px 16px rgba(0,0,0,.22),inset 0 0 0 .5px rgba(255,255,255,.85),inset 0 -1px 2px rgba(255,255,255,.35)}
.sw.held i:after{opacity:1}
.sw.drag i{transition:width .22s var(--ease),background .2s,box-shadow .2s,scale .22s var(--ease)}
.settings-bg{background:#f2f2f7}

.danger{color:#ff3b30}
/* overlays */
.ov{position:absolute;inset:0;z-index:90}
.ov.open .dim{opacity:1}
/* comments sheet (v14.45), measured off the real app on David's phone (Oct 9 12:47 AM screenshot, 1320x2868 at 3x = CSS px / 3):
   the post keeps playing behind a dark scrim; a full-width sheet 70% tall with 36px top corners in #181c1f; 34x2 grabber; 14.5px bold title;
   rows: 32px photo at 12px, text column at 53px, 10px semibold name + 10px grey time, 12/14 text, 10px grey "Reply", 16px hollow heart + count
   on the right; replies indented under a short line + "View N more replies"; a hairline, the emoji row, then photo + 44px pill "Join the conversation…" */
.ov.cmov .dim{background:rgba(0,0,0,.62)}
.sheet{position:absolute;left:0;right:0;bottom:0;height:70%;border-radius:36px 36px 0 0;background:#181c1f;color:#fff;transform:translateY(102%);transition:transform .5s var(--spring),height .36s var(--ease),max-height .25s;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -.33px 0 rgba(255,255,255,.06)}
html:not(.dark) .sheet{background:#fff;color:#0b0b0c}
.sheet.full{height:calc(100% - var(--sat) - 60px)}
.ov.open .sheet{transform:translateY(0)}
.ov.closing .sheet{transition:transform .3s cubic-bezier(.4,0,1,1);transform:translateY(102%)}
.sheet.drag{transition:none}
.sh-head{touch-action:none;flex:none;cursor:grab}
.sh-head .grab{width:34px;height:2px;border-radius:1px;background:#a4a8b0;margin:15px auto 0}
.sh-head h3{text-align:center;font-size:14.5px;line-height:18px;font-weight:700;letter-spacing:-.1px;padding:13px 0 0;margin:0}
.sh-list{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:16px}
.cm{display:flex;align-items:flex-start;padding:5px 16px 5px 12px}
.cm.new{animation:cnew 1.6s ease}
@keyframes cnew{0%{background:rgba(255,255,255,.08)}100%{background:transparent}}
.cm .cav{position:relative;flex:none;width:32px;height:32px;padding:0;margin-right:9px;border-radius:50%}
.cm .cav img,.cm .cav .lav,.cm .cav .me-av{display:block;position:relative;width:32px!important;height:32px!important;border-radius:50%;object-fit:cover;font-size:13px}
/* an unseen story: the gradient ring sits 4px outside the photo with a 2px gap in the sheet colour, like the real app (40px outside) */
.cm .cav.rg:before{content:'';position:absolute;inset:-4px;border-radius:50%;background:radial-gradient(circle farthest-corner at 0% 100%,#ffd600 20%,#ff7a00 48%,#ff0069 70%,#d300c5 86%)}
.cm .cav.rg img,.cm .cav.rg .lav{box-shadow:0 0 0 2px #181c1f}html:not(.dark) .cm .cav.rg img,html:not(.dark) .cm .cav.rg .lav{box-shadow:0 0 0 2px #fff}
.cm .b{flex:1;min-width:0;font-size:12px;line-height:14px;-webkit-user-select:text;user-select:text;overflow-wrap:anywhere;margin-right:4px}
.cm .b .u{display:flex;align-items:center;gap:4px;font-size:10px;line-height:14px;height:14px;font-weight:600;margin-bottom:2px;white-space:nowrap}
.cm .b .u .cun{font:inherit;color:inherit;padding:0;overflow:hidden;text-overflow:ellipsis}
.cm .b .u .ic.vb{width:10px;height:10px;flex:none;margin-left:0}.cm .b .u .ic.vb svg{width:10px;height:10px;display:block}
.cm .b .u .tm{font-weight:400;color:#a9adb6}
.cm .b .crt{font-size:10px;font-weight:400;color:#a9adb6}
.cm .b .tx{white-space:pre-wrap}
.cm .b button.mn{color:#8da5fd}html:not(.dark) .cm .b button.mn{color:#00376B}
.cm .b .r{display:flex;gap:14px;margin-top:5px;font-size:10px;line-height:14px;font-weight:600;color:#a9adb6}
.cm .b .r button{font:inherit;color:inherit;padding:0}
.cm .clk{flex:none;display:flex;flex-direction:column;align-items:center;width:24px;padding:20px 0 0;gap:6px;color:#a9adb6;font-size:10px;line-height:14px;font-weight:600}
.cm .clk .ic{width:16px;height:16px}
.cm .clk.on{color:#FF3040}.cm .clk.on svg path{fill:#FF3040;stroke:#FF3040}
.cm .clk span:empty{display:none}
.thr .reps .cm.rep{padding-left:53px}
.thr .reps .cm.rep .cav,.thr .reps .cm.rep .cav img,.thr .reps .cm.rep .cav .lav,.thr .reps .cm.rep .cav .me-av{width:24px!important;height:24px!important;font-size:10px}
.thr .reps .cm.hid{display:none}
.vmr{display:flex;align-items:center;gap:10px;margin:3px 0 7px 54px;padding:0;color:#a9adb6;font-size:10px;line-height:14px;font-weight:600}
.vmr i{width:22px;height:1px;background:#2e3236}html:not(.dark) .vmr i{background:#dbdbdb}
.rbar{display:none;align-items:center;justify-content:space-between;padding:9px 16px;font-size:12px;color:#a9adb6;background:rgba(255,255,255,.05);flex:none}
.ov.replying .rbar{display:flex}
.rbar button{font-size:14px;color:inherit;padding:0 2px}
.cfoot{flex:none;border-top:.33px solid rgba(255,255,255,.085)}html:not(.dark) .cfoot{border-top-color:rgba(0,0,0,.1)}
.emo{display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 16px}
.emo button{width:26px;height:44px;padding:0;font-size:21px;line-height:44px;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-variant-emoji:emoji;transition:transform .15s}
.emo button:active{transform:scale(1.25)}
.cin{display:flex;align-items:center;gap:9px;padding:5px 16px calc(var(--sab) + 4px)}
.cin img,.cin .me-av,.cin .lav{width:44px!important;height:44px!important;border-radius:50%;flex:none;font-size:17px}
.cin .fld{flex:1;min-width:0;display:flex;align-items:center;height:44px;border-radius:22px;border:1px solid #2c2f34;padding:0 12px 0 13px}html:not(.dark) .cin .fld{border-color:#dbdbdb}
.cin input{flex:1;min-width:0;border:0;outline:none;background:none;font-size:14px;color:#fff;caret-color:#fff;padding:0}html:not(.dark) .cin input{color:#0b0b0c;caret-color:#0095F6}
.cin input::placeholder{color:#a9afbb}
.cin .stk{flex:none;width:22px;height:22px;padding:0;color:#fff;display:flex}html:not(.dark) .cin .stk{color:#0b0b0c}.cin .post-btn{display:none;width:30px;height:30px;margin-right:-5px;border-radius:50%;padding:0;background:#0095F6;color:#fff;align-items:center;justify-content:center;flex:none}
.cin .post-btn.ok{display:flex}.cin .post-btn.ok~.stk,.cin .post-btn.ok+.stk{display:none}.cin .post-btn:disabled{opacity:.5}
.ov.kb .cin{padding-bottom:8px}
.cnote{text-align:center;font-size:10px;color:#a9adb6;padding:14px 16px 18px;opacity:.7;background:none}
.cempty{padding:56px 24px 24px;text-align:center}.cempty b{display:block;font-size:20px;font-weight:700;margin-bottom:6px}
/* story viewer */
.story-ov{position:absolute;inset:0;z-index:100;background:#000;transition:background .3s}
.stage{position:absolute;inset:0;overflow:hidden;touch-action:none;background:#111;transform-origin:50% 50%;will-change:transform}
.story-ov.cubing{perspective:900px}
.stage{-webkit-backface-visibility:hidden;backface-visibility:hidden}
.stage::after{content:'';position:absolute;inset:0;background:#000;opacity:var(--sh,0);pointer-events:none;z-index:20}
.stage.face{pointer-events:none}
.story-ov.hold{opacity:0;pointer-events:none}
.story-ov.opening .stage{animation:stOpen .38s var(--ease)}
@keyframes stOpen{from{transform:scale(.2);opacity:0;border-radius:50%}}
.story-ov.closing .stage{transition:transform .32s var(--ease),opacity .32s;opacity:0}
.stage .bg{position:absolute;inset:-40px;background-size:cover;background-position:center;filter:blur(30px) brightness(.7);will-change:transform}
.stage .simg{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;object-fit:contain}
.stage .simg.cover{object-fit:cover}
.stage .svid{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;object-fit:cover;background:transparent}
/* the next story videos, loading on their own players out of sight */
video.spre{position:fixed;left:0;top:0;width:2px;height:2px;opacity:0;pointer-events:none;z-index:-1}
.stage .grad{position:absolute;left:0;right:0;top:0;height:160px;background:linear-gradient(rgba(0,0,0,.45),transparent);pointer-events:none}
.stage .gradb{position:absolute;left:0;right:0;bottom:0;height:160px;background:linear-gradient(transparent,rgba(0,0,0,.4));pointer-events:none}
.stui{transition:opacity .25s}
.stage.held .stui{opacity:0}
.bars{position:absolute;top:calc(var(--sat) + var(--drop) + 8px);left:8px;right:8px;display:flex;gap:3px;z-index:3}
.bars i{flex:1;height:2.5px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden;position:relative}
.bars i b{position:absolute;left:0;top:0;bottom:0;width:100%;background:#fff;transform:scaleX(0);transform-origin:0 50%;will-change:transform}
.sthd{position:absolute;top:calc(var(--sat) + var(--drop) + 18px);left:10px;right:4px;display:flex;align-items:center;gap:9px;color:#fff;z-index:3}
.sthd img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.sthd .nm{font-weight:600;font-size:14px;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.sthd .tm{opacity:.75;font-size:14px;margin-left:2px}
.sthd .ib{color:#fff}
.stft{position:absolute;left:12px;right:12px;bottom:calc(var(--sab) + 14px);display:flex;align-items:center;justify-content:flex-end;gap:10px;z-index:3}
.stpost{margin-right:auto;height:40px;border-radius:9999px;display:flex;align-items:center;gap:6px;padding:0 16px;color:#fff;font-size:14px;font-weight:600;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);border:.5px solid rgba(255,255,255,.28);box-shadow:inset 0 1px 1px rgba(255,255,255,.25)}.stpost[hidden]{display:none}
.glassbtn{width:46px;height:46px;border-radius:9999px;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:.5px solid rgba(255,255,255,.28)}
.glassbtn.on{color:#FF3040}.glassbtn.on svg path{fill:#FF3040;stroke:#FF3040}
.glassbtn.bump .ic{animation:bump .4s cubic-bezier(.2,.9,.3,1.4)}


.paused-tag{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:none}
/* videos */
.vpage{background:#000;color:#fff}
.reels{position:absolute;left:0;right:0;bottom:0;top:0;overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.reels::-webkit-scrollbar{display:none}
.reel{position:relative;height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#000}
.reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain} .reel .rbg{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .2s;pointer-events:none}.reel .rbg.on{opacity:.55}
.reel .rbg{transition:opacity .45s}
.reel .shadeb{position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.55));pointer-events:none}
.vtop{position:absolute;top:0;left:0;right:0;z-index:20;height:calc(var(--sat) + var(--hpad) + var(--hdr));padding:calc(var(--sat) + var(--hpad)) 16px 0;display:flex;align-items:center;font-weight:700;font-size:22px;color:#fff;pointer-events:none;text-shadow:0 1px 6px rgba(0,0,0,.35);background:linear-gradient(to bottom,#000 0,#000 var(--sat),rgba(0,0,0,.38) var(--sat),rgba(0,0,0,.14) calc(var(--sat) + var(--hpad) + var(--hdr)),rgba(0,0,0,0) calc(var(--sat) + var(--hpad) + var(--hdr) + 28px));height:calc(var(--sat) + var(--hpad) + var(--hdr) + 28px);padding-bottom:28px}
.vside{position:absolute;right:8px;bottom:calc(var(--tbb) + var(--tbh) + 30px);display:flex;flex-direction:column;align-items:center;gap:16px;z-index:3}
.vside button{display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff;font-size:12.5px;font-weight:600;filter:drop-shadow(0 1px 3px rgba(0,0,0,.35))}
.vside .ic{width:30px;height:30px}
.vside .lk.on{color:#fff}
.vinfo{position:absolute;left:14px;right:70px;bottom:calc(var(--tbb) + var(--tbh) + 28px);z-index:3;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.vinfo .who{display:flex;align-items:center;gap:9px;font-weight:600;font-size:14.5px}
.vinfo .who img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.5)}
.vinfo .fb{height:28px;padding:0 12px;border-radius:9999px;border:1px solid rgba(255,255,255,.7);font-size:13px;font-weight:600;color:#fff}
.vinfo .fb.on{border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.8)}
.vinfo .vcap{font-size:14px;line-height:1.35;margin-top:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vinfo .aud{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;opacity:.9}
.vinfo .aud .ic{width:14px;height:14px}
.vplay{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(1.3);transition:opacity .2s,transform .2s;pointer-events:none;z-index:4}
.vplay .ic{width:34px;height:34px;color:#fff}
.reel.paused .vplay{opacity:1;transform:scale(1)}
.speed{position:absolute;top:calc(var(--sat) + 56px);left:50%;transform:translateX(-50%);background:rgba(0,0,0,.45);padding:6px 12px;border-radius:9999px;font-size:13px;font-weight:700;opacity:0;transition:opacity .2s;z-index:5;pointer-events:none}
.reel.fast .speed{opacity:1}
.scrub{position:absolute;left:0;right:0;bottom:calc(var(--tbb) + var(--tbh) + 8px);height:22px;z-index:6;touch-action:none;display:flex;align-items:center;padding:0 16px}
.scrub .tr{position:relative;flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);transition:height .15s}
.scrub .fill{position:absolute;left:0;top:0;bottom:0;width:100%;background:#fff;border-radius:2px;transform:scaleX(0);transform-origin:0 50%;will-change:transform}
.scrub .th{position:absolute;top:50%;width:0;height:0;border-radius:50%;background:#fff;transform:translate(-50%,-50%);transition:width .15s,height .15s}
.scrub.on .tr{height:6px}.scrub.on .th{width:14px;height:14px}
.scrubtime{position:absolute;left:50%;bottom:calc(var(--tbb) + var(--tbh) + 40px);transform:translateX(-50%);font-size:22px;font-weight:700;z-index:6;opacity:0;transition:opacity .15s;pointer-events:none;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.reel.scrubbing .scrubtime{opacity:1}
.reel.scrubbing .vinfo,.reel.scrubbing .vside{opacity:0}
/* welcome */
.welcome{position:fixed;top:0;left:0;right:0;height:100%;overscroll-behavior:none;touch-action:none;z-index:200;background:#000;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;transition:opacity .45s,transform .45s var(--ease)}
.welcome.gone{opacity:0;transform:scale(1.04);pointer-events:none}
.wbtn{height:52px;border-radius:26px;font-size:16.5px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:10px;width:100%;transition:transform .1s}
.wbtn:active{transform:scale(.98)}
.wbtn.pri{background:var(--blue);color:#fff}
/* toast & action sheet */
.editf{padding:12px 16px}
.editf label{display:block;font-size:13px;color:#737373;margin:12px 0 4px}
.editf input,.editf textarea{width:100%;border:0;border-bottom:.5px solid #ddd;padding:8px 0;outline:none;resize:none;background:none}
/* script wordmark header */
/* Home header: ONE plain bar, always visible, never moves, never fades, no blur/mask/filter/opacity/transform anywhere on or around it.
   Solid page colour like the real app; the wordmark and heart are drawn in solid white on top. */
.kfh{position:absolute;left:0;right:0;top:0;z-index:30;height:calc(var(--sat) + var(--hpad) + var(--hdr));padding:calc(var(--sat) + var(--hpad)) 12px 0 16px;display:flex;align-items:center;color:#F5F5F5}
html:not(.dark) .kfh{color:#0b0b0c}
.kfh-sp{width:44px;flex:none}
.kfh-wm{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;height:44px;color:inherit}
.kfh-wm .wmk{width:124px;height:18.8px;display:block;flex:none}
.kfh-chev{width:16px;height:16px;margin-top:6px;flex:none}
.kfh-wm:active{color:#8e8e93}
/* the Home header's round buttons: the heart, and the back circle on the Following / Favorites feeds */
.kfh-heart,.kfh-back{position:relative;width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:22px;background:rgba(44,46,50,.62);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.12)}
html:not(.dark) .kfh-heart,html:not(.dark) .kfh-back{background:rgba(255,255,255,.6);color:#0b0b0c;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.08)}
/* v14.45 (David's 12:57 AM real-app screenshot): Home's header is transparent. The feed runs full-bleed under the status bar and title;
   a soft progressive blur + darkening at the top edge (its own static layer, under the header), white title with a soft shadow, glass heart */
#homeScroll{-webkit-mask-image:none;mask-image:none}
.page[data-name=home] .kfh{transition:transform .32s var(--ease),opacity .22s ease;will-change:transform}
.page[data-name=home] .kfh-blur{transition:transform .32s var(--ease);will-change:transform}
.page.hh .kfh{transform:translateY(calc(-1 * var(--htop)));opacity:0;pointer-events:none}
.page.hh .kfh-blur{transform:translateY(calc(var(--sat) + 10px - 100%))}
.kfh-blur{position:absolute;left:0;right:0;top:0;z-index:29;height:calc(var(--htop) + 8px);pointer-events:none;background:linear-gradient(to bottom,rgba(12,15,20,.62),rgba(12,15,20,.34) 72%,rgba(12,15,20,0));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);-webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent);mask-image:linear-gradient(to bottom,#000 62%,transparent)}
html:not(.dark) .kfh-blur{background:linear-gradient(to bottom,rgba(255,255,255,.6),rgba(255,255,255,0))}
html.dark .kfh-wm{text-shadow:0 1px 8px rgba(0,0,0,.45)}html.dark .kfh-wm .wmk,html.dark .kfh-chev{filter:drop-shadow(0 1px 4px rgba(0,0,0,.4))}
.kfh-heart svg{width:27px;height:27px;display:block}
.kfh-heart .badge{top:7px;right:7px}
/* ===== dark mode (default) ===== */
html.dark,html.dark body,html.dark #app,html.dark .page,html.dark .post{background:#0C0F14}
html.dark body{color:#F3F4F6}


html.dark .settings-bg,html.dark .settings-bg .page{background:#000}

html.dark .badge{border-color:#0C0F14}
html.dark .stories{border-bottom-color:rgba(255,255,255,.08)}
html.dark .sl,html.dark .stats span{color:#E6E7EA}
html.dark .loc{color:#B4B8BF}
html.dark .nav .t small,html.dark .vc,html.dark .when,html.dark .bio .ct,html.dark .empty,html.dark .ulist .row .meta span,html.dark .note,html.dark .nrow .tx span,html.dark .sgroup h4,html.dark .srow .vl,html.dark .empty b,html.dark .ptabs button.on,html.dark .search input{color:#F3F4F6}
html.dark .media,html.dark .grid .tile,html.dark .xgrid .tile{background:#1A1E25}
html.dark .sv.on svg path{fill:#F3F4F6}
html.dark .dots i{background:rgba(255,255,255,.3)}
.dots i.on,html.dark .dots i.on{background:var(--blue)}
html.dark .search{background:#232830;color:#F3F4F6}
html.dark .btn,html.dark .mini{background:#363636;color:#F3F4F6}
html.dark .btn.pri,html.dark .mini.pri,html.dark .wbtn.pri{background:var(--blue);color:#fff}
html.dark .btn.bell.on{background:rgba(230,51,107,.18)}
html.dark .hl .c{border-color:#3A3F47}
html.dark .ulist .row:active,html.dark .nrow:active,html.dark .srow:active:not(.sw-row){background:#1A1E25}
html.dark .scard{background:#1C1C1E;box-shadow:none}
html.dark .sw{background:rgba(120,120,128,.32)}html.dark .sw.on{background:#34C759}
@media (min-width:560px){html.dark body{background:#05070A}}
html.dark .ptabs,html.dark .editf input,html.dark .editf textarea{border-bottom-color:rgba(255,255,255,.1)}
html.dark .srow+.srow:before{border-top-color:rgba(255,255,255,.1)}
html.dark .editf input,html.dark .editf textarea{background:transparent;color:#F3F4F6}
.flyheart{position:absolute;width:104px;height:104px;z-index:150;pointer-events:none;color:#FF3040;opacity:0;will-change:transform,opacity;backface-visibility:hidden;filter:drop-shadow(0 6px 16px rgba(0,0,0,.28))}
.flyheart svg{width:100%;height:100%;position:absolute;inset:0}.flyheart .fr{opacity:0}
.lk.on.hold{color:inherit}.lk.on.hold svg path{fill:none;stroke:currentColor}
/* iOS context menu (grows from the tapped element) */
/* ===== accounts: auth sheet (iOS 26 glass sheet), splash, forms ===== */
.splash{position:absolute;inset:0;z-index:250;display:flex;align-items:center;justify-content:center;background:#0C0F14;transition:opacity .35s}
.splash.gone{opacity:0;pointer-events:none}
.splash{color:#F5F5F5}.splash .wmk{width:190px;height:28.8px}
/* iOS 26 floating sheet, concentric with the screen (the shared --sh-* values, see the action sheets block) */
.authsheet{position:absolute;left:var(--sh-in);right:var(--sh-in);bottom:var(--sh-in);z-index:3;margin:0;padding:12px 20px var(--sh-pb);border-radius:var(--sh-r);color:#fff;
 background:rgba(22,22,26,.48);-webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.20),inset 0 -1px 0 rgba(255,255,255,.05),inset 0 0 0 .5px rgba(255,255,255,.16),0 18px 50px rgba(0,0,0,.55);transition:transform .25s ease;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.afields{display:flex;flex-direction:column;gap:10px}
.afields input,.gcard input{width:100%;height:52px;border-radius:26px;border:0;padding:0 20px;font-size:17px;background:rgba(118,118,128,.24);color:#F5F5F7;outline:none;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .2s}
.afields input::placeholder,.gcard input::placeholder{color:rgba(235,235,245,.5)}
.afields input:focus,.gcard input:focus{box-shadow:inset 0 0 0 1.5px rgba(10,132,255,.9)}
.aerr,.ferr{min-height:20px;margin:8px 6px 0;color:#FF453A;font-size:14px;line-height:1.35}
.asubmit{margin-top:6px}
.wbtn.busy{opacity:.6;pointer-events:none}
.gform{padding:16px}
.gcard{display:flex;flex-direction:column;gap:10px}
.fhint{font-size:13.5px;color:#9AA0A8;margin:10px 6px 4px;line-height:1.4}
.cdel{margin-left:14px;color:inherit;font-size:inherit;font-weight:600}
.feed-empty{padding:40px 24px 16px}
/* ===== "Big type" login background: tilted wordmark rows drifting (transform only), static gradient-tinted colours, no blend layers ===== */
.bt{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#000;contain:strict}
.bt-tilt{position:absolute;left:-60%;right:-60%;top:-40%;bottom:-40%;transform:rotate(-12deg)}
.bt-l{position:absolute;inset:0;will-change:transform;animation:btl 80s linear infinite}.bt-l.odd{animation-name:btr}
.bt-row{position:absolute;display:flex;gap:44px}
.welcome.typing .bt-l{animation-play-state:paused}
.bt-row svg{width:400px;height:60.7px;flex:none;fill:currentColor}
@keyframes btl{from{transform:translate3d(0,0,0)}to{transform:translate3d(-330px,0,0)}}
@keyframes btr{from{transform:translate3d(-330px,0,0)}to{transform:translate3d(0,0,0)}}
.bt-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 70%,rgba(0,0,0,.8) 100%)}
.bt-halo{position:absolute;left:-40px;right:-40px;top:calc(var(--sat) + 66px);height:220px;background:radial-gradient(50% 50% at 50% 50%,rgba(0,0,0,.85),rgba(0,0,0,0) 100%)}
@media (prefers-reduced-motion:reduce){.bt-l{animation:none}}
.bt-logo{position:absolute;top:calc(var(--sat) + 114px);left:0;right:0;display:flex;justify-content:center;color:#fff;transition:opacity .2s}
.bt-logo .wmk{width:300px;height:45.5px;filter:drop-shadow(0 0 24px rgba(255,255,255,.18))}
.welcome.kb .bt-logo{opacity:0}
.authsheet .grab{width:36px;height:5px;border-radius:3px;background:rgba(255,255,255,.3);margin:0 auto 14px}
.authsheet h3{font-size:28px;font-weight:700;letter-spacing:-.6px;margin:2px 4px 16px}
.afields{display:flex;flex-direction:column;gap:12px}
.afields input{width:100%;height:52px;border-radius:26px;border:0;padding:0 20px;font-size:17px;letter-spacing:-.3px;background:rgba(255,255,255,.06);color:#fff;outline:none;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.08);transition:box-shadow .2s}
.afields input::placeholder{color:rgba(235,235,245,.42)}
.afields input:focus{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.afields .pw{position:relative;display:block}.afields .pw input{padding-right:56px}
.afields .eye{position:absolute;right:6px;top:4px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#fff;opacity:.5}
.afields .eye.on{opacity:.95}
.anote{font-size:15px;line-height:1.4;color:rgba(235,235,245,.7);margin:0 4px 6px;text-align:center}
.anote b{color:#F5F5F7;font-weight:600;overflow-wrap:anywhere}.anote.sm{font-size:13px;color:rgba(235,235,245,.5);margin-top:8px}
.otpbox{position:relative;height:58px;margin:4px 0 0}
.afields input.otpin{position:absolute;inset:0;width:100%;height:100%;padding:0;border-radius:0;background:transparent;box-shadow:none;color:transparent;caret-color:transparent;font-size:16px;opacity:.012;-webkit-user-select:none;user-select:none}
.otpc{display:flex;gap:8px;justify-content:center;height:100%;pointer-events:none}
.otpc i{flex:1 1 0;max-width:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:26px;font-weight:600;letter-spacing:-.3px;color:#fff;font-variant-numeric:tabular-nums;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.08);transition:box-shadow .15s}
.otpc i.full{background:rgba(255,255,255,.09)}
.otpc i.cur{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.6)}
.otpc i.cur:empty::after{content:'';width:2px;height:28px;border-radius:1px;background:#0A84FF;animation:otpcaret 1s steps(1) infinite}
@keyframes otpcaret{50%{opacity:0}}
.otpbox.bad .otpc{animation:otpshake .4s cubic-bezier(.36,.07,.19,.97)}
.otpbox.bad .otpc i{box-shadow:inset 0 0 0 1px rgba(255,69,58,.7)}
@keyframes otpshake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
.alink:disabled{opacity:.45}
.aerr{min-height:18px;margin:8px 6px 0;color:#FF453A;font-size:14px;line-height:1.35}
.wbtn.wpri{margin-top:4px;background:linear-gradient(#fff,#e9e9ee);color:#000;font-size:17px;letter-spacing:-.3px;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 1px rgba(0,0,0,.12),0 8px 24px rgba(255,255,255,.08)}
.wbtn.wgl{margin-top:0;color:#fff;font-size:17px;letter-spacing:-.3px;background:rgba(30,30,36,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.20),inset 0 0 0 .5px rgba(255,255,255,.18)}
.amore{display:flex;flex-direction:column;gap:12px;margin-top:12px}.amore:empty{display:none}
.alink{display:block;width:100%;font-size:15px;color:rgba(235,235,245,.62);text-align:center;letter-spacing:-.2px}
.alink button{color:#fff;font-weight:600}
.amore .or{display:flex;align-items:center;gap:10px;color:rgba(235,235,245,.4);font-size:13px;margin:2px 0}
.amore .or:before,.amore .or:after{content:"";flex:1;height:.5px;background:rgba(255,255,255,.18)}
.offline .authsheet .wbtn{margin-top:8px}
.welcome.kb .authsheet{padding-bottom:16px}
.ahint{min-height:0;margin:-4px 8px 0;font-size:13px;line-height:1.35;color:rgba(235,235,245,.6)}.ahint:empty{display:none}
.ahint.ok{color:#30D158}.ahint.bad{color:#FF453A}
.ahint .ok-i{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.ahint .sugg{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ahint .sugg button{height:28px;padding:0 12px;border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font-size:13px;font-weight:500}
.ahint button.lnk{color:#fff;font-weight:600}
.afields input.ok{box-shadow:inset 0 0 0 1px rgba(48,209,88,.55)}.afields input.bad{box-shadow:inset 0 0 0 1px rgba(255,69,58,.6)}
/* v14: followers / following pages, member profiles, unfollow sheet, suggestions */
.ulist .row .rowmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.ulist .row .lav,.ulist .row .me-av{flex:none}
.ftabs{position:absolute;left:0;right:0;top:calc(var(--sat) + var(--hpad) + var(--hdr));height:44px;display:flex;z-index:20;background:#fff;border-bottom:.5px solid rgba(0,0,0,.12)}
html.dark .ftabs{background:#0C0F14;border-bottom-color:rgba(255,255,255,.12)}
.ftabs button{flex:1;font-size:15px;font-weight:600;color:#8e8e93;transition:color .2s}.ftabs button.on{color:inherit}.ftabs button b{font-weight:600}
.fbar{position:absolute;left:0;bottom:-.5px;width:50%;height:1.5px;background:currentColor;transition:none}
.fpager{position:absolute;left:0;right:0;bottom:0;top:calc(var(--sat) + var(--hpad) + var(--hdr) + 44px);display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.fpager::-webkit-scrollbar{display:none}
.flist{flex:0 0 100%;height:100%;overflow-y:auto;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 10px);mask-image:linear-gradient(to bottom,transparent 0,#000 10px);scroll-snap-align:start;scroll-snap-stop:always;padding:6px 0 calc(var(--tbh) + var(--sab) + 16px);-webkit-overflow-scrolling:touch}
.ulist .row .mini{flex:none}
.noposts{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;font-size:22px}
.noposts b{font-weight:800}
.noposts .cam{width:62px;height:62px;border-radius:50%;border:2px solid currentColor;display:flex;align-items:center;justify-content:center}.noposts .cam svg{width:32px;height:32px}
.sghd{display:flex;align-items:center;padding:14px 16px 6px;font-size:15px}.sghd b{font-weight:700}
.locked{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:56px 32px}
.locked .lk{width:76px;height:76px;border-radius:50%;border:2px solid currentColor;display:flex;align-items:center;justify-content:center}
.locked b{font-size:20px;font-weight:700}.locked p{font-size:14px;color:#8e8e93;line-height:1.4;margin:0 0 6px}
.locked .btn{min-width:220px}
.empty .sreq{display:block;margin:16px auto 0}
.np-s{font-size:14px;color:#8e8e93;font-weight:400;text-align:center}.sghd .np-s{margin-left:8px}
.vempty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;text-align:center;padding:0 40px}.vempty b{font-size:20px}.vempty span{color:#9AA0A8;font-size:14px}
.ef-av{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 16px 6px}
.ef-pic{border-radius:50%;overflow:hidden;display:block}.ef-pic:active{opacity:.7}
.ef-lnk{color:var(--blue);font-weight:600;font-size:14px}
.ef-hint{font-size:12.5px;min-height:16px;margin-top:4px;color:#9AA0A8}.ef-hint.ok{color:#30D158}.ef-hint.bad{color:#FF453A}
.pav{border-radius:50%;display:block;flex:none}.pav:active{opacity:.7}
.sghd .lnk{color:var(--blue);font-weight:600;font-size:14px;margin-left:auto}
.srow2 .rowmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
button.srow2{width:100%}
.smag{flex:none;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);color:#F3F4F6}
html:not(.dark) .smag{border-color:rgba(0,0,0,.15);color:#0b0b0c}
.smag svg{width:20px;height:20px}
.sx{flex:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:#8e8e93}
.empty.sm{padding:40px 24px}
.reel.done .vplay{display:none}
/* v14.53.9 (David, 2:05 AM): the end of a video shows "Next video" as plain text above a plain "Watch again" pill (no glass on the website) */
.vend{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.94);z-index:4;display:none;flex-direction:column;align-items:center;gap:14px;opacity:0;transition:opacity .2s,transform .25s var(--ease)}
.reel.done .vend{display:flex;opacity:1;transform:translate(-50%,-50%) scale(1)}
.vnext{color:#fff;font-size:15px;font-weight:600;padding:6px 10px;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.vagain{height:44px;padding:0 22px;border-radius:9999px;font-size:16px;font-weight:600;background:rgba(255,255,255,.92);color:#111}
html.dark .vagain{background:rgba(28,28,30,.86);color:#fff}
.kfh.mode .kfh-wm .wmk,.kfh.mode .kfh-wm>svg:not(.kfh-chev){display:none}
.kfh-t{font-size:22px;font-weight:700;letter-spacing:-.3px}
.kfh-back svg{width:24px;height:24px;display:block}

/* profile photo crop: full-screen dark editor with a circle mask */
.crop-ov{position:absolute;inset:0;z-index:280;background:#000;display:flex;flex-direction:column;opacity:0;transition:opacity .25s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.crop-ov.open{opacity:1}
.crop-bar{flex:none;position:relative;z-index:2;height:calc(var(--sat) + var(--drop) + 52px);padding:calc(var(--sat) + var(--drop)) 4px 0;display:flex;align-items:center;justify-content:space-between;background:#000;color:#fff}
.crop-bar button{background:none;border:0;color:#fff;font:inherit;font-size:17px;padding:12px 14px;-webkit-tap-highlight-color:transparent}
.crop-bar .crop-done{font-weight:700;color:var(--blue)}
.crop-bar .crop-done:disabled{opacity:.45}
.crop-ttl{font-size:16px;font-weight:600;pointer-events:none}
.crop-stage{flex:1;position:relative;overflow:hidden;touch-action:none}
.crop-img{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;backface-visibility:hidden;opacity:0;transition:opacity .2s}
.crop-img.on{opacity:1}
.crop-dim{position:absolute;inset:0;pointer-events:none;z-index:1}
.crop-mask{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.5);box-sizing:border-box;pointer-events:none;z-index:1}
.crop-spin{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:crop-spin .8s linear infinite;z-index:2}
@keyframes crop-spin{to{transform:rotate(360deg)}}

/* ---------- Liquid Glass popups (v14.25): floating, inset, frosted; content behind stays visible, lightly dimmed ---------- */
:root{--g-bg:rgba(250,250,253,.58);--g-row:rgba(255,255,255,.0);--g-sep:rgba(60,60,67,.18);--g-edge:rgba(255,255,255,.75);--g-hi:rgba(255,255,255,.85);--g-txt:#000;--g-sub:rgba(60,60,67,.62);--g-blue:#007AFF;--g-red:#FF3B30;--g-press:rgba(0,0,0,.07);
 --g-shadow:0 22px 60px rgba(0,0,0,.22),0 2px 10px rgba(0,0,0,.08);--g-blur:blur(26px) saturate(190%);--spring:cubic-bezier(.3,1.32,.52,1)}
html.dark{--g-bg:rgba(44,44,50,.46);--g-sep:rgba(255,255,255,.12);--g-edge:rgba(255,255,255,.22);--g-hi:rgba(255,255,255,.28);--g-txt:#fff;--g-sub:rgba(235,235,245,.6);--g-blue:#0A84FF;--g-red:#FF453A;--g-press:rgba(255,255,255,.1);
 --g-shadow:0 24px 70px rgba(0,0,0,.55),0 2px 12px rgba(0,0,0,.3)}
.glass{position:relative;background:var(--g-bg);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:inset 0 0 0 .5px var(--g-edge),inset 0 1px 0 var(--g-hi),var(--g-shadow);color:var(--g-txt);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.glass:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(160deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 38%,rgba(255,255,255,0) 70%,rgba(255,255,255,.06) 100%)}
.dim{position:absolute;inset:0;background:rgba(0,0,0,.26);opacity:0;transition:opacity .32s ease}
html:not(.dark) .dim{background:rgba(0,0,0,.18)}
/* shared floating-sheet geometry (every sheet, menu and confirm): iOS 26 sheets are concentric with the display.
   --sh-dr is the iPhone screen's corner radius (55pt on 14/15 Pro, 62pt on 16/17 Pro; 58 splits them), --sh-in the even gap at the sides and bottom,
   --sh-r = --sh-dr - --sh-in so the sheet's curve follows the phone's with the same gap all the way round.
   The sheet stays at the even gap; the home indicator rides over its bottom padding (--sh-pb), which keeps content clear of it. */
:root{--sh-dr:58px;--sh-in:12px;--sh-r:calc(var(--sh-dr) - var(--sh-in));--sh-pb:max(22px,calc(var(--sab) - var(--sh-in)))}
/* action sheets & confirms: one floating glass panel on the shared --sh-in gap (as wide as every other sheet), Cancel as its own fully round 56px capsule */
.asheet{position:absolute;left:var(--sh-in);right:var(--sh-in);bottom:var(--sh-in);opacity:0;transform:translateY(28px) scale(.92);transform-origin:50% 100%;transition:transform .48s var(--spring),opacity .22s ease;touch-action:none;will-change:transform}
.ov.open .asheet{opacity:1;transform:none}
.ov.closing .asheet{transition:transform .26s cubic-bezier(.4,0,1,1),opacity .2s ease-in;transform:translateY(24px) scale(.95);opacity:0}
.asheet.drag{transition:none}
.asheet .grp{border-radius:32px;overflow:hidden;margin-top:9px}
.asheet .grp button{position:relative;display:block;width:100%;height:56px;font-size:18px;font-weight:400;color:var(--g-blue);background:var(--g-row);transition:background .15s}
.asheet .grp button+button:after,.asheet .grp .ttl+button:after,.asheet .grp .ufh+button:after{content:"";position:absolute;left:20px;right:20px;top:0;border-top:.5px solid var(--g-sep)}
.asheet .grp button:active{background:var(--g-press)}
.asheet .grp button.red{color:var(--g-red)}
.asheet .grp .ttl{padding:16px 20px 12px;text-align:center;font-size:13px;line-height:17px;color:var(--g-sub)}
.asheet .grp.cx{border-radius:9999px}
.asheet .cancel{font-weight:600}
.ufs .ufh{display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 16px 18px}
.ufs .uft{font-size:15px;font-weight:600;color:var(--g-txt)}
/* context menus: grow from the tapped element */
.cm-ov{z-index:400}
.cm-ov .dim{background:rgba(0,0,0,.12)}
.cmenu{position:absolute;border-radius:28px;overflow:hidden;opacity:0;transform:scale(.25);transition:transform .42s var(--spring),opacity .18s ease-out}
.cm-ov.open .cmenu{opacity:1;transform:none}
.cm-ov.closing .cmenu{transition:transform .22s cubic-bezier(.4,0,1,1),opacity .18s ease-in;transform:scale(.6);opacity:0}
.cmenu button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:12px 20px;font-size:17px;line-height:22px;text-align:left;color:inherit;transition:background .15s}
.cmenu button+button:after{content:"";position:absolute;left:20px;right:20px;top:0;border-top:.5px solid var(--g-sep)}
.cmenu button:active{background:var(--g-press)}
.cmenu button.red{color:var(--g-red)}
.cmenu .mi{width:21px;height:21px;flex:none}
.cmt{padding:12px 20px 9px;font-size:13px;color:var(--g-sub)}
/* toast: a low, wide glass capsule, always one line */
.toast{position:absolute;left:50%;bottom:calc(var(--tbb) + var(--tbh) + 14px);transform:translate(-50%,16px) scale(.9);font-size:13.5px;font-weight:500;line-height:20px;padding:9px 22px;border-radius:9999px;opacity:0;transition:opacity .22s ease,transform .45s var(--spring);z-index:300;pointer-events:none;width:max-content;min-width:min(64%,260px);max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0) scale(1)}
/* request-a-creator: a glass form sheet */
/* request sheet: an iOS 26 floating bottom sheet on the shared concentric geometry, 20px padding */
.rsheet{position:absolute;left:var(--sh-in);right:var(--sh-in);bottom:var(--sh-in);border-radius:var(--sh-r);padding:10px 20px var(--sh-pb);opacity:0;transform:translateY(40px) scale(.94);transform-origin:50% 100%;transition:transform .5s var(--spring),opacity .22s ease,bottom .25s ease;touch-action:none}
.ov.open .rsheet{opacity:1;transform:none}
.ov.closing .rsheet{transition:transform .26s cubic-bezier(.4,0,1,1),opacity .2s ease-in;transform:translateY(30px) scale(.96);opacity:0}
.rsheet.drag{transition:none}
.rsheet .grab{margin:0 auto 16px}
.rsheet h3{font-size:19px;line-height:24px;font-weight:700;text-align:center;margin:0 0 6px}
.rsheet p{font-size:14px;line-height:19px;color:var(--g-sub);text-align:center;margin:0 4px 18px}
.rsheet .rf{display:block;width:100%;height:50px;border-radius:16px;padding:0 16px;font:inherit;font-size:16px;line-height:22px;color:var(--g-txt);background:rgba(120,120,128,.18);border:0;outline:0;margin:0 0 10px;-webkit-appearance:none;appearance:none}
.rsheet textarea.rf{resize:none;height:84px;padding:14px 16px}
.rsheet .rf::placeholder{color:var(--g-sub)}
.rsheet .rerr{min-height:18px;font-size:13px;line-height:18px;color:var(--g-red);text-align:center;margin:0 0 8px}
/* shared sheet buttons: equal capsules, label centered */
.sbtns{display:flex;gap:12px}
.sbtn{flex:1 1 0;min-width:0;height:50px;display:flex;align-items:center;justify-content:center;padding:0 16px;border-radius:9999px;font-size:17px;line-height:1;font-weight:600;color:var(--g-txt);background:rgba(120,120,128,.24);transition:transform .15s,background .15s,opacity .15s;white-space:nowrap}
.sbtn.go{background:var(--g-blue);color:#fff}
.sbtn:active{transform:scale(.97)}
.sbtn:disabled{opacity:.5}
/* sheets and menus over the app: calm dark glass, the content behind doesn't bleed through as a colored blob */
html.dark .ov .glass{--g-bg:rgba(28,28,32,.94);--g-blur:blur(30px) saturate(115%)}
html.dark .ov .glass:before{background:linear-gradient(180deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,0) 30%)}
.prof-top .pnm{flex:1;min-width:0;display:flex;align-items:center;gap:4px;font-size:20px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.sheet-open .tabbar{opacity:0;transform:translate3d(0,30%,0) scale(.96);transition:opacity .2s ease,transform .3s var(--ease);pointer-events:none}
/* search results: Top / Accounts / Posts / Tags */
.stabs{position:absolute;left:0;right:0;top:calc(var(--htop) + var(--cgap));height:44px;display:flex;z-index:20}
.stabs button{flex:1;font-size:15px;font-weight:600;color:#8e8e93;transition:color .2s}
.stabs button.on{color:inherit}
.stbar{position:absolute;left:0;bottom:0;width:25%;height:1.5px;background:currentColor;transition:transform .3s var(--ease)}
.sresp{padding-top:calc(var(--htop) + var(--cgap) + 44px);-webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent calc(var(--htop) + var(--cgap) + 30px),rgba(0,0,0,.5) calc(var(--htop) + var(--cgap) + 40px),#000 calc(var(--htop) + var(--cgap) + 50px));mask-image:linear-gradient(to bottom,transparent 0,transparent calc(var(--htop) + var(--cgap) + 30px),rgba(0,0,0,.5) calc(var(--htop) + var(--cgap) + 40px),#000 calc(var(--htop) + var(--cgap) + 50px))}
.sresp .grid{margin-top:2px}
.scorr{padding:10px 16px 4px;font-size:14px;color:#8e8e93;line-height:20px}
.scorr b{color:inherit;font-weight:600}html.dark .scorr b{color:#F3F4F6}
.scorr button{display:block;color:var(--blue);font-size:14px;margin-top:2px}
.xtry{display:flex;flex-wrap:wrap;gap:8px;padding:2px 16px 10px}

/* ===== v14.28 ===== */
/* pull to refresh: the original Home wheel (28pt, 12 grey spokes) on every scroller; grows and turns with the pull, spins while reloading */
.ptr{position:absolute;left:0;right:0;display:flex;justify-content:center;z-index:25;pointer-events:none;opacity:0}
.spin{position:relative;width:28px;height:28px;will-change:transform}
.spin i{position:absolute;left:12.5px;top:0;width:3px;height:8px;border-radius:2px;background:#8e8e93;transform-origin:1.5px 14px}
html.dark .spin i{background:#98989f}
.ptr.go .spin{animation:spin 1s steps(12) infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ptr-on>*{transform:translate3d(0,var(--pull,0px),0)}
.ptr-on.ptr-back>*{transition:transform .55s cubic-bezier(.22,1.18,.4,1)}
.ptr-on.reels>.reel{transform:translate3d(0,var(--pull,0px),0)}
.cload{display:flex;justify-content:center;padding:44px 0;position:relative;height:110px}.cload .ptr{position:static;opacity:1}
.ploading{height:120px;display:flex;align-items:center;justify-content:center}
.ploading .ptr{position:static;opacity:1}

/* story ring: gradient ring 3.4% of the outer diameter, a transparent 3% gap, then the avatar with a hairline edge; seen = thin grey ring */
.ring{--d:83px;position:relative;display:inline-flex;flex:none;width:var(--d);height:var(--d);border-radius:50%;padding:calc(var(--d) * .064);transition:transform .15s}
.ring:before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle farthest-corner at 0% 100%,#ffd600 20%,#ff7a00 48%,#ff0069 70%,#d300c5 86%);
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - var(--d) * .034 - .4px),#000 calc(100% - var(--d) * .034));mask:radial-gradient(farthest-side,transparent calc(100% - var(--d) * .034 - .4px),#000 calc(100% - var(--d) * .034))}
.ring.seen:before{background:#dbdbdb;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - max(1px,var(--d) * .016) - .4px),#000 calc(100% - max(1px,var(--d) * .016)));mask:radial-gradient(farthest-side,transparent calc(100% - max(1px,var(--d) * .016) - .4px),#000 calc(100% - max(1px,var(--d) * .016)))}
html.dark .ring.seen:before{background:#3a3a3c}
.ring.none:before{display:none}
.ring .gap{display:block;width:100%;height:100%;border-radius:50%;background:transparent;padding:0}
.ring .gap img,.ring .gap .lav,.ring .gap .pav{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover;display:block;box-shadow:0 0 0 .5px rgba(0,0,0,.1)}
html.dark .ring .gap img,html.dark .ring .gap .lav,html.dark .ring .gap .pav{box-shadow:0 0 0 .5px rgba(255,255,255,.15)}
.stories .ring{--d:92px}.prof-top .ring{--d:99px}.ring.sm{--d:37px}.ring.xs{--d:60px}

/* Explore: full-width Search pill + Saved; in search, a round glass back button + the pill */
.xsb{gap:8px;padding-right:10px}
.xsb .xback{display:none}.xsb.on .xback{display:flex}.xsb.on .xsaved{display:none}
.xback{flex:none;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;display:flex;color:inherit}
.xsb .search{margin-right:0;height:38px;border-radius:19px}
.xsb .xclr{display:flex;align-items:center;color:#8e8e93;flex:none}.xsb .xclr[hidden]{display:none}
.xsaved{flex:none;width:40px}
.xgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5px}
.xgrid .tile{position:relative;aspect-ratio:3/4;overflow:hidden;background:#efeff1;display:block}
.xgrid .tile img{width:100%;height:100%;object-fit:cover;display:block}
.xgrid .tile:active{opacity:.8}
.xgrid .tile .pl{position:absolute;top:8px;right:8px;width:20px;height:20px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.xgrid .tile .vw{position:absolute;left:7px;bottom:6px;display:flex;align-items:center;gap:3px;color:#fff;font-size:13px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.xgrid .tile .vw .ic{filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
html.dark .xgrid .tile{background:#1A1E25}

/* search: Recent circles, Suggested rows, typing rows, loading skeletons */
.sghd .lnk.xref,.sghd [data-act="srecent-all"]{color:var(--blue)}
.sseeall{display:block;width:100%;padding:8px 16px 12px;color:var(--blue);font-weight:600;font-size:14px;text-align:left}
.qrow{display:flex;align-items:center;gap:12px;padding:8px 16px;width:100%;text-align:left;min-height:60px}
.qrow .meta{flex:1;min-width:0;font-size:14px;line-height:1.3}.qrow .meta>span{color:#737373;font-size:13.5px}html.dark .qrow .meta>span{color:#9AA0A8}
.search input::-webkit-search-cancel-button,.search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.qrow .meta b{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qrow .meta b>.nw,html.dark .qrow .meta b>.nw{display:inline;font-weight:400;color:inherit;font-size:inherit}
.qrow .meta>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qrow .qav{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;margin-left:8px}
.arow{min-height:76px}.arow .meta b{font-weight:700}
.arow .meta span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ndot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#0095F6;margin-left:5px;vertical-align:1px}
.skel{padding:0}
.sk{display:flex;align-items:center;gap:12px;height:76px;padding:0 16px}
.sk i{flex:none;width:48px;height:48px;border-radius:50%}
.sk span{flex:1;display:flex;flex-direction:column;gap:8px}
.sk b{display:block;height:12px;border-radius:6px;width:45%}.sk b+b{width:35%;height:10px}
.sk i,.sk b{background:linear-gradient(90deg,#efeff1 0%,#e3e3e6 40%,#efeff1 80%) 0 0/300% 100%;animation:skshim 1.3s linear infinite}
html.dark .sk i,html.dark .sk b{background:linear-gradient(90deg,#1c1f25 0%,#262a31 40%,#1c1f25 80%) 0 0/300% 100%}
@keyframes skshim{from{background-position:100% 0}to{background-position:-50% 0}}

/* notifications */
.nhd{gap:10px;padding-left:12px}
.nhu{font-size:20px;font-weight:700;letter-spacing:-.2px}
.nsec{font-weight:700;font-size:16px;padding:16px 16px 8px}
.nrow{display:flex;align-items:center;gap:12px;padding:8px 16px;width:100%;text-align:left}
.nrow.unread{background:rgba(0,149,246,.07)}html.dark .nrow.unread{background:rgba(10,132,255,.1)}
.nrow:active{background:#f4f4f5}
.nav1,.nav2{position:relative;flex:none;width:44px;height:44px;align-self:flex-start;display:block}
.nav1>img,.nav1>.lav{width:44px!important;height:44px!important;border-radius:50%;object-fit:cover;display:block}
.nav2 .b1,.nav2 .b2{position:absolute;width:32px;height:32px;border-radius:50%}
.nav2 .b1{left:0;top:0}.nav2 .b2{right:0;bottom:0;box-shadow:0 0 0 2px #fff;border-radius:50%}
html.dark .nav2 .b2{box-shadow:0 0 0 2px #000}
.nav2 img,.nav2 .lav{width:32px!important;height:32px!important;border-radius:50%;object-fit:cover;display:block}
.nbadge{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;background:#FF3040;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
html.dark .nbadge{box-shadow:0 0 0 2px #000}
.nbadge svg{width:10px;height:10px}
.nrow .tx{flex:1;min-width:0;font-size:14px;line-height:1.36}
.nrow .nt b{font-weight:600}
.nrow .ntm,.nrow .nmore{color:#8e8e93}
.nacts{display:flex;align-items:center;gap:14px;margin-top:6px}
.nlk{display:flex;color:#8e8e93}.nlk .ic,.nlk svg{width:14px;height:14px}.nlk.on{color:#FF3040}
.nrp{font-size:12.5px;font-weight:600;color:#8e8e93}
.nth{position:relative;flex:none;width:44px;height:44px;align-self:flex-start}
.nth img{width:44px;height:44px;border-radius:4px;object-fit:cover;display:block}
.nth.stk img:first-child{position:absolute;top:-3px;right:-3px;opacity:.55;transform:scale(.92)}
.nth.stk img:last-child{position:relative;box-shadow:0 0 0 1.5px #fff}html.dark .nth.stk img:last-child{box-shadow:0 0 0 1.5px #000}

/* ===== v14.29 Videos ===== */
.reel .vmute{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-104px 0 0 -22px;border-radius:50%;background:rgba(0,0,0,.42);color:#fff;display:flex;align-items:center;justify-content:center;z-index:5;opacity:0;pointer-events:none;transform:scale(.8);transition:opacity .18s,transform .25s cubic-bezier(.3,1.4,.5,1)}
.reel .vmute svg{width:22px;height:22px}
.reel.paused .vmute{opacity:1;pointer-events:auto;transform:scale(1)}
/* v14.53.14 (David, Oct 11 4:11 AM video, 7–15 s: "the volume button is now the good shape, size, but it should be moved here… not here"):
   paused, the same small sound button (the feed's 28 px corner size) sits centred right above the play circle — its centre 70 px above the
   circle's centre (a 20 px gap), where his cursor points; no longer at the top of the rail (v14.53.11) */
.reel.paused .vmute{opacity:0;pointer-events:none}
.reel .vsnd{position:absolute;left:50%;top:50%;margin:-84px 0 0 -14px;display:none;width:28px;height:28px;border-radius:50%;align-items:center;justify-content:center;background:rgba(32,32,36,.62);color:#fff;filter:none;z-index:5}
.reel .vsnd svg{width:16px;height:16px}
.reel.paused:not(.held):not(.done) .vsnd{display:flex}
/* a video playing without sound shows the speaker (off) in the middle for a moment; a tap turns sound on and pops the speaker */
.reel.vm:not(.paused):not(.held) .vmute{transform:scale(1);animation:vmhint 1.8s forwards}
.reel:not(.paused) .vmute.pop{animation:vmhint 1s forwards;transform:scale(1)}
@keyframes vmhint{0%,60%{opacity:1}100%{opacity:0}}
.vmute.pop svg{animation:bump .35s cubic-bezier(.2,.9,.3,1.4)}
.vplay{background:rgba(0,0,0,.42)}
.vinfo,.vside,.scrub,.reel .shadeb{transition:opacity .2s}.vtop{transition:color .2s}
.reel.held .vinfo,.reel.held .vside,.reel.held .scrub,.reel.held .shadeb,.reel.held .vplay,.reel.held .vmute{opacity:0!important;pointer-events:none}
.vpage.uihide .vtop{color:transparent;text-shadow:none}
.vinfo .vcap{display:flex;align-items:baseline;gap:4px;-webkit-line-clamp:unset;-webkit-box-orient:unset;overflow:visible}
.vcap .ct{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vcap .vmore{flex:none;display:none;color:rgba(255,255,255,.7);font-size:14px;font-weight:600}
.vcap.long .vmore{display:inline}
.vcap.open{display:block;max-height:42vh;overflow-y:auto}.vcap.open .ct{white-space:pre-wrap;overflow:visible}.vcap.open .vmore{display:none}
.reel.capopen .shadeb{height:75%;background:linear-gradient(transparent,rgba(0,0,0,.8))}

/* favorites: Following ▾ sheet row, Settings → Favorites list */
.asheet .grp button.ufav{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--g-tx,inherit)}
.favrow{display:flex;align-items:center;gap:10px}.favu{flex:1;display:flex;align-items:center;gap:12px;min-width:0;text-align:left}.favu .lb{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.favrm{flex:none;height:32px;padding:0 14px;border-radius:9999px;font-size:14px;font-weight:600}

.sheart{position:absolute;z-index:400;color:#FF3040;pointer-events:none;will-change:transform,opacity}.sheart svg{width:100%;height:100%;display:block}

/* @mentions and #tags in captions and comments (tappable), in the real app's link blue */
button.mn{display:inline;padding:0;margin:0;font:inherit;color:#00376B;background:none;border:0;text-align:inherit;vertical-align:baseline}html.dark button.mn{color:#E0F1FF}
.vcap button.mn{color:#fff;font-weight:600}
.sthu{display:flex;align-items:center;gap:9px;color:inherit;padding:0;min-width:0}
.acts button.n{padding:0;color:inherit}


/* v14.46: a picture that could not load is never shown as a broken image */
img.mbad{visibility:hidden}
/* v14.46.1 (David, 2:11 + 2:14 AM): Videos run edge to edge under the status bar and the home indicator; the video itself is never cropped, and
   the space above and below it is the blurred, darkened copy of the same video (never black); only the title floats over */
/* the Home video viewer (David's 3:00 AM recording): "‹ Reels" over the video, the video pinned at the top at its own shape, the Add comment bar
   below it on plain black (no blur there); the tab bar steps away while it is open */
.rview{--rvcm:calc(58px + var(--sab))}
.rview .reels{bottom:var(--rvcm)}
.rview .vinfo{bottom:26px}.rview .vside{bottom:28px}.rview .scrub{bottom:6px}
.rvtop{pointer-events:none;padding-left:4px;gap:0}
.rvtop .rvback{pointer-events:auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#fff;margin-right:2px}
.rvtop .rvback svg{width:26px;height:26px}
.rvcm{position:absolute;left:0;right:0;bottom:0;height:var(--rvcm);padding:9px 12px calc(var(--sab) + 9px);background:#000;z-index:25}
.rvin{display:block;width:100%;height:40px;border-radius:20px;background:#262628;color:#a1a1a6;text-align:left;padding:0 16px;font-size:15px}
#app.rv-open .tabbar{opacity:0;transform:translate3d(0,30%,0) scale(.96);transition:opacity .2s ease,transform .3s var(--ease);pointer-events:none}

/* ===================== v14.50 desktop (David, Oct 10 8:07 PM): Mac / PC browsers, 1024px+ =====================
   html.desk is set only for a computer with a mouse/trackpad (never iPhone/iPad/Android, never the home-screen app), so the phone layout is untouched.
   Left sidebar with labels, pages centred in a column (feed 520, lists 600, grids 935), media at their own shape with capped height,
   suggestions on the right, overlays/sheets centred. Colours, fonts and icons are the app's own. */
.cnav,.dside,.sb-logo,.sbx,.tl,.tabbar>.sp{display:none}
@media (min-width:1024px){
html.desk{--sb:244px;--col:600px;--sab:0px;--sat:0px;--tbh:0px;--tbb:0px}
html.desk body{background:#fff;-webkit-user-select:text;user-select:text}
html.desk.dark body{background:#0C0F14}
html.desk #app{max-width:none;box-shadow:none}
/* sidebar */
html.desk .tabbar{left:0;right:auto;top:0;bottom:0;width:var(--sb);height:auto;border-radius:0;transform:none!important;opacity:1!important;pointer-events:auto!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;padding:28px 12px 20px;background:#fff!important;border:0;border-right:1px solid rgba(0,0,0,.09)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;touch-action:auto;z-index:80}
html.desk.dark .tabbar{background:#0C0F14!important;border-right-color:rgba(255,255,255,.09)!important}
html.desk .tabbar::before,html.desk .tabbar::after,html.desk .lens{display:none!important}
html.desk .sb-logo{display:flex;align-items:center;height:44px;padding:0 12px;margin:0 0 22px;color:inherit;border-radius:12px}
html.desk .sb-logo .wmk{height:26px;width:auto}
html.desk .ti,html.desk .sbx{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;height:50px;padding:0 12px;border-radius:12px;color:#1d1d1f!important;font-size:16px;font-weight:400;letter-spacing:-.01em;transition:background .15s;text-align:left}
html.desk.dark .ti,html.desk.dark .sbx{color:#F3F4F6!important}
html.desk .ti:hover,html.desk .sbx:hover,html.desk .sb-logo:hover{background:rgba(0,0,0,.05)}
html.desk.dark .ti:hover,html.desk.dark .sbx:hover,html.desk.dark .sb-logo:hover{background:rgba(255,255,255,.07)}
html.desk .ti:active,html.desk .sbx:active{transform:scale(.98)}
html.desk .tl{display:inline}
html.desk .ti.on .tl{font-weight:700}
html.desk .tabbar[data-fm=following] .ti[data-tab=home] .tl,html.desk .tabbar[data-fm=favorites] .ti[data-tab=home] .tl{font-weight:400}
html.desk .tabbar[data-fm=following] .ti[data-tab=home].on~.sbx[data-m=following] .tl,html.desk .tabbar[data-fm=favorites] .ti[data-tab=home].on~.sbx[data-m=favorites] .tl{font-weight:700}
html.desk .ti>.ic,html.desk .ti>.i1,html.desk .ti>.tav,html.desk .sbi{width:28px;height:28px;flex:none;display:inline-flex;align-items:center;justify-content:center;position:relative}
html.desk .ti svg,html.desk .sbi svg{width:27px;height:27px}
html.desk .sbx[data-m] .sbi svg{width:26px;height:26px}
html.desk .sbi .badge{top:-1px;right:-2px;border-color:#0C0F14}
html.desk .tabbar>.sp{display:block;flex:1}
/* panes sit right of the sidebar; every page centres its content in a column */
html.desk .pane{left:var(--sb)}
html.desk .page{--pad:max(16px,calc((100% - var(--col)) / 2))}
html.desk .scroll{padding-left:var(--pad);padding-right:var(--pad);padding-bottom:48px;scrollbar-width:thin}
html.desk .topbar{padding-left:calc(var(--pad) - 8px);padding-right:calc(var(--pad) - 8px)}
html.desk .page:has(.grid),html.desk .page:has(.xgrid){--col:935px}
html.desk .page[data-name=home]{--col:520px}
html.desk .edge{display:none}
/* Home: no phone header (the sidebar carries the logo, the feed modes and the heart); stories on top, posts at a fixed width */
html.desk .page[data-name=home] .kfh,html.desk .page[data-name=home] .kfh-blur{display:none}
html.desk #homeScroll{padding-top:22px;-webkit-mask-image:none;mask-image:none;padding-right:max(16px,calc(100% - var(--col) - var(--pad)))}
@media (min-width:1264px){html.desk .page[data-name=home]{--pad:max(16px,calc((100% - var(--col) - 352px) / 2))}html.desk .dside{display:block;position:absolute;top:26px;left:calc(var(--pad) + var(--col) + 64px);width:288px;z-index:5}}
html.desk .stories{border-bottom:0;padding:4px 0 18px;margin-bottom:6px;overflow-x:auto;scrollbar-width:none}
html.desk .post{margin:0 0 22px;padding-bottom:14px;border-bottom:1px solid rgba(0,0,0,.08)}
html.desk.dark .post{border-bottom-color:rgba(255,255,255,.08)}
html.desk .post .ph{padding-left:2px;padding-right:0}
html.desk .post .media{border-radius:6px;max-height:calc(100vh - 150px);min-height:240px}
html.desk .post .acts,html.desk .post .cap,html.desk .post .vc,html.desk .post .when{padding-left:2px;padding-right:2px}
html.desk .cnav{display:flex;position:absolute;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;align-items:center;justify-content:center;background:rgba(255,255,255,.88);color:#111;box-shadow:0 1px 6px rgba(0,0,0,.25);z-index:6;opacity:0;transition:opacity .15s}
html.desk .cnav svg{width:16px;height:16px}
html.desk .cnav.l{left:10px}html.desk .cnav.r{right:10px}
html.desk .media:hover .cnav{opacity:1}
html.desk .media.c0 .cnav.l,html.desk .media.cn .cnav.r{display:none}
/* profiles: the header block keeps a readable width above the wide grid */
html.desk .prof-top,html.desk .bio,html.desk .pbtns,html.desk .hls,html.desk .me-top{max-width:680px;margin-left:auto;margin-right:auto}
html.desk .prof-top{padding-top:12px}
html.desk .ptabs{max-width:935px;margin-left:auto;margin-right:auto}
html.desk .pbtns .btn:hover{filter:brightness(1.15)}
/* right column */
html.desk .dside{font-size:14px;color:inherit}
html.desk .ds-me,html.desk .ds-row{display:flex;align-items:center;gap:12px;padding:6px 0}
html.desk .ds-me{margin-bottom:18px}
html.desk .ds-av{flex:none;border-radius:50%;display:flex}
html.desk .ds-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
html.desk .ds-t .un{font-weight:600;font-size:14px;text-align:left;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.desk .ds-t span{color:#737373;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.desk.dark .ds-t span{color:#A8A8A8}
html.desk .ds-h{display:flex;align-items:center;justify-content:space-between;margin:2px 0 8px}
html.desk .ds-h b{font-size:14px;font-weight:600;color:#737373}html.desk.dark .ds-h b{color:#A8A8A8}
html.desk .ds-h button{font-size:12.5px;font-weight:600}
html.desk .ds-f{flex:none;font-size:12.5px;font-weight:600;color:var(--blue);padding:4px 0}
html.desk .ds-f:not(.pri){color:inherit;opacity:.6}
html.desk .ds-f:hover{opacity:.75}
html.desk .ds-foot{margin-top:26px;font-size:12px;line-height:1.7;color:#8e8e8e}
html.desk .ds-foot a{color:inherit;text-decoration:none}html.desk .ds-foot a:hover{text-decoration:underline}
/* grids: centred, three columns at grid width, hover dim */
html.desk .grid,html.desk .xgrid{gap:4px}
html.desk .grid .tile,html.desk .xgrid .tile{border-radius:4px}
html.desk .tile:hover img{filter:brightness(.82)}
html.desk .tile img{transition:filter .15s}
/* Videos and video viewers: a phone-shaped column in the middle, wheel / ↑ ↓ to move */
html.desk .reels{left:0;right:0;margin:0 auto;width:min(100%,calc((100vh - 32px) * 9 / 16));top:16px;bottom:16px}
html.desk .vtop{display:none}
html.desk .reel{border-radius:12px}
/* overlays: story centred at phone shape on a dim backdrop; sheets and menus centred */
html.desk .story-ov{background:rgba(10,10,12,.96)}
html.desk .story-ov .stage{left:0;right:0;top:20px;bottom:20px;margin:0 auto;width:calc((100vh - 40px) * 9 / 16);border-radius:12px}
html.desk .sheet{left:0;right:0;margin:0 auto;width:min(100%,560px);bottom:24px;border-radius:24px;max-height:calc(100% - 48px)}
html.desk .asheet,html.desk .rsheet{left:0!important;right:0!important;margin:0 auto;width:min(calc(100% - 24px),420px)}
/* v14.53.1 sign-in on a Mac/PC: the card centred exactly in the window, the wordmark just above it (app.js sets --st, the card's top) */
html.desk .authsheet{left:0;right:0;margin:0 auto;width:min(calc(100% - 24px),440px);top:50%;bottom:auto;transform:translateY(-50%);max-height:calc(100% - 32px)}
html.desk .bt-logo{top:calc(var(--st,188px) - 66px)}
html.desk .bt-halo{top:calc(var(--st,188px) - 153px)}
html.desk .welcome.nologo .bt-logo,html.desk .welcome.nologo .bt-halo{opacity:0}
html.desk .bt-shade{background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 60%,rgba(0,0,0,.45) 100%)}
html.desk .authsheet .grab{visibility:hidden}
html.desk .toast{left:calc(50% + var(--sb) / 2);bottom:28px}
html.desk .page button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
html.desk .tabbar button:focus{outline:none}
}

/* ---------- v14.52.0: parity with the iPhone app (build 22) ---------- */
/* edge fill: the blurred picture at full brightness (no darkening); the video itself fades into it (mask set per video in app.js) */
.reel .rbg.on{opacity:1}
.reel .rbg{transition:opacity .45s linear}
/* reels rail: share and save carry their numbers; a saved post's bookmark fills white */
.vside .sv.on svg path{fill:#fff;stroke:#fff}
/* the Home video viewer: the fill runs on under the Add comment bar (no black band) */
.rview .reels{bottom:0}
.rview .vinfo{bottom:calc(var(--rvcm) + 26px)}.rview .vside{bottom:calc(var(--rvcm) + 28px)}.rview .scrub{bottom:calc(var(--rvcm) + 6px)}
.rvcm{background:transparent}
/* stories: the video whole and centred over its own blurred picture, full colour; bars and name row ~2 mm lower; sound button */
.stage .svid{object-fit:contain}
.stage .bg{filter:blur(30px)}
.bars{top:calc(var(--sat) + var(--drop) + 16px)}
.sthd{top:calc(var(--sat) + var(--drop) + 26px)}
.sthd .stsnd svg{width:24px;height:24px}
.sthd .stsnd[hidden]{display:none}
/* comments: never full screen (about 80% at most); hold a comment for its menu (no text-selection callout) */
.sheet.csheet.full{height:min(80%,calc(100% - var(--sat) - 60px))}
.csheet .cm{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.csoon{padding-top:64px}.csoon b{margin:0}
.nrow{-webkit-touch-callout:none}
/* a creator's follower list: the line about the ones that can't be listed */
.fnote{padding:14px 16px 24px;text-align:left}
/* sign-in: no loading look on the buttons (a second tap is still ignored) */
.wbtn.busy{opacity:1}

/* ---------- v14.53.1: signed out shows only the sign-in screen (David's Mac, Oct 11) ---------- */
/* the screen fills the window at any size on a computer (no height fixed at load), and nothing of the app (sidebar, tab bar, pages) shows behind it */
html.desk .welcome{bottom:0;height:auto!important}
#app:has(>.welcome:not(.gone)) :is(.tabbar,.pane){visibility:hidden}

/* ---------- v14.53.1: Settings like the app (David, Oct 11 12:17–12:19 AM) ---------- */
/* switches: the app's brand switch (BrandSwitch.swift, design A): the native shape and white knob, the ON track the app-icon blend (no green) */
.sw::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle 8.4px at 5% 110%,rgba(255,214,60,1) 0,rgba(255,214,60,.84) 2.1px,rgba(255,214,60,.5) 4.2px,rgba(255,214,60,.16) 6.3px,rgba(255,214,60,0) 8.4px),radial-gradient(circle 15.4px at 15% 115%,rgba(255,162,20,1) 0,rgba(255,162,20,.84) 3.9px,rgba(255,162,20,.5) 7.7px,rgba(255,162,20,.16) 11.6px,rgba(255,162,20,0) 15.4px),radial-gradient(circle 28.0px at 25% 105%,rgba(255,96,20,1) 0,rgba(255,96,20,.84) 7.0px,rgba(255,96,20,.5) 14.0px,rgba(255,96,20,.16) 21.0px,rgba(255,96,20,0) 28.0px),radial-gradient(circle 44.8px at 35% 90%,rgba(240,18,102,1) 0,rgba(240,18,102,.84) 11.2px,rgba(240,18,102,.5) 22.4px,rgba(240,18,102,.16) 33.6px,rgba(240,18,102,0) 44.8px),rgb(118,28,196);opacity:0;transition:opacity .25s ease-in-out;pointer-events:none}
.sw.on::before{opacity:1}
html .sw.on{background:rgba(120,120,128,.16)}html.dark .sw.on{background:rgba(120,120,128,.32)}
.sw i{z-index:1}
.sw:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.srow+.srow:not(.favrow):before{left:16px} /* rows are text only now: the hairline starts under the text */
/* Appearance: System / Light / Dark, a check on the one in use */
.srow.thm .ck{display:flex;color:var(--blue);opacity:0}.srow.thm .ck svg{width:20px;height:20px}
.srow.thm.on .ck{opacity:1}
/* desktop sidebar: Settings in the list after Profile; a small Privacy Policy link in the bottom-left corner */
.sb-pp{display:none}
@media (min-width:1024px){
html.desk .sb-pp{display:block;padding:6px 12px;font-size:12px;color:#8e8e8e;text-decoration:none;align-self:flex-start}
html.desk .sb-pp:hover{text-decoration:underline}
/* page header: the back chevron at the top left, the title right beside it (a normal website header); the page itself stays centred */
html.desk .nav .t{position:static;height:44px;align-items:flex-start;text-align:left;flex:0 1 auto;min-width:0;padding-left:2px}
html.desk .nav .t b{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* Home's right column: the accounts you follow first, then suggestions; it scrolls on its own when long */
html.desk .dside{max-height:calc(100% - 40px);overflow-y:auto;scrollbar-width:none}
html.desk .dside::-webkit-scrollbar{display:none}
html.desk .ds-fl:not(:empty){margin-bottom:18px}
}

/* ===================== v14.53.6: iOS member build 24 parity (David, Oct 11 12:56 AM) ===================== */
/* "Not interested": the X on a suggested post (next to ⋯) and on Search › Suggested rows */
.arow .arx{flex:none;width:44px;height:44px;margin-right:-10px;display:flex;align-items:center;justify-content:center;color:#8e8e93}
.arow .arx:active{opacity:.5}
/* the Home viewer's comment bar is a field: it rides the keyboard up and gains the send button at its side */
.rvcm{display:flex;align-items:center;gap:8px;transition:transform .32s cubic-bezier(.2,.8,.2,1),padding-bottom .32s cubic-bezier(.2,.8,.2,1)}
.rvcm .rvin{flex:1;min-width:0;width:auto;border:0;outline:none;-webkit-appearance:none;appearance:none;color:#fff;caret-color:#fff;font-family:inherit;font-size:16px}
.rvcm .rvin::placeholder{color:#a1a1a6;opacity:1}
.rvsend{flex:none;width:0;height:34px;margin-left:-8px;border-radius:50%;padding:0;background:#0095F6;color:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;opacity:0;transform:scale(.6);transition:width .2s ease,margin .2s ease,opacity .2s ease,transform .2s ease}
.rvcm.typing .rvsend{width:34px;margin-left:0;opacity:1;transform:none}
.rvsend:disabled{background:#0095F6}.rvcm.typing .rvsend:disabled{opacity:.5}
.rvcm.kb{padding-bottom:9px}
/* the story heart: a light dark tint behind the glass, so the whole circle shows on a white story */
.stft .glassbtn[data-sact=like]{background:rgba(0,0,0,.22)}

/* ---------- v14.53.9 (David, Oct 11 2:02–2:08 AM, Mac) ---------- */
/* the browser's own switch (Safari 17.4+), in the brand colour where the browser takes one */
.nsw{flex:none;accent-color:rgb(118,28,196);cursor:pointer;margin:0}
/* light mode: the Videos section and video viewers are white around the video (the video's own blurred fill stays) */
html:not(.dark) .vpage,html:not(.dark) .vpage .reel{background:#fff}
/* a video opened from another screen on a Mac/PC: a plain back chevron at the top left */
html.desk .rview .rvtop{display:flex;left:12px;right:auto;top:12px;height:auto;padding:0;background:none}
html.desk .rview .rvtop b{display:none}
html.desk .rview .rvback{color:#1d1d1f}html.desk.dark .rview .rvback{color:#F3F4F6}

/* ---------- v14.53.10: web parity with member build 25 ---------- */
/* the "Not interested" note: a plain pill (no glass) above the tab bar */
.toast.plain{white-space:normal;overflow:visible;line-height:19px;max-width:min(calc(100% - 32px),360px);min-width:0;border-radius:20px;background:rgba(28,28,30,.92)!important;color:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important;border:0!important}
html.dark .toast.plain{background:rgba(242,242,247,.95)!important;color:#111!important}
/* the reel comment bar is a button for the comments sheet */
.rvcm .rvin{cursor:pointer}
