/* v269: TikTok-style full-screen Social feed (social-feed.js). Loaded last. Scoped to html.hs-open #homeSocial .hs-tt
   with !important where gaps.css (v194+) forces Social card widths/heights. Social chrome stays cream/white in both app
   themes (v194 behaviour); video slides are always dark full-bleed. */
/* v270: the feed follows Settings > Appearance. Theme = html[data-theme=light|dark] (app.js/look.js), accent = html[data-accent]
   (accent.js/accent.css; Green = no attribute, values in styles.css :root). Every feed colour comes from these tokens. */
html.hs-open:has(#homeSocial .hs-tt){--tt-g:var(--tt-acc-strong,#1b7f00);--tt-gl:var(--accent,#4ADE80);--tt-on-g:#fff;--tt-bg:var(--bg,#f5f6f2);--tt-card:var(--surface,#fff);--tt-ink:var(--text,#111);--tt-mut:var(--muted,#5d6573);
  --tt-soft:var(--surface2,#eef0ea);--tt-line:var(--line,#dfe2da);--tt-tint:rgba(var(--accent-rgb,74,222,128),.16);--tt-glass:rgba(255,255,255,.95);--tt-media:var(--surface2,#e4e7df);
  --tt-danger:var(--danger,#e5484d);--tt-solid:var(--text,#111);--tt-on-solid:var(--surface,#fff);--tt-sh:rgba(0,0,0,.08)}
html[data-theme=dark].hs-open:has(#homeSocial .hs-tt){--tt-g:var(--accent,#4ADE80);--tt-on-g:var(--accent-ink,#000);--tt-glass:rgba(22,22,22,.94);--tt-media:var(--surface2,#161616);--tt-sh:rgba(0,0,0,.5)}
html.hs-open:has(#homeSocial .hs-tt) body{overflow:hidden!important;overscroll-behavior:none}
@media (max-width:899px){html.hs-open:has(#homeSocial .hs-tt) .topbar{display:none!important}}
html.hs-open #homeSocial .hs-panel.hs-tt{padding:0!important;margin:0!important;max-width:none!important;min-height:0!important;box-shadow:none!important;border:0!important}

/* header */
html.hs-open #homeSocial .hs-tt .tt-head{position:fixed;left:0;right:0;top:var(--tt-top,0px);z-index:30;display:flex;align-items:center;gap:6px;
  padding:calc(8px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left));background:var(--tt-bg);box-sizing:border-box}
html.hs-open:has(.tt-head) .tt-head{}
@media (min-width:900px){html.hs-open #homeSocial .hs-tt .tt-head{padding-top:8px;max-width:760px;margin:0 auto;border-radius:0 0 18px 18px}}
html.hs-open #homeSocial .hs-tt .tt-hbtn{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--tt-card);color:var(--tt-ink);box-shadow:0 1px 4px var(--tt-sh);position:relative;padding:0;cursor:pointer}
html.hs-open #homeSocial .hs-tt .tt-hbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.hs-open #homeSocial .hs-tt .tt-plus{background:var(--tt-g);color:var(--tt-on-g)}
html.hs-open #homeSocial .hs-tt .tt-plus svg{stroke-width:2.6}
html.hs-open #homeSocial .hs-tt .tt-hr{display:flex;gap:6px;margin-left:auto}
html.hs-open #homeSocial .hs-tt .tt-hbtn .nf-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;border-radius:9px;background:var(--tt-danger);color:#fff;font:700 11px/18px var(--body);padding:0 4px;box-sizing:border-box}
html.hs-open #homeSocial .hs-tt .tt-tabs{flex:1 1 auto;display:flex;justify-content:center;gap:2px;min-width:0}
html.hs-open #homeSocial .hs-tt .tt-tab{border:0;background:none;color:var(--tt-mut);font:600 15px/1 var(--display);padding:12px 7px;position:relative;cursor:pointer;white-space:nowrap;min-height:44px}
html.hs-open #homeSocial .hs-tt .tt-tab.is-on{color:var(--tt-ink);font-weight:700}
html.hs-open #homeSocial .hs-tt .tt-tab.is-on::after{content:"";position:absolute;left:50%;bottom:4px;width:22px;height:3px;margin-left:-11px;border-radius:3px;background:var(--tt-g)}
@media (max-width:370px){html.hs-open #homeSocial .hs-tt .tt-tab{font-size:14px;padding:12px 5px}html.hs-open #homeSocial .hs-tt .tt-hbtn{width:40px;height:40px}}

/* v270: strong (text-safe) accent per Appearance accent. gaps.css v219 forces --accent-dark to green (#157A00) in Light for
   every accent, so the feed reads the per-accent dark shade from accent.css here instead. Green keeps --accent-dark. */
html{--tt-acc-strong:var(--accent-dark,#1b7f00);--tt-acc-strong-rgb:var(--accent-dark-rgb,27,127,0)}
html[data-accent=blue]{--tt-acc-strong:#0369a1;--tt-acc-strong-rgb:3,105,161}
html[data-accent=purple]{--tt-acc-strong:#7e22ce;--tt-acc-strong-rgb:126,34,206}
html[data-accent=orange]{--tt-acc-strong:#c2410c;--tt-acc-strong-rgb:194,65,12}
html[data-accent=red]{--tt-acc-strong:#b91c1c;--tt-acc-strong-rgb:185,28,28}
html[data-accent=pink]{--tt-acc-strong:#be185d;--tt-acc-strong-rgb:190,24,93}
html[data-accent=teal]{--tt-acc-strong:#0f766e;--tt-acc-strong-rgb:15,118,110}

/* feed scroller */
html.hs-open #homeSocial .hs-tt .tt-sec{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.hs-open #homeSocial .hs-tt .tt-feed{position:fixed!important;left:0;right:0;top:calc(var(--tt-top,0px) + var(--tt-head,60px));bottom:var(--tt-bot,0px);z-index:5;
  overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  display:block!important;margin:0!important;padding:0!important;gap:0!important;background:var(--tt-bg);width:auto!important;max-width:none!important;outline:none}
html.hs-open #homeSocial .hs-tt .tt-feed::-webkit-scrollbar{display:none}
html.hs-open #homeSocial .hs-tt .tt-feed > .tt-slide,
html.hs-open #homeSocial .hs-tt .tt-feed > article.dc-post.tt-slide{display:block!important;height:100%!important;max-height:none!important;width:100%!important;margin:0!important;
  padding:8px 10px 10px!important;box-sizing:border-box!important;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;content-visibility:auto;contain-intrinsic-size:auto 700px}
html.hs-open #homeSocial .hs-tt .tt-slide .dc-thread{display:none!important}
html.hs-open #homeSocial .hs-tt .tt-box{position:relative;height:100%;max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:8px}
html.hs-open #homeSocial .hs-tt .tt-note{position:fixed;z-index:8;left:50%;transform:translateX(-50%);top:calc(var(--tt-top,0px) + var(--tt-head,60px) + 6px);margin:0;
  max-width:min(92vw,460px);padding:8px 12px;border-radius:14px;background:var(--tt-glass);color:var(--tt-ink);font:500 12.5px/1.35 var(--body);box-shadow:0 2px 10px rgba(0,0,0,.12);text-align:center}
html.hs-open #homeSocial .hs-tt .tt-note.tt-err{top:auto;bottom:calc(var(--tt-bot,0px) + 10px);color:var(--tt-danger)}
html.hs-open #homeSocial .hs-tt .tt-note-x{border:0;background:none;color:var(--tt-g);font-weight:700;padding:4px;cursor:pointer}

/* media card */
html.hs-open #homeSocial .hs-tt .tt-media{position:relative;flex:1 1 auto;min-height:0;border-radius:22px;overflow:hidden;background:var(--tt-media)}
html.hs-open #homeSocial .hs-tt .tt-ov-top{position:absolute;top:12px;left:12px;z-index:3;display:flex;gap:6px;align-items:center;pointer-events:none}
html.hs-open #homeSocial .hs-tt .tt-ov-top .dc-ptype{position:static;display:inline-flex;align-items:center;gap:4px;padding:6px 11px;border-radius:999px;background:var(--tt-g);color:var(--tt-on-g);font:700 12.5px/1 var(--body);box-shadow:0 2px 8px rgba(0,0,0,.18)}
html.hs-open #homeSocial .hs-tt .tt-ov-top .dc-views{position:static!important;display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.5);color:#fff;font:600 12px/1 var(--body)}
html.hs-open #homeSocial .hs-tt .tt-ov-top .dc-views svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
html.hs-open #homeSocial .hs-tt .tt-track{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
html.hs-open #homeSocial .hs-tt .tt-track::-webkit-scrollbar{display:none}
html.hs-open #homeSocial .hs-tt .tt-pic{flex:0 0 100%;height:100%;margin:0;scroll-snap-align:center;display:grid;place-items:center}
html.hs-open #homeSocial .hs-tt .tt-img{width:100%;height:100%;object-fit:contain;display:block;max-width:none!important}
html.hs-open #homeSocial .hs-tt .tt-pic.is-cover .tt-img{object-fit:cover}
html.hs-open #homeSocial .hs-tt .tt-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:5px;z-index:3;pointer-events:none}
html.hs-open #homeSocial .hs-tt .tt-dots i{width:18px;height:4px;border-radius:2px;background:rgba(255,255,255,.55)}
html.hs-open #homeSocial .hs-tt .tt-dots i.on{background:var(--tt-gl);width:26px}

/* text post */
html.hs-open #homeSocial .hs-tt .tt-txt{background:radial-gradient(120% 70% at 0% 0%,rgba(var(--accent-rgb,74,222,128),.28),transparent 60%),radial-gradient(90% 60% at 100% 100%,rgba(var(--tt-acc-strong-rgb,27,127,0),.12),transparent 60%),var(--tt-card);display:flex;align-items:center}
html.hs-open #homeSocial .hs-tt .tt-txt-in{width:100%;max-height:100%;overflow:auto;padding:56px 76px 24px 24px;box-sizing:border-box}
html.hs-open #homeSocial .hs-tt .tt-txt-body{margin:0;color:var(--tt-ink);font-family:var(--display);font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}
html.hs-open #homeSocial .hs-tt .tt-xl .tt-txt-body{font-size:30px;line-height:1.2}
html.hs-open #homeSocial .hs-tt .tt-l .tt-txt-body{font-size:23px;line-height:1.3}
html.hs-open #homeSocial .hs-tt .tt-m .tt-txt-body{font-size:17px;line-height:1.45;font-family:var(--body);font-weight:500}
html.hs-open #homeSocial .hs-tt .tt-tag{color:var(--tt-g);font-weight:700}

/* caption card */
html.hs-open #homeSocial .hs-tt .tt-cap{flex:0 0 auto;max-height:36%;overflow:auto;background:var(--tt-card);color:var(--tt-ink);border-radius:20px;padding:12px 14px;margin-right:66px;box-shadow:0 1px 6px var(--tt-sh);font:400 14.5px/1.4 var(--body)}
html.hs-open #homeSocial .hs-tt .tt-whob{display:flex;align-items:center;gap:9px;border:0;background:none;padding:0;color:inherit;text-align:left;cursor:pointer;min-height:40px;max-width:100%}
html.hs-open #homeSocial .hs-tt .tt-whot{display:flex;flex-direction:column;min-width:0}
html.hs-open #homeSocial .hs-tt .tt-whot b{font:700 14.5px/1.2 var(--body);display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hs-open #homeSocial .hs-tt .tt-whot small{color:var(--tt-mut);font-size:12.5px}
html.hs-open #homeSocial .hs-tt .tt-cap .dc-body{margin:6px 0 0;color:inherit}
html.hs-open #homeSocial .hs-tt .tt-meta{display:flex;gap:6px;margin-top:6px}
html.hs-open #homeSocial .hs-tt .tt-cap .dc-tr{margin-top:4px}

/* right action column */
html.hs-open #homeSocial .hs-tt .tt-acts{position:absolute;right:2px;bottom:6px;z-index:6;display:flex;flex-direction:column;align-items:center;gap:8px;width:60px}
html.hs-open #homeSocial .hs-tt .tt-av{border:0;background:none;padding:0;width:50px;height:50px;border-radius:50%;cursor:pointer;margin-bottom:2px}
html.hs-open #homeSocial .hs-tt .tt-av .fr-av{width:50px!important;height:50px!important;border-radius:50%;border:2.5px solid var(--tt-card);box-shadow:0 0 0 2px var(--tt-g),0 2px 8px rgba(0,0,0,.18);box-sizing:border-box;overflow:hidden;background:var(--tt-g);color:var(--tt-on-g);display:grid;place-items:center;font:700 17px/1 var(--display)}
html.hs-open #homeSocial .hs-tt .tt-av .fr-av img{width:100%;height:100%;object-fit:cover}
html.hs-open #homeSocial .hs-tt .tt-act{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;color:var(--tt-ink);min-width:56px;min-height:56px;font:700 12px/1 var(--body);-webkit-tap-highlight-color:transparent}
html.hs-open #homeSocial .hs-tt .tt-bub{width:46px;height:46px;border-radius:50%;background:var(--tt-card);display:grid;place-items:center;box-shadow:0 2px 8px var(--tt-sh);transition:transform .12s var(--ease,ease)}
html.hs-open #homeSocial .hs-tt .tt-act:active .tt-bub{transform:scale(.9)}
html.hs-open #homeSocial .hs-tt .tt-bub svg{width:23px;height:23px;fill:none;stroke:var(--tt-g);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
html.hs-open #homeSocial .hs-tt .tt-menu .tt-bub svg{fill:var(--tt-g);stroke:none}
html.hs-open #homeSocial .hs-tt .tt-like[aria-pressed="true"] .tt-bub{background:var(--tt-g)}
html.hs-open #homeSocial .hs-tt .tt-like[aria-pressed="true"] .tt-bub svg{fill:var(--tt-on-g);stroke:var(--tt-on-g)}
html.hs-open #homeSocial .hs-tt .tt-dislike[aria-pressed="true"] .tt-bub,html.hs-open #homeSocial .hs-tt .tt-reshare[aria-pressed="true"] .tt-bub{background:var(--tt-solid)}
html.hs-open #homeSocial .hs-tt .tt-dislike[aria-pressed="true"] .tt-bub svg,html.hs-open #homeSocial .hs-tt .tt-reshare[aria-pressed="true"] .tt-bub svg{stroke:var(--tt-on-solid)}
html.hs-open #homeSocial .hs-tt .tt-act[disabled]{opacity:.45;cursor:default}
html.hs-open #homeSocial .hs-tt .tt-act:focus-visible .tt-bub,html.hs-open #homeSocial .hs-tt .tt-hbtn:focus-visible,html.hs-open #homeSocial .hs-tt .tt-av:focus-visible{outline:3px solid var(--tt-gl);outline-offset:2px}

/* video slide: full-bleed dark on phones, rounded on wide screens */
html.hs-open #homeSocial .hs-tt .tt-feed > article.tt-k-video{padding:0!important;background:#000!important}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-box{max-width:none}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-media{position:absolute;inset:0;border-radius:0;background:#000}
html.hs-open #homeSocial .hs-tt .tt-video{width:100%;height:100%;object-fit:contain;display:block;background:#000;max-width:none!important;border-radius:0!important}
html.hs-open #homeSocial .hs-tt .tt-vid.is-cover .tt-video{object-fit:cover}
html.hs-open #homeSocial .hs-tt .tt-play{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;border:0;background:rgba(0,0,0,.42);display:grid;place-items:center;z-index:2;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s}
html.hs-open #homeSocial .hs-tt .tt-vid.is-paused .tt-play{opacity:1;pointer-events:auto}
html.hs-open #homeSocial .hs-tt .tt-play svg{width:34px;height:34px;fill:#fff;stroke:none;margin-left:4px}
html.hs-open #homeSocial .hs-tt .tt-mute{position:absolute;top:10px;right:10px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.42);display:grid;place-items:center;cursor:pointer}
html.hs-open #homeSocial .hs-tt .tt-mute svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.hs-open #homeSocial .hs-tt .tt-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.22);z-index:4}
html.hs-open #homeSocial .hs-tt .tt-prog i{display:block;height:100%;width:0;background:var(--tt-gl);transition:width .25s linear}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap{position:absolute;left:0;right:0;bottom:0;z-index:5;margin:0;max-height:42%;padding:40px 80px 16px 14px;border-radius:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.35) 65%,transparent);box-shadow:none;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-whot small,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .muted{color:rgba(255,255,255,.82)!important}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .dc-body,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap a,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .fr-link,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .dc-mention{color:#fff!important}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-tag{color:var(--tt-gl)}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-whob .fr-av{display:none}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{bottom:14px;right:6px}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-act{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-bub{background:var(--tt-glass)}

/* empty shells / states / end */
html.hs-open #homeSocial .hs-tt .tt-slide.tt-empty{background:transparent!important}
html.hs-open #homeSocial .hs-tt .tt-state .tt-box,html.hs-open #homeSocial .hs-tt .tt-end .tt-box{align-items:center;justify-content:center}
html.hs-open #homeSocial .hs-tt .tt-state-card{background:var(--tt-card);color:var(--tt-ink);border-radius:22px;padding:28px 22px;text-align:center;max-width:360px;width:100%;box-sizing:border-box;box-shadow:0 1px 6px var(--tt-sh)}
html.hs-open #homeSocial .hs-tt .tt-state-card h2{font:700 20px/1.25 var(--display);margin:0 0 6px}
html.hs-open #homeSocial .hs-tt .tt-state-card .fr-btn{margin-top:12px;display:inline-flex;align-items:center;gap:6px;min-height:44px}
html.hs-open #homeSocial .hs-tt .tt-state-card .fr-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
html.hs-open #homeSocial .hs-tt .tt-skel{display:grid;gap:10px;margin-bottom:10px}
html.hs-open #homeSocial .hs-tt .tt-skel i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,var(--tt-soft),var(--tt-card),var(--tt-soft));background-size:200% 100%;animation:ttSk 1.2s linear infinite}
html.hs-open #homeSocial .hs-tt .tt-skel i:first-child{height:180px;border-radius:16px}
@keyframes ttSk{to{background-position:-200% 0}}

/* composer sheet (the unchanged v268 composer, shown as a bottom sheet) */
html.hs-open #homeSocial .hs-tt .tt-compose{display:none}
html.hs-open #homeSocial .hs-tt .tt-compose > .hs-composer-slim{display:none!important}
html.hs-open #homeSocial .hs-tt.tt-compose-on .tt-compose:has(> .hs-composer:not(.hs-composer-slim)),
html.hs-open #homeSocial .hs-tt .tt-compose:has(> .hs-composer-open){display:flex;position:fixed;inset:0;z-index:45;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.42)}
html.hs-open #homeSocial .hs-tt .tt-compose > .hs-composer{width:100%!important;max-width:560px!important;max-height:88vh;overflow:auto;margin:0!important;border-radius:22px 22px 0 0!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important;box-sizing:border-box;background:var(--tt-card)!important;color:var(--tt-ink)}
@media (min-width:900px){html.hs-open #homeSocial .hs-tt .tt-compose:has(> .hs-composer-open),html.hs-open #homeSocial .hs-tt.tt-compose-on .tt-compose:has(> .hs-composer:not(.hs-composer-slim)){align-items:center}html.hs-open #homeSocial .hs-tt .tt-compose > .hs-composer{border-radius:22px!important}}

/* search & more / comments sheets */
html.hs-open #homeSocial .tt-more,html.hs-open #homeSocial .tt-csheet{position:fixed;inset:0;z-index:46}
html.hs-open #homeSocial .tt-more[hidden]{display:none}
html.hs-open #homeSocial .tt-scrim{position:absolute;inset:0;background:rgba(0,0,0,.42)}
html.hs-open #homeSocial .tt-sheet{position:absolute;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:80vh;overflow:auto;background:var(--tt-card,#fff);color:var(--tt-ink,#111);border-radius:22px 22px 0 0;padding:6px 16px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box;box-shadow:0 -6px 30px rgba(0,0,0,.18)}
html.hs-open #homeSocial .tt-csheet .tt-sheet{height:72vh}
html.hs-open #homeSocial .tt-grab{display:block;width:40px;height:4px;border-radius:2px;background:var(--tt-line,#d4d7cf);margin:4px auto 6px}
html.hs-open #homeSocial .tt-sheet-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
html.hs-open #homeSocial .tt-sheet-h h2{font:700 18px/1.2 var(--display);margin:0}
html.hs-open #homeSocial .tt-x{width:44px;height:44px;border-radius:50%;border:0;background:var(--tt-soft,#eef0ea);color:var(--tt-ink);display:grid;place-items:center;cursor:pointer}
html.hs-open #homeSocial .tt-x svg,html.hs-open #homeSocial .tt-row svg,html.hs-open #homeSocial .tt-tile svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
html.hs-open #homeSocial .tt-row{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;border:1px solid var(--tt-line,#dfe2da);border-radius:16px;background:var(--tt-bg,#f5f6f2);padding:0 14px;color:var(--tt-mut,#5d6573);font:500 15px/1 var(--body);cursor:pointer}
html.hs-open #homeSocial .tt-sub{font:700 14px/1 var(--display);margin:16px 0 6px}
html.hs-open #homeSocial .tt-more .hs-stories{margin:0!important;padding:0!important;background:none!important}
html.hs-open #homeSocial .tt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
html.hs-open #homeSocial .tt-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;border:0;border-radius:16px;background:var(--tt-tint,#f0f6ec);color:var(--tt-g,#1b7f00);font:600 13px/1.2 var(--body);cursor:pointer}
html.hs-open #homeSocial .tt-tile svg{width:24px;height:24px}
html.hs-open #homeSocial .tt-tile.is-on{background:var(--tt-g,#1b7f00);color:var(--tt-on-g,#fff)}
html.hs-open #homeSocial .tt-sheet-post{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;width:auto!important}
html.hs-open #homeSocial .tt-sheet-post .dc-thread{display:block!important;margin:0!important;border:0!important;padding:0!important}

/* wide screens: centred column, actions beside it */
@media (min-width:700px){
  html.hs-open #homeSocial .hs-tt .tt-box{max-width:min(460px,calc(100vw - 120px))}
  html.hs-open #homeSocial .hs-tt .tt-feed > article.tt-k-video{padding:10px 10px!important;background:transparent!important}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-box{max-width:min(460px,calc(100vw - 120px))}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-media{border-radius:22px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap{border-radius:0 0 22px 22px;padding-right:16px}
  html.hs-open #homeSocial .hs-tt .tt-acts,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{right:-70px;bottom:6px}
  html.hs-open #homeSocial .hs-tt .tt-cap{margin-right:0}
  html.hs-open #homeSocial .hs-tt .tt-txt-in{padding-right:24px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-act{color:var(--tt-ink);text-shadow:none}
}
@media (prefers-reduced-motion:reduce){html.hs-open #homeSocial .hs-tt .tt-prog i,html.hs-open #homeSocial .hs-tt .tt-bub{transition:none}}
/* gaps.css sets overflow:visible!important on several Social containers at desktop widths — keep the scrollers scrolling */
html.hs-open #homeSocial .hs-tt .tt-feed{overflow-y:auto!important;overflow-x:hidden!important}
html.hs-open #homeSocial .hs-tt .tt-track{overflow-x:auto!important;overflow-y:hidden!important}
html.hs-open #homeSocial .hs-tt .tt-media{overflow:hidden!important}
html.hs-open #homeSocial .hs-tt .tt-cap,html.hs-open #homeSocial .hs-tt .tt-txt-in,html.hs-open #homeSocial .tt-sheet{overflow-y:auto!important}
/* v270 Promoted label (real boosts, see boost.js): accent fill, follows theme + accent */
html.hs-open #homeSocial .hs-tt .tt-promo-pill{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:var(--tt-g);color:var(--tt-on-g);font:700 12px/1 var(--body);box-shadow:0 2px 8px rgba(0,0,0,.18)}
/* guests (v269): sign-up bar above the bottom nav + prompt sheet. The feed stops above the bar so it covers nothing. */
html.hs-open #homeSocial .hs-tt .tt-guestbar{position:fixed;left:0;right:0;bottom:var(--tt-bot,0px);z-index:29;height:52px;display:flex;align-items:center;justify-content:center;gap:10px;
  padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));background:var(--tt-bg);border-top:1px solid var(--tt-line,#e3e6de);color:var(--tt-ink);font:600 13.5px/1.2 var(--body);box-sizing:border-box}
html.hs-open #homeSocial .hs-tt:has(> .tt-guestbar) .tt-feed{bottom:calc(var(--tt-bot,0px) + 52px)}
html.hs-open #homeSocial .tt-gb-btn{flex:0 0 auto;min-height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--tt-g,#1b7f00);color:var(--tt-on-g,#fff);font:700 13.5px/1 var(--body);cursor:pointer}
html.hs-open #homeSocial .tt-gb-ghost{background:var(--tt-soft,#eef0ea);color:var(--tt-ink,#111)}
html.hs-open #homeSocial .tt-guestbar.tt-gb-in{position:static;height:auto;min-height:48px;margin:0 0 10px;border:0;border-radius:14px;background:var(--tt-tint,#f0f6ec);justify-content:flex-start;padding:8px 10px;flex-wrap:wrap}
html.hs-open #homeSocial .tt-guestbar.tt-gb-in span{flex:1 1 140px}
html.hs-open #homeSocial .tt-gate{position:fixed;inset:0 0 calc(var(--tt-bot,0px) + 52px) 0;z-index:47}
html.hs-open #homeSocial .tt-gate .tt-gate-card{border-radius:22px;padding-bottom:14px;box-shadow:0 -6px 30px rgba(0,0,0,.22)}
html.hs-open #homeSocial .tt-gate-card{text-align:center;padding-top:8px}
html.hs-open #homeSocial .tt-gate-card h2{font:700 21px/1.25 var(--display);margin:8px 0 6px}
html.hs-open #homeSocial .tt-gate-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 6px}
html.hs-open #homeSocial .tt-gate-btns .fr-btn{min-height:48px;justify-content:center}
html.hs-open #homeSocial .tt-gate-not{border:0;background:none;color:var(--tt-mut,#5d6573);font:600 14px/1 var(--body);padding:12px;min-height:44px;cursor:pointer}
@media (min-width:700px){html.hs-open #homeSocial .tt-gate-card{bottom:auto;top:50%;transform:translateY(-50%);max-width:420px;border-radius:22px}}
/* sheets sit above the bottom nav: hide it (visibility only, so layout measurements stay stable) while one is open */
html.hs-open:has(#homeSocial .tt-csheet) .tabbar,html.hs-open:has(#homeSocial .tt-more:not([hidden])) .tabbar,
html.hs-open:has(#homeSocial .tt-compose > .hs-composer-open) .tabbar,html.hs-open:has(#homeSocial .hs-tt.tt-compose-on .tt-compose > .hs-composer:not(.hs-composer-slim)) .tabbar{visibility:hidden!important}
/* v270: cards follow the theme now (--tt-ink = --text); keep forcing the feed ink over older Social rules (video captions keep their white-on-gradient rules, which are more specific) */
html.hs-open #homeSocial .hs-tt .tt-cap .dc-body,html.hs-open #homeSocial .hs-tt .tt-cap .dc-body p,html.hs-open #homeSocial .hs-tt .tt-txt-body,html.hs-open #homeSocial .hs-tt .tt-txt-body p,html.hs-open #homeSocial .hs-tt .tt-cap .tt-who,html.hs-open #homeSocial .hs-tt .tt-cap b,html.hs-open #homeSocial .hs-tt .tt-cap strong{color:var(--tt-ink)!important}
html.hs-open #homeSocial .hs-tt .tt-cap .dc-tr button,html.hs-open #homeSocial .hs-tt .tt-cap .dc-tr a,html.hs-open #homeSocial .hs-tt .tt-txt .dc-tr button{color:var(--tt-ink)!important}
html.hs-open #homeSocial .hs-tt .tt-cap .muted,html.hs-open #homeSocial .hs-tt .tt-cap small{color:var(--tt-mut)!important}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .dc-body p,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .tt-who,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap b,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap strong,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .dc-tr button,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-cap .dc-tr a{color:#fff!important}

/* ===== v270: Promoted posts (boost.js) ===== */
.dc-menu .bst-sec{list-style:none;margin:10px 0 2px;padding:6px 10px 2px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);pointer-events:none;user-select:none}
.dc-menu .bst-note{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;font-weight:700;color:var(--tt-acc-strong)}
html[data-theme=dark] .dc-menu .bst-note,html[data-theme=dark] .bst-modal .bst-match{color:var(--accent)}
.dc-menu .bst-note svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dc-menu .bst-off{opacity:.6;cursor:not-allowed}
.dc-menu .bst-soon{margin-left:auto;font-style:normal;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;background:rgba(var(--accent-rgb),.16);color:var(--text)}
.bst-modal .bst-lead{font-size:20px;margin:4px 0 8px}
.bst-modal .bst-points{margin:0 0 10px;padding-left:18px;display:grid;gap:6px}
.bst-modal .bst-honest{margin:8px 0 12px}
.bst-modal .bst-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bst-modal .bst-reqs,.bst-modal .bst-sales{list-style:none;margin:8px 0;padding:0;display:grid;gap:10px;max-height:56vh;overflow:auto}
.bst-modal .bst-req{border:1px solid var(--line);background:var(--surface2);border-radius:14px;padding:10px 12px}
.bst-modal .bst-req-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.bst-modal .bst-req-b{margin:4px 0 6px;word-break:break-word}
.bst-modal .bst-req label{display:grid;gap:4px;margin:6px 0}
.bst-modal .bst-match{color:var(--tt-acc-strong);font-weight:700;margin:4px 0}
.bst-modal .bst-h3{font-size:14px;margin:14px 0 4px}
.bst-modal .bst-sales li{font-size:13px}
.bst-modal .bst-empty{margin:12px 0}

/* v270 layout fix (live v269 bug: tall narrow column on wide/"desktop site" viewports, burned-in video text cropped, rail touching the card).
   Wide screens: one centred 9:16 card sized from the slide height (TikTok web style), at least 360px wide, never wider than the
   space left after the action rail, which sits fully outside the card's right edge. */
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-txt-in,html.hs-open #homeSocial .hs-tt .tt-k-photo .tt-txt-in{display:none!important}
html.hs-open #homeSocial .hs-tt .tt-txt{container-type:size}
html.hs-open #homeSocial .hs-tt .tt-txt-in{padding:clamp(48px,9cqh,64px) clamp(72px,18cqi,80px) clamp(18px,5cqh,32px) clamp(18px,6cqi,40px)}
html.hs-open #homeSocial .hs-tt .tt-txt-body{overflow-wrap:anywhere;word-break:break-word;hyphens:auto;max-width:100%}
html.hs-open #homeSocial .hs-tt .tt-xl .tt-txt-body{font-size:clamp(20px,min(8cqi,6cqh),44px)}
html.hs-open #homeSocial .hs-tt .tt-l .tt-txt-body{font-size:clamp(17px,min(5.8cqi,4.4cqh),32px)}
html.hs-open #homeSocial .hs-tt .tt-m .tt-txt-body{font-size:clamp(15px,min(4.3cqi,3.4cqh),22px)}
@media (min-width:700px){
  html.hs-open #homeSocial .hs-tt .tt-feed > .tt-slide,html.hs-open #homeSocial .hs-tt .tt-feed > article.dc-post.tt-slide,
  html.hs-open #homeSocial .hs-tt .tt-feed > article.tt-k-video{container-type:size;padding:12px 0!important}
  html.hs-open #homeSocial .hs-tt .tt-box,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-box{
    width:clamp(min(360px,100cqw - 176px),100cqh * 9 / 16,100cqw - 176px);max-width:none;margin:0 auto}
  html.hs-open #homeSocial .hs-tt .tt-state .tt-box,html.hs-open #homeSocial .hs-tt .tt-end .tt-box{width:min(460px,100cqw - 40px)}
  html.hs-open #homeSocial .hs-tt .tt-acts,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{right:-80px;bottom:8px}
  html.hs-open #homeSocial .hs-tt .tt-txt-in{padding-right:clamp(18px,6cqi,40px)}
}

/* ===== v271: laptop / desktop layout (>=1000px). Josh's v270 laptop showed a small post column, a full-width tab row
   eating 60px of height and big empty sides. Now: the header becomes a side panel on the left of the post (real controls
   with visible labels), the post column gets the full height between the top bar and the bottom nav, and the actions
   plus previous/next buttons sit to its right. Everything uses the feed tokens above (theme + accent). ===== */
html.hs-open #homeSocial .hs-tt .tt-hl,html.hs-open #homeSocial .hs-tt .tt-kbd,html.hs-open #homeSocial .hs-tt .tt-step{display:none}
@media (min-width:1000px){
  html.hs-open:has(#homeSocial .hs-tt){--tt-cw:max(360px,calc((100vh - var(--tt-top,64px) - var(--tt-bot,0px) - 28px) * 9 / 16));--tt-pw:248px;
    --tt-pl:max(24px,calc(50% - var(--tt-cw) / 2 - 56px - var(--tt-pw)))}
  html.hs-open #homeSocial .hs-tt .tt-feed{top:var(--tt-top,0px)!important;bottom:var(--tt-bot,0px)!important}
  html.hs-open #homeSocial .hs-tt .tt-feed > .tt-slide,html.hs-open #homeSocial .hs-tt .tt-feed > article.dc-post.tt-slide,
  html.hs-open #homeSocial .hs-tt .tt-feed > article.tt-k-video{padding:14px 0!important}
  html.hs-open #homeSocial .hs-tt .tt-box,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-box{width:var(--tt-cw);max-width:calc(100vw - 2 * var(--tt-pw) - 120px)}
  html.hs-open #homeSocial .hs-tt .tt-state .tt-box,html.hs-open #homeSocial .hs-tt .tt-end .tt-box{width:min(460px,100cqw - 40px)}
  /* side panel */
  html.hs-open #homeSocial .hs-tt .tt-head{left:var(--tt-pl);right:auto;top:calc(var(--tt-top,0px) + 14px);width:var(--tt-pw);max-width:none;margin:0;
    flex-direction:column;align-items:stretch;gap:6px;padding:14px;border-radius:20px;background:var(--tt-card);border:1px solid var(--tt-line);box-shadow:0 1px 6px var(--tt-sh)}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-hbtn{width:100%;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0 14px;box-shadow:none;background:transparent;font:600 15px/1 var(--body);text-align:left}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-hbtn:hover{background:var(--tt-soft)}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-plus{background:var(--tt-g);color:var(--tt-on-g);font-weight:700;margin-bottom:6px}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-plus:hover{background:var(--tt-g);filter:brightness(1.06)}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-hbtn svg{flex:none}
  html.hs-open #homeSocial .hs-tt .tt-hl{display:inline}
  html.hs-open #homeSocial .hs-tt .tt-tabs{flex:none;flex-direction:column;gap:2px;padding:6px 0;border-top:1px solid var(--tt-line);border-bottom:1px solid var(--tt-line)}
  html.hs-open #homeSocial .hs-tt .tt-tab{text-align:left;padding:0 14px;min-height:42px;border-radius:12px;font-size:15px}
  html.hs-open #homeSocial .hs-tt .tt-tab:hover{background:var(--tt-soft);color:var(--tt-ink)}
  html.hs-open #homeSocial .hs-tt .tt-tab.is-on{background:var(--tt-tint)}
  html.hs-open #homeSocial .hs-tt .tt-tab.is-on::after{left:0;top:11px;bottom:auto;width:3px;height:20px;margin:0}
  html.hs-open #homeSocial .hs-tt .tt-hr{flex-direction:column;gap:2px;margin:0}
  html.hs-open #homeSocial .hs-tt .tt-head .tt-hbtn .nf-badge{top:50%;right:12px;margin-top:-9px}
  html.hs-open #homeSocial .hs-tt .tt-kbd{display:block;margin:4px 2px 0;color:var(--tt-mut);font:500 12.5px/1.4 var(--body)}
  html.hs-open #homeSocial .hs-tt .tt-kbd kbd{display:inline-block;min-width:20px;padding:1px 5px;border:1px solid var(--tt-line);border-bottom-width:2px;border-radius:6px;background:var(--tt-soft);color:var(--tt-ink);font:600 12px/1.3 var(--body);text-align:center}
  /* guest sign-up: a card under the panel instead of a bar over the bottom nav */
  html.hs-open #homeSocial .hs-tt .tt-guestbar{left:var(--tt-pl);right:auto;bottom:auto;top:calc(var(--tt-top,0px) + var(--tt-head,300px) + 26px);width:var(--tt-pw);height:auto;
    flex-direction:column;align-items:stretch;gap:10px;padding:14px;border:1px solid var(--tt-line);border-radius:20px;background:var(--tt-card);box-shadow:0 1px 6px var(--tt-sh);text-align:left}
  html.hs-open #homeSocial .hs-tt .tt-guestbar .tt-gb-btn{min-height:42px}
  html.hs-open #homeSocial .tt-gate{inset:0 0 var(--tt-bot,0px) 0}
  html.hs-open #homeSocial .hs-tt .tt-note{top:calc(var(--tt-top,0px) + 20px)}
  /* actions just right of the card; previous/next further right, centred on the column */
  html.hs-open #homeSocial .hs-tt .tt-acts,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{right:-84px;bottom:4px}
  html.hs-open #homeSocial .hs-tt .tt-step{display:flex;flex-direction:column;gap:10px;position:fixed;z-index:30;top:calc(var(--tt-top,0px) + (100vh - var(--tt-top,0px) - var(--tt-bot,0px)) / 2 - 49px);
    left:min(calc(50% + var(--tt-cw) / 2 + 132px),calc(100vw - 72px))}
  html.hs-open #homeSocial .hs-tt .tt-step .tt-hbtn{width:44px;height:44px;border:1px solid var(--tt-line)}
  html.hs-open #homeSocial .hs-tt .tt-step .tt-hbtn:hover{background:var(--tt-soft)}
  html.hs-open #homeSocial .hs-tt.tt-compose-on .tt-step{visibility:hidden}
}

/* ---------- v272 ---------- */
/* profile wall mode: same header box, Back + "@name's posts" */
html.hs-open #homeSocial .hs-tt .tt-head-wall .tt-wtitle{flex:1 1 auto;min-width:0;margin:0 4px;font:700 16px/1.2 var(--display);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
@media (min-width:1000px){
  html.hs-open #homeSocial .hs-tt .tt-head-wall .tt-wtitle{order:-1;text-align:left;margin:4px 6px 10px;font-size:18px;white-space:normal;overflow-wrap:anywhere}
  html.hs-open #homeSocial .hs-tt .tt-head-wall .tt-wback{margin-bottom:6px;background:var(--tt-soft)}
}
/* "Reshared from @original" credit on wall slides */
html.hs-open #homeSocial .hs-tt .tt-rsby{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:30px;margin:0 0 6px;padding:4px 10px 4px 6px;border:0;border-radius:999px;background:var(--tt-tint);color:var(--tt-ink)!important;font:600 12.5px/1.2 var(--body);cursor:pointer;text-shadow:none}
html.hs-open #homeSocial .hs-tt .tt-rsby span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.hs-open #homeSocial .hs-tt .tt-rsby .tt-rsi{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--tt-g);color:var(--tt-on-g);flex:none;font-style:normal}
html.hs-open #homeSocial .hs-tt .tt-rsby svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html.hs-open #homeSocial .hs-tt .tt-k-video .tt-rsby{background:rgba(0,0,0,.45);color:#fff!important}
/* reshare not available (database not updated yet): hide every reshare control instead of showing an error */
html.apjj-no-reshare .tt-reshare,html.apjj-no-reshare [data-dc-reshare],html.apjj-no-reshare [data-dc-menu-reshare]{display:none!important}
/* "New posts" pill */
html.hs-open #homeSocial .hs-tt > .tt-newpill{position:fixed;z-index:31;left:50%;transform:translateX(-50%);top:calc(var(--tt-top,0px) + var(--tt-head,60px) + 10px);
  display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:var(--tt-g);color:var(--tt-on-g);
  font:700 14px/1 var(--body);box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer;white-space:nowrap;animation:ttPillIn .25s ease-out}
html.hs-open #homeSocial .hs-tt > .tt-newpill i{font-style:normal;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--tt-on-g);color:var(--tt-g);font:700 11.5px/20px var(--body);text-align:center;box-sizing:border-box}
html.hs-open #homeSocial .hs-tt > .tt-newpill:focus-visible{outline:3px solid var(--tt-ink);outline-offset:2px}
@media (min-width:1000px){html.hs-open #homeSocial .hs-tt > .tt-newpill{top:calc(var(--tt-top,0px) + 22px)}}
@keyframes ttPillIn{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){html.hs-open #homeSocial .hs-tt > .tt-newpill{animation:none}}

/* ---------- v272 Refresh: header button, pull-to-refresh, end card ---------- */
html.hs-open #homeSocial .hs-tt .tt-refresh{color:var(--tt-g);box-shadow:inset 0 0 0 1.5px var(--tt-g),0 1px 4px var(--tt-sh)}
html.hs-open #homeSocial .hs-tt .tt-refresh svg{stroke-width:2.4}
html.hs-open #homeSocial .hs-tt .tt-refresh.is-spin svg{animation:ttSpin .8s linear infinite}
html.hs-open #homeSocial .hs-tt .tt-refresh:focus-visible{outline:3px solid var(--tt-ink);outline-offset:2px}
@keyframes ttSpin{to{transform:rotate(360deg)}}
/* phones: one more round button in the header, so everything shrinks a touch (no overflow at 360) */
@media (max-width:430px){
  html.hs-open #homeSocial .hs-tt .tt-head{gap:4px}
  html.hs-open #homeSocial .hs-tt .tt-hr{gap:4px}
  html.hs-open #homeSocial .hs-tt .tt-hbtn{width:40px;height:40px}
  html.hs-open #homeSocial .hs-tt .tt-hbtn svg{width:20px;height:20px}
  html.hs-open #homeSocial .hs-tt .tt-tabs{gap:0}
  html.hs-open #homeSocial .hs-tt .tt-tab{font-size:14.5px;padding:12px 5px}
}
@media (max-width:380px){
  html.hs-open #homeSocial .hs-tt .tt-head{gap:3px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  html.hs-open #homeSocial .hs-tt .tt-hr{gap:3px}
  html.hs-open #homeSocial .hs-tt .tt-hbtn{width:38px;height:38px}
  html.hs-open #homeSocial .hs-tt .tt-tab{font-size:13.5px;padding:12px 4px}
}
html.hs-open #homeSocial .hs-tt > .tt-ptr{position:fixed;z-index:32;left:50%;top:calc(var(--tt-top,0px) + var(--tt-head,60px) - 34px);width:40px;height:40px;margin-left:-20px;border-radius:50%;
  display:grid;place-items:center;background:var(--tt-card);color:var(--tt-g);box-shadow:0 2px 10px rgba(0,0,0,.25);opacity:0;pointer-events:none;
  transform:translateY(var(--ptr-y,0px));transition:opacity .15s}
html.hs-open #homeSocial .hs-tt > .tt-ptr.is-pull{transition:none}
html.hs-open #homeSocial .hs-tt > .tt-ptr svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transform:rotate(var(--ptr-r,0deg))}
html.hs-open #homeSocial .hs-tt > .tt-ptr.is-ready{background:var(--tt-g);color:var(--tt-on-g)}
html.hs-open #homeSocial .hs-tt .tt-endic{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;margin:0 auto 10px;background:var(--tt-g);color:var(--tt-on-g);font:700 26px/1 var(--body)}
html.hs-open #homeSocial .hs-tt .tt-endbtns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:4px}
html.hs-open #homeSocial .hs-tt .tt-state-card .tt-endref{background:var(--tt-g);color:var(--tt-on-g);border:0}
@media (prefers-reduced-motion:reduce){html.hs-open #homeSocial .hs-tt .tt-refresh.is-spin svg{animation:none;opacity:.5}}
/* v272: CEO tools > Promote a post (boost.js ceoOpen) */
.bst-modal.bst-ceo .fr-dlg{width:min(560px,calc(100vw - 24px));max-height:min(88vh,860px);overflow:auto;overscroll-behavior:contain}
.bst-modal .bst-ceo-k{margin:-2px 0 10px}
.bst-modal .bst-ceo-days{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.bst-modal .bst-day{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font:600 13.5px/1 var(--body,inherit);cursor:pointer}
.bst-modal .bst-day.is-on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.bst-modal .bst-day:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bst-modal .bst-ceo-s{display:block;margin:0 0 4px}
.bst-modal .bst-ceo-s .fr-in{width:100%;box-sizing:border-box}
.bst-modal .bst-h3{font-size:15px;margin:14px 0 6px}
.bst-modal .bst-ceo-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bst-modal .bst-ceo-r{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface2);border-radius:14px;padding:9px 10px;min-width:0}
.bst-modal .bst-ceo-t{flex:1;min-width:0}
.bst-modal .bst-ceo-m{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
.bst-modal .bst-ceo-m b{overflow-wrap:anywhere}
.bst-modal .bst-ceo-p{margin:3px 0 0;font-size:14px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.bst-modal .bst-ceo-b{flex:none;min-height:36px;padding:0 12px;font-size:13.5px;white-space:nowrap}
.bst-modal .bst-ceo-on{flex:none;font:700 12px/1 var(--body,inherit);color:var(--accent-text);border:1px solid var(--accent);border-radius:999px;padding:6px 9px}
.bst-modal .bst-ceo-link{margin:0 0 8px}
@media (max-width:380px){.bst-modal .bst-ceo-r{flex-wrap:wrap}.bst-modal .bst-ceo-b{margin-left:auto}}
html[data-theme=light] .bst-modal .bst-ceo-on{color:var(--accent-dark);border-color:var(--accent-dark)}
/* v324: video mute button always above the picture/video. The video box gets its own stacking context and the <video> sits at
   the bottom of it; the button is promoted to its own layer (mobile Safari otherwise paints a playing video over siblings),
   44px tap target, dark translucent circle, clear of the top-left view/Promoted/"From earlier" pills and the right action rail. */
html.hs-open #homeSocial .hs-tt .tt-vid{isolation:isolate}
html.hs-open #homeSocial .hs-tt .tt-vid .tt-video{position:relative;z-index:0}
html.hs-open #homeSocial .hs-tt .tt-vid .tt-mute{position:absolute;top:max(10px,env(safe-area-inset-top,0px));right:10px;z-index:7;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;
  border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(0,0,0,.55);box-shadow:0 2px 8px rgba(0,0,0,.3);display:grid;place-items:center;cursor:pointer;
  pointer-events:auto;opacity:1;visibility:visible;-webkit-transform:translateZ(0);transform:translateZ(0);will-change:transform;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html.hs-open #homeSocial .hs-tt .tt-vid .tt-mute:focus-visible{outline:3px solid var(--tt-g,#4ade80);outline-offset:2px}
html.hs-open #homeSocial .hs-tt .tt-vid .tt-mute svg{width:22px;height:22px;pointer-events:none}
/* the top-left pills wrap before they reach the mute button */
html.hs-open #homeSocial .hs-tt .tt-vid .tt-ov-top{right:66px;flex-wrap:wrap}
/* v325 (Josh, Android Chrome ~400px: "Make videos mute button visable"): on phones the sound button sat top-right, where the
   right-hand action column (profile picture, like, dislike, comment, repost, share, more) reaches on shorter screens, so the
   avatar covered it. Phones (<700px): the sound button moves to the top-left corner of the video, at the start of the pill row
   (views / Win / "From earlier" pills now start after it), so it never shares the right-hand side with the action column.
   On short phone screens the action column is made more compact so it always fits inside the video card under the stories bar.
   Wide screens keep the v324 position (the action column is outside the card there). Video posts only. */
@media (max-width:699px){
  html.hs-open #homeSocial .hs-tt .tt-vid .tt-mute{left:10px;right:auto;top:10px}
  html.hs-open #homeSocial .hs-tt .tt-vid .tt-ov-top{left:62px;right:66px;top:16px;flex-wrap:wrap}
}
@media (max-width:699px) and (max-height:760px){
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{gap:3px;bottom:8px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-act{min-height:44px;min-width:48px;gap:2px;font-size:11px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-bub{width:38px;height:38px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-bub svg{width:20px;height:20px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-av,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-av .fr-av{width:42px!important;height:42px!important}
}
@media (max-width:699px) and (max-height:650px){
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-acts{gap:1px;bottom:6px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-act{min-height:44px;font-size:10px;gap:1px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-bub{width:34px;height:34px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-bub svg{width:18px;height:18px}
  html.hs-open #homeSocial .hs-tt .tt-k-video .tt-av,html.hs-open #homeSocial .hs-tt .tt-k-video .tt-av .fr-av{width:38px!important;height:38px!important}
}
