/* Yout - three-column timeline layout: left nav / feed / right sidebar. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-400.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/inter-500.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/inter-600.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/inter-800.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/inter-700.woff") format("woff")}
/* ===== Design tokens. Colours, spacing, radii, control and icon sizes all come from here. =====
   --brand: links, icons, active states. --solid: filled buttons (white text stays >= 4.5:1 in both themes). */
:root{color-scheme:light;--font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --bg:#fff;--surface:#fff;--soft:#f3f6f9;--hover:#f7f9fb;--line:#e6eaef;--line-strong:#d3dae2;
  --text:#0f1419;--muted:#5b6673;--brand:#1877d6;--brand-dark:#1466bb;--tint:rgba(24,119,214,.09);
  --solid:var(--brand);--solid-hover:var(--brand-dark);--on-solid:#fff;
  --like:#e0245e;--repost:#0f9d58;--danger:#c0392b;--alert:#e5484d;--glass:rgba(255,255,255,.88);
  --shadow-sm:0 1px 2px rgba(15,20,25,.06);--shadow-md:0 6px 20px rgba(15,20,25,.08);--shadow-lg:0 14px 40px rgba(15,20,25,.16);
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;--gutter:16px;
  --r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:20px;--r-pill:999px;
  --ctl-sm:32px;--ctl:40px;--ctl-lg:48px;--ico-sm:18px;--ico:20px;--ico-md:22px;--ico-lg:24px;
  --fs-xs:.75rem;--fs-sm:.8125rem;--fs-meta:.875rem;--fs-body:.9375rem;--fs-post:1rem;--fs-lg:1.125rem;--fs-title:1.25rem;
  --av-feed:44px;--av-reply:40px;--topbar-h:57px;--tabbar-h:64px;
  --post-body-size:var(--fs-post);--post-body-line-height:1.45;--post-meta-size:var(--fs-meta);--display-name-size:var(--fs-post);
  --section-heading-size:var(--fs-title);--quote-gap:6px;--post-content-gap:8px}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0e1319;--surface:#0e1319;--soft:#19212b;--hover:#141a22;--line:#252e39;--line-strong:#34404d;--text:#e7edf3;--muted:#8e9aa8;--brand:#4aa8f8;--brand-dark:#1877d6;--tint:rgba(74,168,248,.14);--solid:var(--brand-dark);--solid-hover:#1a6dc2;--like:#f4537f;--repost:#2fc476;--danger:#ff6b5b;--glass:rgba(14,19,25,.86);--shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 6px 20px rgba(0,0,0,.45);--shadow-lg:0 14px 40px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){:root[data-theme="system"],:root:not([data-theme]){color-scheme:dark;--bg:#0e1319;--surface:#0e1319;--soft:#19212b;--hover:#141a22;--line:#252e39;--line-strong:#34404d;--text:#e7edf3;--muted:#8e9aa8;--brand:#4aa8f8;--brand-dark:#1877d6;--tint:rgba(74,168,248,.14);--solid:var(--brand-dark);--solid-hover:#1a6dc2;--like:#f4537f;--repost:#2fc476;--danger:#ff6b5b;--glass:rgba(14,19,25,.86);--shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 6px 20px rgba(0,0,0,.45);--shadow-lg:0 14px 40px rgba(0,0,0,.6)}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:400 var(--fs-body)/1.4 var(--font)}
a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
h2,h3{margin:0 0 8px}.muted{color:var(--muted);font-size:var(--fs-meta)}.muted a,a.muted{color:var(--muted)}.center{text-align:center}.pad{padding:16px}

/* ---- layout ---- */
.layout{display:flex;justify-content:center;max-width:1280px;margin:0 auto}
.left{width:275px;flex:none}
.left-inner{position:sticky;top:0;height:100vh;padding:4px 12px;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.col{width:600px;max-width:100%;min-height:100vh;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.right{width:350px;flex:none;padding-left:var(--s6)}
.right-inner{position:sticky;top:0;padding-top:var(--s2)}
.topbar{position:sticky;top:0;z-index:5;min-height:var(--topbar-h);padding:0 var(--gutter);background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.topbar h1{margin:0;font-size:var(--fs-title);font-weight:700}

/* ---- left nav ---- */
.brand{width:52px;height:52px;margin:var(--s1) 0 var(--s2);display:grid;place-items:center;color:var(--brand);border-radius:50%}
.brand:hover{background:var(--tint)}.logo-svg{width:32px;height:32px;object-fit:contain;display:block}
.nav-item{display:inline-flex;align-items:center;gap:var(--s4);align-self:flex-start;min-height:var(--ctl-lg);padding:0 22px 0 var(--s3);border-radius:var(--r-pill);
  font-size:1.0625rem;font-weight:500;color:var(--text);background:none;border:0;cursor:pointer;font-family:inherit}
.nav-item .ico-svg{width:var(--ico-lg);height:var(--ico-lg)}
.nav-item:hover{background:var(--hover);text-decoration:none}.nav-item.active{font-weight:700;color:var(--brand);background:var(--tint)}
.ico-svg{width:1.55em;height:1.55em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ico-svg.filled{fill:currentColor}.ico-svg.thick{stroke-width:2.5}.ico-wrap{position:relative;display:inline-flex}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:var(--r-pill);background:var(--solid);color:var(--on-solid);font-size:.7rem;font-weight:700}
.ico-wrap .badge{position:absolute;top:-8px;right:-11px;margin:0}
.post-btn{display:block;margin-top:14px;padding:14px;border-radius:999px;background:var(--solid);color:#fff;text-align:center;font-weight:700;font-size:1.05rem;box-shadow:0 4px 12px color-mix(in srgb,var(--solid) 30%,transparent)}
.post-btn:hover{background:var(--brand-dark);text-decoration:none}.post-btn .plus{display:none}
.logout{margin:auto 0 8px}.logout .nav-item{color:var(--text);font-size:1.25rem;font-weight:500;padding:10px 18px 10px 14px;gap:18px}

/* Logged-in user card at the very bottom of the left sidebar (added; nothing above it changed) */
.side-user{position:relative;display:flex;align-items:center;gap:10px;margin:auto 0 var(--s3);padding:var(--s2) 10px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);transition:background-color .15s}.side-user:hover{background:var(--hover)}
.side-user .avatar{width:40px;height:40px;font-size:1rem}
.side-user .who{flex:1;min-width:0;display:flex;flex-direction:column;color:var(--text);line-height:1.25}
.side-user .who:hover{text-decoration:none}.side-user .who b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-user .who span{color:var(--muted);font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-menu summary{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--text);cursor:pointer;list-style:none}
.user-menu summary::-webkit-details-marker{display:none}.user-menu summary:hover{background:var(--tint)}
.user-menu .ico-svg{width:1.3em;height:1.3em;fill:currentColor;stroke:currentColor;stroke-width:2.2}
.menu-pop{position:absolute;left:0;right:0;bottom:calc(100% + 6px);padding:6px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-lg)}
.menu-pop a,.menu-pop a.x{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--text);font-weight:600}
.menu-pop form{margin:0}.menu-pop button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:none;color:var(--text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.menu-pop button:hover,.menu-pop a:hover,.menu-pop button:hover{background:var(--tint);color:var(--brand);text-decoration:none}.menu-pop .ico-svg{width:1.25em;height:1.25em}

/* ---- right sidebar ---- */
.side-search{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:var(--s4);padding:0 var(--s4);border:1px solid transparent;border-radius:var(--r-pill);background:var(--soft)}
.side-search:focus-within{background:var(--surface);border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}.side-search .ico-svg{color:var(--muted);width:1.2em;height:1.2em}
.side-search input,.side-search input:focus{margin:0;padding:10px 0;border:0;background:none;outline:none}
.side-card{margin-bottom:var(--s4);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.side-card h3{margin:0;padding:14px var(--s4) 10px;font-size:var(--fs-lg);font-weight:700}
.side-card .trend,.side-card .person{border-top:0;border-bottom:0}
.side-card .btn{min-height:var(--ctl-sm);padding:0 14px;font-size:var(--fs-meta)}.more{display:block;padding:var(--s3) var(--s4);border-top:1px solid var(--line);font-size:var(--fs-meta);font-weight:500}
.more:hover{background:var(--tint);text-decoration:none}

/* ---- posts ---- */
.post{display:flex;gap:var(--s3);padding:var(--s3) var(--gutter);border-bottom:1px solid var(--line)}.post:hover{background:var(--hover)}
.avatar{width:var(--av-feed);height:var(--av-feed);border-radius:50%;background:var(--solid);color:var(--on-solid);display:grid;place-items:center;font-weight:700;font-size:1.1rem;flex:none}
.avatar:hover{text-decoration:none;filter:brightness(.92)}.avatar.big{width:72px;height:72px;font-size:1.8rem}
.grow{flex:1;min-width:0}.meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.name{font-weight:700;color:var(--text)}.name:hover{text-decoration:underline;text-underline-offset:2px}.verified{color:var(--brand)}svg.verified{width:1.15em;height:1.15em}
.post p{margin:2px 0 var(--s2);overflow-wrap:anywhere;white-space:pre-wrap}a.tag{color:var(--brand)}
/* post body: one style for every post, reply and quoted post */
.post-text,.post .quote .q-text{font-size:var(--post-body-size);line-height:var(--post-body-line-height);font-weight:var(--w-text)}
.post .meta .name{font-size:var(--display-name-size)}.post .meta .muted{font-size:var(--post-meta-size)}
/* Post header: name, @handle, time and "..." stay on one row. The name gives way first ("…"); an @handle is only cut past 40% of the row */
.post .meta{flex-wrap:nowrap;min-width:0}
.post .meta .nm{flex:0 1 auto;min-width:0}
.post .meta .handle{flex:none;min-width:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post .meta .sep,.post .meta .when,.post .meta .dotsep,.post .meta .post-more{flex:none;white-space:nowrap}
/* post sections: text -> quoted post -> media, separated by fixed gaps instead of stacked margins */
article.post .meta+.sens{margin-top:2px}
article.post .sens>.post-text,article.post .sens>.quote,article.post .sens>.media,article.post .sens>.media-grid{margin-top:0;margin-bottom:0}
article.post .sens>:is(.post-text,.quote,.media,.media-grid)+:is(.quote,.media,.media-grid){margin-top:var(--post-content-gap)}
article.post .sens>.post-text+.quote{margin-top:var(--quote-gap)}
.rline+.quote{margin-top:var(--post-content-gap)}
.rline{display:flex;align-items:center;gap:6px;font-weight:600}.rline{min-width:0}.rline>a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* a very long name can't push the page wider than the screen */.rline .ico-svg{width:1.1em;height:1.1em}
.actions{display:flex;justify-content:space-between;align-items:center;max-width:460px;margin-top:var(--post-content-gap)}
.act{display:inline-flex;margin:0}.act .link,a.act{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;margin:-6px -8px;border-radius:var(--r-pill);color:var(--muted);font-size:var(--fs-meta)}
.act .ico-svg,.actions .ico-svg{width:var(--ico);height:var(--ico);stroke-width:1.9}.act .link:hover,a.act:hover{background:var(--tint);color:var(--brand);text-decoration:none}
.act.reply:hover,.act.mark .link:hover,.act.mark.on .link{color:var(--brand)}
.act.repost .link:hover,.act.repost.on .link{color:var(--repost)}.act.like .link:hover,.act.like.on .link{color:var(--like)}
.link{background:none;border:0;color:var(--muted);cursor:pointer;font:inherit;padding:0}
/* ---- quote card: the original post inside a quote post (same card for text and photo quotes) ---- */
.quote{position:relative;display:block;margin:0;padding:var(--s3) 14px;border:1px solid var(--line);border-radius:var(--r-lg);color:inherit;overflow:hidden;transition:background .15s,border-color .15s}
.quote:hover{background:var(--hover);border-color:var(--line-strong)}.quote:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.q-head{display:flex;align-items:center;gap:8px;min-width:0;line-height:1.2}
.q-head .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-head .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.avatar.xs{width:22px;height:22px;font-size:.7rem}
.q-text{margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.post .quote .q-text{margin:6px 0 0;white-space:normal}
.q-head .name{font-size:var(--fs-body)}.q-head .muted{font-size:var(--fs-meta)}
.q-text a{position:relative;z-index:1}
.q-media{display:flex;justify-content:center;margin-top:var(--post-content-gap);border-radius:12px;overflow:hidden}
.q-media img{display:block;width:auto;height:auto;max-width:100%;max-height:300px;border-radius:12px}
.q-note{display:flex;align-items:center;gap:8px;margin-top:var(--post-content-gap);padding:10px 12px;border-radius:12px;background:var(--soft);color:var(--muted)}
.q-note .ico-svg{width:1.2em;height:1.2em}
.q-open{position:absolute;inset:0;border-radius:inherit}.q-open:hover{text-decoration:none}.q-open:focus-visible{outline:none}
@media (max-width:700px){.quote{padding:10px 12px;border-radius:14px}.q-media img{max-height:240px}}
.media{display:block;max-width:100%;max-height:520px;margin:var(--s2) 0;border:1px solid var(--line);border-radius:var(--r-lg)}

/* ---- compose ---- */
.compose{display:flex;gap:var(--s3);padding:var(--s3) var(--gutter);border-bottom:1px solid var(--line)}
.compose textarea,.compose textarea:focus{margin:0;min-height:52px;max-height:40vh;padding:10px 0;border:0;background:transparent;font-size:var(--fs-lg);resize:none;overflow-y:auto;overscroll-behavior:contain;outline:none}
.preview .media{max-height:240px}progress{width:100%;margin:6px 0}
.toolbar{display:flex;align-items:center;gap:var(--s1);padding-top:var(--s2);border-top:1px solid var(--line)}
.tool{display:inline-grid;place-items:center;width:var(--ctl-sm);height:var(--ctl-sm);padding:0;border-radius:50%;color:var(--brand);cursor:pointer}.tool:hover{background:var(--tint)}.tool .ico-svg{width:var(--ico);height:var(--ico)}
.tool:focus-within{outline:2px solid var(--brand)}.tool input{display:none}
.counter{margin-left:auto;margin-right:var(--s2);color:var(--muted);font-size:var(--fs-sm)}.counter.low{color:var(--like)}

/* ---- forms, buttons, generic rows ---- */
input,textarea,select{width:100%;margin:4px 0 12px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:inherit;font:inherit}
input:focus,textarea:focus,select:focus{outline:2px solid var(--brand);border-color:transparent}
textarea{min-height:80px;resize:vertical}label{display:block;color:var(--muted);font-size:.9rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:var(--ctl);padding:0 18px;border:1px solid transparent;border-radius:var(--r-pill);background:var(--solid);color:var(--on-solid);font:inherit;font-size:var(--fs-body);font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.btn:hover{background:var(--solid-hover);text-decoration:none}.btn:active{transform:scale(.98)}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:default;transform:none}.btn:disabled:hover{background:var(--solid)}
.btn.alt{background:transparent;color:var(--text);border-color:var(--line-strong)}.btn.alt:hover{background:var(--hover)}
.btn.danger{color:var(--danger);border-color:var(--danger)}
.card{padding:16px;border-bottom:1px solid var(--line)}.card.nopad{padding:0}
.flash{margin:var(--s3) var(--gutter);padding:var(--s3) var(--s4);border-radius:var(--r-md);background:var(--tint);color:var(--text);font-weight:500}
.pager{display:flex;justify-content:space-between;padding:16px}
.row{display:flex;gap:8px;align-items:center}.row.wrap{flex-wrap:wrap}form.inline{display:inline}
.trend{display:flex;flex-direction:column;padding:10px 16px;border-bottom:1px solid var(--line);color:inherit}
.trend:hover{background:var(--hover);text-decoration:none}.trend b{font-size:1rem}
.person{display:flex;gap:12px;align-items:center;padding:10px 16px}.person a{color:var(--text)}
.tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.tabs a{flex:1;padding:14px 10px;text-align:center;color:var(--muted);font-weight:600;white-space:nowrap}.tabs a:hover{color:var(--text)}
.tabs a:hover{background:var(--hover);text-decoration:none}.tabs .on{color:var(--text);font-weight:700;box-shadow:inset 0 -3px var(--brand)}
.notif{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-bottom:1px solid var(--line);color:inherit}
.notif:hover{background:var(--hover);text-decoration:none}.notif.new{background:var(--tint)}.ico{width:24px;text-align:center}
.online{color:#2bb673}

/* ---- messages ---- */

/* ---- admin ---- */
.arow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.stat{display:flex;flex-direction:column;border-right:1px solid var(--line)}.stat b{font-size:1.8rem}
.chip{display:inline-flex;gap:4px;align-items:center;margin:3px;padding:2px 8px;border:1px solid var(--line);border-radius:999px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.grid .card{border-right:1px solid var(--line)}

/* ---- mobile bits (hidden on desktop) ---- */
.tabbar,.fab{display:none}
.solo-layout .col{width:440px;border:0;min-height:0}
.solo-brand{display:flex;flex-direction:column;align-items:center;gap:6px;padding:32px 0 8px;color:var(--brand);font-weight:700;font-size:1.6rem}
.solo-brand .logo-svg{width:56px;height:56px}
.solo-layout .card{margin:12px;border:1px solid var(--line);border-radius:16px}

@media (max-width:1100px){
  .right{display:none}.left{width:88px}.left-inner{align-items:center}
  .nav-item,.logout .nav-item{padding:12px;gap:0}.nav-item .label,.post-btn .label{display:none}
  .post-btn{width:52px;height:52px;padding:0;display:grid;place-items:center}.post-btn .plus{display:inline-flex}.post-btn .ico-svg{stroke:#fff}
  .side-user{padding:4px;border:0;border-radius:50%;flex-direction:column;gap:2px;margin-top:auto}.side-user .who{display:none}
  .left-inner{overflow:visible}.menu-pop{left:calc(100% + 8px);right:auto;bottom:0;width:240px;z-index:30}
}
@media (max-width:700px){
  .left{display:none}.col{border:0}body{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom))}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;justify-content:space-around;background:var(--bg);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
  .tabbar a{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;padding:9px 2px 12px;color:var(--muted)}
  .tabbar a.on{color:var(--brand)}.tabbar a.on::after{content:"";position:absolute;bottom:4px;width:14px;height:4px;border-radius:4px;background:var(--brand)}
  .tabbar a:hover{text-decoration:none}.tab-label{font-size:.68rem;font-weight:500;line-height:1}
  .fab{display:grid;position:fixed;right:16px;bottom:calc(72px + env(safe-area-inset-bottom));z-index:11;width:56px;height:56px;place-items:center;border-radius:50%;background:var(--solid);color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.3)}
  .fab:hover{text-decoration:none}.fab .ico-svg{stroke:#fff}
  .solo-layout .col{width:100%}.actions{max-width:none}
}

/* ---- impressions, analytics, birthday ---- */
.act.views{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.85rem;cursor:default}
.act.share .link:hover{color:var(--brand)}
.statline{padding:12px 16px;border-bottom:1px solid var(--line)}
.analytics{padding:16px;border-bottom:1px solid var(--line)}
.analytics h3,.account-card h3{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:1.1rem}
.analytics h3 .ico-svg,.account-card h3 .ico-svg{width:1.2em;height:1.2em}
.account-card h3 .muted{font-size:.85rem;font-weight:400}
.a-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:10px 0 8px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--line)}
.a-stat{display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:var(--bg)}
.a-stat b{font-size:1.35rem;font-weight:700}.a-stat span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.9rem}
.a-stat .ico-svg{width:1.1em;height:1.1em}
.info{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}.info .ico-svg{width:1.15em;height:1.15em;vertical-align:-3px}
.info-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}
.vis-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:12px 0}.vis-form label{flex:1;min-width:200px}.vis-form select{margin-bottom:0}
.dob{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:8px}.dob select{margin:4px 0 8px}
.toast{position:fixed;left:50%;bottom:84px;z-index:20;transform:translateX(-50%);padding:10px 16px;border-radius:999px;background:var(--text);color:var(--bg);font-weight:600}
@media (max-width:700px){.a-grid{grid-template-columns:repeat(2,1fr)}}

/* ---- avatars (picture or default initial) ---- */
.avatar{overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:cover}

/* ---- profile header: cover photo with the picture overlapping its bottom-left corner ---- */
.profile-card{border-bottom:1px solid var(--line)}
.cover{position:relative;aspect-ratio:3/1;overflow:hidden;background:linear-gradient(120deg,var(--brand-dark),var(--brand) 55%,#8fd0fb)}
.cover-img{display:block;width:100%;height:100%;object-fit:cover}
.cover-edit{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-radius:999px;background:rgba(15,20,25,.62);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.cover-edit:hover{background:rgba(15,20,25,.8)}.cover-edit .ico-svg{width:1.2em;height:1.2em}
.head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 16px}
.avatar-wrap{position:relative;flex:none;margin-top:-56px}
.avatar.xl{width:112px;height:112px;border:4px solid var(--bg);font-size:2.8rem}
.avatar-edit{position:absolute;right:0;bottom:2px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:3px solid var(--bg);border-radius:50%;background:var(--solid);color:#fff;cursor:pointer}
.avatar-edit:hover{background:var(--brand-dark)}.avatar-edit .ico-svg{width:1.05em;height:1.05em}
.head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-top:12px}.head-actions .row{justify-content:flex-end}
.head-body{padding:8px 16px 14px}.head-body h2{margin:4px 0 0;font-size:1.3rem}.head-body p{margin:8px 0}

/* ---- photo editor dialog ---- */
.editor{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:0;border-radius:16px;background:var(--bg);color:var(--text);box-shadow:0 12px 40px rgba(0,0,0,.35)}
.editor::backdrop{background:rgba(0,0,0,.55)}
.ed-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}.ed-head h2{margin:0;font-size:1.2rem}
.ed-body{padding:16px}.ed-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}
.ed-actions .btn{display:inline-flex;align-items:center;gap:6px}.ed-actions .ico-svg{width:1.2em;height:1.2em}
.ed-stage{position:relative;margin:0 auto;overflow:hidden;border-radius:12px;background:var(--soft);cursor:grab;touch-action:none;user-select:none}
.ed-stage.dragging{cursor:grabbing}.ed-stage.ed-avatar{width:min(320px,100%);aspect-ratio:1}.ed-stage.ed-cover{width:100%;aspect-ratio:3/1}
.ed-stage img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;-webkit-user-drag:none;pointer-events:none}
.ed-stage.empty img{display:none}.ed-stage.empty{cursor:default}
.ed-stage.empty::before{content:"Choose a photo to get started";position:absolute;inset:0;display:grid;place-items:center;padding:12px;text-align:center;color:var(--muted)}
.ed-stage.ed-avatar:not(.empty)::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.55);pointer-events:none}
.ed-stage:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.ed-zoom{display:flex;align-items:center;gap:12px;max-width:320px;margin:14px auto 0;color:var(--muted)}.ed-zoom input{margin:0}
.ed-hint{margin:12px 0 0;text-align:center}.ed-error{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:var(--soft);border-left:4px solid var(--danger);color:var(--text)}

@media (max-width:700px){
  .cover{aspect-ratio:5/2}.avatar-wrap{margin-top:-42px}.avatar.xl{width:84px;height:84px;font-size:2rem}
  .cover-edit{padding:9px}.cover-edit span{display:none}.head-row{padding:0 12px}.head-body{padding:8px 12px 14px}
}

/* the HTML "hidden" attribute must always win over component display rules */
[hidden]{display:none!important}

/* ================= Display and accessibility preferences (set on <html> from the user's settings) ================= */
:root[data-font="small"]{font-size:87.5%}:root[data-font="large"]{font-size:112.5%}:root[data-font="xlarge"]{font-size:125%}
:root[data-bold="1"] body{font-weight:600}:root[data-bold="1"] .muted,:root[data-bold="1"] .set-desc{font-weight:500}
:root[data-accent="teal"]{--brand:#12a594;--brand-dark:#0d8678;--tint:rgba(18,165,148,.14)}
:root[data-accent="purple"]{--brand:#8b5cf6;--brand-dark:#7040e0;--tint:rgba(139,92,246,.14)}
:root[data-accent="orange"]{--brand:#e8741a;--brand-dark:#c45f0f;--tint:rgba(232,116,26,.14)}
:root[data-accent="green"]{--brand:#22a559;--brand-dark:#1a8647;--tint:rgba(34,165,89,.14)}
:root[data-accent="pink"]{--brand:#e0457b;--brand-dark:#c2335f;--tint:rgba(224,69,123,.14)}
:root[data-contrast="1"]{--text:#000;--muted:#2f3b45;--line:#6b7b88;--soft:#eef2f5;--hover:#e6ecf0;--brand:#0a5496;--brand-dark:#084a82;--like:#b00030;--repost:#0b6b36;--danger:#8a1c10}
:root[data-contrast="1"][data-theme="dark"]{--bg:#000;--text:#fff;--muted:#d4dce3;--line:#9aa8b4;--soft:#10151a;--hover:#0c1114;--brand:#74c0ff;--brand-dark:#9ad0ff;--like:#ff7a9e;--repost:#5be09a;--danger:#ff8a7a}
@media (prefers-color-scheme:dark){:root[data-contrast="1"][data-theme="system"],:root[data-contrast="1"]:not([data-theme]){--bg:#000;--text:#fff;--muted:#d4dce3;--line:#9aa8b4;--soft:#10151a;--hover:#0c1114;--brand:#74c0ff;--brand-dark:#9ad0ff;--like:#ff7a9e;--repost:#5be09a;--danger:#ff8a7a}}
:root[data-contrast="1"]{--line-strong:var(--line);--glass:var(--bg)}
:root[data-contrast="1"] .btn:not(.alt),:root[data-contrast="1"] .post-btn{color:#fff}
:root[data-contrast="1"][data-theme="dark"] .btn:not(.alt),:root[data-contrast="1"][data-theme="dark"] .post-btn{color:#000}
:root[data-density="compact"] .post{padding-top:8px;padding-bottom:8px}:root[data-density="compact"] .set-row{padding-top:9px;padding-bottom:9px}
:root[data-density="compact"] .compose{padding-top:8px;padding-bottom:8px}:root[data-density="compact"] .nav-item{padding-top:6px;padding-bottom:6px}
:root[data-a11y="1"] a:not(.btn):not(.nav-item):not(.brand):not(.avatar):not(.post-btn):not(.set-row):not(.fab):not(.back):not(.act):not(.tool){text-decoration:underline}
:root[data-a11y="1"] .btn,:root[data-a11y="1"] button,:root[data-a11y="1"] select,:root[data-a11y="1"] .set-row,:root[data-a11y="1"] .nav-item,:root[data-a11y="1"] .tabbar a{min-height:44px}
:root[data-a11y="1"] .act .link,:root[data-a11y="1"] a.act,:root[data-a11y="1"] button.act{min-width:44px;min-height:44px;justify-content:center}
:root[data-a11y="1"] :focus-visible{outline:3px solid var(--text);outline-offset:3px}
/* motion: a little gentle movement by default, none when reduced/off (or when the device asks for it) */
.nav-item,.btn,.act .link,a.act,a.set-row,.tabs a,.post{transition:background-color .15s,color .15s,box-shadow .15s}
dialog[open]{animation:pop .18s ease-out}.saved.show{animation:fade .2s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes fade{from{opacity:0}to{opacity:1}}
:root[data-motion="reduced"] *,:root[data-motion="reduced"] *::before,:root[data-motion="reduced"] *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
:root[data-motion="off"] *,:root[data-motion="off"] *::before,:root[data-motion="off"] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){:root[data-motion="system"] *,:root[data-motion="system"] *::before,:root[data-motion="system"] *::after,:root:not([data-motion]) *{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}

/* ================= Settings screens ================= */
.topbar{display:flex;align-items:center;gap:10px}
.back{display:inline-grid;place-items:center;width:36px;height:36px;margin-left:-8px;border-radius:50%;color:var(--text)}.back:hover{background:var(--tint);text-decoration:none}.back .ico-svg{width:1.3em;height:1.3em}
.set-list,.set-group{border-bottom:1px solid var(--line)}
.set-group h2{margin:0;padding:18px 16px 6px;font-size:1.1rem;font-weight:700}
.set-intro{margin:0;padding:14px 16px;color:var(--muted)}
.set-box{margin:0 16px 12px;padding:10px 12px;border-radius:8px;background:var(--soft);border-left:4px solid var(--brand)}
.set-row{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;border-top:1px solid var(--line);color:inherit;background:none}
.set-group h2 + .set-row,.set-list > .set-row:first-child{border-top:0}
.set-row.stack{flex-direction:column;align-items:stretch;gap:6px}
a.set-row.link:hover{background:var(--hover);text-decoration:none}
.set-text{flex:1;min-width:0}.set-title{display:block;margin:0;font-weight:700;color:var(--text);font-size:1rem;padding:0}
.set-desc{margin:2px 0 0;color:var(--muted);font-size:.9rem;line-height:1.4}.set-note{margin:4px 0 0;color:var(--muted);font-size:.85rem}
.set-ctl{display:flex;align-items:center;gap:10px;flex:none}.set-ctl select{width:auto;max-width:210px;margin:0}
.set-ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:var(--tint);color:var(--brand)}.set-ico .ico-svg{width:1.2em;height:1.2em}
.chev{display:inline-flex;color:var(--muted)}.chev .ico-svg{width:1.2em;height:1.2em}
.set-row.danger .set-title,.danger-text{color:var(--danger)}.set-row.danger .set-ico{background:rgba(192,57,43,.12);color:var(--danger)}
.set-value{max-width:55%;text-align:right;color:var(--muted);overflow-wrap:anywhere}
.set-sub{padding:8px 16px 16px}.set-edit{padding:0 16px;border-top:1px solid var(--line)}
.set-edit summary{padding:12px 0;color:var(--brand);font-weight:600;cursor:pointer}.set-edit form{padding:0 0 16px}
.saved{min-width:3.4em;color:var(--muted);font-size:.8rem;text-align:right}.saved.err{color:var(--danger);min-width:0}
.switch{position:relative;display:inline-block;flex:none;width:46px;height:28px}
.switch input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.knob{position:absolute;inset:0;border-radius:999px;background:var(--line);transition:background-color .18s}
.knob::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .18s}
.switch input:checked + .knob{background:var(--brand)}.switch input:checked + .knob::after{transform:translateX(18px)}
.switch input:focus-visible + .knob{outline:2px solid var(--brand);outline-offset:2px}.switch input:disabled{cursor:not-allowed}.switch input:disabled + .knob{opacity:.45}
fieldset{margin:0;padding:0;border:0;min-width:0}legend{padding:0}
.radio-list{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:10px}
.radio{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--text);font-size:1rem}.radio input{width:auto;margin:0;accent-color:var(--brand)}
.swatch{display:inline-block;width:20px;height:20px;border-radius:50%;border:2px solid var(--bg);box-shadow:0 0 0 1px var(--line)}
.radio input:checked ~ .swatch{box-shadow:0 0 0 2px var(--text)}
[data-swatch="blue"]{background:#1877d6}[data-swatch="teal"]{background:#12a594}[data-swatch="purple"]{background:#8b5cf6}[data-swatch="orange"]{background:#e8741a}[data-swatch="green"]{background:#22a559}[data-swatch="pink"]{background:#e0457b}
.matrix{border-top:1px solid var(--line)}
.m-row{display:grid;grid-template-columns:1fr repeat(3,88px);align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.m-head{padding-top:8px;padding-bottom:8px;color:var(--muted);font-size:.8rem;font-weight:700;text-align:center}.m-head span:first-child{text-align:left}
.m-cell{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0}.m-cell .saved{min-width:0;height:1em}
.preview-box{margin:0 16px 8px;padding:14px;border:1px solid var(--line);border-radius:12px}.preview-box p{margin:6px 0}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chips .chip{margin:0}.chip form,form.chip{margin:0}
.inline-add{display:flex;align-items:center;gap:8px}.inline-add input{margin:0}
.pill{margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--tint);color:var(--brand);font-size:.75rem;font-weight:600}
.table-wrap{overflow-x:auto}.plain{width:100%;border-collapse:collapse}.plain th,.plain td{padding:10px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:.9rem}.plain th{color:var(--muted);font-weight:700}
.doc{padding:0 16px 24px}.doc .set-intro{padding-left:0;padding-right:0}.doc h2{margin:22px 0 6px;font-size:1.15rem}.doc p,.doc li{line-height:1.6}.doc p{margin:0 0 10px}
.steps{margin:0 0 12px;padding-left:20px}.steps li{margin-bottom:12px}
.keybox{margin:10px 0;padding:12px;border-radius:8px;background:var(--soft);font:1.1rem ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em;overflow-wrap:anywhere}
.codes{columns:2;margin:12px 0;padding:14px 14px 14px 30px;border-radius:8px;background:var(--soft);font:1.05rem ui-monospace,Menlo,Consolas,monospace;list-style:none}.codes li{margin:4px 0}
.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:18px 16px;font-size:.85rem}.legal-links a{color:var(--muted)}
.sens{position:relative}.sens.covered{min-height:64px}.sens.covered > :not(.sens-btn){filter:blur(18px);pointer-events:none;user-select:none}
.sens-btn{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:0;border-radius:999px;background:var(--bg);color:var(--text);box-shadow:0 2px 12px rgba(0,0,0,.28);font:inherit;cursor:pointer}
.sens-btn b{color:var(--brand)}.sens-btn .ico-svg{width:1.2em;height:1.2em}
.sens-toggle input{display:none}.sens-toggle:has(input:checked){background:var(--tint)}
.tool.sens-toggle{display:inline-flex;align-items:center;width:auto;gap:4px;padding:0 var(--s2);border-radius:var(--r-pill);font-size:var(--fs-meta);font-weight:500;white-space:nowrap}
@media (max-width:700px){
  .set-row{padding:13px 12px}.set-group h2{padding-left:12px}.set-intro,.set-sub,.set-edit,.doc{padding-left:12px;padding-right:12px}
  .m-row{grid-template-columns:1fr repeat(3,60px);padding:12px}.set-ctl select{max-width:150px}.set-value{max-width:48%}.codes{columns:1}
}

/* High contrast keeps the chosen accent colour, in a deeper (light) or brighter (dark) shade that stays readable */
[data-contrast="1"][data-accent="teal"]{--brand:#0f5f5c;--brand-dark:#0f5f5c;--tint:#0f5f5c22}
[data-contrast="1"][data-theme="dark"][data-accent="teal"]{--brand:#5eead4;--brand-dark:#5eead4;--tint:#5eead433}
[data-contrast="1"][data-accent="purple"]{--brand:#5b21b6;--brand-dark:#5b21b6;--tint:#5b21b622}
[data-contrast="1"][data-theme="dark"][data-accent="purple"]{--brand:#c4b5fd;--brand-dark:#c4b5fd;--tint:#c4b5fd33}
[data-contrast="1"][data-accent="orange"]{--brand:#9a3412;--brand-dark:#9a3412;--tint:#9a341222}
[data-contrast="1"][data-theme="dark"][data-accent="orange"]{--brand:#fdba74;--brand-dark:#fdba74;--tint:#fdba7433}
[data-contrast="1"][data-accent="green"]{--brand:#166534;--brand-dark:#166534;--tint:#16653422}
[data-contrast="1"][data-theme="dark"][data-accent="green"]{--brand:#86efac;--brand-dark:#86efac;--tint:#86efac33}
[data-contrast="1"][data-accent="pink"]{--brand:#9d174d;--brand-dark:#9d174d;--tint:#9d174d22}
[data-contrast="1"][data-theme="dark"][data-accent="pink"]{--brand:#f9a8d4;--brand-dark:#f9a8d4;--tint:#f9a8d433}
@media (prefers-color-scheme:dark){[data-contrast="1"][data-theme="system"][data-accent="teal"]{--brand:#5eead4;--brand-dark:#5eead4;--tint:#5eead433}[data-contrast="1"][data-theme="system"][data-accent="purple"]{--brand:#c4b5fd;--brand-dark:#c4b5fd;--tint:#c4b5fd33}[data-contrast="1"][data-theme="system"][data-accent="orange"]{--brand:#fdba74;--brand-dark:#fdba74;--tint:#fdba7433}[data-contrast="1"][data-theme="system"][data-accent="green"]{--brand:#86efac;--brand-dark:#86efac;--tint:#86efac33}[data-contrast="1"][data-theme="system"][data-accent="pink"]{--brand:#f9a8d4;--brand-dark:#f9a8d4;--tint:#f9a8d433}}
.menu-pop button{white-space:nowrap;font-size:.9rem;gap:10px}

/* ---- composer: emoji picker + poll maker ---- */
.compose .grow{position:relative}
.tool{border:0;background:none;font:inherit}.tool[aria-pressed="true"],.tool[aria-expanded="true"]{background:var(--tint)}
.emoji-pop{position:absolute;left:0;top:calc(100% + 4px);z-index:20;width:min(340px,100%);max-height:260px;overflow-y:auto;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--bg);box-shadow:0 12px 32px rgba(0,0,0,.18)}
.emoji-pop h4{margin:6px 4px 4px;font-size:.8rem;font-weight:700;color:var(--muted)}
.emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.emoji-grid button{padding:6px 0;border:0;border-radius:10px;background:none;font-size:1.35rem;line-height:1;cursor:pointer}.emoji-grid button:hover,.emoji-grid button:focus-visible{background:var(--tint)}
.poll-maker{margin:8px 0;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--bg)}
.pm-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.pm-remove{color:var(--danger);font-weight:600}
.pm-opt{margin:0 0 8px;border-radius:12px}
.pm-duration{margin:4px 0 0;padding:0;border:0}.pm-duration legend{padding:0 0 6px;color:var(--muted);font-size:.9rem}
.pm-chip{display:inline-block;margin:0 6px 6px 0}.pm-chip input{position:absolute;opacity:0;width:0;height:0;margin:0}
.pm-chip span{display:inline-block;padding:6px 14px;border:1px solid var(--line);border-radius:999px;color:var(--text);font-weight:600;font-size:.9rem;cursor:pointer}
.pm-chip input:checked+span{background:var(--solid);border-color:var(--brand);color:#fff}.pm-chip input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.pm-custom{margin-top:4px}.pm-custom input{margin:4px 0 0;border-radius:12px}
.pm-summary{margin:6px 0 0;font-weight:600}
/* ---- poll inside a post ---- */
.poll{margin:var(--post-content-gap) 0 0}
.poll-vote{display:grid;gap:8px}
.poll-opt{width:100%;padding:11px 16px;border:1.5px solid var(--brand);border-radius:999px;background:none;color:var(--brand);font:inherit;font-weight:700;text-align:center;cursor:pointer;overflow-wrap:anywhere;transition:background .15s}
.poll-opt:hover{background:var(--tint)}
.poll-results{display:grid;gap:10px}
.poll-line{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px}.poll-label{display:inline-flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.poll-row.lead .poll-label{font-weight:700}.poll-check{display:inline-flex;color:var(--brand)}.poll-check .ico-svg{width:1.1em;height:1.1em;stroke-width:2.6}
.poll-bar{display:block;width:100%;height:10px;border:0;border-radius:999px;overflow:hidden;appearance:none;-webkit-appearance:none;background:var(--soft)}
.poll-bar::-webkit-progress-bar{background:var(--soft);border-radius:999px}
.poll-bar::-webkit-progress-value{background:var(--line);border-radius:999px}.poll-bar::-moz-progress-bar{background:var(--line);border-radius:999px}
.poll-row.lead .poll-bar::-webkit-progress-value{background:var(--brand)}.poll-row.lead .poll-bar::-moz-progress-bar{background:var(--brand)}
.poll-row.mine:not(.lead) .poll-bar::-webkit-progress-value{background:var(--muted)}.poll-row.mine:not(.lead) .poll-bar::-moz-progress-bar{background:var(--muted)}
.poll-foot{display:flex;gap:6px;margin-top:8px;font-size:.85rem}.poll.ended .poll-time{font-weight:700;color:var(--text)}
@media (max-width:700px){.sens-toggle .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.toolbar{gap:6px}}

/* ---- Messages: inbox + chat ---- */
.tick .sr,.comp-btn .sr,.photo-btn .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.av-wrap{position:relative;flex:none;display:inline-flex}.av-wrap .dot{position:absolute;right:1px;bottom:1px;width:13px;height:13px;border-radius:50%;background:#2bb673;border:2px solid var(--bg)}
.msg-search{display:flex;align-items:center;gap:10px;margin:12px 16px;padding:0 16px;border-radius:999px;background:var(--soft)}
.msg-search:focus-within{outline:2px solid var(--brand)}.msg-search .ico-svg{color:var(--muted);width:1.2em;height:1.2em;flex:none}
.msg-search input{margin:0;padding:12px 0;border:0;background:transparent;outline:none}
.sec-h{margin:8px 16px}
.conv{display:flex;align-items:center;gap:12px;padding:12px 16px;color:inherit;border-bottom:1px solid var(--line)}
.conv:hover{background:var(--hover);text-decoration:none}.conv .avatar{width:54px;height:54px}
.c-top,.c-bot{display:flex;align-items:center;justify-content:space-between;gap:8px}.c-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c-time{color:var(--muted);font-size:.8rem;flex:none}.c-last{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.conv.new .c-last{color:var(--text);font-weight:600}.conv.new .c-time{color:var(--brand);font-weight:700}.c-last .you{color:var(--muted);font-weight:400}
.conv .grow{min-width:0}.conv .badge{margin:0;flex:none}
.chat-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:56px 24px;text-align:center;margin:auto}.chat-empty .big{font-size:2.4rem}

.chat-wrap{display:flex;flex-direction:column;min-height:calc(100vh - 54px)}
.chat-head{position:sticky;top:53px;z-index:4;display:flex;align-items:center;gap:6px;padding:10px 12px;background:var(--bg);border-bottom:1px solid var(--line)}
.chat-head .back{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--brand)}.chat-head .back:hover{background:var(--tint)}
.chat-who{display:flex;align-items:center;gap:12px;color:inherit;min-width:0}.chat-who:hover{text-decoration:none}.chat-who .avatar{width:48px;height:48px}
.chat-name{display:flex;flex-direction:column;min-width:0}.chat-name b{color:var(--brand);font-size:1.08rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-name small{color:var(--muted);font-size:.88rem}.chat-name small.on{color:#1f9d63;font-weight:600}
.chat{flex:1;display:flex;flex-direction:column;gap:2px;padding:14px 14px 10px;background:var(--bg)}
.day-sep{align-self:center;margin:12px 0 8px;padding:4px 12px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.78rem;font-weight:600}
.msg{position:relative;max-width:78%;padding:9px 14px 7px;border-radius:20px;background:var(--soft);background:color-mix(in srgb,var(--brand) 9%,var(--bg));color:var(--text);align-self:flex-start;overflow-wrap:anywhere}
.msg.first{margin-top:8px}.msg.theirs:not(.last){border-bottom-left-radius:8px}.msg.theirs:not(.first){border-top-left-radius:8px}.msg.theirs.last{border-bottom-left-radius:6px}
.msg.mine{align-self:flex-end;background:var(--solid);color:#fff}
.msg.mine:not(.last){border-bottom-right-radius:8px}.msg.mine:not(.first){border-top-right-radius:8px}.msg.mine.last{border-bottom-right-radius:6px}
.msg p{margin:0;white-space:pre-wrap;line-height:1.35;font-size:1.02rem}
.msg .media{max-width:100%;max-height:320px;margin:0 0 6px;border:0;border-radius:14px}
.msg .meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:2px;font-size:.74rem;color:var(--muted)}
.msg.mine .meta{color:rgba(255,255,255,.8)}.tick{display:inline-flex}.tick .ico-svg{width:1.25em;height:1.25em;stroke-width:2.2}.tick.seen{color:#fff}.tick:not(.seen){opacity:.7}
.msg.mine .meta .tick.seen .ico-svg{stroke:#bff0ff}
.msg-del{display:none;margin:6px 0 0}.msg.open .msg-del,.msg:focus-within .msg-del{display:block}
.msg-del .link{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:.82rem}
.msg-del .ico-svg{width:1.1em;height:1.1em}
@media (hover:hover){.msg.mine:hover .msg-del{display:block}}

.composer{position:sticky;bottom:0;z-index:4;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
.comp-row{display:flex;align-items:flex-end;gap:10px}
.composer textarea{flex:1;min-width:0;margin:0;min-height:46px;max-height:140px;padding:11px 18px;border:1px solid var(--line);border-radius:24px;background:var(--bg);font-size:1rem;line-height:1.3;resize:none;overflow-y:auto}
.composer textarea:focus{outline:2px solid var(--brand);border-color:transparent}
.comp-btn{display:grid;place-items:center;flex:none;width:46px;height:46px;border:0;border-radius:50%;cursor:pointer;margin:0}
.comp-btn.attach{background:var(--tint);color:var(--brand)}.comp-btn.attach:hover{background:var(--line)}.comp-btn.attach input{display:none}.comp-btn.attach:focus-within{outline:2px solid var(--brand)}
.comp-btn.send{background:var(--solid);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--solid) 35%,transparent);transition:transform .12s,opacity .15s}.comp-btn.send .ico-svg{stroke:#fff;width:1.3em;height:1.3em}
.comp-btn.send:active{transform:scale(.92)}.comp-btn.send:disabled{opacity:.4;box-shadow:none;cursor:default}
.attach-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;padding:6px 8px 6px 14px;border-radius:999px;background:var(--tint);color:var(--brand);font-size:.88rem}
.attach-chip[hidden]{display:none}.attach-chip .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attach-chip .link{display:grid;place-items:center;color:var(--brand)}
body:has(.chat-wrap) .fab{display:none}
@media (max-width:700px){
  .chat-wrap{min-height:calc(100dvh - 54px - 60px)}.composer{bottom:60px}.msg{max-width:84%}
  body:has(.chat-wrap){padding-bottom:0}.chat-wrap{margin-bottom:60px}
}

/* ---- Notifications ---- */
.topbar .notif-gear{margin-left:auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--brand)}
.topbar .notif-gear:hover{background:var(--tint)}.notif-gear .ico-svg{width:1.4em;height:1.4em}
.n-chips{display:flex;gap:6px;padding:12px 16px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}.n-chips::-webkit-scrollbar{display:none}
.n-chips a{flex:1 0 auto;text-align:center;padding:9px 10px;font-size:.9rem;border-radius:999px;background:var(--soft);color:var(--text);font-weight:500;transition:background .15s,color .15s}
.n-chips a:hover{text-decoration:none;background:var(--tint)}.n-chips a.on{background:var(--solid);color:#fff;font-weight:700;box-shadow:0 3px 10px color-mix(in srgb,var(--solid) 30%,transparent)}
.n-h{display:flex;align-items:center;gap:8px;margin:18px 16px 8px;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.n-count{padding:1px 8px;border-radius:999px;background:var(--solid);color:#fff;font-size:.72rem;letter-spacing:0}
.n-list{display:flex;flex-direction:column;gap:10px;padding:0 14px 6px}
.n-card{position:relative;display:flex;align-items:center;gap:14px;padding:14px 14px 14px 16px;border:1px solid var(--line);border-radius:22px;background:var(--bg);color:inherit;overflow:hidden;transition:transform .12s,box-shadow .15s,background .15s}
.n-card:hover{text-decoration:none;background:var(--hover);box-shadow:0 4px 16px rgba(0,0,0,.06)}.n-card:active{transform:scale(.99)}
.n-card.new{background:var(--tint);border-color:transparent}.n-card.new::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--brand)}
.n-ico{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:50%;background:var(--soft);color:var(--muted)}
.n-ico .ico-svg{width:1.45em;height:1.45em}
.n-ico.brand{background:var(--solid);color:#fff}.n-ico.brand .ico-svg{stroke:#fff}.n-ico.brand .ico-svg.filled{fill:#fff}
.n-ico.like{background:color-mix(in srgb,var(--like,#e0245e) 14%,var(--bg));color:var(--like,#e0245e)}.n-ico.like .ico-svg{stroke:var(--like,#e0245e)}.n-ico.like .ico-svg.filled{fill:var(--like,#e0245e)}
.n-ico.repost{background:color-mix(in srgb,var(--repost,#17a05d) 14%,var(--bg));color:var(--repost,#17a05d)}.n-ico.repost .ico-svg{stroke:var(--repost,#17a05d)}
.n-ico.warn{background:color-mix(in srgb,#e8a100 16%,var(--bg));color:#c98a00}.n-ico.warn .ico-svg{stroke:#c98a00}
.n-ico.soft{background:var(--line);color:var(--muted)}.n-ico.soft .ico-svg{stroke:var(--muted)}
.n-ico.big-ico{width:72px;height:72px}.n-ico.big-ico .ico-svg{width:2em;height:2em}
.n-body{flex:1;min-width:0}.n-text{line-height:1.3;color:var(--muted)}.n-text b{color:var(--text);font-weight:700}
/* Long names: cut with "…" only when they don't fit (app.js adds .name-cut); a tap shows the whole name in a small popover */
.n-text b.name-cut{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.q-head .name.name-cut{position:relative;z-index:1}
.name-cut{cursor:pointer}
.name-pop{position:fixed;z-index:90;max-width:calc(100vw - 24px);padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--text);font-size:var(--fs-body);font-weight:var(--w-name);line-height:1.35;overflow-wrap:anywhere;box-shadow:var(--shadow-lg)}
.n-card.new .n-text{color:var(--text)}
.n-snip{margin-top:3px;color:var(--muted);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.n-time{flex:none;align-self:flex-start;margin-top:2px;color:var(--muted);font-size:.8rem;white-space:nowrap}
.n-chev{display:grid;color:var(--muted);flex:none}.n-chev .ico-svg{width:1.1em;height:1.1em}
.n-list:last-of-type{padding-bottom:96px}

/* ---- Up to 2 photos per post ---- */
.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:8px 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line)}
.mg-item{display:block;padding:0;border:0;margin:0;background:var(--soft);aspect-ratio:4/5;overflow:hidden;cursor:zoom-in}
.mg-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.mg-item:hover img{transform:scale(1.03)}
.mg-item:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.q-media.two{display:grid;grid-template-columns:1fr 1fr;gap:3px;border-radius:12px;overflow:hidden}.q-media.two img{aspect-ratio:1/1;width:100%;height:100%;object-fit:cover;max-height:none;border-radius:0}

.pv-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0}.pv-grid.two{grid-template-columns:1fr 1fr}
.pv-tile{position:relative;display:flex;flex-direction:column;min-width:0}
.pv-tile img,.pv-tile video{display:block;width:100%;height:auto;max-height:min(62vh,560px);object-fit:cover;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.pv-grid.two .pv-tile img,.pv-grid.two .pv-tile video{aspect-ratio:4/5;height:auto;max-height:none}
.pv-actions{position:absolute;top:8px;right:8px;display:flex;gap:6px}
.pv-btn{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:rgba(15,20,25,.72);color:#fff;cursor:pointer;backdrop-filter:blur(4px)}
.pv-btn:hover{background:rgba(15,20,25,.9)}.pv-btn:focus-visible,.pv-btn:focus-within{outline:2px solid #fff;outline-offset:2px}
.pv-btn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pv-remove:hover{background:#d93a3a}
.compose .pv-alt{margin:6px 0 0;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:.88rem}
.pv-add{display:inline-flex;align-items:center;gap:8px;margin:0 0 8px;padding:8px 14px;border:1.5px dashed var(--brand);border-radius:999px;color:var(--brand);font-weight:600;font-size:.9rem;cursor:pointer}
.pv-add:hover{background:var(--tint)}.pv-add svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.pv-add small{color:var(--muted);font-weight:500}
.pv-add:focus-within{outline:2px solid var(--brand)}
.photo-btn.is-full{opacity:.4;cursor:not-allowed}.photo-btn.is-full:hover{background:none}
.preview .media{max-height:240px}

.lightbox{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(0,0,0,.97)}
.lightbox img{max-width:100vw;max-height:100dvh;object-fit:contain}
.lb-x,.lb-nav{position:absolute;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;line-height:1}
.lb-x{top:max(12px,env(safe-area-inset-top));right:12px;width:42px;height:42px;font-size:1.8rem}
.lb-nav{top:50%;width:44px;height:44px;margin-top:-22px;font-size:2rem}.lb-nav.prev{left:10px}.lb-nav.next{right:10px}
.lb-x:hover,.lb-nav:hover{background:rgba(255,255,255,.3)}.lb-count{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#fff;font-size:.9rem}
body.lb-open{overflow:hidden}
@media (max-width:700px){.lb-nav{display:none}}

/* in-place actions */
.act.pop .ico-svg{animation:act-pop .32s ease-out}
@keyframes act-pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
article.post{transition:opacity .18s,transform .18s}article.post.removing{opacity:0;transform:scale(.98);pointer-events:none}

/* ---- Post page: reply box pinned at the bottom ---- */
.replies{min-height:30vh}
.reply-bar{position:sticky;bottom:0;z-index:6;padding:var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-top:1px solid var(--line)}
.rb-to{display:flex;align-items:baseline;gap:var(--s2);min-width:0;padding:0 0 6px calc(var(--ctl-sm) + var(--s2));color:var(--muted);font-size:var(--fs-sm)}
.rb-who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-count{flex:none;font-variant-numeric:tabular-nums;font-weight:var(--w-mid)}.rb-count.low{color:var(--like)}.rb-to a{color:var(--brand);font-weight:600}
.rb-row{display:flex;align-items:flex-end;gap:var(--s2);min-width:0}.rb-row>*{flex:none}.rb-row textarea{flex:1 1 auto}.rb-row .avatar{width:var(--ctl-sm);height:var(--ctl-sm);margin-bottom:4px;font-size:.85rem}
.reply-bar textarea{flex:1;min-width:0;margin:0;min-height:var(--ctl);max-height:140px;padding:9px 16px;border:1px solid var(--line);border-radius:var(--r-xl);background:var(--soft);font-size:var(--fs-body);line-height:1.4;resize:none;overflow-y:auto}
.reply-bar textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px var(--tint);background:var(--surface)}
.reply-bar .btn{min-height:var(--ctl);padding:0 18px;flex:none}
body:has(.reply-bar) .fab{display:none}
/* phones: the bar is fixed just above the tab bar; while typing it sits on top of the on-screen keyboard (--kb, set by app.js) */
@media (max-width:700px){
  .reply-bar{position:fixed;left:0;right:0;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:var(--s2)}
  .reply-bar:focus-within{bottom:var(--kb,0px);padding-bottom:max(var(--s2),calc(env(safe-area-inset-bottom) - var(--kb,0px)))}
  body:has(.reply-bar:focus-within) .tabbar{display:none}
  .convo:has(.reply-bar) .replies{padding-bottom:96px}
  /* the growing text box never takes more than ~30% of the space left above the keyboard */
  .reply-bar textarea{max-height:min(140px,calc((100dvh - var(--kb,0px)) * .3))}
}
@media (max-width:360px){.rb-row .avatar{display:none}.rb-to,.rb-previews{padding-left:0}.reply-bar textarea{padding-left:14px;padding-right:14px}.reply-bar .btn{padding:0 14px}}
.col:has(.reply-bar){display:flex;flex-direction:column}.col:has(.reply-bar) .replies{flex:1}.col:has(.reply-bar) .reply-bar{margin-top:auto}
.a-total{display:flex;flex-direction:column;align-items:center;gap:4px;padding:28px 16px;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.a-total b{font-size:2.6rem;line-height:1;letter-spacing:-.02em}.a-total span{color:var(--muted)}
.imp-note{margin:0;padding:18px 16px;border-bottom:1px solid var(--line);color:var(--muted)}.imp-note b{color:var(--text)}

/* ---- bottom sheet (impressions info) ---- */
.sheet-wrap{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}.sheet-wrap[hidden]{display:none}
.sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .2s}.sheet-wrap.show .sheet-bg{opacity:1}
.sheet{position:relative;width:100%;max-width:600px;padding:12px 24px calc(24px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:var(--bg);transform:translateY(100%);transition:transform .22s ease-out}
.sheet-wrap.show .sheet{transform:none}
.sheet-grip{display:block;width:44px;height:5px;margin:0 auto 22px;border-radius:5px;background:var(--line)}
.sheet h2{margin:0 0 10px;font-size:1.9rem;font-weight:700}.sheet p{margin:0 0 22px;font-size:1.1rem;font-weight:700;line-height:1.4}
.sheet-btn{display:block;width:100%;padding:14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--text);font:inherit;font-weight:700;cursor:pointer}.sheet-btn:hover{background:var(--soft)}
@media (min-width:701px){.sheet-wrap{align-items:center}.sheet{padding-top:28px;max-width:560px;border-radius:24px;transform:translateY(20px);opacity:0;transition:transform .2s,opacity .2s}.sheet-wrap.show .sheet{opacity:1}.sheet-grip{display:none}}

/* ---- Conversation (post detail) ---- */
.post[data-href]{cursor:pointer}
.convo>:not(.reply-bar){animation:convo-in .22s ease-out}
.convo>.reply-bar{animation:convo-fade .22s ease-out}               /* fade only: a slide (transform) would pull the fixed reply bar up under the post for a moment */
@keyframes convo-fade{from{opacity:0}to{opacity:1}}
@keyframes convo-in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.topbar h1{flex:1;min-width:0}
.topbar-btn{display:inline-grid;place-items:center;width:36px;height:36px;margin-right:-6px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}
.topbar-btn:hover{background:var(--tint);color:var(--brand)}.topbar-btn .ico-svg{width:1.25em;height:1.25em}
.topbar-btn.spinning svg{animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* thread connectors */
.tseg{position:relative}
.tseg .post>.avatar,.rc-ctx .post>.avatar{width:var(--av-reply);height:var(--av-reply);font-size:1rem}
.tseg.down::after{content:"";position:absolute;left:calc(var(--gutter) + var(--av-reply) / 2 - 1px);top:calc(var(--s3) + var(--av-reply) + 4px);bottom:0;width:2px;background:var(--line-strong);border-radius:2px}
.tseg.up::before{content:"";position:absolute;left:calc(var(--gutter) + var(--av-reply) / 2 - 1px);top:0;height:calc(var(--s3) - 4px);width:2px;background:var(--line-strong);border-radius:2px}
.ancestors .tseg:last-child::after{bottom:-4px}
.ancestors + #focal-wrap .focal article.post{padding-top:var(--s2)}
.tseg.down>.post,.tseg.down>article.post{border-bottom-color:transparent}
.tseg.down:hover::after{background:var(--line-strong)}
.ancestors .post{padding-bottom:4px}
.thread{border-bottom:1px solid var(--line)}
.thread>.tseg:last-child>.post,.thread>.tseg:last-child>article.post{border-bottom:0}
.thread>.tseg>.post{border-bottom-color:transparent}
.thread .tseg.down:not(:first-child)::after{top:calc(var(--s3) + var(--av-reply) + 4px)}
.more-thread{display:block;padding:var(--s2) var(--gutter) var(--s3) calc(var(--gutter) + var(--av-reply) + var(--s3));font-weight:600;font-size:var(--fs-meta)}
.thread:target,.fresh{animation:flash 1.6s ease-out}
@keyframes flash{from{background:var(--tint)}to{background:transparent}}
/* focal post: visually distinct from replies */
.focal{border-bottom:1px solid var(--line);background:var(--bg)}
.focal>article.post,.focal .post{border-bottom:0;padding:var(--s4) var(--gutter) var(--s1)}.focal .post:hover{background:none}
.focal .post .grow{padding-top:2px}
.focal-meta{padding:4px 16px 12px;color:var(--muted);font-size:.93rem}
.focal-meta time{color:var(--muted)}
.stat-row{display:flex;flex-wrap:wrap;gap:6px 20px;padding:12px 0 0;margin-top:12px;border-top:1px solid var(--line);color:var(--muted)}
.stat-row b{color:var(--text);font-weight:700;margin-right:4px}
.focal .actions{max-width:none;padding:6px 16px;border-top:1px solid var(--line)}
.replies-h{margin:0;padding:14px var(--gutter) 10px;font-size:var(--fs-body);font-weight:700;border-bottom:1px solid var(--line);background:var(--surface)}
.empty-replies{padding:var(--s8) var(--gutter);text-align:center;color:var(--muted)}
.replies-end{display:flex;justify-content:center;padding:16px}
.replies-end .spin,.loading-row .spin{display:none;width:22px;height:22px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .7s linear infinite}
.replies-end.js-on .more-replies{display:none}.replies-end.js-on .spin{display:block}
.loading-row{display:flex;justify-content:center;padding:14px}.loading-row[hidden]{display:none}.loading-row .spin{display:block}
/* reply bar attachments */
.rb-attach{display:grid;place-items:center;flex:none;width:var(--ctl);height:var(--ctl);color:var(--brand);cursor:pointer;border-radius:50%}
.rb-attach:hover{background:var(--tint)}.rb-attach .ico-svg{width:var(--ico-md);height:var(--ico-md)}.rb-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.rb-attach.is-full{opacity:.4;cursor:default}
.rb-previews{display:flex;gap:var(--s2);padding:0 0 var(--s2) calc(var(--ctl-sm) + var(--s2))}.rb-previews[hidden]{display:none}
.rb-thumb{position:relative;width:64px;height:64px;border-radius:12px;overflow:hidden;background:var(--soft)}
.rb-thumb img,.rb-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.rb-x{position:absolute;top:3px;right:3px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:1rem;line-height:1;cursor:pointer}
.lightbox.solo .lb-nav,.lightbox.solo .lb-count{display:none}
article.post .sens>img.media{cursor:zoom-in}
@media (prefers-reduced-motion:reduce){.convo,.convo>*,.thread:target,.fresh{animation:none}}
.rb-attach .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.rb-attach{position:relative}
.focal-meta,.stat-row{padding-left:16px;padding-right:16px}
.stat-row{margin:0 0 0;padding-top:12px;padding-bottom:12px;border-bottom:0}
.focal-meta{padding-bottom:0}
.stat-row i{font-style:normal}
.stat-row span{white-space:nowrap}

/* ---- Repost menu (Repost / Quote) ---- */
.rp-wrap{position:fixed;inset:0;z-index:70}
.rp-bg{position:absolute;inset:0;background:transparent}
.rp-menu{position:absolute;min-width:180px;padding:6px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-lg);opacity:0;transform:scale(.96);transform-origin:top left;transition:opacity .14s,transform .14s}
.rp-wrap.show .rp-menu{opacity:1;transform:none}
.rp-grip{display:none}
.rp-item{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:0;border-radius:12px;background:none;color:var(--text);font:inherit;font-weight:700;text-align:left;cursor:pointer}
.rp-item:hover,.rp-item:focus-visible{background:var(--hover);outline:none}.rp-item:focus-visible{box-shadow:inset 0 0 0 2px var(--brand)}
.rp-item .ico-svg{width:1.3em;height:1.3em;flex:none}
.rp-item.is-on{color:var(--repost)}
@media (prefers-reduced-motion:reduce){.rp-menu,.rp-bg{transition:none}}
.quote-compose .quote{margin-top:8px}
.quote-compose textarea,.quote-compose textarea:focus{border:0;box-shadow:none;outline:none;background:transparent}
body:has(.quote-compose) .fab{display:none}

/* ---- Profile (visitor view) ---- */
.cover::after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(to top,rgba(0,0,0,.28),transparent);pointer-events:none}
.cover.default{background:radial-gradient(120% 140% at 12% 0%,rgba(255,255,255,.35),transparent 45%),radial-gradient(90% 120% at 100% 100%,rgba(255,255,255,.22),transparent 55%),linear-gradient(120deg,var(--brand-dark),var(--brand) 60%,#8fd0fb)}
.avatar-wrap .avatar.xl{box-shadow:0 0 0 1px var(--line),0 6px 18px rgba(0,0,0,.14)}
.p-dot{position:absolute;right:8px;bottom:8px;width:18px;height:18px;border-radius:50%;background:#22c55e;border:3px solid var(--bg)}
.head-actions{align-items:center}
.p-actions{display:flex;align-items:center;gap:8px}.p-actions form{margin:0}
.pill-btn{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 20px;border-radius:999px;font-weight:700}
.pill-btn .ico-svg{width:1.15em;height:1.15em}
.p-following{background:var(--soft);color:var(--text);border:1px solid var(--line)}.p-following:hover{background:var(--hover);border-color:var(--danger);color:var(--danger)}
.p-requested{background:var(--soft);color:var(--muted);border:1px solid var(--line)}
.p-round{display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--text);cursor:pointer;list-style:none}
.p-round::-webkit-details-marker{display:none}.p-round:hover{background:var(--tint);color:var(--brand);border-color:transparent;text-decoration:none}.p-round .ico-svg{width:1.25em;height:1.25em}
.p-more{position:relative}.p-more[open]>.p-round{background:var(--tint);color:var(--brand);border-color:transparent}
.p-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:8;min-width:210px;padding:6px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-lg)}
.p-menu form{margin:0}.p-menu button,.p-menu a{display:block;width:100%;padding:11px 14px;border:0;border-radius:10px;background:none;color:var(--text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.p-menu button:hover,.p-menu a:hover{background:var(--hover);text-decoration:none}.p-menu .danger{color:var(--danger)}
.head-body{padding:6px 16px 0}
.p-name{display:flex;align-items:center;gap:6px;margin:6px 0 0!important;font-size:1.45rem!important;letter-spacing:-.01em}
.p-handle{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.p-chip-soft{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.78rem;font-weight:600}.p-chip-soft .ico-svg{width:.95em;height:.95em}
.p-bio{margin:12px 0 0!important;font-size:1rem;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.p-facts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.p-facts li{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.86rem}
.p-facts .ico-svg{width:1.15em;height:1.15em}
.p-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:16px 0 0;border:1px solid var(--line);border-radius:18px;background:var(--soft);overflow:hidden}
.p-stats>div{display:flex;flex-direction:column;align-items:center;padding:12px 6px}.p-stats>div+div{border-left:1px solid var(--line)}
.p-stats b{font-size:1.25rem;line-height:1.1;letter-spacing:-.01em}.p-stats span{margin-top:2px;color:var(--muted);font-size:.8rem}
.p-mutual{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:.86rem}
.p-stack{display:inline-flex}.p-mini{display:grid;place-items:center;width:24px;height:24px;margin-left:-8px;border:2px solid var(--bg);border-radius:50%;background:var(--solid);color:#fff;font-size:.7rem;font-weight:700;overflow:hidden}.p-mini:first-child{margin-left:0}.p-mini img{width:100%;height:100%;object-fit:cover}
.p-tabs{display:flex;margin-top:14px;border-top:1px solid var(--line)}
.p-tabs span,.p-tabs a{position:relative;padding:14px 18px 12px;font-weight:700;color:var(--text)}.p-tabs a:hover{text-decoration:none}
.p-tabs span::after,.p-tabs a::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:var(--brand)}
@media (max-width:700px){.head-body{padding:6px 12px 0}.pill-btn{padding:0 16px}.p-tabs span,.p-tabs a{padding-left:12px}.p-tabs span::after,.p-tabs a::after{left:12px;right:12px}}
/* profile: details and numbers as plain inline rows */
.p-facts{gap:6px 22px;margin:14px 0 0}
.p-facts li{padding:0;border-radius:0;background:none;color:var(--muted);font-size:.93rem}
.p-stats{display:flex;flex-wrap:wrap;gap:6px 22px;margin:12px 0 0!important;padding:0;border:0;border-radius:0;background:none;overflow:visible}
.p-stats span{color:var(--muted);font-size:.95rem}.p-stats b{color:var(--text);font-size:1rem;font-weight:700;margin-right:2px}

/* ---- action bar: Like, Reply, Repost first; icon + count side by side (sizes come from the tokens) ---- */
.act .link span,a.act span{font-variant-numeric:tabular-nums}
.act.on .link{font-weight:600}
@media (pointer:coarse){.act .link,a.act,.act.share .link{min-width:40px;min-height:40px;padding:8px 10px;margin:-8px -10px;justify-content:flex-start}}
@media (max-width:700px){.actions{max-width:none}}

/* ---- "..." button after the timestamp + its menu ---- */
.meta .dotsep{margin:0 -1px}
.post-more{display:inline-grid;place-items:center;width:30px;height:30px;margin:-6px -4px -6px -2px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer;vertical-align:middle;transition:background-color .15s,color .15s}
.post-more .ico-svg{width:var(--ico-sm);height:var(--ico-sm);stroke-width:2.6}
.post-more:hover,.post-more[aria-expanded="true"]{background:var(--tint);color:var(--brand)}
@media (max-width:700px){.post-more{width:36px;height:36px;margin:-9px -6px -9px -4px}}
.rp-item.danger{color:var(--danger)}
a.rp-item:hover{text-decoration:none}
.pm-confirm{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px}
.pm-bg{position:absolute;inset:0;background:rgba(0,0,0,.45);opacity:0;transition:opacity .16s}.pm-confirm.show .pm-bg{opacity:1}
.pm-card{position:relative;width:min(360px,100%);padding:22px 20px 18px;border-radius:20px;background:var(--bg);box-shadow:0 12px 40px rgba(0,0,0,.3);opacity:0;transform:scale(.96);transition:opacity .16s,transform .16s}
.pm-confirm.show .pm-card{opacity:1;transform:none}
.pm-card h2{margin:0 0 6px;font-size:1.2rem}.pm-card p{margin:0 0 18px;color:var(--muted);line-height:1.4}
.pm-btns{display:flex;gap:10px}.pm-btns .btn{flex:1;height:44px;padding:0}
.pm-btns .btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.pm-btns .btn.danger:hover{filter:brightness(.92)}
@media (prefers-reduced-motion:reduce){.pm-bg,.pm-card{transition:none}}

/* ---- phone: the sidebar is hidden, so Settings, Bookmarks and the account options live in this top-bar menu ---- */
.m-menu{display:none}
@media (max-width:700px){
  .m-menu{display:block;margin-left:auto;flex:none}
  .m-menu>summary{width:38px;height:38px;border-color:transparent;background:none}
  .m-menu .p-menu{min-width:240px}
  .m-menu .p-menu a,.m-menu .p-menu button{display:flex;align-items:center;gap:12px}
  .m-menu .p-menu .ico-svg{width:1.25em;height:1.25em;flex:none}
  .m-menu .p-menu hr{margin:6px 8px;border:0;border-top:1px solid var(--line)}
}

/* ================= Login page ================= */
body:has(.auth-page) .solo-brand,body:has(.auth-page) .layout>.col>.flash{display:none}
body:has(.auth-page) .solo-layout{display:block;max-width:none;margin:0}
body:has(.auth-page) .solo-layout .col{width:auto;max-width:none;min-height:100vh;border:0}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:32px 24px;background:
  linear-gradient(160deg,transparent 0 62%,rgba(255,255,255,.14) 62% 100%),linear-gradient(135deg,var(--brand-dark),var(--brand) 60%,color-mix(in srgb,var(--brand) 55%,#fff))}
.auth-card{display:grid;grid-template-columns:1fr 1fr;width:min(1040px,100%);min-height:600px;border-radius:28px;overflow:hidden;background:var(--bg);box-shadow:0 24px 70px rgba(0,30,70,.28)}
.auth-main{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 56px}
.auth-main>*{width:100%;max-width:380px}
.auth-logo{display:grid;place-items:center;width:96px;height:96px;margin:0 auto 8px}
.auth-logo .logo-svg{width:96px;height:96px}
.auth-main h1{margin:10px 0 4px;text-align:center;font-size:2rem;letter-spacing:-.02em}
.auth-sub{margin:0 0 22px;text-align:center;color:var(--muted)}
.auth-flash{margin:0 0 14px;padding:11px 14px;border-radius:14px;background:var(--soft);border-left:4px solid var(--danger);font-size:.92rem}
.auth-form{margin:0}
.fl{position:relative;margin:0 0 20px}
.fl input{width:100%;height:54px;margin:0;padding:0 48px 0 48px;border:1.5px solid color-mix(in srgb,var(--brand) 50%,var(--line));border-radius:999px;background:var(--bg);font-size:1rem;color:var(--text);transition:border-color .15s,box-shadow .15s}
.fl input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--tint)}
.fl label{position:absolute;left:40px;top:-9px;padding:0 8px;background:var(--bg);color:var(--muted);font-size:.78rem;font-weight:600;pointer-events:none;transition:color .15s}
.fl input:focus+label{color:var(--brand)}
.fl-ico{position:absolute;left:18px;top:50%;transform:translateY(-50%);display:grid;color:var(--muted);pointer-events:none}.fl-ico .ico-svg{width:19px;height:19px}
.fl input:focus~.fl-ico{color:var(--brand)}
.fl-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.fl-eye:hover{background:var(--tint);color:var(--brand)}.fl-eye .ico-svg{width:20px;height:20px}.fl-eye[aria-pressed="true"]{color:var(--brand)}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-4px 4px 22px;font-size:.9rem}
.auth-check{display:inline-flex;align-items:center;gap:9px;margin:0;color:var(--text);cursor:pointer}
.auth-check input{position:absolute;width:1px;height:1px;opacity:0}
.auth-check .box{display:grid;place-items:center;width:22px;height:22px;border:1.5px solid color-mix(in srgb,var(--brand) 55%,var(--line));border-radius:50%;color:transparent;transition:background-color .15s,color .15s}
.auth-check .box .ico-svg{width:14px;height:14px;stroke-width:3}
.auth-check input:checked+.box{background:var(--solid);border-color:var(--brand);color:#fff}
.auth-check input:focus-visible+.box{box-shadow:0 0 0 4px var(--tint)}
.auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:56px;border:0;border-radius:999px;background:linear-gradient(100deg,var(--brand-dark),var(--brand) 55%,color-mix(in srgb,var(--brand) 70%,#fff));color:#fff;font:inherit;font-size:1.1rem;font-weight:700;letter-spacing:.01em;cursor:pointer;box-shadow:0 10px 24px color-mix(in srgb,var(--brand) 38%,transparent);transition:transform .12s,box-shadow .15s,filter .15s}
.auth-btn:hover{filter:brightness(1.05);box-shadow:0 12px 28px color-mix(in srgb,var(--brand) 46%,transparent)}.auth-btn:active{transform:scale(.985)}
.auth-btn .ico-svg{width:20px;height:20px;stroke:#fff}
.auth-btn:focus-visible{outline:3px solid var(--text);outline-offset:3px}
.auth-alt{margin:22px 0 0;text-align:center;color:var(--muted);font-size:.93rem}.auth-alt a{font-weight:700}
.auth-side{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:48px 40px;color:#fff;background:radial-gradient(90% 70% at 85% 0%,rgba(255,255,255,.25),transparent 60%),linear-gradient(150deg,var(--brand),var(--brand-dark))}
.auth-side h2{max-width:380px;margin:0;text-align:center;font-size:1.6rem;line-height:1.25;letter-spacing:-.01em}
.auth-art{width:100%;max-width:400px;height:auto;margin-top:8px;filter:drop-shadow(0 18px 24px rgba(0,25,60,.25))}
@media (max-width:900px){
  .auth-page{padding:0;background:var(--bg);place-items:stretch}
  .auth-card{display:block;width:100%;min-height:100vh;border-radius:0;box-shadow:none}
  .auth-side{display:none}
  .auth-main{justify-content:flex-start;min-height:100vh;padding:56px 28px 32px}
  .auth-logo{margin-bottom:14px}
}
@media (max-width:420px){.auth-main h1{font-size:1.8rem}}
@media (prefers-reduced-motion:reduce){.fl input,.auth-btn{transition:none}}
/* sign-up extras */
.fl-dob{border:1.5px solid color-mix(in srgb,var(--brand) 50%,var(--line));border-radius:999px;padding:0 10px 0 44px;height:54px;display:flex;align-items:center}
.fl-dob:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--tint)}
.fl-dob .dob{display:flex;gap:6px;width:100%}
.fl-dob select{flex:1;min-width:0;height:44px;margin:0;padding:0 6px;border:0;background:transparent;color:var(--text);font:inherit;font-size:.95rem;outline:none;cursor:pointer}
.fl-dob #dob-label{position:absolute;left:40px;top:-9px;padding:0 8px;background:var(--bg);color:var(--muted);font-size:.78rem;font-weight:600;pointer-events:none}
.fl-dob:focus-within #dob-label{color:var(--brand)}
.auth-note{margin:-8px 8px 18px;color:var(--muted);font-size:.8rem;line-height:1.4}.auth-note.center{margin:16px 0 0;text-align:center}
.auth-confirm{margin:0 0 18px;padding:14px;border-radius:18px;background:var(--soft);border:1px solid var(--line)}.auth-confirm p{margin:0 0 10px}.auth-confirm .auth-note{margin:10px 0 0}
.auth-btn.small{height:44px;font-size:.95rem}
@media (max-width:900px){.auth-main{padding-top:36px}}

/* Touch feel: no coloured tap flash, no hover tint that sticks after a tap; a brief neutral press state instead. */
*,*::before,*::after{-webkit-tap-highlight-color:transparent}
a,button,summary,label,select,[role="button"],[data-repost-menu],[data-post-menu]{touch-action:manipulation}
@media (hover:none){
  .post:hover,.quote:hover,.trend:hover,.notif:hover,.conv:hover,.n-card:hover,.tabs a:hover,a.set-row.link:hover,.nav-item:hover,.brand:hover,.more:hover,.back:hover,.topbar-btn:hover,.n-chips a:hover,.tool:hover,a.act:hover,.act .link:hover,.side-user:hover,.p-round:hover,.fl-eye:hover,.sheet-btn:hover,.menu-pop button:hover,.menu-pop a:hover,.p-menu button:hover,.p-menu a:hover,.user-menu summary:hover{background:transparent;box-shadow:none}
  .post:active,.quote:active,.trend:active,.notif:active,.conv:active,.tabs a:active,a.set-row.link:active{background:var(--hover)}
  .focal .post:active{background:none}
  .nav-item:active,.back:active,.topbar-btn:active,a.act:active,.tool:active,.post-more:active{background:var(--tint)}
  .p-menu button:active,.p-menu a:active,.menu-pop button:active,.menu-pop a:active,.sheet-btn:active{background:var(--hover)}
}

/* Reply composer: the post above, a connecting line, then your avatar + field; toolbar stays above the keyboard. */
.reply-compose{display:block;padding:0;border-bottom:0}
.rc-ctx .tseg.down::after{bottom:-4px}.rc-ctx{margin-bottom:0}
.rc-ctx .post{pointer-events:none}.rc-ctx .actions,.rc-ctx .post-more,.rc-ctx .dotsep{display:none}
.rc-row{display:flex;gap:var(--s3);padding:var(--s1) var(--gutter) 96px}
.rc-to{padding:2px 0 0;color:var(--muted);font-size:var(--fs-meta)}.rc-to a{color:var(--brand);font-weight:600}
.reply-compose textarea{width:100%;min-height:96px}
.rc-bar{position:sticky;bottom:0;z-index:5;padding:var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-top:1px solid var(--line)}
.rc-bar .counter{margin-left:auto}.rc-bar .btn:disabled{opacity:.5;cursor:default}
@media (max-width:700px){.rc-bar{position:fixed;left:0;right:0;bottom:var(--kb,0px);padding-bottom:max(var(--s2),calc(env(safe-area-inset-bottom) - var(--kb,0px)))}}
body:has(.reply-compose) .tabbar,body:has(.reply-compose) .fab{display:none}
.reply-compose textarea,.reply-compose textarea:focus{outline:none;border:0;box-shadow:none;margin-top:6px;padding:6px 0;font-size:var(--fs-lg);line-height:1.45;background:transparent}

/* ===== Typography system: Inter only (bundled) =====
   700 display names + section headers | 600 buttons + navigation | 500 counts + secondary emphasis | 400 post text, bios, usernames, timestamps.
   Hierarchy comes from weight, colour and spacing. Sizes: 13 / 14 / 15 / 16 / 18 / 20 (the --fs-* tokens). */
:root{--w-name:700;--w-head:700;--w-ui:600;--w-mid:500;--w-text:400}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--font);font-weight:var(--w-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"kern","calt"}
button,input,select,textarea,summary,optgroup{font-family:inherit}
h1,h2,h3,h4,.topbar h1,.side-card h3,.sheet h2,.pm-card h2,.auth-main h1,.auth-side h2,.replies-h,.n-h,.doc h2{font-weight:var(--w-head);line-height:1.2;letter-spacing:-.015em}
.topbar h1{font-size:1.25rem}
.name,.p-name,.q-head b,.who b,.conv b,.n-text b,.rline b,.p-stats b{font-weight:var(--w-name);letter-spacing:-.01em}
.set-row b,.set-row strong{font-weight:var(--w-ui)}
.meta,.muted,.set-desc,.set-note,.q-head span,.who span,.p-handle,.p-facts,.n-text{font-weight:var(--w-text)}
.post p,.quote p,.embed p,.p-bio,.msg p{font-weight:var(--w-text);line-height:1.45}
.nav-item,.logout .nav-item,.tabbar a,.tab-label{font-weight:var(--w-ui)}.nav-item.active{font-weight:var(--w-head)}
.tabs a,.n-chips a{font-weight:var(--w-mid)}.tabs .on{font-weight:var(--w-ui)}
.btn,.post-btn,.sheet-btn,.auth-btn,.pill-btn,.rp-item,.poll-opt,.p-menu button,.p-menu a,.menu-pop button,.menu-pop a{font-weight:var(--w-ui)}
.act .link,a.act,.actions,.badge,.n-count,.counter{font-weight:var(--w-mid);font-variant-numeric:tabular-nums}
.act span{font-variant-numeric:tabular-nums}
.compose textarea,.reply-bar textarea,.composer textarea,input,select,textarea{font-weight:var(--w-text)}

/* Profile numbers are links; Followers / Following lists; Posts page */
.p-stats a{color:var(--muted);font-size:.95rem}.p-stats a b{color:var(--text);font-size:1rem;margin-right:2px}.p-stats a:hover{text-decoration:underline;text-underline-offset:3px}
.conn-tabs{position:sticky;top:57px;z-index:4;background:var(--bg)}
.conn-count{margin:0;padding:10px 16px 6px}.conn-count b{color:var(--text)}
.conn-head{padding:12px 16px 10px;border-bottom:1px solid var(--line)}
.empty{padding:40px 24px;text-align:center}.empty b{display:block;font-size:1.2rem;font-weight:700}.empty p{margin:8px 0 0}
.pr{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);cursor:pointer}
.pr .avatar{flex:none}.pr-body{flex:1;min-width:0}
.pr-top{display:flex;align-items:center;gap:10px}
.pr-id{flex:1;min-width:0;display:flex;flex-direction:column;color:var(--text);line-height:1.25}.pr-id:hover{text-decoration:none}
.pr-name{display:flex;align-items:center;gap:4px;min-width:0}.pr-name .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-lock{display:inline-flex;color:var(--muted)}.pr-lock .ico-svg{width:1em;height:1em}
.pr-handle{display:flex;align-items:center;gap:8px;min-width:0}.pr-handle .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-follow{margin:0;flex:none}.pr-btn{height:34px;padding:0 16px;font-size:.9rem}
.pr-btn.p-following:hover{content:none}
.pr-bio{margin:4px 0 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pr:hover{background:var(--hover)}
@media (hover:none){.pr:hover{background:transparent}.pr:active{background:var(--hover)}}

/* ===== Yout shell v2: splash, top-bar avatar, centered "+" tab ===== */
.splash,.top-me,.tab-plus{display:none}
@media (max-width:700px){
  .splash{display:grid;position:fixed;inset:0;z-index:100;place-items:center;background:var(--bg);color:var(--brand);animation:splash-out .45s ease 1.25s forwards}
  .splash-in{display:flex;flex-direction:column;align-items:center;gap:10px;animation:splash-in .6s cubic-bezier(.2,.8,.2,1) both}
  .splash .logo-svg{width:96px;height:96px}
  .splash-word{font-size:2rem;font-weight:800;letter-spacing:-.03em}
  .splash-tag{font-size:.9rem;font-weight:500;color:var(--muted)}
  @keyframes splash-in{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
  @keyframes splash-out{to{opacity:0;visibility:hidden}}
  .top-me{display:grid;flex:none;border-radius:50%}
  .avatar.sm{width:32px;height:32px;font-size:.85rem}
  .tabbar a.tab-plus{display:flex;flex:none;align-items:center;justify-content:center;width:64px;padding:0}
  .tab-plus::after{display:none}
  .tab-plus span{display:grid;place-items:center;width:46px;height:46px;margin-top:-14px;border-radius:50%;background:var(--solid);color:var(--on-solid);box-shadow:0 4px 12px color-mix(in srgb,var(--brand) 45%,transparent)}
  .tab-plus .ico-svg{stroke:#fff;stroke-width:2.6}
  .tab-plus:active span{transform:scale(.94)}
  .fab{display:none}
}
@media (prefers-reduced-motion:reduce){.splash,.splash-in{animation-duration:.01s;animation-delay:0s}}

.p-tabs a{flex:1;text-align:center;padding-left:6px;padding-right:6px;font-weight:var(--w-mid);color:var(--muted)}
.p-tabs a.on{color:var(--text);font-weight:var(--w-ui)}
.p-tabs a:not(.on)::after{display:none}
.p-tabs a::after{left:50%;right:auto;width:28px;transform:translateX(-50%)}
.p-tabs a:hover{background:var(--hover)}

.n-wrap{position:relative}.n-card.has-act{padding-bottom:58px}
.n-act{position:absolute;right:16px;bottom:12px;margin:0}.n-act .pr-btn{min-height:34px;padding:0 16px;font-size:.88rem}

.set-me{display:flex;align-items:center;gap:14px;margin:12px 16px 4px;padding:14px 16px;border:1px solid var(--line);border-radius:22px;color:inherit}
.set-me:hover{text-decoration:none;background:var(--hover)}.set-me-t{display:flex;flex-direction:column;flex:1;min-width:0}.set-me-t b{font-weight:var(--w-name)}
.set-logout{margin:8px 16px 110px}.set-logout .btn{width:100%;display:flex;justify-content:center;gap:8px}

/* ===== Stories ===== */
.stories{display:flex;gap:14px;padding:12px 16px 10px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.stories::-webkit-scrollbar{display:none}
.st-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:68px}
.st-ring{display:grid;place-items:center;width:68px;height:68px;padding:3px;border:0;border-radius:50%;cursor:pointer;background:linear-gradient(135deg,#5ec3ff,var(--brand) 55%,#0b5fc4);-webkit-tap-highlight-color:transparent}
.st-ring.seen{background:var(--line)}
.st-ring.none{background:var(--line);padding:2px}
.st-ring:hover{text-decoration:none}
.st-ring .avatar{width:100%;height:100%;border:3px solid var(--bg);font-size:1.2rem}
.st-ring.none .avatar{border-width:2px}
.st-plus{position:absolute;right:-1px;top:44px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--solid);color:#fff;border:2px solid var(--bg)}
.st-plus .ico-svg{width:14px;height:14px;stroke:#fff;stroke-width:3}.st-plus:hover{text-decoration:none}
.st-name{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-weight:var(--w-mid);color:var(--text)}

.sv-lock,.sv-lock body{overflow:hidden}
/* Story viewer (Instagram-style): media card with progress + header on top, reply bar underneath */
.sv{position:fixed;inset:0;z-index:300;display:grid;place-items:center;background:#000;color:#fff;touch-action:manipulation}
.sv[hidden]{display:none}
.sv-card{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-width:480px;background:#000;overflow:hidden;outline:none}
@media (min-width:700px){.sv-card{height:min(94vh,860px);border-radius:14px}}
.sv-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:0 0 10px 10px;background:#000;touch-action:none;user-select:none;-webkit-user-select:none}
@media (min-width:700px){.sv-stage{border-radius:14px 14px 10px 10px}}
.sv-stage::before{content:"";position:absolute;left:0;right:0;top:0;height:110px;z-index:3;pointer-events:none;background:linear-gradient(rgba(0,0,0,.5),transparent)}
.sv-bars{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;gap:4px;padding:8px 8px 0;padding-top:calc(8px + env(safe-area-inset-top))}
.sv-bar{flex:1;height:2.5px;border-radius:3px;background:rgba(255,255,255,.38);overflow:hidden}
.sv-bar i{display:block;height:100%;background:#fff;transform:scaleX(0);transform-origin:left}.sv-bar.done i{transform:scaleX(1)}
.sv-top{position:absolute;top:calc(16px + env(safe-area-inset-top));left:0;right:0;z-index:5;display:flex;align-items:center;gap:8px;padding:4px 6px 4px 12px}
.sv-who{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}.sv-who:hover{text-decoration:none}
.sv-who b{font-weight:var(--w-name);font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sv-who span{flex:none;opacity:.75;font-size:.9rem;font-weight:var(--w-ui)}
.sv-av{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--solid);color:#fff;font-weight:700;object-fit:cover}
.sv-btn{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.sv-btn svg{display:block}.sv-btn:focus-visible,.sv-ic:focus-visible{outline:2px solid #fff;outline-offset:1px}
.sv-card.own .sv-top .sv-btn{background:rgba(32,33,36,.6);filter:none}
.sv-body{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}
.sv-blur{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(28px) brightness(.55);pointer-events:none}
.sv-media{position:relative;width:100%;height:100%;object-fit:contain;background:transparent;pointer-events:none;-webkit-user-drag:none}
.sv-media.fill{object-fit:cover}
.sv-cap{position:absolute;left:0;right:0;bottom:18px;z-index:2;margin:0;padding:0 18px;text-align:center;font-size:1.02rem;line-height:1.35;text-shadow:0 1px 4px rgba(0,0,0,.75);pointer-events:none}
.sv-text{display:grid;place-items:center;width:100%;height:100%;padding:80px 26px;text-align:center;color:#fff}
.sv-text p{margin:0;font-size:1.7rem;font-weight:var(--w-head);line-height:1.25;overflow-wrap:anywhere}
.sv-ovs{position:absolute;inset:0;z-index:3;pointer-events:none}
.sv-ov{position:absolute;transform:translate(-50%,-50%);white-space:nowrap}
.sv-mention{padding:6px 12px;border-radius:10px;background:rgba(255,255,255,.94);color:#111;font-weight:var(--w-name);font-size:1rem;pointer-events:auto;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.sv-mention:hover{text-decoration:none}
.sv-sticker{font-size:3.2rem;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.3))}
.sv-tap{position:absolute;top:64px;bottom:0;z-index:2}.sv-tap.prev{left:0;width:30%}.sv-tap.next{right:0;width:70%}
.sv-load{position:absolute;inset:0;z-index:4;display:grid;place-items:center;align-content:center;gap:14px;text-align:center;pointer-events:none}
.sv-load[hidden]{display:none}.sv-load.bad{pointer-events:auto;background:rgba(0,0,0,.55)}
.sv-card .spin,.sv .sv-load .spin{width:30px;height:30px;border-width:3px;border-color:rgba(255,255,255,.35);border-top-color:#fff}
.sv-err{display:grid;place-items:center;align-content:center;gap:16px;width:100%;max-width:480px;height:100%;padding:24px;text-align:center}
.sv-err-acts{display:flex;gap:10px;justify-content:center}.sv-err .btn.ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.sv.held .sv-bars,.sv.held .sv-top,.sv.held .sv-foot,.sv.held .sv-stage::before{opacity:0;transition:opacity .2s}
/* bottom bar */
.sv-foot{position:relative;z-index:6;display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 12px calc(12px + env(safe-area-inset-bottom)) 14px;background:#000;transition:transform .18s ease}
.sv.typing .sv-foot{transform:translateY(calc(-1 * var(--kb,0px)))}
.sv-form{display:flex;align-items:flex-end;gap:2px;flex:1;min-width:0;min-height:46px;padding:4px 3px 4px 14px;border-radius:23px;border:1.5px solid rgba(255,255,255,.55);border-radius:999px}
.sv-form:focus-within{border-color:color-mix(in srgb,var(--brand) 75%,#fff)}.sv-form.sending{opacity:.6}
/* "+" menu (Photos, Camera, Files, GIFs) and the mic inside the box */
.sv-att{position:relative;flex:none}
.sv-plus{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1.5px solid rgba(255,255,255,.55);border-radius:50%;background:transparent;color:#fff;cursor:pointer;transition:transform .15s,background-color .15s}
.sv-plus[aria-expanded="true"]{transform:rotate(45deg);background:rgba(255,255,255,.12)}.sv-plus.busy{opacity:.45;pointer-events:none}.sv-plus svg{display:block}
.sv-amenu{position:absolute;left:0;bottom:calc(100% + 12px);z-index:12;min-width:210px;padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);animation:sv-pick .16s ease-out;transform-origin:10% 100%}
.sv-amenu[hidden]{display:none}
.sv-ai{display:flex;align-items:center;gap:16px;margin:0;padding:8px 14px 8px 8px;border-radius:14px;color:var(--text);cursor:pointer;font-size:1.08rem}
.sv-ai:hover,.sv-ai:focus-visible{background:var(--hover);outline:none}.sv-ai b{font-weight:var(--w-name)}
.sv-aic{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:var(--soft);color:var(--text)}.sv-aic svg{display:block}
.sv.attaching .sv-stage::after{content:"";position:absolute;inset:0;z-index:6;background:rgba(0,0,0,.35)}
.sv-mic{display:grid;place-items:center;flex:none;width:34px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.sv-mic svg{display:block}.sv-mic:hover{background:rgba(255,255,255,.12)}
.sv-lemo{font-size:1.65rem;line-height:1}
.sv-rxs{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 14px}.sv-rxs span{padding:5px 10px;border-radius:999px;background:var(--soft);font-size:.95rem}.sv-rxs b{font-weight:var(--w-name)}
.sv-foot .vn-rec{border-radius:0;background:#000;color:#fff;padding-left:12px;padding-right:12px}
.sv-foot .vn-rec .vn-cancel{color:#fff}
.sv-cam{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--solid);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sv-cam svg{display:block;width:20px;height:20px}.sv-cam.busy{opacity:.5;pointer-events:none}.sv-cam:focus-within{outline:2px solid #fff;outline-offset:2px}
.sv-input{flex:1;min-width:0;height:24px;max-height:120px;margin:0;padding:0 0 0 2px;border:0;background:transparent;color:#fff;font:inherit;font-size:1.06rem;line-height:24px;outline:none;resize:none;overflow-y:auto;overscroll-behavior:contain;align-self:center}
.sv-input::placeholder{color:#fff;opacity:1}.sv-input:focus,.sv-input:focus-visible{outline:none;box-shadow:none}
.sv-send{display:none;flex:none;padding:8px 12px;border:0;background:transparent;color:#fff;font:inherit;font-weight:var(--w-name);cursor:pointer;opacity:.45}
.sv-form.has-text .sv-send{display:block;opacity:1;color:color-mix(in srgb,var(--brand) 70%,#fff)}.sv-form.has-text .sv-mic{display:none}
.sv.typing .sv-foot .sv-ic{display:none}
.sv-ic{position:relative;display:grid;place-items:center;flex:none;width:40px;height:44px;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.sv-ic svg{display:block}
.sv-cn{position:absolute;top:2px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--solid);color:#fff;font-size:.68rem;font-weight:700;line-height:18px;text-align:center}
.sv-like.on svg path{fill:var(--like);stroke:var(--like)}
@keyframes sv-pop{40%{transform:scale(1.3)}100%{transform:scale(1)}}
.sv-note{flex:1;margin:0;color:rgba(255,255,255,.8);font-size:.9rem}
.sv-views{display:inline-flex;align-items:center;gap:10px;padding:6px 8px 6px 2px;border:0;background:transparent;color:#fff;font:inherit;font-weight:var(--w-name);font-size:1rem;cursor:pointer}
.sv-views svg{display:block}.sv-card.own .sv-foot .sv-cmt{margin-left:auto}
.sv-faces{display:flex}.sv-face{display:grid;place-items:center;width:28px;height:28px;margin-left:-8px;border:2px solid #000;border-radius:50%;background:var(--solid);color:#fff;font-size:.75rem;font-weight:700;object-fit:cover}
.sv-face:first-child{margin-left:0}
/* press and hold the heart: reaction picker */
.sv-picker{position:absolute;right:10px;bottom:calc(76px + env(safe-area-inset-bottom) + var(--kb,0px));z-index:8;display:flex;gap:2px;max-width:calc(100% - 20px);padding:6px 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-lg)}
.sv-picker[hidden]{display:none}
@keyframes sv-pick{from{opacity:0;transform:scale(.6) translateY(12px)}}
.sv.picking .sv-stage::after{content:"";position:absolute;inset:0;z-index:6;background:rgba(0,0,0,.35)}
.sv-qr{display:grid;place-items:center;width:38px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;font-size:1.75rem;line-height:1;cursor:pointer}
.sv-qr:hover,.sv-qr:focus-visible{background:var(--soft);outline:none}.sv-qr:disabled{opacity:.6}
.sv-fly{position:absolute;left:50%;bottom:180px;z-index:9;font-size:4rem;pointer-events:none;animation:sv-fly 1s ease-out forwards}
@keyframes sv-fly{0%{opacity:0;transform:translate(-50%,0) scale(.5)}20%{opacity:1;transform:translate(-50%,-30px) scale(1.25)}100%{opacity:0;transform:translate(-50%,-260px) scale(1)}}
/* bottom sheets — in the app's own colours (light or dark, following the theme) */
.sv-scrim{position:absolute;inset:0;z-index:19;background:rgba(0,0,0,.5)}.sv-scrim[hidden]{display:none}
.sv-sheet{position:absolute;left:0;right:0;bottom:var(--kb,0px);z-index:20;display:flex;flex-direction:column;max-height:calc(78% - var(--kb,0px));overflow:auto;padding:8px 16px calc(14px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);animation:sv-up .2s ease-out;outline:none;font-family:var(--font)}
.sv-sheet[hidden]{display:none}
@keyframes sv-up{from{transform:translateY(40px);opacity:.4}}
.sv-grab{display:block;flex:none;width:72px;height:22px;margin:-6px auto 4px;padding:0;border:0;background:transparent;cursor:pointer}.sv-grab::before{content:"";display:block;width:40px;height:4px;margin:0 auto;border-radius:4px;background:var(--line-strong)}
.sv-sh-t{display:block;font-size:1.05rem;font-weight:var(--w-name);text-align:center}.sv-sh-p{margin:8px 0 4px;text-align:center;color:var(--muted);font-size:.92rem}
.sv-list{display:flex;flex-direction:column;margin-top:8px;border-radius:14px;background:var(--soft);overflow:hidden}
.sv-list>a,.sv-list>button{display:block;width:100%;padding:15px 16px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);font:inherit;font-size:1rem;text-align:center;cursor:pointer}
.sv-list>:last-child{border-bottom:0}.sv-list>a:hover,.sv-list>button:hover{text-decoration:none;background:var(--hover)}
.sv-list .danger{color:var(--danger,#e0245e);font-weight:var(--w-name)}.sv-list button:disabled{opacity:.5}
.sv-cancel{margin-top:10px;padding:15px;border:0;border-radius:14px;background:var(--soft);color:var(--text);font:inherit;font-weight:var(--w-name);cursor:pointer}
.sv-find,.sv-note-in{width:100%;margin:12px 0 6px;padding:11px 16px;border:1px solid transparent;border-radius:999px;background:var(--soft);color:var(--text);font:inherit}
.sv-find:focus,.sv-note-in:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--tint)}
.sv-find::placeholder,.sv-note-in::placeholder{color:var(--muted)}
.sv-people{display:flex;flex-direction:column;min-height:90px;max-height:38vh;overflow:auto;position:relative}
.sv-sheet .spin{border-color:var(--line-strong);border-top-color:var(--brand)}
.sv-people .sv-load,.sv-cmts .sv-load{position:static;padding:20px}
.sv-person{display:flex;align-items:center;gap:12px;width:100%;padding:8px 2px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.sv-person[hidden]{display:none}
.sv-pav,.sv-cav{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--solid);color:#fff;font-weight:700;object-fit:cover}
.sv-pn{display:flex;flex-direction:column;flex:1;min-width:0}.sv-pn b,.sv-pn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-pn b{font-weight:var(--w-name)}.sv-pn span{color:var(--muted);font-size:.88rem}
.sv-tick{display:grid;place-items:center;flex:none;width:24px;height:24px;border:2px solid var(--line-strong);border-radius:50%;color:transparent}
.sv-person[aria-selected="true"] .sv-tick{border-color:var(--brand);background:var(--solid);color:#fff}.sv-tick svg{display:block}
.sv-sh-acts{display:flex;gap:8px;margin-top:8px}.sv-act{flex:1;padding:10px;border:0;border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-weight:var(--w-ui);cursor:pointer}
.sv-send-to{width:100%;min-height:46px;margin-top:4px}.sv-send-to:disabled{opacity:.45}
.sv-ph{display:flex;align-items:center;justify-content:space-between}.sv-ph .sv-btn{filter:none;color:var(--text)}
.sv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 4px;margin:10px 0 16px;padding:12px 4px;border-radius:14px;background:var(--soft);text-align:center}
.sv-stat{display:flex;flex-direction:column;gap:2px;font-size:.76rem;color:var(--muted)}.sv-stat b{color:var(--text);font-size:1.1rem;font-weight:var(--w-name)}
.sv-sub{display:block;margin-bottom:4px;font-size:.95rem}
.sv-vlist{list-style:none;margin:0;padding:0}.sv-vlist a{display:flex;align-items:center;gap:12px;padding:8px 0;color:var(--text)}.sv-vlist a:hover{text-decoration:none}
.sv-liked{flex:none;font-size:1.1rem}
/* comments sheet */
.sv-sheet.comments{height:min(72%,calc(100% - var(--kb,0px) - 40px));max-height:none;overflow:hidden;padding-left:0;padding-right:0;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
.sv-sheet.comments .sv-ctitle{padding:0 16px 10px;border-bottom:1px solid var(--line)}
.sv-cmts{flex:1;min-height:0;overflow:auto;padding:4px 16px;overscroll-behavior:contain}
.sv-cempty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;min-height:150px;text-align:center}
.sv-cempty b{font-size:1.45rem;font-weight:var(--w-head)}.sv-cempty span{color:var(--muted)}
.sv-clist{list-style:none;margin:0;padding:6px 0}
.sv-c{display:flex;align-items:flex-start;gap:10px;padding:8px 0}
.sv-c .sv-cav{width:36px;height:36px;font-size:.85rem}
.sv-cb{flex:1;min-width:0}.sv-cb p{margin:2px 0 0;font-size:.97rem;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}
.sv-ch{display:flex;align-items:center;gap:6px;font-size:.88rem}.sv-ch a{color:var(--text)}.sv-ch a:hover{text-decoration:none}.sv-ch b{font-weight:var(--w-name)}
.sv-ctag{padding:1px 7px;border-radius:999px;background:var(--tint);color:var(--brand);font-size:.7rem;font-weight:var(--w-ui)}
.sv-ct{color:var(--muted);font-size:.82rem}
.sv-at{color:var(--brand);font-weight:var(--w-ui)}
.sv-cdel{flex:none;padding:4px 2px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;cursor:pointer}.sv-cdel.arm{color:var(--danger,#e0245e);font-weight:var(--w-name)}
.sv-cemo{display:flex;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--line)}
.sv-cemo button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;font-size:1.65rem;line-height:1;cursor:pointer}
.sv-cemo button:hover{background:var(--soft)}
.sv-cform{display:flex;align-items:flex-end;gap:10px;padding:6px 12px 4px}
.sv-cform .sv-cav{width:40px;height:40px}
.sv-cinput{flex:1;min-width:0;height:44px;max-height:120px;margin:0;padding:11px 14px;line-height:1.35;resize:none;overflow-y:auto;overscroll-behavior:contain;border:1px solid transparent;border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-size:.95rem;text-overflow:ellipsis}
.sv-cinput:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--tint)}.sv-cinput::placeholder{color:var(--muted)}
.sv-cpost{flex:none;padding:8px 4px;border:0;background:transparent;color:var(--brand);font:inherit;font-weight:var(--w-name);cursor:pointer}.sv-cpost:disabled{opacity:.4;cursor:default}
.sv-x{display:none}
@media (min-width:700px){.sv-x{position:fixed;top:16px;right:18px;z-index:30;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}}
.sv-clip{position:fixed;left:-9999px;top:0}
.sv-bg0{background:linear-gradient(160deg,#1d8fe8,#0b3d91)}.sv-bg1{background:linear-gradient(160deg,#6a5cff,#2a1b8f)}.sv-bg2{background:linear-gradient(160deg,#00b4a6,#055a73)}
.sv-bg3{background:linear-gradient(160deg,#ff7a59,#b3245e)}.sv-bg4{background:linear-gradient(160deg,#2b2f3a,#0d0f14)}.sv-bg5{background:linear-gradient(160deg,#f6b73c,#c2561b)}
@media (prefers-reduced-motion:reduce){.sv-sheet,.sv-fly,.sv-like.pop svg{animation:none}}
.st-item.muted{opacity:.5}
/* chat: a reply, reaction, share or mention of a story */
.msg-story{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:2px 0 6px}
.ms-label{font-size:.8rem;font-weight:var(--w-ui);color:var(--muted)}.msg.mine .ms-label{color:rgba(255,255,255,.85)}
.ms-open{display:block;padding:0;border:0;border-radius:12px;background:transparent;cursor:pointer}
.ms-thumb{display:block;width:96px;height:150px;border-radius:12px;object-fit:cover}.ms-thumb:not(.ms-text){background:#000}
.ms-text{display:grid;place-items:center;padding:8px;color:#fff;font-size:.78rem;font-weight:var(--w-head);text-align:center;line-height:1.25;overflow:hidden;overflow-wrap:anywhere}
.ms-gone{padding:8px 12px;border:1px dashed currentColor;border-radius:12px;font-size:.85rem;opacity:.7}
.msg .ms-react{font-size:2.4rem;line-height:1.1}

/* New story page */
.sn{min-height:100vh;min-height:100dvh}
.sn-edit{display:flex;flex-direction:column;gap:14px;padding:0 16px 40px}
.sn-modes{display:flex;gap:8px}
.sn-modes button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 8px;border:0;border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-weight:var(--w-mid);cursor:pointer}
.sn-modes button.on{background:var(--solid);color:#fff;font-weight:var(--w-ui)}.sn-modes .ico-svg{width:1.2em;height:1.2em}
.sn-stage{position:relative;display:flex;flex-direction:column;justify-content:center;aspect-ratio:9/13;max-height:62vh;width:100%;max-width:380px;margin:0 auto;border-radius:22px;overflow:hidden;color:#fff}
.sn.is-text .sn-media{display:none}
.sn:not(.is-text) .sn-stage{background:var(--soft);color:var(--text)}
.sn-media{position:absolute;inset:0;display:grid;place-items:center}
.sn-pick{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px;text-align:center;cursor:pointer;color:var(--brand)}
.sn-pick .ico-svg{width:2.4em;height:2.4em}.sn-pick b{color:var(--text)}.sn-pick input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.sn-preview{position:absolute;inset:0;background:#000}.sn-preview img,.sn-preview video{width:100%;height:100%;object-fit:contain}
.sn-clear{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;cursor:pointer}
.sn-text{position:relative;z-index:2;width:100%;border:0;background:transparent;color:#fff;text-align:center;font:inherit;font-size:1.5rem;font-weight:var(--w-head);resize:none;outline:none;padding:20px;margin:0}
.sn:not(.is-text) .sn-text{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:34px 16px 14px;font-size:1rem;font-weight:var(--w-mid);background:linear-gradient(transparent,rgba(0,0,0,.6));min-height:0;height:auto;border-radius:0}
.sn:not(.is-text):not(.has-pv) .sn-text{display:none}
.sn-pick[hidden]{display:none}
.sn-text::placeholder{color:rgba(255,255,255,.7)}
.sn-bgs{display:flex;justify-content:center;gap:12px}.sn-bgs[hidden]{display:none}
.sn-bg{position:relative;width:34px;height:34px;border-radius:50%;cursor:pointer;border:2px solid var(--bg);box-shadow:0 0 0 1px var(--line)}
.sn-bg input{position:absolute;inset:0;opacity:0;cursor:pointer}.sn-bg:has(input:checked){box-shadow:0 0 0 3px var(--brand)}
.sn-note{margin:0;text-align:center;font-size:.85rem}.sn-error{margin:0;text-align:center;color:#d22;font-weight:var(--w-mid)}.sn-error[hidden]{display:none}
.sn-share{position:relative;width:100%;max-width:380px;margin:0 auto;min-height:48px}
.sn-share:disabled{opacity:.5}
.sn-ovs{position:absolute;inset:0;z-index:4;pointer-events:none}
.sn-ov{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;pointer-events:auto;touch-action:none;cursor:grab;user-select:none}
.sn-ov.dragging{cursor:grabbing;outline:2px dashed rgba(255,255,255,.8);outline-offset:3px}
.sn-ov.sv-sticker{font-size:2.8rem}
.sn-ov-x{position:absolute;top:-10px;right:-12px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#111;color:#fff;font-size:.7rem;line-height:1;cursor:pointer}
.sn-tools{display:flex;justify-content:center;gap:8px}
.sn-tool{padding:9px 16px;border:0;border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-weight:var(--w-ui);cursor:pointer}
.sn-tool.on{background:var(--solid);color:#fff}
.sn-mention[hidden],.sn-stickers[hidden],.sn-hint[hidden],.sn-retry[hidden]{display:none}
.sn-mention{width:100%;max-width:380px;margin:0 auto}.sn-mention input{width:100%;margin:0}
.sn-sugs{display:flex;flex-direction:column;margin-top:6px}.sn-sugs button{padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.sn-sugs button:hover{background:var(--soft)}.sn-sugs span{color:var(--muted)}.sn-sugs p{margin:6px 12px;font-size:.88rem}
.sn-stickers{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;width:100%;max-width:380px;margin:0 auto}
.sn-stickers button{padding:6px 0;border:0;border-radius:10px;background:transparent;font-size:1.7rem;cursor:pointer}.sn-stickers button:hover{background:var(--soft)}
.sn-hint{margin:0;text-align:center;font-size:.82rem}.sn-retry{width:100%;max-width:380px;margin:0 auto}
/* Story archive */
.sa{padding:12px 14px 110px}.sa-note{margin:0 2px 12px;font-size:.88rem}
.sa-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;list-style:none;margin:0;padding:0}
.sa-item{display:flex;flex-direction:column;gap:6px;min-width:0}
.sa-open{position:relative;display:block;padding:0;border:0;border-radius:10px;background:#000;overflow:hidden;cursor:pointer;aspect-ratio:9/16}
.sa-thumb{display:block;width:100%;height:100%;object-fit:cover}
.sa-text{display:grid;place-items:center;padding:8px;color:#fff;font-size:.78rem;font-weight:var(--w-head);text-align:center;overflow:hidden;overflow-wrap:anywhere}
.sa-tag{position:absolute;top:6px;left:6px;padding:2px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:.68rem;font-weight:var(--w-ui)}.sa-tag.live{background:var(--solid)}
.sa-date{position:absolute;left:6px;bottom:6px;color:#fff;font-size:.72rem;font-weight:var(--w-ui);text-shadow:0 1px 3px rgba(0,0,0,.8)}
.sa-meta{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--muted)}.sa-del{margin:0 0 0 auto}.sa-del .link{padding:0;font-size:.78rem;color:#d33}

body:has(.sn) .tabbar,body:has(.sn) .fab{display:none}

/* Create story: gallery picker (step 1) */
.sn{--sc-page:var(--soft);--sc-tile:var(--surface);background:var(--sc-page)}
:root[data-theme="dark"] .sn{--sc-page:var(--bg);--sc-tile:var(--soft)}
@media (prefers-color-scheme:dark){:root[data-theme="system"] .sn,:root:not([data-theme]) .sn{--sc-page:var(--bg);--sc-tile:var(--soft)}}
.sn [hidden]{display:none!important}
.sc-hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sc{position:relative;padding:0 0 120px}
.sc-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--sc-page)}
.sc-head h1,.sc-head h2{flex:1;margin:0;font-size:1.22rem;font-weight:var(--w-head);letter-spacing:-.01em}
.sc-round{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);cursor:pointer;text-decoration:none}
.sc-round .ico-svg{width:24px;height:24px}.sc-round:hover,.sc-round.on{background:var(--sc-tile)}.sc-ghost{visibility:hidden}
.sc-round:focus-visible,.sc-tile:focus-visible,.sc-cell:focus-visible,.sc-multi:focus-visible,.sc-filter summary:focus-visible,.sc-cam:focus-within{outline:3px solid var(--brand);outline-offset:2px}
.sc-info{margin:0 12px 12px;padding:6px 16px;border-radius:16px;background:var(--sc-tile);box-shadow:var(--shadow-sm)}
.sc-info p{display:flex;flex-direction:column;gap:2px;margin:0;padding:10px 0;border-bottom:1px solid var(--line);font-size:.9rem}.sc-info p span{color:var(--muted)}
.sc-info-link{display:flex;align-items:center;gap:12px;padding:12px 0;color:var(--text);font-weight:var(--w-ui);text-decoration:none}.sc-info-link span{flex:1}
.sc-info-link .ico-svg{width:20px;height:20px}.sc-info-link .ico-svg:last-child{width:16px;height:16px;color:var(--muted)}
.sc-tiles{display:flex;gap:10px;padding:2px 12px 14px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding:0 12px}.sc-tiles::-webkit-scrollbar{display:none}
.sc-tile{flex:0 0 31%;max-width:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:104px;padding:14px 8px;border:0;border-radius:16px;background:var(--sc-tile);color:var(--text);font:inherit;text-decoration:none;cursor:pointer;scroll-snap-align:start;box-shadow:var(--shadow-sm);transition:transform .12s}
.sc-tile:active{transform:scale(.97)}
.sc-tile b{font-size:.95rem;font-weight:var(--w-ui)}
.sc-tile-i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--brand)}.sc-tile-i .ico-svg{width:24px;height:24px}
.sc-aa{font-size:1.1rem;font-weight:var(--w-head)}
.sc-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 12px 12px}
.sc-filter{position:relative}
.sc-filter summary{display:flex;align-items:center;gap:6px;padding:6px 4px;list-style:none;font-size:1.08rem;font-weight:var(--w-head);cursor:pointer;border-radius:8px}
.sc-filter summary::-webkit-details-marker{display:none}
.sc-filter summary .ico-svg{width:16px;height:16px;transform:rotate(90deg);transition:transform .15s}.sc-filter[open] summary .ico-svg{transform:rotate(-90deg)}
.sc-filter-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:6;min-width:170px;padding:6px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow-md);border:1px solid var(--line)}
.sc-filter-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.sc-filter-menu button:hover{background:var(--hover)}.sc-filter-menu [aria-checked="true"]{color:var(--brand);font-weight:var(--w-ui)}
.sc-multi{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:0;border-radius:999px;background:var(--sc-tile);color:var(--text);font:inherit;font-size:.92rem;font-weight:var(--w-ui);cursor:pointer;box-shadow:var(--shadow-sm)}
.sc-multi .ico-svg{width:18px;height:18px}.sc-multi.on{background:var(--solid);color:var(--on-solid)}
.sc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.sc-cell{position:relative;display:block;aspect-ratio:1/1.12;padding:0;border:0;background:var(--line);overflow:hidden;cursor:pointer}
.sc-cell img,.sc-cell video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.sc-device{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--sc-tile);color:var(--brand);font:inherit}
.sc-device .ico-svg{width:30px;height:30px}.sc-device b{color:var(--text);font-size:.85rem;font-weight:var(--w-ui)}
.sc-vtag{position:absolute;right:6px;bottom:6px;color:#fff;font-size:.8rem;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.sc-tick{display:none;position:absolute;top:7px;right:7px;width:24px;height:24px;border:2px solid #fff;border-radius:50%;background:rgba(0,0,0,.25);color:#fff;font-size:.78rem;font-weight:var(--w-head);line-height:20px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.is-multi .sc-tick{display:block}.sc-cell.picked .sc-tick{background:var(--solid);border-color:#fff}.sc-cell.picked img,.sc-cell.picked video{opacity:.8}
.sc-empty{margin:16px 20px 0;text-align:center;font-size:.9rem}
.sc-more{display:flex;justify-content:center;padding:18px}.sc-more .spin,.sn-busy .spin,.sn-share .spin{display:block;width:24px;height:24px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .7s linear infinite}
.sc-next{position:fixed;left:0;right:0;bottom:calc(18px + env(safe-area-inset-bottom));z-index:7;display:flex;justify-content:center;pointer-events:none}
.sc-next .btn{pointer-events:auto;min-width:150px;min-height:48px;border-radius:999px;box-shadow:var(--shadow-md)}
.sc-cam{position:fixed;right:max(18px,calc(50% - 300px + 18px));bottom:calc(22px + env(safe-area-inset-bottom));z-index:7;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--surface);color:var(--brand);box-shadow:var(--shadow-lg);cursor:pointer}
.sc-cam .ico-svg{width:30px;height:30px}.sc-cam input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.is-multi .sc-cam{display:none}
@media (min-width:700px){.sc-cam{position:sticky;float:right;margin:-86px 18px 0 0}.sc-next{position:sticky}}
/* Create story: editor (step 2) — full screen like a phone story editor */
.sn-edit{position:fixed;inset:0;z-index:60;display:block;padding:0;background:#000;color:#fff;overflow:hidden}
@media (min-width:700px){.sn-edit{position:relative;inset:auto;z-index:auto;height:100vh;height:100dvh}}
.sn-edit .sn-stage{position:absolute;inset:0;display:block;width:auto;max-width:none;max-height:none;aspect-ratio:auto;margin:0;border-radius:0;color:#fff}
.sn:not(.is-text) .sn-edit .sn-stage{background:#000;color:#fff}
@media (min-width:700px){.sn-edit .sn-stage{border-radius:0}}
.sn-edit .sn-preview{position:absolute;inset:0;overflow:hidden;background:#000}
.sn-edit .sn-blur{position:absolute;inset:-40px;width:calc(100% + 80px);height:calc(100% + 80px);object-fit:cover;filter:blur(36px) saturate(1.15) brightness(.85);transform:scale(1.05);pointer-events:none}
.sn-edit .sn-photo,.sn-edit .sn-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.sn-edit .sn-preview img.sn-blur{object-fit:cover}
/* top bar */
.sn-top{position:absolute;top:0;left:0;right:0;z-index:8;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 10px 10px;background:linear-gradient(rgba(0,0,0,.28),transparent)}
.sn-icon{display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
.sn-icon .ico-svg{width:28px;height:28px;stroke-width:2.2}.sn-icon:hover,.sn-icon.on{background:rgba(255,255,255,.14)}
.sn-icon:focus-visible,.sn-tool:focus-visible,.sn-who:focus-visible,.sn-share:focus-visible{outline:3px solid #fff;outline-offset:2px}
.sn-count{padding:8px 16px;border-radius:999px;background:rgba(40,48,60,.72);font-size:.92rem;font-weight:var(--w-ui);backdrop-filter:blur(8px)}
.sn-more-wrap{position:relative}
.sn-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:210px;padding:6px;border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);border:1px solid var(--line)}
.sn-menu button,.sn-menu a{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.sn-menu button:hover,.sn-menu a:hover{background:var(--hover)}.sn-menu .ico-svg{width:20px;height:20px}
/* bottom area: tools, then audience + Share */
.sn-bottom{position:absolute;left:0;right:0;bottom:0;z-index:8;display:flex;flex-direction:column;gap:12px;padding:40px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.55) 30%,#000 78%)}
.sn-edit .sn-tools{display:flex;justify-content:flex-start;gap:6px;padding:0 10px;overflow-x:auto;scrollbar-width:none}.sn-edit .sn-tools::-webkit-scrollbar{display:none}
.sn-edit .sn-tool{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:76px;padding:4px 2px;border:0;border-radius:14px;background:transparent;color:#fff;font:inherit;cursor:pointer}
.sn-edit .sn-tool b{font-size:.95rem;font-weight:var(--w-mid);white-space:nowrap}
.sn-tool-i{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:rgba(58,62,70,.82);backdrop-filter:blur(8px);transition:background .15s}
.sn-tool-i .ico-svg{width:30px;height:30px;stroke-width:1.9}.sn-tool-i.sn-aa{font-size:1.45rem;font-weight:var(--w-mid);letter-spacing:-.02em}
.sn-edit .sn-tool.on{background:transparent;color:#fff}.sn-edit .sn-tool.on .sn-tool-i{background:rgba(24,119,214,.9)}@media (hover:hover){.sn-edit .sn-tool:hover .sn-tool-i{background:rgba(90,96,108,.9)}}
.is-text #sn-text-btn{display:none}
.sn-foot{display:flex;align-items:center;gap:10px;padding:4px 18px 0}
.sn-who-wrap{position:relative;margin-right:auto}
.sn-who{display:grid;place-items:center;width:58px;height:40px;padding:0;border:0;border-radius:999px;background:rgba(58,62,70,.9);color:#fff;cursor:pointer}.sn-who .ico-svg{width:22px;height:22px}
.sn-who-tip{position:absolute;left:0;bottom:calc(100% + 10px);width:240px;margin:0;padding:10px 12px;border-radius:12px;background:var(--surface);color:var(--text);font-size:.86rem;box-shadow:var(--shadow-lg)}
.sn-edit .sn-share{width:auto;min-width:150px;max-width:none;min-height:50px;margin:0;padding:0 26px;border-radius:12px;font-size:1.15rem;font-weight:var(--w-head)}
.sn-edit .sn-share:disabled{opacity:.55}
.sn-edit .sn-retry{width:auto;max-width:none;margin:0;min-height:50px;border-radius:12px;background:rgba(58,62,70,.9);color:#fff}
.sn-edit .sn-error{margin:0 18px;padding:8px 12px;border-radius:10px;background:rgba(210,34,34,.9);color:#fff;text-align:center;font-size:.9rem}
.sn-edit .sn-hint{margin:0;text-align:center;font-size:.82rem;color:rgba(255,255,255,.8)}
/* caption: hidden until you tap Text (or it has words) */
.sn:not(.is-text) .sn-edit .sn-text{position:absolute;left:0;right:0;top:auto;bottom:calc(205px + env(safe-area-inset-bottom));z-index:7;display:none;min-height:0;padding:10px 18px;background:transparent;font-size:1.25rem;font-weight:var(--w-head);text-shadow:0 1px 6px rgba(0,0,0,.7)}
.sn.cap-on:not(.is-text) .sn-edit .sn-text{display:block}
.sn.is-text .sn-edit .sn-text{position:absolute;left:0;right:0;top:50%;transform:translateY(-60%);font-size:1.6rem}
/* panels */
.sn-edit .sn-mention,.sn-edit .sn-stickers{width:auto;max-width:520px;margin:0 12px;padding:10px;border-radius:16px;background:rgba(28,32,38,.94);backdrop-filter:blur(10px)}
.sn-edit .sn-mention input{background:rgba(255,255,255,.1);color:#fff;border-color:transparent}.sn-edit .sn-mention input::placeholder{color:rgba(255,255,255,.6)}
.sn-edit .sn-sugs button{color:#fff}.sn-edit .sn-sugs button:hover{background:rgba(255,255,255,.1)}.sn-edit .sn-sugs span,.sn-edit .sn-sugs p{color:rgba(255,255,255,.7)}
.sn-edit .sn-stickers button:hover{background:rgba(255,255,255,.1)}
.sn-edit .sn-bgs{padding:0 12px}.sn-edit .sn-bg{border-color:#000;box-shadow:0 0 0 1px rgba(255,255,255,.4)}
.sn-strip{display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:2px 12px}
.sn-thumb{position:relative;flex:none;width:46px;height:62px;padding:0;border:2px solid transparent;border-radius:10px;background:#000;overflow:hidden;cursor:pointer}
.sn-thumb.on{border-color:#fff}.sn-thumb img,.sn-thumb video{width:100%;height:100%;object-fit:cover;pointer-events:none}
.sn-thumb span{position:absolute;left:3px;top:2px;color:#fff;font-size:.68rem;font-weight:var(--w-head);text-shadow:0 1px 2px rgba(0,0,0,.8)}
.sn-busy{position:absolute;inset:0;z-index:6;display:grid;place-items:center;background:rgba(0,0,0,.25)}
.sn-busy .spin{width:40px;height:40px;border-width:4px;border-color:rgba(255,255,255,.35);border-top-color:#fff}
.sn-share .spin{display:none;margin:0 auto;width:22px;height:22px;border-color:rgba(255,255,255,.4);border-top-color:#fff}
.is-busy .sn-share .spin{display:block}.is-busy .sn-share .sn-share-t{display:none}.is-busy .sn-share:disabled{opacity:1}
.is-busy .sn-tools,.is-busy .sn-strip,.is-busy .sn-bgs,.is-busy .sn-ovs,.is-busy .sn-text,.is-busy .sn-top{pointer-events:none}
body:has(.sn[data-step="edit"]){overflow:hidden}
@media (prefers-reduced-motion:reduce){.sc-tile,.sc-filter summary .ico-svg{transition:none}}

/* ===================== Home v3: header, pill tabs, stories, post cards, bottom nav, composer sheet ===================== */
:root{--navy:var(--text)}
.hb{display:none}
.home-head{position:sticky;top:var(--topbar-h);z-index:6;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px)}
.home-tabs{position:static;display:flex;flex-wrap:nowrap;gap:2px;margin:var(--s2) var(--gutter) var(--s3);padding:3px;border:0;border-radius:var(--r-pill);background:var(--soft);overflow:hidden}
.home-tabs a{flex:1;min-height:36px;display:grid;place-items:center;padding:0 6px;border-radius:var(--r-pill);background:transparent;box-shadow:none;font-size:var(--fs-body);font-weight:var(--w-mid);color:var(--muted)}
.home-tabs a:hover{background:transparent;color:var(--text)}
.home-tabs a.on,.home-tabs a.on:hover{background:var(--solid);color:var(--on-solid);font-weight:var(--w-ui);box-shadow:var(--shadow-sm)}
/* each tab is its own chip (like the Notifications filters); the blue moves to the selected one */
.home-tabs{gap:6px;padding:0;border-radius:0;background:transparent;overflow:visible}
.home-tabs a{background:var(--soft);transition:background .15s,color .15s,box-shadow .15s}
.home-tabs a:hover{background:var(--tint)}
.home-tabs a.on,.home-tabs a.on:hover{box-shadow:0 3px 10px color-mix(in srgb,var(--solid) 30%,transparent)}

/* stories: soft ring, deeper ring when there's something new */
.stories{gap:var(--s4);padding:var(--s1) var(--gutter) var(--s3);border-bottom:1px solid var(--line)}
.st-item{width:72px}
.st-ring,.st-ring.none,.st-ring.seen{width:66px;height:66px;padding:3px;background:color-mix(in srgb,var(--brand) 22%,var(--bg))}
.st-ring:not(.seen):not(.none){background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 55%,#fff),var(--brand) 55%,var(--brand-dark))}
.st-plus{right:2px;top:44px;width:24px;height:24px;background:var(--solid)}
.st-name{max-width:72px;font-size:var(--fs-sm);font-weight:var(--w-text);color:var(--text)}

/* focal post card: avatar, name over @handle, time and "..."; full-width text, media and actions.
   Home feed posts use the compact shared layout (same as Explore): name, @handle and time on one line, content beside the avatar. */
.focal article.post{display:grid;grid-template-columns:var(--av-feed) minmax(0,1fr);column-gap:var(--s3);align-items:start;padding:var(--s4) var(--gutter) var(--s1);border-bottom:1px solid var(--line)}
body:has(.home-head) article.post:hover{background:var(--hover)}
.focal article.post:has(>.avatar)>.grow{display:contents}
.focal article.post:not(:has(>.avatar))>.grow{grid-column:1/-1}
.focal article.post>.avatar{width:var(--av-feed);height:var(--av-feed);grid-column:1;grid-row:1;font-size:1.05rem}
.focal .meta{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"nm when more" "handle . .";align-items:center;column-gap:var(--s1);row-gap:0;min-height:var(--av-feed)}
.nm{grid-area:nm;display:inline-flex;align-items:center;gap:4px;min-width:0}
.nm .name{font-size:var(--fs-post);font-weight:var(--w-name);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nm .verified{width:1em;height:1em;flex:none;color:var(--brand)}
.focal .meta .handle{grid-area:handle;font-size:var(--fs-meta);font-weight:var(--w-text);margin-top:-1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focal .meta .when{grid-area:when;font-size:var(--fs-meta);white-space:nowrap}
.focal .meta .post-more{grid-area:more}
.focal .meta .sep,.focal .meta .dotsep{display:none}
.focal .meta .handle{max-width:none}
.focal article.post .sens,.focal article.post .quote,.focal article.post .poll,.focal article.post .actions{grid-column:1/-1}
.focal article.post .sens{margin-top:var(--s1)}
:is(body:has(.home-head),.focal) article.post video.media{max-height:min(75vh,600px);background:#000}
:is(body:has(.home-head),.focal) article.post .media,:is(body:has(.home-head),.focal) article.post .media-grid{width:100%;max-height:none;border:1px solid var(--line);border-radius:var(--r-lg);object-fit:cover}
:is(body:has(.home-head),.focal) article.post img.media{aspect-ratio:16/10}
.focal article.post .actions{display:flex;justify-content:space-between;align-items:center;max-width:none;margin:var(--s1) 0 0;padding:6px var(--s6) 6px 0}
.focal article.post .actions .ico-svg{width:var(--ico-md);height:var(--ico-md);stroke-width:1.8}
.focal article.post .act .link,.focal article.post a.act{font-size:var(--fs-meta);gap:6px}
.act.share{display:none}body:has(.home-head) .act.share{display:inline-flex}
.act.share .link{display:inline-flex;align-items:center;padding:6px 8px;margin:-6px -8px;border:0;background:none;border-radius:var(--r-pill);color:var(--muted);cursor:pointer}

/* focal post: larger text, actions in their own ruled row */
body .focal article.post img.media{aspect-ratio:auto;height:auto;max-height:min(80vh,720px);object-fit:contain;background:var(--soft)}
body .focal article.post .actions{margin-top:var(--s3);padding:var(--s2) var(--s2);border-top:1px solid var(--line)}

/* bottom navigation (all signed-in screens on phones) */
@media (max-width:700px){
  .topbar-home{display:none}
  .home-head{top:0}
  .hb{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--s2) + env(safe-area-inset-top)) var(--gutter) 2px}
  .hb-brand{display:flex;align-items:center;gap:8px;color:var(--navy)}.hb-brand:hover{text-decoration:none}
  .hb-brand .hb-wordmark{display:block;width:auto;height:34px}
  .hb-actions{display:flex;align-items:center;gap:4px}
  .hb-ico{position:relative;display:grid;place-items:center;width:var(--ctl);height:var(--ctl);border-radius:50%;color:var(--text)}.hb-ico:hover{text-decoration:none}.hb-ico:active{background:var(--hover)}
  .hb-ico .ico-svg{width:var(--ico-lg);height:var(--ico-lg);stroke-width:1.8}
  .hb-dot{position:absolute;top:3px;right:1px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--alert);color:#fff;font-size:.64rem;font-weight:700;line-height:1;box-shadow:0 0 0 2px var(--bg)}
  .hb-new{position:relative;margin-left:6px}
  .hb-add{list-style:none;display:grid;place-items:center;width:var(--ctl);height:var(--ctl);border-radius:50%;background:var(--solid);color:var(--on-solid);cursor:pointer;box-shadow:0 4px 12px color-mix(in srgb,var(--solid) 35%,transparent)}
  .hb-add::-webkit-details-marker{display:none}.hb-add .ico-svg{width:var(--ico);height:var(--ico);stroke:#fff;stroke-width:2.6}
  .hb-me{display:grid;place-items:center;width:var(--ctl);height:var(--ctl);border-radius:50%}.hb-me:hover{text-decoration:none}.hb-me .avatar{width:32px;height:32px;font-size:.85rem}
  .hb-new .p-menu{right:0;top:calc(100% + 8px)}.hb-new .p-menu button,.hb-new .p-menu a{display:flex;align-items:center;gap:10px}
  .hb-new .p-menu .ico-svg{width:1.2em;height:1.2em}

  .tabbar{box-sizing:border-box;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));align-items:stretch;padding-top:0;border-top:1px solid var(--line);border-radius:0;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);box-shadow:none}
  .tabbar a{justify-content:center;gap:4px;padding:6px 2px;color:var(--muted)}
  .tabbar a.on{color:var(--brand)}.tabbar a.on::after{display:none}
  .tabbar .ico-svg{width:var(--ico-lg);height:var(--ico-lg);stroke-width:1.8}
  .tab-label{font-size:.6875rem;font-weight:var(--w-mid)}.tabbar a.on .tab-label{font-weight:var(--w-ui)}
  .tabbar .ico-wrap .badge{top:-1px;right:-3px;min-width:10px;width:10px;height:10px;padding:0;font-size:0;background:var(--alert);border:2px solid var(--bg);box-sizing:content-box}
  .tabbar a.tab-plus{width:72px;padding:0}
  .tab-plus span{width:48px;height:48px;margin-top:0;box-shadow:0 4px 14px color-mix(in srgb,var(--solid) 40%,transparent)}.tab-plus .ico-svg{width:var(--ico-lg);height:var(--ico-lg)}

  /* the composer opens as a full-screen sheet from the "+" */
  .post-sheet{display:none;position:fixed;inset:0;z-index:250;height:100dvh;flex-direction:column;background:var(--bg)}
  html.composing .post-sheet{display:flex}html.composing{overflow:hidden}
  html.composing .tabbar,html.composing .fab{display:none}
  .composer-head{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;border-bottom:1px solid var(--line)}
  .composer-head b{font-size:1.1rem;font-weight:700}
  .composer-x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}
  .composer-x:hover{background:var(--hover)}.composer-x .ico-svg{width:22px;height:22px}
  .post-sheet .compose{flex:1;display:flex;margin:0;border:0;overflow:auto;padding:16px 16px calc(14px + env(safe-area-inset-bottom))}
  .post-sheet .compose>.grow{display:flex;flex-direction:column;min-height:100%}
  .post-sheet .compose textarea{min-height:160px;max-height:42dvh;font-size:1.2rem}
  .post-sheet .compose .preview{margin-left:-56px}                 /* pictures use the full width under the text */
  .post-sheet .emoji-pop{position:fixed;left:12px;right:12px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;max-height:min(320px,45dvh)}
  .post-sheet .compose .toolbar{margin-top:auto}
}
@media (min-width:701px){.composer-head{display:none}}
/* Home timeline navigation: the header slides away while reading down and back when scrolling up (phones);
   the feed takes vertical scrolling from the browser and horizontal swipes from home.js */
@media (max-width:700px){.home-head{transition:transform .25s ease}.home-head.hh-hide{transform:translateY(-100%)}}
.feed{touch-action:pan-y pinch-zoom}
html.feed-anim,html.feed-anim body{overflow-x:clip}
/* Notifications navigation (phones): the category chips stay under the header while scrolled, and both slide away together
   while reading down (looks exactly the same at rest); the list takes vertical scrolling, sideways swipes go to app.js */
@media (max-width:700px){
  html.nh-stuck body:has(.n-feed) .n-chips{position:sticky;top:var(--n-top,57px);z-index:4;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px)}   /* only once the list scrolls: at the top the page is untouched */
  body:has(.n-feed) .topbar,body:has(.n-feed) .n-chips{transition:transform .25s ease}
  html.nh-hide body:has(.n-feed) .topbar,html.nh-hide body:has(.n-feed) .n-chips{transform:translateY(calc(-1 * var(--n-h,140px)))}
}
.n-feed{touch-action:pan-y pinch-zoom}
/* Profile navigation (phones): the profile section scrolls away as usual while the tabs stay reachable under the header;
   the header slides away while reading down. The section's box steps aside so the tabs can stick along the whole list
   (its bottom divider moves onto the tabs: same pixels). Sticky + backing only once scrolled, so the top looks untouched. */
@media (max-width:700px){
  body:has(.p-feed) .profile-card{display:contents}
  body:has(.p-feed) .profile-card>.p-tabs{border-bottom:1px solid var(--line)}
  html.pp-stuck body:has(.p-feed) .p-tabs{position:sticky;top:var(--p-top,57px);z-index:4;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);transition:top .25s ease}
  body:has(.p-feed) .topbar{transition:transform .25s ease}
  html.pp-hide body:has(.p-feed) .topbar{transform:translateY(calc(-1 * var(--p-top,57px)))}
  /* tabs never move on their own while they sit in the page; once pinned they follow the header up (top:0) and back (top:header height) */
  html.pp-hide.pp-stuck body:has(.p-feed) .p-tabs{top:0}
}
.p-feed{touch-action:pan-y pinch-zoom}
/* Explore navigation (phones): the header slides away while reading down and back when scrolling up; search and chips scroll as usual */
@media (max-width:700px){
  body:has(.x-feed) .topbar{transition:transform .25s ease}
  html.xh-hide body:has(.x-feed) .topbar{transform:translateY(-100%)}
}
.x-feed{touch-action:pan-y pinch-zoom}

/* ===== Messages inbox, matching the reference: blue title, compose icon, pill search, airy rows with an unread dot ===== */
body:has(.msg-page) .col{background:color-mix(in srgb,var(--brand) 4%,var(--bg))}
body:has(.msg-page) .topbar{background:transparent;border-bottom:0;padding:14px 18px 8px}
body:has(.msg-page) .topbar h1{color:var(--brand);font-size:1.5rem;font-weight:var(--w-head)}
body:has(.msg-page) .topbar .back{color:var(--navy)}
body:has(.msg-page) .topbar .p-more.m-menu{display:none}
.msg-compose{display:grid;place-items:center;width:42px;height:42px;margin-left:auto;border-radius:12px;color:var(--navy)}
.msg-compose:hover{text-decoration:none;background:var(--tint)}.msg-compose .ico-svg{width:26px;height:26px;stroke-width:1.8}
.msg-page .msg-search{margin:6px 18px 10px;padding:0 18px;background:color-mix(in srgb,var(--brand) 12%,var(--bg));border-radius:999px}
.msg-page .msg-search input{padding:14px 0;font-size:1rem}
.msg-page .convs{background:transparent}
.msg-page .conv{align-items:flex-start;gap:16px;padding:12px 18px 0;border-bottom:0}
.msg-page .conv:hover{background:transparent}
.msg-page .conv .avatar{width:64px;height:64px;font-size:1.4rem}
.msg-page .conv .av-wrap{margin-bottom:12px}
.conv-body{flex:1;min-width:0;padding:6px 0 14px;border-bottom:1px solid var(--line)}
.msg-page .conv:last-child .conv-body{border-bottom:0}
.msg-page .c-top b{font-size:1.1rem;font-weight:var(--w-ui);color:var(--text)}
.msg-page .c-time{font-size:.95rem;color:var(--muted);font-weight:var(--w-text)}
.msg-page .c-bot{margin-top:2px;min-height:24px}
.msg-page .c-last{font-size:1.02rem;color:var(--text);font-weight:var(--w-text)}.msg-page .c-last .you{color:var(--muted)}
.msg-page .conv.new .c-last{font-weight:var(--w-text)}
.msg-page .conv.new .c-top b{font-weight:var(--w-name)}
.msg-page .conv.new .c-time{color:var(--muted);font-weight:var(--w-text)}
.c-dot{flex:none;width:13px;height:13px;margin-left:10px;border-radius:50%;background:var(--brand)}
.msg-page .chat-empty .btn{margin-top:10px}
.msg-page .conv.nodm{opacity:.6}.msg-page .conv.nodm .c-last{color:var(--muted)}

/* Conversation screen: its own header (back, avatar, name) and a full-height chat; the tab bar steps aside while chatting */
@media (max-width:700px){
  body:has(.chat-wrap) .topbar,body:has(.chat-wrap) .tabbar{display:none}
  .chat-head{top:0;padding:calc(10px + env(safe-area-inset-top)) 12px 10px}
  .chat-wrap{min-height:100dvh;margin-bottom:0}
  .chat-wrap .composer{bottom:0}
  .chat-head .chat-name b{font-size:1.05rem;font-weight:var(--w-ui);color:var(--text)}
}

/* ---- Advanced messaging: swipe to reply, action menu, reactions, quotes, pins, sheets ---- */
.chat-top{position:sticky;top:53px;z-index:4;background:var(--bg)}
.chat-top .chat-head{position:static}
@media (max-width:700px){.chat-top{top:0}}
.pin-bar{border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--brand) 6%,var(--bg))}
.pin-bar[hidden]{display:none}
.pin-go{display:flex;align-items:center;gap:10px;width:100%;padding:8px 14px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.pin-go .ico-svg{width:18px;height:18px;color:var(--brand);flex:none}
.pin-txt{display:flex;flex-direction:column;min-width:0;border-left:3px solid var(--brand);padding-left:10px}
.pin-txt b{font-size:.78rem;color:var(--brand)}.pin-txt span{font-size:.9rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.net-bar{padding:6px 14px;background:var(--soft);color:var(--muted);font-size:.85rem;text-align:center}.net-bar[hidden]{display:none}

.chat{overflow-x:clip}
.msg{touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;scroll-margin:130px 0 90px;transition:transform .18s ease-out,opacity .18s,background .3s;outline-offset:2px}
.msg p,.msg .qb span{-webkit-user-select:text;user-select:text}
.msg.swiping{transition:none;user-select:none}
.msg.leaving{opacity:0;transform:scale(.96)}
.msg.held{opacity:.35}
.msg.has-rx{margin-bottom:16px}
.msg.flash{animation:msgflash 1.5s ease-out}
@keyframes msgflash{0%,35%{box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 45%,transparent)}100%{box-shadow:0 0 0 4px transparent}}
.msg:focus-visible{outline:2px solid var(--brand)}
.msg.pinned{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--brand) 55%,transparent)}
.msg.mine.pinned{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 35%,var(--bg))}
.pin-flag{position:absolute;top:-6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--bg);color:var(--brand);border:1px solid var(--line)}
.msg.mine .pin-flag{left:-8px}.msg.theirs .pin-flag{right:-8px}.pin-flag .ico-svg{width:12px;height:12px}
.sw-ico{position:absolute;top:50%;width:30px;height:30px;margin-top:-15px;display:grid;place-items:center;border-radius:50%;background:var(--tint);color:var(--brand);opacity:calc(var(--sw,0));transform:scale(calc(.5 + var(--sw,0) * .5));pointer-events:none}
.msg:not(.sw-left) .sw-ico{right:100%;margin-right:12px}.msg.sw-left .sw-ico{left:100%;margin-left:12px}
.sw-ico .ico-svg{width:18px;height:18px}.msg.sw-hit .sw-ico{background:var(--solid);color:#fff}
.sw-ico{opacity:0}.msg.swiping .sw-ico{opacity:var(--sw,0)}
.fwd{display:flex;align-items:center;gap:5px;margin:0 0 3px;font-size:.78rem;font-style:italic;opacity:.8}.fwd .ico-svg{width:13px;height:13px}
.qb{display:block;margin:0 0 6px;padding:5px 10px;border-left:3px solid var(--brand);border-radius:8px;background:color-mix(in srgb,var(--brand) 12%,transparent);color:inherit;font-size:.86rem;line-height:1.3;overflow:hidden}
.qb:hover{text-decoration:none}.qb b{display:block;font-size:.78rem;color:var(--brand)}
.qb span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:.85}
.qb.gone{border-left-color:var(--muted);font-style:italic}.qb.gone span{opacity:.7}
.msg.mine .qb{background:rgba(255,255,255,.2);border-left-color:#fff;color:#fff}.msg.mine .qb b{color:#fff}
.gone-t{display:flex;align-items:center;gap:6px;font-style:italic;opacity:.75;font-size:.95rem}.gone-t .ico-svg{width:16px;height:16px}
.msg.deleted,.msg.mine.deleted{background:transparent;color:var(--muted);border:1px dashed var(--line)}
.msg.deleted .meta{color:var(--muted)}
.reacts{position:absolute;bottom:-14px;display:flex;gap:3px}.reacts[hidden]{display:none}
.msg.mine .reacts{right:10px}.msg.theirs .reacts{left:10px}
.rx{display:inline-flex;align-items:center;gap:3px;min-height:24px;padding:1px 7px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--text);font:inherit;font-size:.85rem;line-height:1.4;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.rx i{font-style:normal;font-size:.75rem;color:var(--muted)}
.rx.mine{border-color:var(--brand);background:var(--tint)}
.msg-more{position:absolute;top:50%;width:28px;height:28px;margin-top:-14px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;opacity:.5}
.msg.mine .msg-more{right:100%}.msg.theirs .msg-more{left:100%}
.msg-more:hover,.msg-more:focus-visible,.msg:focus-within .msg-more{opacity:1;background:var(--soft)}
.msg-more .ico-svg{width:18px;height:18px}
@media (hover:hover){.msg-more{opacity:0}.msg:hover .msg-more{opacity:.8}}
.msg.deleted .tick,.msg.deleted .fwd{display:none}
.copy-fallback{position:fixed;left:-9999px;top:0}

.reply-chip{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:6px 6px 6px 10px;border-radius:12px;background:var(--tint)}
.reply-chip[hidden]{display:none}
.rcq-bar{align-self:stretch;width:3px;border-radius:2px;background:var(--brand)}
.rc-body{flex:1;min-width:0;display:flex;flex-direction:column;font-size:.86rem}.rc-body b{color:var(--brand);font-size:.8rem}
.rc-body span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.rc-x{display:grid;place-items:center;width:32px;height:32px;color:var(--muted)}

/* menu + sheets */
html.mm-open{overflow:hidden}
.mm-back{position:fixed;inset:0;z-index:80;background:rgba(10,18,28,.45);opacity:0;transition:opacity .18s;-webkit-tap-highlight-color:transparent}.mm-back.show{opacity:1}
.mm-clone{position:fixed;z-index:81;margin:0;max-width:none;pointer-events:none;opacity:0;transition:opacity .15s}.mm-clone.show{opacity:1}
.mm-clone .reacts,.mm-clone .msg-more,.mm-clone .sw-ico,.mm-clone .pin-flag{display:none}
.mm{position:fixed;z-index:82;display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--bg);box-shadow:0 12px 40px rgba(0,0,0,.28);opacity:0;transform:scale(.94);transform-origin:top center;transition:opacity .16s,transform .16s;max-height:calc(100dvh - 24px);overflow-y:auto}
.mm.show{opacity:1;transform:none}
.mm.sheet-mode{left:0;right:0;bottom:0;width:auto;max-width:520px;margin:0 auto;border-radius:22px 22px 0 0;border-width:1px 0 0;padding:10px 12px calc(14px + env(safe-area-inset-bottom));transform:translateY(100%);opacity:1;transition:transform .22s ease-out}
.mm.sheet-mode.show{transform:none}
.mm.sheet-mode::before{content:"";align-self:center;width:38px;height:4px;margin:0 0 6px;border-radius:2px;background:var(--line)}
.mm-rx{display:flex;justify-content:space-between;gap:2px;padding:4px 2px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.mm-e{width:44px;height:44px;border:0;border-radius:50%;background:none;font-size:1.55rem;line-height:1;cursor:pointer;transition:transform .12s,background .12s}
.mm-e:hover,.mm-e:focus-visible{background:var(--soft);transform:scale(1.18)}.mm-e.on{background:var(--tint);box-shadow:inset 0 0 0 2px var(--brand)}
.mm-list{display:flex;flex-direction:column}
.mm-i{display:flex;align-items:center;gap:14px;min-height:46px;padding:0 12px;border:0;border-radius:12px;background:none;color:var(--text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.mm-i:hover,.mm-i:focus-visible{background:var(--soft);outline:none}
.mm-ic{display:grid;place-items:center;width:24px}.mm-ic .ico-svg{width:22px;height:22px}
.mm-i.danger{color:var(--danger)}.mm-i.danger:hover,.mm-i.danger:focus-visible{background:color-mix(in srgb,var(--danger) 10%,transparent)}
.mm-i[data-k=hide]{border-top:1px solid var(--line);border-radius:0 0 12px 12px;margin-top:4px}
.ch-sheet{position:fixed;z-index:82;left:0;right:0;bottom:0;display:flex;flex-direction:column;max-width:520px;max-height:85dvh;margin:0 auto;padding:6px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:var(--bg);box-shadow:0 -8px 30px rgba(0,0,0,.25);transform:translateY(100%);transition:transform .22s ease-out;overflow-y:auto}
.ch-sheet.show{transform:none}
.ch-sheet.dlg{top:50%;bottom:auto;left:16px;right:16px;max-width:360px;max-height:none;padding:18px;border-radius:20px;transform:translateY(-46%) scale(.95);opacity:0;transition:opacity .16s,transform .16s}
.ch-sheet.dlg.show{transform:translateY(-50%);opacity:1}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 0 10px}.sheet-head b{font-size:1.1rem}
.sheet-x{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}.sheet-x:hover{background:var(--soft)}
.ch-sheet .btn.primary{width:100%;padding:12px;font-size:1rem}.ch-sheet .btn.primary:disabled{opacity:.45;cursor:default}
.dlg-body p{margin:0 0 16px;color:var(--muted);line-height:1.4}
.dlg-row{display:flex;gap:10px}.dlg-row .btn{flex:1;padding:11px;font-size:1rem;text-align:center}
.ch-sheet .btn.danger{background:var(--danger);border:0;color:#fff}
.info-preview{margin:0 0 12px;padding:10px 12px;border-left:3px solid var(--brand);border-radius:8px;background:var(--soft);color:var(--muted);overflow-wrap:anywhere}
.info-body dl{display:grid;grid-template-columns:92px 1fr;gap:8px 12px;margin:0}.info-body dt{color:var(--muted)}.info-body dd{margin:0;font-weight:600}
.fwd-q{margin:0 0 8px}.fwd-list{list-style:none;margin:0 0 12px;padding:0;max-height:42dvh;overflow-y:auto}
.fwd-row{display:flex;align-items:center;gap:12px;padding:8px 4px;color:var(--text);cursor:pointer}.fwd-row.off{opacity:.5;cursor:default}
.fwd-row input{width:20px;height:20px;margin:0;flex:none}.fwd-row .avatar{width:40px;height:40px;font-size:1rem}
.fwd-n{display:flex;flex-direction:column;min-width:0}.fwd-n small{color:var(--muted)}
.ch-sheet .pad{padding:12px 4px}
@media (prefers-reduced-motion:reduce){.mm,.ch-sheet,.mm-back,.msg{transition:none!important}.msg.flash{animation:none}}


/* Keyboard open on phones: the message box rides just above it (older browsers that only shrink the visual viewport),
   and the reply toolbar's icon button never shows a tap/focus box. */
@media (max-width:700px){
  .chat-wrap .composer{transform:translateY(calc(var(--kb,0px) * -1))}
  body:has(.chat-wrap) .chat{padding-bottom:calc(10px + var(--kb,0px))}
}
.tool,.comp-btn{-webkit-tap-highlight-color:transparent}
.rc-bar .tool{background:none}
.rc-bar .tool:focus-within,.tool:focus-within{outline:0}.rc-bar .tool:focus-visible{outline:2px solid var(--brand)}
.rc-bar .tool{align-self:center;width:40px;height:40px;padding:0;align-items:center;justify-content:center;border-radius:50%}
.rc-bar .tool:active{background:var(--tint)}

/* Voice messages: recorder bar (chat composer and story replies) */
.vn-host{position:relative}
.vn-rec{position:absolute;inset:0;z-index:5;display:flex;align-items:center;gap:10px;padding:0 4px;border-radius:24px;background:var(--bg);color:var(--text);animation:vn-in .15s ease-out}
@keyframes vn-in{from{opacity:0;transform:translateY(6px)}}
.vn-cancel,.vn-go{display:grid;place-items:center;flex:none;width:46px;height:46px;padding:0;border:0;border-radius:50%;cursor:pointer}
.vn-cancel{background:transparent;color:var(--danger,#c0392b)}.vn-cancel:hover{background:var(--soft)}
.vn-go{background:var(--solid);color:#fff}.vn-go:disabled{opacity:.5;cursor:default}.vn-cancel svg,.vn-go svg{display:block}
.vn-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#e5484d;opacity:.4}.vn-rec.live .vn-dot{opacity:1;animation:vn-blink 1s steps(2) infinite}
@keyframes vn-blink{50%{opacity:.25}}
.vn-clock{flex:none;min-width:38px;font-variant-numeric:tabular-nums;font-weight:var(--w-name)}
.vn-live{display:flex;align-items:center;gap:2px;flex:1;min-width:0;height:26px;overflow:hidden}.vn-live i{flex:none;width:3px;height:3px;border-radius:2px;background:var(--brand);transition:height .08s}
.vn-hint{display:none;flex:none;font-size:.85rem;color:var(--muted)}.vn-rec.sending .vn-hint,.vn-rec.failed .vn-hint{display:inline}.vn-rec.failed .vn-hint{color:var(--danger,#c0392b)}
.vn-rec.sending .vn-live{opacity:.4}
@media (prefers-reduced-motion:reduce){.vn-rec.live .vn-dot{animation:none}}
/* Voice messages in chat bubbles */
.vn{display:flex;align-items:center;gap:10px;min-width:210px;max-width:100%;padding:2px 0 4px}
.vn-play{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--solid);color:#fff;cursor:pointer}
.msg.mine .vn-play{background:#fff;color:var(--solid)}
.vn-play svg{display:block;width:20px;height:20px}.vn-i-pause{display:none!important}.vn.playing .vn-i-pause{display:block!important}.vn.playing .vn-i-play{display:none}
.vn-wave{display:flex;align-items:center;gap:2px;flex:1;min-width:0;height:30px;cursor:pointer}
.vn-wave i{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:color-mix(in srgb,currentColor 35%,transparent)}.vn-wave i.on{background:currentColor}
.msg.theirs .vn-wave{color:var(--brand)}
.vn-wave .h0{height:20%}.vn-wave .h1{height:35%}.vn-wave .h2{height:55%}.vn-wave .h3{height:80%}.vn-wave .h4{height:45%}.vn-wave .h5{height:100%}.vn-wave .h6{height:65%}.vn-wave .h7{height:30%}
.vn-time{flex:none;min-width:34px;font-size:.82rem;font-variant-numeric:tabular-nums;opacity:.85}
/* Files sent in chats */
.msg-file{display:flex;align-items:center;gap:10px;min-width:200px;max-width:100%;margin:2px 0 6px;padding:8px 12px 8px 8px;border-radius:14px;background:color-mix(in srgb,currentColor 10%,transparent);color:inherit}
.msg-file:hover{text-decoration:none}
.mf-ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:var(--solid);color:#fff;font-size:.7rem;font-weight:800}
.msg.mine .mf-ico{background:#fff;color:var(--solid)}
.mf-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--w-ui)}.mf-dl{flex:none;font-size:.8rem;opacity:.8}
/* chat composer: mic inside the message box */
.comp-field{position:relative;display:flex;flex:1;min-width:0}
.comp-field textarea{padding-right:52px}
.comp-mic{position:absolute;right:5px;bottom:4px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);cursor:pointer}
.comp-mic:hover{background:var(--hover)}.comp-mic svg{display:block}
.composer.has-text .comp-mic{display:none}.composer.has-text .comp-field textarea{padding-right:18px}
.comp-row{position:relative}

.sv-card:not(.own) .sv-foot{gap:6px;padding-left:10px;padding-right:8px}
.sv-card:not(.own) .sv-foot .sv-ic{width:34px}
.sv-card:not(.own) .sv-input{font-size:1rem;text-overflow:ellipsis}

/* story icons: the app's own outline icons */
.sv .ico-svg{width:26px;height:26px}
.sv-top .sv-btn .ico-svg{width:24px;height:24px;stroke-width:2.6}
.sv-aic .ico-svg,.sv-mic .ico-svg{width:23px;height:23px}
.sv-x .ico-svg{width:26px;height:26px}.sv-tick .ico-svg{width:14px;height:14px;stroke-width:3}.sv-ph .ico-svg{width:22px;height:22px}
.sv-views .ico-svg{width:20px;height:20px}
.sv-form .sv-mic,.sv-form .sv-send{align-self:center}
.sv-input,.sv-cinput{min-height:0}
.sv-input:placeholder-shown,.sv-cinput:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* =====================================================================================================
   TYPOGRAPHY & FEED SPEC — every value below is a variable, so it can be tuned in one place.
   Sizes are in rem (1rem = 16px) so the "Font size" setting still scales them: 15px = .9375rem, 20px = 1.25rem,
   13px = .8125rem, 14px = .875rem, 12px = .75rem, 24px = 1.5rem.
   ===================================================================================================== */
:root{
  /* colours (light theme; dark theme keeps its own values below) */
  --text:#0F1419; --muted:#536471; --line:#EFF3F4; --card-border:#CFD9DE;
  --t-placeholder:var(--muted);
  /* global text */
  --t-body:.9375rem; --t-body-lh:1.25rem; --t-tracking:-.005em;
  --t-small:.8125rem; --t-14:.875rem; --t-12:.75rem;
  /* feed posts */
  --t-name:.9375rem; --t-name-w:700; --t-meta:.9375rem; --t-meta-w:400;
  --t-post:.9375rem; --t-post-lh:1.25rem; --t-post-w:400;
  --t-count:.8125rem; --t-count-w:400; --t-action-icon:19px;
  --feed-av:40px; --feed-gap:12px; --feed-pad-y:12px; --feed-pad-x:16px; --feed-divider:1px;
  /* quoted / embedded post */
  --quote-border:1px; --quote-radius:16px; --quote-pad:12px; --quote-av:20px;
  /* navigation and headers */
  --t-tab:.9375rem; --t-tab-on-w:700; --t-tab-off-w:500;
  --t-nav:.75rem; --t-nav-on-w:700; --t-nav-off-w:400;
  --t-title:1.25rem; --t-title-lh:1.5rem; --t-title-w:700;
  --t-section:1.25rem; --t-section-lh:1.5rem; --t-section-w:800;
  --t-story:.8125rem; --t-story-w:400;
  /* profile */
  --t-pname:1.25rem; --t-pname-lh:1.5rem; --t-pname-w:800; --t-stat:.875rem; --t-stat-num-w:700; --t-stat-label-w:400;
  /* trends and suggestions */
  --t-trend-meta:.8125rem; --t-trend-name:.9375rem; --t-trend-name-w:700; --t-follow-btn:.875rem; --t-follow-btn-w:700;
  /* buttons and forms */
  --t-btn:.9375rem; --t-btn-w:700; --t-input:.9375rem; --t-label:.8125rem;
  /* the existing tokens read from the spec values */
  --fs-body:var(--t-body); --av-feed:var(--feed-av); --ico:var(--t-action-icon);
  --post-body-size:var(--t-post); --post-body-line-height:var(--t-post-lh); --post-meta-size:var(--t-meta); --display-name-size:var(--t-name);
  --section-heading-size:var(--t-section)}
:root:not([data-contrast="1"]){--like:#F91880; --repost:#00BA7C}
:root[data-theme="dark"]{--card-border:var(--line-strong)}
@media (prefers-color-scheme:dark){:root[data-theme="system"],:root:not([data-theme]){--card-border:var(--line-strong)}}

/* 1. global */
body{font-family:var(--font);font-size:var(--t-body);line-height:var(--t-body-lh);letter-spacing:var(--t-tracking);color:var(--text);-webkit-font-smoothing:antialiased}
input,textarea,select{font-size:var(--t-input)}
input::placeholder,textarea::placeholder{color:var(--t-placeholder);opacity:1}
label{font-size:var(--t-label)}

/* 2. posts in the feed */
html body article.post,html body .post{gap:var(--feed-gap);padding:var(--feed-pad-y) var(--feed-pad-x);border-bottom:var(--feed-divider) solid var(--line)}
html body .post>.avatar,html body article.post>.avatar{width:var(--feed-av);height:var(--feed-av)}
html body .post .meta{font-size:var(--t-meta);line-height:var(--t-body-lh)}
html body .post .meta .name{font-size:var(--t-name);font-weight:var(--t-name-w);color:var(--text)}
html body .post .meta .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .post .meta .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .post .meta .muted,html body .post .meta .handle,html body .post .meta .sep,html body .post .meta .when{font-size:var(--t-meta);font-weight:var(--t-meta-w);color:var(--muted)}
html body .post-text{font-size:var(--t-post);line-height:var(--t-post-lh);font-weight:var(--t-post-w);color:var(--text);white-space:pre-wrap;letter-spacing:var(--t-tracking)}
html body .post-text a,html body .q-text a,html body .p-bio a{color:var(--brand)}
html body .actions .act .link,html body .actions a.act{color:var(--muted);font-size:var(--t-count);font-weight:var(--t-count-w)}
html body .actions .ico-svg{width:var(--t-action-icon);height:var(--t-action-icon)}
html body .actions .act span{font-size:var(--t-count);font-weight:var(--t-count-w)}
html body .actions .act.on .link{font-weight:var(--t-count-w)}
html body .actions .act.like.on .link,html body .actions .act.like.on .link span{color:var(--like)}
html body .actions .act.repost.on .link,html body .actions .act.repost.on .link span{color:var(--repost)}

/* 3. quoted / embedded post */
html body .quote{border:var(--quote-border) solid var(--card-border);border-radius:var(--quote-radius);padding:var(--quote-pad)}
html body .quote .q-head .avatar{width:var(--quote-av);height:var(--quote-av);font-size:.625rem}
html body .quote .q-head .name{font-size:var(--t-name);font-weight:var(--t-name-w)}
html body .quote .q-head .muted{font-size:var(--t-meta);color:var(--muted);font-weight:var(--t-meta-w)}
html body .quote .q-text{font-size:var(--t-post);line-height:var(--t-post-lh);font-weight:var(--t-post-w)}

/* 4. navigation and headers */
html body .home-tabs a,html body .tabs a{font-size:var(--t-tab);font-weight:var(--t-tab-off-w);color:var(--muted)}
html body .tabs a.on{font-weight:var(--t-tab-on-w);color:var(--text)}
html body .home-tabs a.on,html body .home-tabs a.on:hover{font-weight:var(--t-tab-on-w);color:var(--on-solid)}   /* selected tab sits on the blue pill: its text stays white to be readable */
html body .tabbar .tab-label{font-size:var(--t-nav);font-weight:var(--t-nav-off-w);color:var(--muted)}
html body .tabbar a.on .tab-label{font-weight:var(--t-nav-on-w);color:var(--brand)}
html body .topbar h1{font-size:var(--t-title);line-height:var(--t-title-lh);font-weight:var(--t-title-w)}
html body .side-card h3,html body .x-feed h3,html body .x-feed .card h3{font-size:var(--t-section);line-height:var(--t-section-lh);font-weight:var(--t-section-w)}
html body .st-name{font-size:var(--t-story);font-weight:var(--t-story-w)}

/* 5. profile */
html body .p-name{font-size:var(--t-pname)!important;line-height:var(--t-pname-lh);font-weight:var(--t-pname-w)}   /* beats an older !important size */
html body .p-handle,html body .p-handle .muted{font-size:var(--t-body);color:var(--muted)}
html body .p-bio{font-size:var(--t-body);line-height:var(--t-body-lh);font-weight:var(--t-post-w)}
html body .p-stats a{font-size:var(--t-stat);font-weight:var(--t-stat-label-w);color:var(--muted)}
html body .p-stats a b{font-size:var(--t-stat);font-weight:var(--t-stat-num-w);color:var(--text)}

/* 6. trends and suggestions */
html body .trend .muted{font-size:var(--t-trend-meta);color:var(--muted)}
html body .trend b{font-size:var(--t-trend-name);font-weight:var(--t-trend-name-w)}
html body .person b{font-size:var(--t-name);font-weight:var(--t-name-w)}
html body .person .muted{font-size:var(--t-body);color:var(--muted)}
html body .person .btn,html body .p-follow{font-size:var(--t-follow-btn);font-weight:var(--t-follow-btn-w)}

/* 7. buttons and forms */
html body .btn{font-size:var(--t-btn);font-weight:var(--t-btn-w);border-radius:var(--r-pill)}
html body .fl input{font-size:var(--t-input)}
html body .fl label{font-size:var(--t-label)}
html body .auth-btn{font-size:var(--t-btn);font-weight:var(--t-btn-w)}

/* Tabs everywhere use the profile-tab look: plain words, no grey chip and no blue fill — the selected one gets a
   short blue line under it (Home, Explore, Notifications, Bookmarks, Followers/Following filters). */
:root{--tab-mark-w:28px;--tab-mark-h:4px;--tab-pad-y:14px;--tab-pad-x:12px}
html body .home-tabs,html body .n-chips{display:flex;gap:0;margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;overflow-x:auto;scrollbar-width:none}
html body .home-tabs a,html body .n-chips a{position:relative;flex:1 0 auto;display:block;min-height:0;padding:var(--tab-pad-y) var(--tab-pad-x) calc(var(--tab-pad-y) - 2px);border-radius:0;background:transparent;box-shadow:none;text-align:center;font-size:var(--t-tab,.9375rem);font-weight:var(--t-tab-off-w,500);color:var(--muted)}
html body .home-tabs a:hover,html body .n-chips a:hover{background:var(--hover);color:var(--text);text-decoration:none}
html body .home-tabs a.on,html body .home-tabs a.on:hover,html body .n-chips a.on,html body .n-chips a.on:hover{background:transparent;box-shadow:none;color:var(--text);font-weight:var(--t-tab-on-w,700)}
html body .home-tabs a.on::after,html body .n-chips a.on::after{content:"";position:absolute;left:50%;bottom:0;width:var(--tab-mark-w);height:var(--tab-mark-h);border-radius:var(--tab-mark-h) var(--tab-mark-h) 0 0;background:var(--brand);transform:translateX(-50%)}

/* ===== GROUPS (Explore -> Groups, group page, create/edit form). Scoped to .g-* classes; nothing global changes. ===== */
:root{--g-blue:#1F7AE8;--g-blue-dark:#1868c9;--g-av-r:14px}
:root[data-accent="blue"]:not([data-theme="dark"]) .g-ui{--brand:var(--g-blue);--solid:var(--g-blue);--solid-hover:var(--g-blue-dark);--tint:rgba(31,122,232,.09)}
@media (prefers-color-scheme:dark){:root[data-accent="blue"]:not([data-theme="light"]) .g-ui{--brand:#4aa8f8;--solid:#1877d6;--solid-hover:#1a6dc2;--tint:rgba(74,168,248,.14)}}
.g-ui .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.avatar.g-av{border-radius:var(--g-av-r)}
.avatar.xl.g-av{border-radius:24px}
/* Explore -> Groups: Discover | Your Groups, the + button, search and category */
.g-top{display:flex;align-items:center;gap:8px;padding:6px 12px 0 4px;border-bottom:1px solid var(--line)}
.g-sub{display:flex;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.g-sub a{position:relative;padding:12px 14px 11px;font-size:var(--t-tab,.9375rem);font-weight:var(--t-tab-off-w,500);color:var(--muted);white-space:nowrap}
.g-sub a:hover{color:var(--text);text-decoration:none}
.g-sub a.on{color:var(--text);font-weight:var(--t-tab-on-w,700)}
.g-sub a.on::after{content:"";position:absolute;left:50%;bottom:0;width:var(--tab-mark-w,28px);height:var(--tab-mark-h,4px);border-radius:4px 4px 0 0;background:var(--brand);transform:translateX(-50%)}
.g-new{display:grid;place-items:center;flex:none;width:38px;height:38px;margin-bottom:4px;border-radius:50%;background:var(--solid);color:var(--on-solid)}
.g-new:hover{background:var(--solid-hover);text-decoration:none}.g-new .ico-svg{width:20px;height:20px;stroke-width:2.4}
.g-search{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.g-q{position:relative;flex:1 1 220px;margin:0}
.g-q .ico-svg{position:absolute;left:14px;top:50%;width:18px;height:18px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.g-q input{margin:0;padding-left:40px;border-radius:var(--r-pill)}
.g-cat{flex:0 1 190px;margin:0}.g-cat select{margin:0;border-radius:var(--r-pill)}
.g-go{flex:none}
.g-go[hidden]{display:none}                              /* with JavaScript: Enter searches, the category applies at once */
/* group cards */
.g-card{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.g-card .avatar.g-av{width:52px;height:52px;font-size:1.3rem}
.g-card .grow{min-width:0}
.g-name{display:block;font-weight:700;font-size:var(--t-name,1rem);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-name:hover{text-decoration:underline}
.g-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:2px;font-size:.875rem}
.g-desc{margin:6px 0 0;font-size:.9375rem;line-height:1.4;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.g-card-act{flex:none;margin-left:auto}
.btn.g-btn{min-height:34px;padding:0 14px;font-size:.875rem;gap:4px}
.btn.g-btn .ico-svg,.g-joined .ico-svg{width:1em;height:1em}
.g-joined{color:var(--text)}
.g-priv .ico-svg{stroke-width:2}
/* group page */
.g-page .p-handle{flex-wrap:wrap;gap:6px}
.g-page .p-bio{white-space:pre-line}
.g-role{background:var(--tint);color:var(--brand)}
.g-req-link b{color:var(--brand)}
.g-tabs{margin-top:10px}
.g-compose{border-bottom:1px solid var(--line)}
.g-locked{display:grid;justify-items:center;gap:6px}.g-locked .ico-svg{width:30px;height:30px;color:var(--muted)}
.g-about{padding:4px 16px 24px}
.g-about h3{margin:18px 0 6px;font-size:1.0625rem}
.g-about p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.g-rules{white-space:pre-line}
.g-facts{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.g-facts li{display:flex;gap:10px;align-items:flex-start;line-height:1.4}.g-facts .ico-svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--muted)}
.g-members h3{margin:0;padding:14px 16px 8px;font-size:1.0625rem}
.g-person{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line)}
.g-person .grow{display:flex;flex-direction:column;min-width:0}
.g-person .name{font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-person .grow .verified{display:none}
.g-more .p-round{width:36px;height:36px}
.g-more .p-menu{right:0;left:auto}
.g-in{display:flex;align-items:center;gap:4px;margin-bottom:2px;font-size:.8125rem}.g-in .ico-svg{width:14px;height:14px}
/* create / edit form */
.g-form{display:block;padding:0 0 20px}
.g-form>label,.g-form>fieldset,.g-form>.g-hint,.g-form>.g-remove,.g-form>.g-submit{margin-left:16px;margin-right:16px}
.g-form>label{display:block;margin-top:4px}
.g-form small{display:block;margin:-8px 0 12px;font-size:.8125rem}
.g-pics{position:relative;margin-bottom:56px}
.g-cover-pick{position:relative;display:block;aspect-ratio:3/1;overflow:hidden;background:radial-gradient(120% 140% at 12% 0%,rgba(255,255,255,.35),transparent 45%),linear-gradient(120deg,var(--brand-dark),var(--brand) 60%,#8fd0fb);cursor:pointer}
.g-cover-pick .g-pick-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.g-pick-hint{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:rgba(15,20,25,.6);color:#fff;font-size:.875rem;font-weight:600}
.g-pick-hint .ico-svg{width:18px;height:18px}
.g-pics input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.g-avatar-pick{position:absolute;left:16px;bottom:-48px;margin:0;cursor:pointer}
.g-avatar-pick .avatar{position:relative}
.g-avatar-pick .g-pick-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.g-pick-cam{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:34px;height:34px;border:3px solid var(--bg);border-radius:50%;background:var(--solid);color:var(--on-solid)}
.g-pick-cam .ico-svg{width:16px;height:16px}
.g-cover-pick:focus-within,.g-avatar-pick:focus-within .avatar{outline:2px solid var(--brand);outline-offset:2px}
.g-hint{margin-top:0;margin-bottom:10px;font-size:.8125rem}
.g-remove{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:8px}
.g-check{display:inline-flex;align-items:center;gap:8px;font-size:.9rem}.g-check input{width:auto;margin:0}
.g-handle-in{position:relative;display:block}.g-handle-in>.muted{position:absolute;left:14px;top:50%;transform:translateY(-50%);margin-top:-4px}
.g-handle-in input{padding-left:30px}
.g-privacy{margin-top:4px;margin-bottom:16px;padding:0;border:0}
.g-privacy legend{padding:0;margin-bottom:8px;font-size:var(--t-label)}
.g-opt{display:flex;align-items:flex-start;gap:12px;margin:0 0 8px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);cursor:pointer}
.g-opt:has(input:checked){border-color:var(--brand);background:var(--tint)}
.g-opt input{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:var(--brand)}
.g-opt-ico{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--text)}
.g-opt-ico .ico-svg{width:18px;height:18px}
.g-opt-text{display:flex;flex-direction:column;gap:2px;font-size:.9375rem;line-height:1.35}.g-opt-text .muted{font-size:.875rem}
.g-submit{width:calc(100% - 32px)}
.g-danger h3{margin:0 0 4px;color:var(--danger)}.g-danger p{margin:0 0 10px}
@media (max-width:700px){
  .g-search{padding:10px 12px}.g-card{padding:12px}.g-person{padding:10px 12px}
  .g-cat{flex:1 1 100%}.g-avatar-pick{left:12px}
  .g-form>label,.g-form>fieldset,.g-form>.g-hint,.g-form>.g-remove,.g-form>.g-submit{margin-left:12px;margin-right:12px}.g-submit{width:calc(100% - 24px)}
}

/* ===== GROUPS PHASE 2: invitations, roles, settings, pinned posts, moderation (scoped to .g-* classes) ===== */
.g-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:var(--g-blue);color:#fff;font-size:.6875rem;font-weight:700;vertical-align:1px}
.g-note{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.8125rem;font-weight:600;white-space:nowrap}
.g-by{margin:4px 0 0;font-size:.875rem}
.g-inv-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.g-banner{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;padding:10px 12px;border-radius:12px;background:var(--tint);color:var(--text);font-size:.9rem;line-height:1.4}
.g-banner .ico-svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--brand)}
.g-pad-x{margin:12px 16px}
.g-mute.on{color:var(--brand);background:var(--tint);border-color:transparent}
.g-gear{position:relative}.g-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border:2px solid var(--bg);border-radius:50%;background:var(--alert,#e0245e)}
.g-flags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 4px}
.g-flag{display:inline-flex;align-items:center;gap:5px;font-size:.8125rem;font-weight:700;color:var(--muted)}
.g-flag .ico-svg{width:14px;height:14px}
.g-flag.pin,.g-flag.ann{color:var(--brand)}
.g-flag.removed,.g-flag.pending{display:flex;margin:0 0 6px;padding:6px 10px;border-radius:10px;background:var(--soft);font-weight:600}
.g-flag.removed{color:var(--danger)}
.post:has(.g-flag.removed) .post-text,.post:has(.g-flag.removed) .media,.post:has(.g-flag.removed) .media-grid{opacity:.55}
.act.g-off{opacity:.45;cursor:default}
.g-pinned{border-bottom:6px solid var(--soft)}
.g-hint-post{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:.8125rem}.g-hint-post .ico-svg{width:15px;height:15px}
.g-invite{border-bottom:6px solid var(--soft);padding-bottom:4px}
.g-isearch{border-bottom:0;padding-top:0}
.g-pad{padding:4px 16px 12px;margin:0;font-size:.875rem}
.g-members h3 .muted{font-weight:500}
/* settings */
.g-set-head{display:flex;align-items:center;gap:12px;padding:14px 16px 6px}
.g-set-head .avatar.g-av{width:44px;height:44px;border-radius:12px;font-size:1.1rem}
.g-set-head div{display:flex;flex-direction:column;min-width:0}.g-set-head .muted{font-size:.875rem}
.g-set-tabs{border-bottom:1px solid var(--line);padding:0 4px}
.g-set-block{display:block;padding:16px;border-bottom:1px solid var(--line)}
.g-set-block h3{margin:0 0 8px;font-size:1.0625rem}
.g-set-block>p{margin:0 0 12px}
.g-set-block .g-privacy{margin-bottom:12px}
.g-set-block label{display:block}
.g-switch{display:flex!important;margin:0 0 4px;font-size:.9375rem}
.g-small{margin:2px 0 12px;font-size:.8125rem}
.g-set-intro{margin:0;padding:12px 16px;font-size:.875rem;border-bottom:1px solid var(--line)}
.g-queue{border-bottom:1px solid var(--line)}
.g-queue>.post{border-bottom:0}
.g-queue-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 16px 14px 72px}
.g-report{padding:14px 16px 0;border-bottom:1px solid var(--line)}
.g-report .g-queue-act{padding:12px 0 14px}
.g-rep-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.g-reason{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--danger)}.g-reason .ico-svg{width:16px;height:16px}
.g-rep-top time{font-size:.8125rem}
.g-rep-details{margin:0 0 8px;font-size:.9375rem}
.g-rep-post{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line-strong);border-radius:12px;color:var(--text);font-size:.9375rem;line-height:1.4;overflow-wrap:anywhere}
.g-rep-post:hover{background:var(--hover);text-decoration:none}
.g-rep-post img{flex:none;width:56px;height:56px;border-radius:8px;object-fit:cover}
.btn.g-danger-btn{background:var(--danger);color:#fff}.btn.g-danger-btn:hover{background:var(--danger);filter:brightness(.92)}
.g-log{list-style:none;margin:0;padding:0}
.g-log li{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:.9375rem;line-height:1.4}
.g-log li time{flex:none;font-size:.8125rem}
.g-log li.empty{display:block}
@media (max-width:700px){
  .g-queue-act{padding-left:12px;padding-right:12px}.g-report{padding-left:12px;padding-right:12px}
  .g-log li{flex-direction:column;gap:2px;padding:12px}.g-set-block{padding:14px 12px}.g-set-head{padding:12px 12px 4px}
  .g-page .head-actions .p-actions{flex-wrap:wrap;justify-content:flex-end}
}
.g-more .p-menu.up{top:auto;bottom:calc(100% + 6px)}
.g-set-block label.g-opt{display:flex}
@media (max-width:700px){.g-set-tabs{padding:0;justify-content:space-between}.g-set-tabs a{padding-left:8px;padding-right:8px;font-size:.875rem}}
.ed-stage.ed-square:not(.empty)::after{border-radius:22%}   /* group photos are rounded squares, not circles */

/* ===== Story viewer bottom bar: always the app's dark navy (the Home background in dark mode) instead of black ===== */
.sv-foot{--svf-bg:#0e1319;--svf-text:#e7edf3;--svf-muted:#8e9aa8;--svf-line:#34404d;--svf-hover:#19212b;--svf-brand:#4aa8f8;background:var(--svf-bg);color:var(--svf-text)}
.sv-foot .sv-ic,.sv-foot .sv-views,.sv-foot .sv-plus,.sv-foot .sv-mic,.sv-foot .sv-send{color:var(--svf-text)}
.sv-foot .sv-note{color:var(--svf-muted)}
.sv-foot .sv-plus,.sv-foot .sv-form{border-color:var(--svf-line)}
.sv-foot .sv-plus[aria-expanded="true"],.sv-foot .sv-mic:hover{background:var(--svf-hover)}
.sv-foot .sv-input{color:var(--svf-text)}.sv-foot .sv-input::placeholder{color:var(--svf-muted)}
.sv-foot .sv-form.has-text .sv-send{color:var(--svf-brand)}
.sv-foot .sv-face{border-color:var(--svf-bg)}
.sv-foot .sv-ic:focus-visible{outline-color:var(--svf-text)}
.sv-foot .vn-rec{background:var(--svf-bg);color:var(--svf-text)}.sv-foot .vn-rec .vn-cancel{color:var(--svf-text)}
/* typing in a story: no blue focus line around the text boxes */
.sv-form:focus-within{border-color:var(--line-strong)}.sv-foot .sv-form:focus-within{border-color:var(--svf-line)}
.sv-cinput:focus,.sv-cinput:focus-visible{outline:none;box-shadow:none;border-color:transparent}
.sv-find:focus,.sv-note-in:focus{outline:none;box-shadow:none;border-color:transparent}
/* Groups navigation */
.g-page .g-off{display:none!important}
.g-pane{touch-action:pan-y pinch-zoom}

/* ===== Default profile / group picture (no photo uploaded): grey silhouette instead of a letter ===== */
:root{--av-def-bg:#e4e7eb;--av-def-fg:#adb3ba;--av-def-fg2:#c8ccd1}
:root[data-theme="dark"]{--av-def-bg:#2a333e;--av-def-fg:#6c7987;--av-def-fg2:#4c5866}
@media (prefers-color-scheme:dark){:root[data-theme="system"],:root:not([data-theme]){--av-def-bg:#2a333e;--av-def-fg:#6c7987;--av-def-fg2:#4c5866}}
.av-def{display:block;width:100%;height:100%}
.av-def .av-bg{fill:var(--av-def-bg)}.av-def .av-fg{fill:var(--av-def-fg)}.av-def .av-fg2{fill:var(--av-def-fg2)}
.avatar:has(> .av-def),.av-none,.avatar.ph,.p-mini:has(> .av-def){overflow:hidden;padding:0;background:var(--av-def-bg)}
.av-none > .av-def,.avatar.ph > .av-def{border-radius:inherit}
.g-avatar-pick .avatar .av-def{position:absolute;inset:0}
/* ===== Online: only in Messages, as a Yout-blue dot ===== */
.av-wrap .dot{background:#1F7AE8}

/* ===== Top banners: "Your post was sent / Reply sent · View post" and live notifications ===== */
.y-toast{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top));z-index:400;width:min(calc(100vw - 32px),420px);box-sizing:border-box;padding:12px 14px;border-radius:20px;background:rgba(32,38,46,.93);-webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.28);transform:translateX(-50%);animation:yt-in .28s cubic-bezier(.2,.8,.2,1) both,yt-out .3s ease 6s forwards}
.y-toast.out{animation:yt-out .25s ease forwards}
@keyframes yt-in{from{opacity:0;transform:translate(-50%,-18px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes yt-out{to{opacity:0;transform:translate(-50%,-18px);visibility:hidden}}
.y-sent .yt-main{display:flex;align-items:center;justify-content:center;gap:10px;font-size:1.05rem}
.y-sent .yt-main b{font-weight:700}
.yt-check{flex:none;width:24px;height:24px;color:#fff}
.yt-btn{display:block;margin-top:10px;padding:10px;border-radius:14px;background:rgba(255,255,255,.13);color:#fff;font-weight:700;text-align:center}
.yt-btn:hover{background:rgba(255,255,255,.2);text-decoration:none}
.y-pop{display:flex;align-items:center;gap:12px;color:#fff}
.y-pop:hover{text-decoration:none}
.yp-av{display:block;flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--av-def-bg)}
.yp-av img{display:block;width:100%;height:100%;object-fit:cover}
.yp-text{min-width:0;font-size:.95rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yp-text b{font-weight:700}
@media (prefers-reduced-motion:reduce){.y-toast{animation:none}.y-toast.out{animation:none;opacity:0}}
:root[data-motion="off"] .y-toast{animation:none}

/* ===== Story ring on profile pictures: someone you can see posted a story you haven't watched yet ===== */
.avatar.has-story{box-shadow:0 0 0 2px var(--bg),0 0 0 4px #1F7AE8}
.avatar.xl.has-story{box-shadow:0 0 0 4px #1F7AE8}
.p-story{display:block;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
/* Banners: only as wide as their words, in Yout's dark navy */
.y-toast{width:max-content;min-width:220px;max-width:min(calc(100vw - 32px),400px);padding:12px;border-radius:22px;background:rgba(88,94,102,.72);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);border:0;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.y-toast.y-sent{display:block;padding:12px 12px 10px}
.y-sent .yt-main{gap:9px;padding:2px 10px 0;font-size:1.0625rem;white-space:nowrap}
.y-sent .yt-main b{font-weight:700}
.yt-check{width:22px;height:22px;color:#fff}
.yt-check path{stroke:rgba(88,94,102,1)}
.y-sent .yt-btn{display:block;margin:10px 0 0;padding:8px 16px;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font-size:.9375rem;font-weight:700;text-align:center}
.y-sent .yt-btn:hover{background:rgba(255,255,255,.22)}
.y-pop{gap:10px;padding:8px 16px 8px 8px;border-radius:999px;min-width:0}
.y-pop .yp-av{width:30px;height:30px}
.y-pop .yp-text{font-size:.875rem;line-height:1.3}

/* photo viewer: slide between photos, dots show which one */
.lightbox{display:block;touch-action:pan-y pinch-zoom}
.lb-view{position:absolute;inset:0;overflow:hidden}
.lb-track{display:flex;height:100%;will-change:transform}
.lb-track.lb-anim{transition:transform .32s cubic-bezier(.22,.8,.24,1)}
.lb-slide{flex:0 0 100%;height:100%;display:grid;place-items:center}
.lightbox .lb-slide img{max-width:100%;max-height:100dvh;object-fit:contain;user-select:none;-webkit-user-select:none}
.lb-x,.lb-nav{z-index:2}
.lb-nav:disabled{opacity:0;pointer-events:none}
.lb-dots{position:absolute;z-index:2;left:0;right:0;bottom:max(18px,calc(env(safe-area-inset-bottom) + 10px));display:flex;justify-content:center;gap:7px;pointer-events:none}
.lb-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.4);transition:background .2s,transform .2s}
.lb-dots i.on{background:#fff;transform:scale(1.15)}
.lightbox.solo .lb-dots{display:none}
@media (prefers-reduced-motion:reduce){.lb-track.lb-anim{transition:none}}
:root[data-motion="off"] .lb-track.lb-anim{transition:none}
.lb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Home: "new posts" pill (blue, up arrow + up to three authors' pictures) */
.new-pill{position:fixed;left:50%;top:120px;z-index:60;display:flex;align-items:center;gap:8px;height:44px;padding:0 12px 0 14px;border:0;border-radius:999px;
  background:#1F7AE8;color:#fff;box-shadow:0 6px 18px rgba(31,122,232,.35),0 2px 6px rgba(0,0,0,.12);cursor:pointer;
  transform:translate(-50%,-14px);opacity:0;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .22s ease}
.new-pill.show{transform:translate(-50%,0);opacity:1}
.new-pill:hover{background:#1868c9}
.new-pill:disabled{opacity:.8}
.np-up{width:20px;height:20px;flex:none}
.np-avs{display:flex}
.np-av{display:block;width:30px;height:30px;border-radius:50%;overflow:hidden;border:2px solid #1F7AE8;background:var(--av-def-bg);margin-left:-9px}
.np-av:first-child{margin-left:0}
.np-av img,.np-av .av-def{display:block;width:100%;height:100%;object-fit:cover}
.feed > .np-in{animation:np-in .5s ease both}
@keyframes np-in{from{background:rgba(31,122,232,.10)}to{background:transparent}}
@media (prefers-reduced-motion:reduce){.new-pill{transition:none}.feed > .np-in{animation:none}}
:root[data-motion="off"] .new-pill{transition:none}

/* ---------- Verification (Settings > Verification, policy, test checkout, admin review) ---------- */
.vf-head{display:flex;gap:14px;align-items:flex-start}
.vf-head h2{margin:0 0 4px;font-size:1.15rem}
.vf-head p{margin:0}
.vf-big svg.verified{width:44px;height:44px}
.vf-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--brand)}
.vf-ico.warn{color:var(--danger)}
.vf-ico svg{width:22px;height:22px}
.vf-status form{margin-top:12px}
.vf-req{list-style:none;margin:0;padding:0}
.vf-req li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line)}
.vf-req li:last-child{border-bottom:0}
.vf-tick{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--tint);color:var(--brand)}
.vf-req li.no .vf-tick{background:var(--soft);color:var(--muted)}
.vf-tick svg{width:14px;height:14px}
.vf-form{display:flex;flex-direction:column;gap:12px}
.vf-form h2{margin:0}
.vf-form label{display:flex;flex-direction:column;gap:6px}
.vf-check{flex-direction:row!important;align-items:flex-start;gap:10px!important}
.vf-check input{margin-top:3px;flex:none}
.vf-note{padding:10px 12px;border-radius:12px;background:var(--tint)}
.vf-test{display:flex;gap:8px;align-items:center;padding:8px 12px;border-radius:12px;background:var(--soft);color:var(--muted);font-size:.875rem}
.vf-test svg{width:16px;height:16px;flex:none}
.vf-price{font-weight:400;color:var(--muted);font-size:.9rem;margin-left:6px}
.vf-perks{margin:6px 0 10px;padding-left:20px}
.vf-perks li{margin:4px 0}
.vf-table{width:100%;border-collapse:collapse;font-size:.9rem}
.vf-table th,.vf-table td{text-align:left;padding:6px 4px;border-bottom:1px solid var(--line)}
.vf-hist{list-style:none;margin:0;padding:0}
.vf-hist li{padding:6px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.vf-policy h3{margin-top:18px}
.vf-checkout{text-align:center;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.vf-amount{font-size:1.6rem;font-weight:700;margin:0}
.vf-pay{display:flex;flex-direction:column;gap:10px}
.vf-tabs{margin-top:8px}
.vf-row{color:inherit;text-decoration:none}
.vf-who{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.vf-docs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:10px 0}
.vf-docs figure{margin:0}
.vf-docs img{width:100%;border-radius:12px;border:1px solid var(--line);background:var(--soft)}
.vf-docs figcaption{font-size:.85rem;color:var(--muted);margin-top:4px}
.vf-decide,.vf-badge-acts{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:12px 0}
.vf-decide form,.vf-badge-acts form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.vf-decide label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}
.vf .set-group{padding:0 16px 16px}
.vf .set-group h2{padding:18px 0 8px}
.vf .vf-head h2{padding:0}
.vf .vf-status{padding-top:18px}
.vf .set-group .set-row{padding-left:0;padding-right:0}
.vf .vf-form{margin:14px 16px}
.vf > .set-edit{padding-left:16px;padding-right:16px}
@media (max-width:700px){.vf .set-group{padding:0 12px 14px}.vf .vf-form{margin:12px}.vf > .set-edit{padding-left:12px;padding-right:12px}}
.vf .set-value{white-space:nowrap}
.vf .set-row .set-ctl{flex:none}
.vf-check span{flex:1 1 auto;min-width:0}
.vf-plus form{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.vf-check input[type=checkbox]{width:auto;flex:none}
.vf .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* blue check: Yout blue, the same size as the name beside it */
svg.verified{width:1em;height:1em}
svg.verified,.nm .verified{color:#1877d6}  /* Yout blue in light and dark */

/* ===================== Settings design system =====================
   Only pages inside Settings get .set-page (base.html), so nothing else in the app changes.
   Grouped cards, medium-weight titles, quiet descriptions, one icon style, clear selected states. */
.set-page{--set-r:16px;--set-pad:16px;padding-bottom:28px}
.set-page > :not(.topbar){animation:set-in .2s ease-out both}
@keyframes set-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.set-page > :not(.topbar){animation:none}}
:root[data-motion="reduced"] .set-page > :not(.topbar),:root[data-motion="off"] .set-page > :not(.topbar){animation:none}

/* intro text and notices */
.set-page .set-intro{margin:0;padding:14px 20px 2px;color:var(--muted);font-size:.9375rem;line-height:1.5}
.set-page .set-group .set-intro{padding:2px var(--set-pad) 10px}
.set-page .set-box{margin:12px 16px 0;padding:12px 14px;border:0;border-radius:12px;background:var(--tint);color:var(--text);font-size:.9375rem}
.set-page .flash{margin:12px 16px 0;border-radius:12px}

/* groups are cards; the heading sits inside as a small label */
.set-page .set-group{margin:16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface);overflow:hidden}
.set-page .set-group > h2{margin:0;padding:14px var(--set-pad) 4px;font-size:.8125rem;font-weight:600;letter-spacing:.01em;color:var(--muted)}
.set-page .set-list{margin:12px 16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface);overflow:hidden}
.set-page .set-list > p.pad{margin:0}

/* rows */
.set-page .set-row{position:relative;flex-wrap:wrap;gap:10px 14px;min-height:56px;padding:14px var(--set-pad);border-top:1px solid var(--line);background:transparent}
.set-page .set-group > h2 + .set-row,.set-page .set-group > h2 + .set-intro + .set-row,.set-page .set-list > .set-row:first-child{border-top:0}
.set-page .set-text{flex:1 1 210px;min-width:0}
.set-page .set-title{font-size:1rem;font-weight:600;line-height:1.35;color:var(--text)}
.set-page .set-desc{margin:3px 0 0;font-size:.875rem;line-height:1.45;color:var(--muted)}
.set-page .set-note{margin:6px 0 0;font-size:.8125rem;color:var(--muted)}
.set-page .set-ctl{flex:0 0 auto;margin-left:auto;gap:8px}
.set-page .saved{min-width:0;font-size:.75rem}
.set-page .saved:empty{display:none}
.set-page a.set-row{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s}
@media (hover:hover){.set-page a.set-row:hover{background:var(--hover);text-decoration:none}}
.set-page a.set-row:active{background:var(--hover)}
.set-page a.set-row:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.set-page .set-row > .ico-svg:last-child,.set-page .chev{color:var(--muted);flex:none}
.set-page .set-row > .ico-svg:last-child,.set-page .chev .ico-svg{width:1.15em;height:1.15em}
.set-page .badge{flex:none}

/* one icon style everywhere in Settings: plain outline icons, same size and weight */
.set-page .set-ico{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:0;background:none;color:var(--text)}
.set-page .set-ico .ico-svg{width:22px;height:22px}
.set-page .set-row.danger .set-ico{background:none;color:var(--danger)}
.set-page .set-row.danger .set-title{color:var(--danger)}

/* information rows: label and value on one line, description below */
.set-page .s-info .set-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.set-page .s-info .set-title{flex:none}
.set-page .set-value{max-width:65%;margin:0;text-align:right;color:var(--muted);font-size:.9375rem;overflow-wrap:anywhere}

/* switches */
.set-page .switch{width:50px;height:30px}
.set-page .knob{background:var(--line-strong);transition:background-color .2s}
.set-page .knob::after{top:3px;left:3px;width:24px;height:24px;transition:transform .22s cubic-bezier(.3,.7,.4,1)}
.set-page .switch input:checked + .knob::after{transform:translateX(20px)}
.set-page .switch input:focus-visible + .knob{outline:2px solid var(--brand);outline-offset:3px}
.set-page .switch input:active + .knob::after{width:28px}
.set-page .switch input:checked:active + .knob::after{transform:translateX(16px)}

/* drop-downs: beside the text when there's room, underneath on phones */
.set-page .s-select .set-ctl{flex:0 1 220px}
.set-page .set-ctl select{width:100%;max-width:none;min-height:44px;margin:0;padding:0 38px 0 14px;border:1px solid var(--line-strong);border-radius:12px;
  background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8590' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/18px;
  -webkit-appearance:none;appearance:none;color:var(--text);font:inherit;font-size:.9375rem;font-weight:500;cursor:pointer}
.set-page .set-ctl select:focus-visible{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
@media (max-width:520px){.set-page .s-select .set-ctl{flex:1 1 100%}}

/* choices: selection cards with a clear selected state */
.set-page .s-radios fieldset{min-width:0;margin:0;padding:0;border:0}
.set-page .s-radios .set-ctl{display:none}.set-page .s-radios .set-ctl:has(.saved:not(:empty)){display:flex;position:absolute;top:14px;right:var(--set-pad)}
.set-page .radio-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin-top:12px}
.set-page .radio{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;
  background:var(--bg);color:var(--text);font-size:.9375rem;font-weight:500;line-height:1.25;text-align:center;cursor:pointer;transition:border-color .15s,background-color .15s,color .15s}
.set-page .radio input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
@media (hover:hover){.set-page .radio:hover{border-color:var(--line-strong)}}
.set-page .radio:has(input:checked){border-color:var(--brand);background:var(--tint);color:var(--brand);font-weight:600}
.set-page .radio:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.set-page .radio:active{transform:scale(.985)}
.set-page .radio-list.swatches{grid-template-columns:repeat(3,1fr)}.set-page .swatches .radio{justify-content:flex-start}
.set-page .swatch{width:18px;height:18px;flex:none}
.set-page .radio input:checked ~ .swatch{box-shadow:0 0 0 2px var(--brand)}
.set-page .radio-list.themes{grid-template-columns:repeat(3,1fr)}
.set-page .themes .radio,.set-page .sizes .radio{flex-direction:column;gap:8px;padding:10px 8px 12px}
.theme-thumb{display:flex;flex-direction:column;gap:5px;width:100%;max-width:120px;height:66px;padding:10px;border-radius:9px;border:1px solid var(--line);background:#fff}
.theme-thumb b{display:block;height:6px;border-radius:3px;background:#dfe5eb}.theme-thumb b:first-child{width:55%;background:#1877d6}.theme-thumb b:nth-child(2){width:85%}.theme-thumb b:last-child{width:65%}
.theme-thumb[data-thumb="dark"]{background:#0e1319;border-color:#2a333e}.theme-thumb[data-thumb="dark"] b{background:#2a333e}.theme-thumb[data-thumb="dark"] b:first-child{background:#4aa8f8}
.theme-thumb[data-thumb="system"]{background:linear-gradient(135deg,#fff 50%,#0e1319 50%)}.theme-thumb[data-thumb="system"] b{background:#9aa6b2}.theme-thumb[data-thumb="system"] b:first-child{background:#1877d6}
.set-page .radio-list.sizes{grid-template-columns:repeat(4,1fr)}
.size-thumb{display:grid;place-items:center;height:34px;font-style:normal;font-weight:700;line-height:1}
.size-thumb[data-size="small"]{font-size:.85rem}.size-thumb[data-size="medium"]{font-size:1.05rem}.size-thumb[data-size="large"]{font-size:1.3rem}.size-thumb[data-size="xlarge"]{font-size:1.55rem}
.set-page .sizes .radio span{font-size:.8125rem}

/* expandable edits ("Change username", "Download your data"...) */
.set-page .set-edit{padding:0;border-top:1px solid var(--line)}
.set-page .set-edit > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:14px var(--set-pad);list-style:none;
  color:var(--brand);font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent}
.set-page .set-edit > summary::-webkit-details-marker{display:none}
.set-page .set-edit > summary::after{content:"";flex:none;width:7px;height:7px;margin-right:4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.set-page .set-edit[open] > summary::after{transform:rotate(-135deg)}
.set-page .set-edit > summary:active{background:var(--hover)}
.set-page .set-edit > summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.set-page .set-edit > form{display:grid;gap:12px;padding:2px var(--set-pad) 16px}
.set-page .set-sub{padding:4px var(--set-pad) 14px;font-size:.9375rem}

/* forms and cards (password, two-factor, deactivate, delete, contact...) */
.set-page .card{display:grid;gap:14px;margin:16px;padding:18px var(--set-pad);border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface);box-shadow:none}
.set-page .card > *{margin:0}.set-page .card h2{font-size:1.0625rem}
.set-page :is(.set-edit form, .card) > label,.set-page .card form > label{display:block;margin:0;font-size:.875rem;font-weight:600;color:var(--text)}
.set-page :is(.set-edit form, .card) > label > :is(input, select, textarea),.set-page .card form > label > :is(input, select, textarea){display:block;margin-top:6px}
.set-page :is(.set-edit, .card, .inline-add) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.set-page :is(.set-edit, .card) textarea,.set-page .card select{
  width:100%;min-height:46px;margin:0;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:1rem;font-weight:400}
.set-page .card textarea,.set-page .set-edit textarea{min-height:130px;padding:12px 14px;line-height:1.45;resize:vertical}
.set-page :is(.set-edit, .card, .inline-add) :is(input, textarea, select):focus-visible{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.set-page .card .muted,.set-page .set-edit .muted{margin:0;font-size:.875rem}
.set-page :is(.card, .set-edit form) > .btn,.set-page :is(.card, .set-edit form) > .row .btn{justify-self:start;min-height:44px;padding:0 22px}
.set-page .btn:active{transform:scale(.98)}
.set-page .danger-text{color:var(--danger)}

/* notification channels */
.set-page .matrix{margin:12px 16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface);overflow:hidden}
.set-page .m-row{grid-template-columns:minmax(0,1fr) repeat(3,64px);gap:6px;padding:12px var(--set-pad);border-bottom:1px solid var(--line)}
.set-page .m-row:last-child{border-bottom:0}
.set-page .m-head{padding-top:12px;padding-bottom:10px;background:var(--soft);font-size:.75rem;font-weight:600;color:var(--muted);text-align:center;line-height:1.2}
.set-page .matrix .switch{width:44px;height:26px}.set-page .matrix .knob::after{width:20px;height:20px}
.set-page .matrix .switch input:checked + .knob::after{transform:translateX(18px)}
.set-page .matrix .switch input:checked:active + .knob::after{transform:translateX(14px)}
.set-page .matrix .switch input:active + .knob::after{width:24px}
@media (max-width:420px){.set-page .m-row{grid-template-columns:minmax(0,1fr) repeat(3,52px);gap:4px}}

/* preview, tables, chips, codes */
.set-page .preview-box{margin:12px 16px 0;padding:16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface)}
.set-page .preview-box b{font-size:.75rem;font-weight:600;color:var(--muted);letter-spacing:.02em}
.set-page .table-wrap{margin:12px 16px;border:1px solid var(--line);border-radius:var(--set-r);overflow:hidden;background:var(--surface)}
.set-page table.plain{width:100%;border-collapse:collapse;font-size:.875rem}
.set-page table.plain th{padding:10px 12px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:600;text-align:left}
.set-page table.plain td{padding:12px;border-top:1px solid var(--line);vertical-align:top}
@media (max-width:560px){
  .set-page .table-wrap table.plain thead{display:none}
  .set-page .table-wrap table.plain,.set-page .table-wrap table.plain tbody,.set-page .table-wrap table.plain tr,.set-page .table-wrap table.plain td{display:block;width:100%}
  .set-page .table-wrap table.plain tr{padding:10px 14px;border-top:1px solid var(--line)}.set-page .table-wrap table.plain tr:first-child{border-top:0}
  .set-page .table-wrap table.plain td{display:flex;gap:10px;padding:3px 0;border:0}
  .set-page .table-wrap table.plain td[data-label]::before{content:attr(data-label);flex:0 0 86px;color:var(--muted);font-size:.75rem;font-weight:600;padding-top:2px}}
.set-page .chips{gap:8px}
.set-page .chip{gap:2px;margin:0;padding:5px 6px 5px 12px;border:0;border-radius:999px;background:var(--soft);font-size:.9375rem;font-weight:500}
.set-page .chip button.link{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:var(--muted)}
.set-page .chip button.link:hover{background:var(--line);color:var(--text)}
.set-page .chips.pad{padding:4px 20px 16px}
.set-page .inline-add{display:flex;gap:8px}.set-page .inline-add .btn{flex:none;min-height:46px}
.set-page .keybox,.set-page .codes{border-radius:12px}
.set-page .pill{font-size:.75rem}
.set-page .doc{padding:4px 20px 24px}.set-page .doc h2{font-size:1.0625rem}.set-page .doc p,.set-page .doc li{color:var(--text)}

/* ---------- Settings home ---------- */
.set-hero{padding:14px 20px 0}
.set-hero p{margin:0;color:var(--muted);font-size:.9375rem}
.set-search{position:relative;margin:12px 16px 0}
.set-search .ico-svg{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.set-search input{width:100%;min-height:46px;margin:0;padding:0 14px 0 42px;border:1px solid transparent;border-radius:12px;background:var(--soft);color:var(--text);font:inherit;font-size:1rem}
.set-search input:focus-visible{outline:none;border-color:var(--brand);background:var(--bg);box-shadow:0 0 0 3px var(--tint)}
.set-search input::-webkit-search-cancel-button{cursor:pointer}
.set-page .set-me{gap:14px;margin:14px 16px 0;padding:14px var(--set-pad);border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface);transition:background-color .15s}
.set-page .set-me .avatar{width:56px;height:56px}
.set-page .set-me-t b{display:inline-flex;align-items:center;gap:4px;font-size:1.0625rem;font-weight:700}
.set-page .set-me-t .muted{font-size:.9375rem}
@media (hover:hover){.set-page .set-me:hover{background:var(--hover)}}
.set-page .set-me:active{background:var(--hover)}
.set-page .set-me:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.set-main .set-title{font-weight:500;font-size:1.0625rem}
.set-main.set-captions .set-title{font-weight:600;font-size:1rem}
.set-now{flex:none;color:var(--muted);font-size:.9375rem;margin-right:-4px}
.set-results-head{margin:16px 20px 0;font-size:.8125rem;font-weight:600;color:var(--muted)}
.set-results .set-desc b{color:var(--text);font-weight:600}
.set-empty{margin:12px 20px;color:var(--muted)}
.set-page .set-logout{margin-top:18px;padding:0}
.set-page .set-logout .btn{width:100%;min-height:48px;border-radius:12px}
.set-page .set-found{animation:set-found 2.2s ease-out}
@keyframes set-found{0%,40%{background:var(--tint)}100%{background:transparent}}
.set-page [id^="s-"]{scroll-margin-top:calc(var(--topbar-h) + 12px)}
.set-page a.set-row{flex-wrap:nowrap}
.set-page a.set-row .set-text{flex:1 1 auto}
.set-page .set-row.stack .set-text,.set-page .set-row.stack fieldset{flex:none}
.set-page > a.set-row{margin:16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface)}
.set-page .nw{white-space:nowrap}
.set-page .vf > a.set-row{margin:16px;border:1px solid var(--line);border-radius:var(--set-r);background:var(--surface)}

.set-page .card .set-intro{padding:0}
.set-page .doc > .set-intro:first-child{padding:10px 0 0}
@media (max-width:560px){
  .set-page .table-wrap table.plain tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
  .set-page .table-wrap table.plain td{display:block;padding:0}
  .set-page .table-wrap table.plain td[data-label]::before{content:none}
  .set-page .table-wrap table.plain td:nth-child(1){font-weight:600}
  .set-page .table-wrap table.plain td:nth-child(4){grid-column:2;grid-row:1;text-align:right}
  .set-page .table-wrap table.plain td:nth-child(2),.set-page .table-wrap table.plain td:nth-child(3){color:var(--muted);font-size:.8125rem}
  .set-page .table-wrap table.plain td:nth-child(3){text-align:right}}
.sn .sn-text:focus,.sn .sn-text:focus-visible{outline:none;box-shadow:none;border:0}
:root[data-theme="dark"] .sc-cam{background:var(--soft)}
@media (prefers-color-scheme:dark){:root[data-theme="system"] .sc-cam,:root:not([data-theme]) .sc-cam{background:var(--soft)}}

/* ===================== Yout Business Network (.bn) ===================== */
.bn{--bn-r:18px;--bn-card:var(--surface);--bn-tint:var(--tint);display:flex;flex-direction:column;gap:18px;padding:16px 16px 110px}
.bn .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bn h2,.bn h3,.bn h4{margin:0;letter-spacing:-.01em}
.bn-card{position:relative;padding:18px;border:1px solid var(--line);border-radius:var(--bn-r);background:var(--bn-card);box-shadow:var(--shadow-sm)}
.bn-section{display:flex;flex-direction:column;gap:10px}
.bn-section>h3,.bn-sec-head h3{font-size:1.05rem}
.bn-sec-head{display:flex;align-items:baseline;gap:8px}
.bn-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:4px;padding:0 6px;border-radius:999px;background:var(--solid);color:var(--on-solid);font-size:.76rem;font-weight:var(--w-ui);vertical-align:2px}
/* hero */
.bn-hero{position:relative;overflow:hidden;padding:26px 22px 22px;border-radius:24px;background:linear-gradient(135deg,var(--tint),transparent 70%),var(--bn-card);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.bn-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,var(--tint),transparent 70%);pointer-events:none}
.bn-hero-mark{display:inline-grid;place-items:center;width:52px;height:52px;margin-bottom:12px;border-radius:16px;background:var(--bn-card);box-shadow:var(--shadow-md)}
.bn-hero-mark svg{width:30px;height:30px}
.bn-hero h2{font-size:1.55rem;font-weight:var(--w-head)}
.bn-hero p{max-width:520px;margin:8px 0 0;color:var(--muted);line-height:1.5}
.bn-cta{display:inline-flex;align-items:center;gap:8px;margin-top:16px;min-height:46px;padding:0 22px;border-radius:999px}
.bn-cta .ico-svg{width:1.1em;height:1.1em}
.bn-hero-note{padding:10px 12px;border-radius:12px;background:var(--soft);color:var(--text)!important}
/* logos */
.bn-logo{display:grid;place-items:center;flex:none;width:44px;height:44px;overflow:hidden;border-radius:12px;background:var(--soft);color:var(--brand);box-shadow:inset 0 0 0 1px var(--line)}
.bn-logo img{width:100%;height:100%;object-fit:cover}
.bn-logo .ico-svg{width:55%;height:55%}
.bn-logo.xs{width:22px;height:22px;border-radius:6px}.bn-logo.sm{width:36px;height:36px;border-radius:10px}.bn-logo.md{width:48px;height:48px;border-radius:13px}
.bn-logo.lg{width:64px;height:64px;border-radius:17px}.bn-logo.xl{width:104px;height:104px;border-radius:26px;border:4px solid var(--bg);box-shadow:var(--shadow-md)}
/* rows, lists */
.bn-row{display:flex;align-items:center;gap:14px;padding:14px 16px}
.bn-row-t{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.bn-row-t b{display:flex;align-items:center;gap:5px;overflow-wrap:anywhere}
.bn-row-t .muted{font-size:.88rem}.bn-row-t .bn-pill{align-self:flex-start;margin-top:4px}
.bn-row-go{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.bn .btn.small{min-height:36px;padding:0 14px;font-size:.9rem}
.bn .btn.danger{background:var(--danger,#d22);color:#fff}.bn .btn.alt.danger{background:transparent;color:var(--danger,#d22)}
.bn-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.76rem;font-weight:var(--w-ui);white-space:nowrap}
.bn-pill.s-approved{background:var(--tint);color:var(--brand)}
.bn-pill.s-pending,.bn-pill.s-info_required{background:rgba(232,140,20,.14);color:#a85d00}
.bn-pill.s-rejected,.bn-pill.s-suspended{background:rgba(210,40,40,.12);color:#b42318}
.bn-pill.s-staff{background:var(--solid);color:var(--on-solid)}
.bn-pill.r-owner{background:var(--solid);color:var(--on-solid)}.bn-pill.r-admin{background:var(--tint);color:var(--brand)}
:root[data-theme="dark"] .bn-pill.s-pending,:root[data-theme="dark"] .bn-pill.s-info_required{color:#ffb44d}
:root[data-theme="dark"] .bn-pill.s-rejected,:root[data-theme="dark"] .bn-pill.s-suspended{color:#ff8a7a}
.bn-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 16px;border:1px dashed var(--line-strong);border-radius:var(--bn-r);text-align:center}
.bn-empty .ico-svg{width:30px;height:30px;color:var(--brand)}.bn-empty .muted{font-size:.9rem}
.bn-list{display:flex;flex-direction:column;margin:8px 0 0;padding:0;list-style:none}
.bn-list li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.bn-list li:first-child{border-top:0}
.bn-list-t{display:flex;flex-direction:column;flex:1;min-width:0}.bn-list-t .muted{font-size:.85rem}
.bn-inline{display:inline-flex;align-items:center;gap:6px;margin:0}.bn-inline select{min-height:36px;padding:0 8px;border-radius:10px}
.bn-person{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:var(--text)}.bn-person:hover{text-decoration:none}
.bn-person img,.bn-person-def{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover}
.bn-person-def{display:grid;place-items:center;background:var(--soft);color:var(--muted)}.bn-person-def .ico-svg{width:22px;height:22px}
.bn-person-t{display:flex;flex-direction:column;min-width:0}.bn-person-t b{display:flex;align-items:center;gap:4px}.bn-person-t span{color:var(--muted);font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* invitations */
.bn-invite{display:flex;flex-direction:column;gap:12px;border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
.bn-invite-head{display:flex;align-items:center;gap:12px}.bn-invite-head div{display:flex;flex-direction:column}.bn-invite-head b{display:flex;align-items:center;gap:5px}
.bn-invite-head .muted{font-size:.86rem}.bn-invite p{margin:0;line-height:1.5}
.bn-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.bn-actions form{margin:0}.bn-exp{margin-left:auto;font-size:.82rem}
.bn-note{margin:0;padding:10px 14px;border-left:3px solid var(--brand);border-radius:0 12px 12px 0;background:var(--soft);font-style:italic}
/* requirements + how it works */
.bn-reqs{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.bn-reqs li{display:flex;align-items:center;gap:10px}.bn-reqs li span:first-child{display:grid;place-items:center;width:24px;height:24px;border-radius:50%}
.bn-reqs .ok span:first-child{background:var(--tint);color:var(--brand)}.bn-reqs .no span:first-child{background:rgba(210,40,40,.12);color:#b42318}
.bn-reqs .ico-svg{width:14px;height:14px;stroke-width:2.6}
.bn-how ol{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:bn}
.bn-how li{position:relative;display:flex;flex-direction:column;gap:3px;padding:14px 14px 14px 56px;border-radius:16px;background:var(--soft);counter-increment:bn}
.bn-how li::before{content:counter(bn);position:absolute;left:14px;top:14px;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--bn-card);color:var(--brand);font-weight:var(--w-head);box-shadow:var(--shadow-sm)}
.bn-how span{color:var(--muted);font-size:.9rem;line-height:1.45}
@media (min-width:900px){.bn-how ol{grid-template-columns:repeat(3,1fr)}}
/* stepper */
.bn-steps ol{display:flex;gap:6px;margin:0;padding:0;list-style:none;overflow-x:auto;scrollbar-width:none}.bn-steps ol::-webkit-scrollbar{display:none}
.bn-steps li{flex:1 0 auto}
.bn-steps li>a,.bn-steps li>span{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:48px;color:var(--muted);text-align:center;text-decoration:none}
.bn-step-n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--soft);color:var(--muted);font-weight:var(--w-ui);font-size:.88rem;transition:background .15s,color .15s}
.bn-step-n .ico-svg{width:16px;height:16px;stroke-width:2.6}
.bn-step-l{display:none;font-size:.78rem;line-height:1.2}
.bn-steps li.done .bn-step-n{background:var(--tint);color:var(--brand)}
.bn-steps li.here .bn-step-n{background:var(--solid);color:var(--on-solid);box-shadow:0 0 0 4px var(--tint)}
.bn-steps li.here .bn-step-l{color:var(--text);font-weight:var(--w-ui)}
.bn-steps a:hover .bn-step-n{background:var(--tint);color:var(--brand)}
.bn-step-now{margin:10px 0 0;color:var(--muted);font-size:.9rem}.bn-step-now b{color:var(--text)}
@media (min-width:700px){.bn-step-l{display:block}.bn-step-now{display:none}}
/* forms */
.bn-form{display:flex;flex-direction:column;gap:16px}
.bn-form>h2,.bn-form>h3{font-size:1.2rem}.bn-form>p{margin:-8px 0 0}
.bn-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;border:0;padding:0}
.bn-field>span:first-child,.bn-field legend{font-weight:var(--w-ui);font-size:.92rem;padding:0}
.bn-field i.muted{font-style:normal;font-weight:var(--w-text);font-size:.85rem}
.bn-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.bn-field select,.bn-field textarea{width:100%;margin:0;min-height:46px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;transition:border-color .15s,box-shadow .15s}
.bn-field textarea{min-height:92px;resize:vertical;line-height:1.45}
.bn-field input:focus,.bn-field select:focus,.bn-field textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.bn-field [aria-invalid="true"]{border-color:var(--danger,#d22)!important}
.bn-prefix{display:flex;align-items:stretch;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.bn-prefix:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.bn-prefix em{display:grid;place-items:center;padding:0 4px 0 14px;color:var(--muted);font-style:normal}
.bn-prefix input{border:0!important;box-shadow:none!important;padding-left:2px!important;border-radius:0!important}
.bn-help{color:var(--muted);font-size:.82rem}.bn-help.good{color:#12805c}.bn-help.bad,.bn-err{color:var(--danger,#d22);font-size:.84rem;font-weight:var(--w-mid)}
.bn-two{display:grid;gap:16px}@media (min-width:640px){.bn-two{grid-template-columns:1fr 1fr}}
.bn-choices{display:grid;gap:8px}@media (min-width:640px){.bn-choices{grid-template-columns:1fr 1fr}}
.bn-choice{position:relative;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s}
.bn-choice input{width:18px;height:18px;margin:0;accent-color:var(--brand)}
.bn-choice:has(input:checked){border-color:var(--brand);background:var(--tint)}.bn-choice:has(input:focus-visible){box-shadow:0 0 0 3px var(--tint)}
.bn-check{display:flex;align-items:flex-start;gap:10px;font-weight:var(--w-text);font-size:.9rem;cursor:pointer}.bn-check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--brand);flex:none}
.bn-consent{padding:14px;border-radius:14px;background:var(--soft);line-height:1.45}
.bn-form-foot{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0;padding-top:4px}
.bn-form-foot .btn{min-height:46px;padding:0 22px;border-radius:999px}
.bn-private{display:flex;gap:10px;align-items:flex-start;margin:0!important;padding:12px 14px;border-radius:14px;background:var(--soft);color:var(--muted);font-size:.88rem;line-height:1.45}
.bn-private .ico-svg{flex:none;width:18px;height:18px;color:var(--brand);margin-top:1px}
.bn-file input[type=file]{padding:10px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--soft);font:inherit;font-size:.88rem}
.bn-brand-preview{position:relative;padding-bottom:40px}
.bn-cover-prev{aspect-ratio:3/1;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,var(--tint),var(--soft))}
.bn-cover-prev img{width:100%;height:100%;object-fit:cover}
.bn-logo-prev{position:absolute;left:18px;bottom:0}
.bn-docs{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.bn-docs li{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}
.bn-docs form{margin:0}.bn-docs-empty{justify-content:center;border-style:dashed!important;font-size:.9rem}
.bn-doc-ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:var(--tint);color:var(--brand)}
.bn-doc-t{display:flex;flex-direction:column;flex:1;min-width:0}.bn-doc-t .muted{font-size:.82rem}
.bn-upload{display:grid;gap:12px;padding:14px;border-radius:16px;background:var(--soft)}
@media (min-width:700px){.bn-upload{grid-template-columns:1fr 1.3fr auto;align-items:end}}
.bn-upload .btn{min-height:46px}
.bn .spin{display:none;width:20px;height:20px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
.bn .btn.alt .spin{border-color:var(--line);border-top-color:var(--brand)}
.bn .is-busy .spin{display:inline-block}.bn .is-busy .bn-btn-t{display:none}
.bn-review{display:flex;flex-direction:column;gap:14px}
.bn-review-head{display:flex;align-items:center;gap:14px}.bn-review-head div{display:flex;flex-direction:column}
.bn-dl{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:10px 16px;margin:0}
.bn-dl dt{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.88rem}.bn-dl dt .ico-svg{width:13px;height:13px}
.bn-dl dd{margin:0;overflow-wrap:anywhere}
.bn-alert{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:16px;background:var(--tint);border:1px solid color-mix(in srgb,var(--brand) 30%,transparent)}
.bn-alert.warn{background:rgba(232,140,20,.10);border-color:rgba(232,140,20,.35)}.bn-alert.bad{background:rgba(210,40,40,.08);border-color:rgba(210,40,40,.3)}
.bn-alert ul{margin:4px 0 0;padding-left:20px}
/* management */
.bn-mhead{display:flex;align-items:center;gap:14px}
.bn-mhead-t{display:flex;flex-direction:column;gap:3px;min-width:0}.bn-mhead-t h2{display:flex;align-items:center;gap:6px;font-size:1.3rem;overflow-wrap:anywhere}
.bn-mhead-t .muted{font-size:.88rem}.bn-mhead-pills{display:flex;align-items:center;gap:10px;margin-top:4px}
.bn-link{display:inline-flex;align-items:center;gap:5px;font-size:.88rem;font-weight:var(--w-ui)}.bn-link .ico-svg{width:16px;height:16px}
.bn-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:14px;background:var(--soft)}.bn-tabs::-webkit-scrollbar{display:none}
.bn-tabs a{flex:1 0 auto;padding:9px 14px;border-radius:10px;color:var(--muted);font-weight:var(--w-ui);font-size:.92rem;text-align:center;white-space:nowrap}
.bn-tabs a:hover{color:var(--text);text-decoration:none}.bn-tabs a.on{background:var(--bn-card);color:var(--text);box-shadow:var(--shadow-sm)}
.bn-status{display:flex;gap:16px;align-items:flex-start}
.bn-status-ico{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:var(--soft);color:var(--muted)}
.bn-status-ico svg{width:26px;height:26px}
.bn-status.s-approved .bn-status-ico{background:var(--tint)}.bn-status.s-pending .bn-status-ico,.bn-status.s-info_required .bn-status-ico{background:rgba(232,140,20,.12);color:#a85d00}
.bn-status.s-rejected .bn-status-ico,.bn-status.s-suspended .bn-status-ico{background:rgba(210,40,40,.1);color:#b42318}
.bn-status-t{display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}.bn-status-t p{margin:0;color:var(--muted);line-height:1.5}.bn-status-t .btn{align-self:flex-start}
.bn-timeline{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none;font-size:.84rem;color:var(--muted)}
.bn-timeline li{position:relative;padding-left:14px}.bn-timeline li::before{content:"";position:absolute;left:0;top:.45em;width:7px;height:7px;border-radius:50%;background:var(--line-strong)}
.bn-timeline li.done::before{background:var(--brand)}
.bn-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.bn-stat{display:flex;flex-direction:column;gap:2px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--bn-card);color:var(--text)}
.bn-stat:hover{text-decoration:none;border-color:var(--brand)}.bn-stat b{font-size:1.4rem;font-weight:var(--w-head)}.bn-stat span{color:var(--muted);font-size:.82rem}
.bn-danger summary{cursor:pointer;color:var(--danger,#d22);font-weight:var(--w-ui)}.bn-danger[open] summary{margin-bottom:10px}
.bn-roles{display:grid;grid-template-columns:max-content 1fr;gap:10px 14px;margin:8px 0 0}.bn-roles dd{margin:0;color:var(--muted);font-size:.9rem}
.bn-log{display:flex;flex-direction:column;margin:8px 0 0;padding:0;list-style:none}
.bn-log li{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:.9rem}.bn-log li:first-child{border-top:0}
.bn-log time{color:var(--muted);font-size:.82rem}.bn-log-d{display:block;color:var(--muted);font-size:.84rem;overflow-wrap:anywhere}
@media (max-width:520px){.bn-log li{grid-template-columns:1fr;gap:2px}}
.bn-lookup{position:relative}
.bn-sugs{position:absolute;left:0;right:0;top:100%;z-index:20;margin-top:4px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-lg)}
.bn-sugs button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.bn-sugs button:hover,.bn-sugs button.on{background:var(--hover)}.bn-sugs img,.bn-sug-def{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--soft);flex:none}
.bn-sugs span{display:flex;flex-direction:column;min-width:0}.bn-sugs small{color:var(--muted)}
/* public business page */
.bn-public{gap:14px;padding-top:0}
.bn-pcard{margin:0 -16px;border-bottom:1px solid var(--line)}
.bn-pcover{aspect-ratio:3/1;background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 55%,#0b2a4a))}
.bn-pcover img{width:100%;height:100%;object-fit:cover;display:block}
.bn-phead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 16px;margin-top:-52px}
.bn-pactions{display:flex;align-items:center;gap:8px;padding-bottom:6px}
.bn-pactions .btn{display:inline-flex;align-items:center;gap:6px}.bn-pactions .ico-svg{width:1.05em;height:1.05em}
.bn-pbody{display:flex;flex-direction:column;gap:8px;padding:10px 16px 18px}
.bn-pname{display:flex;align-items:center;gap:7px;font-size:1.5rem;font-weight:var(--w-head)}
.bn-pname svg.verified{width:.85em;height:.85em}
.bn-phandle{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.bn-vlabel{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 6px;border-radius:999px;background:var(--tint);color:var(--brand);font-size:.8rem;font-weight:var(--w-ui)}
.bn-vlabel svg{width:15px;height:15px}
.bn-pdesc{margin:4px 0 0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.bn-facts{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 0;padding:0;list-style:none;color:var(--muted);font-size:.92rem}
.bn-facts li{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.bn-facts .ico-svg{width:1.1em;height:1.1em;flex:none}
.bn-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:0;list-style:none}.bn-grid>li{min-width:0}@media (min-width:640px){.bn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bn-tile{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--bn-card);color:var(--text);transition:border-color .15s,transform .12s,box-shadow .15s}
.bn-tile:hover{text-decoration:none;border-color:var(--brand);box-shadow:var(--shadow-md)}.bn-tile:active{transform:scale(.99)}
.bn-tile.focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.bn-tile-av{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--soft);color:var(--muted)}
.bn-tile-av img{width:100%;height:100%;object-fit:cover}.bn-tile-av .ico-svg{width:24px;height:24px}
.bn-tile-t{display:flex;flex-direction:column;flex:1;min-width:0}.bn-tile-t b{display:flex;align-items:center;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bn-tile-t .muted{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bn-rel{align-self:flex-start;margin-top:6px;padding:3px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.76rem;font-weight:var(--w-ui)}
.bn-rel.rep{background:var(--tint);color:var(--brand)}
.bn-legend{margin:2px 0 0;font-size:.82rem}
/* "Officially affiliated with …" on a personal profile */
.bn-affil-note{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin-top:10px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:.86rem;transition:border-color .15s,background .15s}
.bn-affil-note:hover{text-decoration:none;border-color:var(--brand);background:var(--hover)}
.bn-affil-note>span:not(.bn-logo){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bn-affil-note i{margin-left:6px;color:var(--muted);font-style:normal}
.bn-affil-note>svg.verified,.bn-affil-note>.ico-svg{flex:none;width:15px;height:15px}
.bn-affil-note.rep{border-color:color-mix(in srgb,var(--brand) 40%,var(--line))}
.bn-dialog{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;width:min(480px,calc(100vw - 32px));padding:20px;border:0;border-radius:20px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}
.bn-dialog::backdrop{background:rgba(0,0,0,.45)}
body:has(.bn) .fab{display:none}
@media (prefers-reduced-motion:reduce){.bn *{transition:none!important}}
@media (max-width:520px){.bn-form-foot{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.bn-form-foot .btn{padding:0 12px;font-size:.95rem}}
.bn-sugs button{overflow:hidden}.bn-sugs b,.bn-sugs small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bn-act-head{align-items:center}.bn-act-head .btn{margin-left:auto;display:inline-flex;align-items:center;gap:6px}.bn-act-head .ico-svg{width:16px;height:16px}
.bn-chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 4px}
.bn-chips a{padding:6px 12px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.85rem;font-weight:var(--w-ui)}
.bn-chips a:hover{text-decoration:none;color:var(--text)}.bn-chips a.on{background:var(--solid);color:var(--on-solid)}
.bn-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:.9rem}
.bn-owner{display:flex;align-items:center;gap:10px}
.bn-tfa{display:flex;gap:10px;align-items:flex-start;margin:0!important;padding:12px 14px;border-radius:14px;font-size:.9rem;line-height:1.45}
.bn-tfa .ico-svg{flex:none;width:20px;height:20px;margin-top:1px}.bn-tfa a{margin-left:6px;font-weight:var(--w-ui)}
.bn-tfa.ok{background:var(--tint);color:var(--text)}.bn-tfa.ok .ico-svg{color:var(--brand)}
.bn-tfa.warn{background:rgba(232,140,20,.10);color:var(--text)}.bn-tfa.warn .ico-svg{color:#a85d00}
.bn-sub{border-top:1px solid var(--line);padding-top:12px}.bn-sub summary{cursor:pointer;font-weight:var(--w-ui);color:var(--brand)}.bn-sub[open] summary{margin-bottom:12px}
.bn-transfer{border-color:color-mix(in srgb,#e88c14 45%,var(--line))}
.bn-person-t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bn-person-t b svg{vertical-align:-2px;margin-left:3px}
.bn-pactions{flex-wrap:wrap;justify-content:flex-end;min-width:0}
@media (max-width:360px){.bn-pactions .btn{padding:0 14px}.bn-phead .bn-logo.xl{width:84px;height:84px;border-radius:22px}}
/* Gold business badge + the business-logo badge next to an affiliated account's name */
svg.verified.gold{width:1em;height:1em;flex:none}
.bn-vlabel{background:rgba(205,129,5,.12);color:#8a5a00}.bn-vlabel svg{width:15px;height:15px}
:root[data-theme="dark"] .bn-vlabel{background:rgba(244,200,60,.14);color:#f2cf5b}
@media (prefers-color-scheme:dark){:root[data-theme="system"] .bn-vlabel,:root:not([data-theme]) .bn-vlabel{background:rgba(244,200,60,.14);color:#f2cf5b}}
.affil-badge{display:inline-grid;place-items:center;flex:none;width:1em;height:1em;margin-left:3px;border-radius:.24em;overflow:hidden;
  background:var(--soft);box-shadow:0 0 0 1px var(--line-strong);vertical-align:-.14em;line-height:1;text-decoration:none!important}
.affil-badge img{width:100%;height:100%;object-fit:cover;display:block}
.affil-badge span{font-size:.62em;font-weight:var(--w-head);color:var(--muted)}
a.affil-badge:hover{filter:brightness(.92)}
.p-name .affil-badge{width:.85em;height:.85em}
.vbs{display:inline-flex;align-items:center;gap:2px;flex:none;vertical-align:-.14em}.vbs .affil-badge{margin-left:0;vertical-align:0}
svg.verified.gov{color:#829aab}
.p-gov{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 12px 4px 8px;border-radius:999px;background:rgba(130,154,171,.16);color:var(--text);font-size:.86rem;font-weight:var(--w-mid);max-width:100%}
.p-gov svg{width:16px;height:16px;flex:none}.p-gov span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.affil-badge.yout-badge{background:transparent;box-shadow:none}
/* Post header: the display name stays whole; the @username gives up space first and ends with "…" */
html body .post .meta .nm{flex:0 1 auto}
html body .post .meta .handle{flex:0 100000 auto;min-width:2.4em;max-width:none}
html body .focal .meta .handle{min-width:0}
html body .quote .q-head .name{flex:0 1 auto;min-width:0}
html body .quote .q-head .muted{flex:0 100000 auto;min-width:2.4em}
/* story sheets: pull down from the handle or title to close */
.sv-grab,.sv-sheet .sv-sh-t,.sv-sheet .sv-ph{touch-action:none}
/* Desktop sidebar: just the blue "yout" word, like the phone header */
.brand.brand-word{width:auto;height:52px;padding:0 12px;place-items:center start;border-radius:999px;justify-self:start;align-self:flex-start}
.brand.brand-word img{display:block;width:auto;height:34px}
@media (max-width:1100px){.brand.brand-word{align-self:center;padding:0 6px}.brand.brand-word img{height:28px}}
/* A quoted post only shows the blue focus ring for keyboard users, never after a tap */
.quote:focus-within{outline:none}.quote:has(:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
/* Tapping a name, @username or link on a phone doesn't underline it */
@media (hover:none){a:hover,a:active,.name:hover,.p-stats a:hover,.g-name:hover{text-decoration:none}}
/* story owner: a red dot on the comment button while there are comments they haven't read (like Notifications) */
.sv-cdot{position:absolute;top:8px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--alert);box-shadow:0 0 0 2px rgba(0,0,0,.35);pointer-events:none}
/* @mention / #hashtag suggestions while typing */
.mx-pop{position:fixed;z-index:3000;overflow-y:auto;overscroll-behavior:contain;padding:6px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg,0 10px 30px rgba(0,0,0,.25));font-family:var(--font)}
.mx-pop[hidden]{display:none}
.mx-item{display:flex;align-items:center;gap:12px;width:100%;padding:8px 14px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mx-item[aria-selected="true"],.mx-item:hover{background:var(--hover)}
.mx-av{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
.mx-noav{display:grid;place-items:center;background:var(--solid);color:#fff;font-weight:700;font-size:.9rem}
.mx-hash{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--soft);color:var(--muted);font-weight:700;font-size:1.05rem}
.mx-t{display:flex;flex-direction:column;min-width:0}.mx-t b,.mx-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-t b{display:flex;align-items:center;gap:3px;font-weight:var(--w-name)}.mx-t>span{color:var(--muted);font-size:.86rem}
.mx-badge{display:inline-flex;align-items:center;flex:none}.mx-badge:empty{display:none}.mx-badge svg{width:1.05em;height:1.05em}

/* X-style action row everywhere: reply · repost · like · bookmark (with counts) · share */
.act.share{display:inline-flex}.act.share .ico-svg{stroke-width:1.8}
/* the opened post: time · date · views under the post, then the action row without a rule above it */
.focal .meta .when{display:none}
.focal article.post .focal-meta{grid-column:1/-1;margin:var(--s3) 0 0;padding:0;color:var(--muted);font-size:var(--fs-body);line-height:1.4}
.focal-meta time{color:var(--muted)}.focal-meta .fm-views{color:var(--muted);font:inherit;text-decoration:none}
.focal-meta .fm-views b{color:var(--text);font-weight:var(--w-name)}.focal-meta .fm-views:hover{text-decoration:underline}
body .focal article.post .actions{border-top:0;margin-top:var(--s2);padding:var(--s2) 0}
/* strong-password checklist */
.pw-rules{list-style:none;margin:-4px 0 12px;padding:0;display:grid;gap:4px;font-size:var(--fs-sm);color:var(--muted)}
.auth-main .pw-rules{margin:2px 2px 14px}
.pw-rules li{display:flex;align-items:center;gap:8px}
.pw-tick{display:inline-grid;place-items:center;flex:none;width:16px;height:16px;border:1.5px solid var(--line-strong);border-radius:50%}
.pw-rules li.ok{color:var(--text)}
.pw-rules li.ok .pw-tick{border-color:var(--repost);background:var(--repost)}
.pw-rules li.ok .pw-tick::after{content:"";width:7px;height:4px;margin-top:-2px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}
.pw-rules .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
