/* Community feeds. Uses the site's colour variables (dark default, light optional). */

.fd-main{padding:26px 0 60px; min-height:70vh; background:var(--paper);}
.fd-wrap{width:min(680px,100% - 32px); margin-inline:auto;}
.fd-title{font:800 26px/1.2 'Sora',sans-serif; letter-spacing:0; margin:0 0 14px; color:var(--navy);}
html[lang="ar"] .fd-title,html[lang="ja"] .fd-title{font-family:inherit;}

/* feed tabs: filter chips, always pinned under the section row (they follow it up when the top bar hides) */
.fd-tabs{display:flex; align-items:center; gap:8px; padding:12px 0; margin:0 0 6px; position:sticky; top:var(--fd-top,140px); z-index:20; background:var(--paper); transition:top .28s ease;}
.fd-tabs-in{flex:1; min-width:0; display:flex; gap:8px; overflow-x:auto; scrollbar-width:none;}
.fd-tabs-in::-webkit-scrollbar{display:none;}
/* the language button is frosted glass, like the header around it */
.fd-tabs{--cl-ring:var(--paper);}
.fd-tabs .cl-switch > summary.cl-pill,.fd-tabs .cl-switch > summary.cl-pill.is-global{background:color-mix(in srgb, var(--navy) 14%, var(--paper));}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .fd-tabs .cl-switch > summary.cl-pill,.fd-tabs .cl-switch > summary.cl-pill.is-global{background:color-mix(in srgb, color-mix(in srgb, var(--navy) 14%, var(--paper)) 62%, transparent); -webkit-backdrop-filter:blur(18px) saturate(1.5); backdrop-filter:blur(18px) saturate(1.5);}
}
.fd-tabs .cl-switch > summary.cl-pill:hover,.fd-tabs .cl-switch[open] > summary.cl-pill{background:color-mix(in srgb, var(--blue) 20%, var(--paper));}
html.nav-instant .fd-tabs{transition:none;}
html.nav-hidden .fd-tabs{--fd-top:60px;}
.fd-tab{flex:none; padding:9px 20px; border-radius:999px; border:1px solid var(--border-soft); background:var(--white); font:700 13.5px/1 'Inter',sans-serif; color:var(--navy-soft); text-decoration:none; white-space:nowrap; transition:background .15s,color .15s,border-color .15s;}
html[lang="ar"] .fd-tab,html[lang="ja"] .fd-tab{font-family:inherit;}
.fd-tab:hover{color:var(--navy); border-color:var(--blue);}
.fd-tab.is-on{background:var(--blue); border-color:var(--blue); color:#fff;}
.fd-tab:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
@media (max-width:720px){ .fd-tabs{--fd-top:60px; gap:6px;} .fd-tabs-in{gap:6px;} html.nav-hidden .fd-tabs{--fd-top:0px;} .fd-tab{flex:1; text-align:center; padding:10px 8px;} .fd-main{padding-top:0;} }
@media (min-width:721px){ .fd-main{padding-top:0;} }

/* states */
.fd-state{text-align:center; padding:36px 16px; color:var(--navy-soft); display:flex; flex-direction:column; align-items:center; gap:14px;}
.fd-state[hidden],.fd-more[hidden],.fd-loading[hidden]{display:none;}
.fd-state .btn{margin-inline:4px;}
.fd-more{text-align:center; padding:8px 0;}
.fd-loading{display:flex; justify-content:center; padding:22px;}
.fd-spin{width:26px; height:26px; border-radius:50%; border:3px solid var(--border-soft); border-top-color:var(--blue); animation:fdspin .8s linear infinite;}
@keyframes fdspin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){ .fd-spin{animation-duration:2.4s;} }

/* post card */
.fd-feed{display:flex; flex-direction:column; gap:14px;}
.fp{background:var(--white); border:1px solid var(--border-soft); border-radius:16px; padding:14px 14px 8px; overflow:visible; min-width:0;}
.fp-head{position:relative; display:flex; align-items:center; gap:10px; margin-bottom:10px;}
/* the whole header row opens the post; the photo, the name and the time sit above it with their own links */
.fp-open{position:absolute; inset:0; z-index:0; border-radius:12px;}
.fp-head a.fp-au,.fp-head .fp-link{position:relative; z-index:1;}
.fp-head .fp-who{pointer-events:none;}
.fp-head .fp-who a{pointer-events:auto;}
.fp-who{min-width:0; display:flex; flex-direction:column; gap:2px; flex:1;}
.fp-who b{font:700 15px/1.25 'Inter',sans-serif; color:var(--navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.fp-who span{font-size:12.5px; color:var(--navy-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; direction:ltr; text-align:start;}
html[dir="rtl"] .fp-who span{direction:rtl;}
.fp-badge{font:700 11px/1 'JetBrains Mono',monospace; letter-spacing:.5px; text-transform:uppercase; padding:6px 9px; border-radius:999px; background:var(--mint-tint); color:var(--teal); flex:none;}
.fp-event{font-size:12.5px; font-weight:600; color:var(--blue-dark); background:var(--blue-tint); border-radius:999px; padding:6px 10px; margin-bottom:10px;}

.fp-content{position:relative;}
.fp-body{white-space:pre-wrap; overflow-wrap:anywhere; font:400 15.5px/1.6 'Inter',sans-serif; color:var(--navy); margin-bottom:10px;}
html[lang="ar"] .fp-body{font-family:'Noto Sans Arabic','Inter',sans-serif; line-height:1.8;}
html[lang="ja"] .fp-body{font-family:'Noto Sans JP','Inter',sans-serif;}
.fp-tag{color:var(--blue-dark); font-weight:600;}
.fp-ment{color:var(--teal-dark); font-weight:600;}
/* a post with a text colour (body_color): the text itself is coloured, the post looks like any other */

/* spoiler */
.fp-content.is-spoiler > :not(.fp-reveal){filter:blur(18px); pointer-events:none; user-select:none;}
.fp-content.is-spoiler.is-shown > :not(.fp-reveal){filter:none; pointer-events:auto; user-select:auto;}
.fp-content.is-spoiler.is-shown .fp-reveal{display:none;}
.fp-content.is-spoiler{min-height:96px;}

/* photos */
.fp-photos{display:grid; gap:3px; border-radius:14px; overflow:hidden; margin-bottom:10px;}
.fp-ph{position:relative; padding:0; border:0; background:var(--blue-tint); cursor:zoom-in; overflow:hidden; display:block; width:100%;}
.fp-ph img{display:block; width:100%; height:100%; object-fit:cover;}
.fp-ph.is-broken{min-height:120px;}
.fp-photos.pg-1 .fp-ph{max-height:560px; aspect-ratio:4/3;}
.fp-photos.pg-1 .fp-ph img{object-fit:contain; background:#000;}
.fp-photos.pg-2{grid-template-columns:1fr 1fr; aspect-ratio:2/1.2;}
.fp-photos.pg-3{grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; aspect-ratio:1.4;}
.fp-photos.pg-3 .fp-ph:first-child{grid-row:1 / 3;}
.fp-photos.pg-4{grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; aspect-ratio:1.4;}
.fp-more{position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.55); color:#fff; font:700 26px/1 'Inter',sans-serif;}
.fp-hidden-photo{display:none;}

/* gif / video / youtube */
.fp-gif{position:relative; border-radius:14px; overflow:hidden; margin-bottom:10px; background:var(--blue-tint);}
.fp-gif img{display:block; width:100%; max-height:520px; object-fit:contain;}
.fp-gif-tag{position:absolute; inset-inline-start:10px; top:10px; background:rgba(0,0,0,.6); color:#fff; font:700 11px/1 'JetBrains Mono',monospace; padding:5px 8px; border-radius:6px;}
.fp-video{position:relative; border-radius:14px; overflow:hidden; background:#000; margin-bottom:10px; width:100%;}
.fp-video img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.fp-video video,.fp-video iframe{position:absolute; inset:0; width:100%; height:100%; border:0; background:#000;}
.fp-play{position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%; border:0; background:rgba(0,0,0,.6); display:grid; place-items:center; cursor:pointer; transition:transform .15s,background .15s;}
.fp-play:hover{transform:scale(1.06); background:rgba(0,0,0,.78);}
.fp-play svg{width:30px; height:30px; fill:#fff;}
html[dir="rtl"] .fp-play svg{transform:none;}
.fp-play:focus-visible{outline:2px solid #fff; outline-offset:3px;}
.fp-dur{position:absolute; inset-inline-end:10px; bottom:10px; background:rgba(0,0,0,.7); color:#fff; font:600 12px/1 'JetBrains Mono',monospace; padding:5px 7px; border-radius:6px;}

/* poll */
.fp-poll{display:flex; flex-direction:column; gap:8px; margin-bottom:10px;}
.fp-opt{position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:start; padding:12px 14px; border:1.5px solid var(--border-soft); border-radius:999px; background:transparent; color:var(--navy); font:600 14.5px/1.3 'Inter',sans-serif; cursor:pointer; overflow:hidden; transition:border-color .15s,background .15s;}
button.fp-opt:hover{border-color:var(--blue); background:var(--blue-tint);}
button.fp-opt:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
button.fp-opt:disabled{opacity:.6; cursor:wait;}
.fp-opt.is-result{cursor:default;}
.fp-bar{position:absolute; inset-block:0; inset-inline-start:0; background:var(--blue-tint); z-index:0; transition:width .4s ease;}
.fp-opt.is-mine{border-color:var(--blue);}
.fp-opt.is-mine .fp-bar{background:color-mix(in srgb, var(--blue) 28%, transparent);}
.fp-opt-t,.fp-pct{position:relative; z-index:1;}
.fp-opt-t{overflow-wrap:anywhere;}
.fp-opt-t i{font-style:normal; color:var(--blue); margin-inline-start:4px;}
.fp-pct{font:700 13px/1 'JetBrains Mono',monospace; color:var(--navy-soft);}
.fp-poll-foot{font-size:12.5px; color:var(--navy-soft);}

/* shared user / anime / manga */
.fp-share{display:flex; gap:12px; align-items:center; padding:12px; border:1px solid var(--border-soft); border-radius:14px; background:var(--paper); margin-bottom:10px;}
.fp-share b{display:block; font:700 15px/1.3 'Inter',sans-serif; color:var(--navy); overflow-wrap:anywhere;}
.fp-share span.fp-kind{display:inline-block; font:700 10.5px/1 'JetBrains Mono',monospace; letter-spacing:.6px; text-transform:uppercase; color:var(--blue-dark); margin-bottom:5px;}
.fp-share div > span:not(.fp-kind){font-size:12.5px; color:var(--navy-soft);}
.fp-share small{display:block; font-size:12.5px; color:var(--navy-soft); margin-top:3px;}
.fp-share-user .fp-av{width:52px; height:52px;}
.fp-cover{width:62px; flex:none; aspect-ratio:2/3; border-radius:8px; overflow:hidden;}
.fp-cover .hm-ph{width:100%; height:100%;}

/* footer: reactions */
.fp-cstat{border:0; background:transparent; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer; text-align:inherit;}
.fp-cstat:hover{text-decoration:underline;}
.fp-cstat:focus-visible{outline:2px solid var(--blue); outline-offset:3px; border-radius:6px;}
.fp-foot{border-top:1px solid var(--border-soft); margin-top:4px; padding-top:6px;}
.fp-stats{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:30px; font-size:13px; color:var(--navy-soft);}
/* nothing to show (no reactions, no comments): no "0 comments", and no empty stats line either */
.fp-cstat[data-zero]{display:none;}
.fp-stats:not(:has(.fp-rsum:not([hidden]))):not(:has(.fp-cstat:not([data-zero]))):not(:has(.fp-contribs:not([hidden]))){display:none;}
.fp-right{display:inline-flex; align-items:center; gap:14px; margin-inline-start:auto;}
.fp-contribs{display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer;}
.fp-contribs[hidden]{display:none;}
.fp-contribs img{width:15px; height:15px; object-fit:contain;}
.fp-contribs b{font-weight:600;}
.fp-contribs:hover b{text-decoration:underline;}
.fp-contribs:focus-visible{outline:2px solid var(--blue); outline-offset:3px; border-radius:6px;}
.fp-rsum{display:inline-flex; align-items:center; gap:8px; border:0; background:transparent; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer;}
.fp-rsum:hover b{text-decoration:underline;}
.fp-rsum:focus-visible{outline:2px solid var(--blue); outline-offset:3px; border-radius:6px;}
.fp-rsum[hidden]{display:none;}
.fp-rsum b{font-weight:600;}
.fp-actions{display:grid; grid-template-columns:1fr 1fr 1fr; gap:4px; padding:4px 0 2px;}
.fp-actions > .fp-btn{justify-content:center; min-width:0;}
.fp-actions .fp-btn span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.fp-react{position:relative; display:flex; align-items:center; border-radius:999px; min-width:0;}
.fp-react .fp-like{flex:1; justify-content:center; min-width:0;}
.fp-btn{display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border:0; background:transparent; color:var(--navy-soft); font:700 14px/1 'Inter',sans-serif; border-radius:999px; cursor:pointer; transition:background .15s,color .15s;}
.fp-btn svg{width:20px; height:20px;}
.fp-btn img.fp-aura{width:20px; height:20px; object-fit:contain; flex:none; filter:grayscale(1); opacity:.7; transition:filter .15s,opacity .15s;}
.fp-btn:hover img.fp-aura{opacity:.9;}
/* you have contributed to this post: the aura turns to colour and the button is lit */
.fp-btn.fp-contrib.is-given{color:var(--teal-dark,var(--navy)); background:var(--mint-tint);}
.fp-btn.fp-contrib.is-given img.fp-aura{filter:none; opacity:1;}
.fp-actions .fp-btn{background:color-mix(in srgb, var(--navy) 6%, transparent);}
.fp-btn:hover{background:var(--blue-tint); color:var(--navy);}
.fp-btn:focus-visible{outline:2px solid var(--blue); outline-offset:1px;}
.fp-btn.is-on{color:var(--blue-dark);}
.fp-btn:disabled{opacity:.55; cursor:wait;}
.fp-more-react{padding:9px 6px; border-radius:999px;}
.fp-more-react svg{width:16px; height:16px;}

/* reacted: the whole button takes the reaction colour */
.fp-actions .fp-like.is-on{background:var(--rx); color:var(--rxt);}
.fp-actions .fp-like.is-on:hover{background:color-mix(in srgb, var(--rx) 88%, #000); color:var(--rxt);}

/* lightbox */
/* photo viewer: thumbnail rail, big stage, collapsed details drawer */
.fd-lb{position:fixed; inset:0; z-index:200; background:rgb(0 0 0 / calc(.97 * var(--lb-fade,1))); display:grid; grid-template-columns:84px minmax(0,1fr); color:#fff; overflow:hidden; overscroll-behavior:contain;}
.fd-lb.is-single{grid-template-columns:minmax(0,1fr);}
.fd-lb .lb-stage{grid-column:2; min-width:0; min-height:0; height:100%; overflow:hidden; display:flex; align-items:center; justify-content:center; touch-action:none; user-select:none; -webkit-user-select:none;}
.fd-lb.is-single .lb-stage{grid-column:1;}
.fd-lb .lb-img{max-width:100%; max-height:100%; object-fit:contain; opacity:0; will-change:transform; -webkit-user-drag:none; cursor:zoom-in;}
.fd-lb .lb-img.is-in{opacity:1;}
.fd-lb.is-zoomed .lb-img{cursor:grab;}
.fd-lb .lb-rail{grid-column:1; grid-row:1; display:flex; flex-direction:column; align-items:center; gap:6px; padding:72px 0 16px; overflow-y:auto; background:#0b0d12; scrollbar-width:none;}
.fd-lb .lb-rail::-webkit-scrollbar{display:none;}
.fd-lb .lb-th{flex:none; width:54px; height:54px; padding:0; border:0; border-radius:9px; overflow:hidden; background:#222; opacity:.55; cursor:pointer;}
.fd-lb .lb-th:hover{opacity:.85;}
.fd-lb .lb-th.is-on{opacity:1; outline:2px solid #fff; outline-offset:1px;}
.fd-lb .lb-th:focus-visible{outline:2px solid #fff; outline-offset:2px; opacity:1;}
.fd-lb .lb-th img{width:100%; height:100%; object-fit:cover; display:block; pointer-events:none;}
.fd-lb .lb-x,.fd-lb .lb-p,.fd-lb .lb-n{position:absolute; width:44px; height:44px; border-radius:50%; border:0; background:rgb(255 255 255 / .14); color:#fff; display:grid; place-items:center; cursor:pointer; backdrop-filter:blur(6px);}
.fd-lb .lb-x:hover,.fd-lb .lb-p:hover,.fd-lb .lb-n:hover{background:rgb(255 255 255 / .26);}
.fd-lb button:focus-visible{outline:2px solid #fff; outline-offset:2px;}
.fd-lb svg{width:22px; height:22px;}
.fd-lb .lb-x{top:16px; inset-inline-end:16px; z-index:4;}
.fd-lb .lb-p{inset-inline-start:100px; top:50%; margin-top:-22px;}
.fd-lb .lb-n{inset-inline-end:44px; top:50%; margin-top:-22px;}
.fd-lb.is-single .lb-p,.fd-lb.is-single .lb-n{display:none;}
html[dir="rtl"] .fd-lb .lb-p svg,html[dir="rtl"] .fd-lb .lb-n svg{transform:scaleX(-1);}
.fd-lb .lb-c,.fd-lb .lb-z{position:absolute; top:22px; padding:8px 12px; border-radius:999px; background:rgb(255 255 255 / .14); color:#fff; font:700 12px/1 'Inter',system-ui,sans-serif; backdrop-filter:blur(6px); border:0;}
.fd-lb .lb-c{inset-inline-start:100px; pointer-events:none;}
.fd-lb .lb-z{left:50%; transform:translateX(-50%); cursor:pointer; z-index:4;}
.fd-lb .lb-z[hidden]{display:none;}
.fd-lb .lb-tab{position:absolute; inset-inline-end:0; top:50%; margin-top:-48px; width:26px; height:96px; border:0; padding:0; color:#fff; background:rgb(0 0 0 / .55); border-start-start-radius:12px; border-end-start-radius:12px; display:grid; place-items:center; cursor:pointer; transition:inset-inline-end .22s ease; z-index:4;}
.fd-lb .lb-tab:hover{background:rgb(0 0 0 / .75);}
.fd-lb .lb-tab i{display:none;}
.fd-lb .lb-tab svg{width:18px; height:18px;}
.fd-lb.has-details .lb-tab{inset-inline-end:340px;}
.fd-lb .lb-drawer{position:absolute; inset-block:0; inset-inline-end:0; width:340px; max-width:100vw; box-sizing:border-box; padding:76px 20px 20px; background:#14171f; overflow-y:auto; transform:translateX(100%); transition:transform .22s ease; z-index:3; visibility:hidden;}
html[dir="rtl"] .fd-lb .lb-drawer{transform:translateX(-100%);}
.fd-lb.has-details .lb-drawer{transform:none; visibility:visible;}
.fd-lb .lb-who{display:flex; align-items:center; gap:10px;}
.fd-lb .lb-who b{display:block; font:700 14px/1.2 'Inter',system-ui,sans-serif;}
.fd-lb .lb-who small{display:block; margin-top:4px; font:500 12px/1.2 'Inter',system-ui,sans-serif; opacity:.65;}
.fd-lb .lb-av{position:relative; flex:none; width:38px; height:38px; border-radius:50%; overflow:hidden; background:var(--blue,#2d7ff9); color:#fff; display:grid; place-items:center; font:700 15px/1 'Inter',system-ui,sans-serif;}
.fd-lb .lb-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.fd-lb .lb-cap{margin:14px 0 0; font:500 14px/1.55 'Inter',system-ui,sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; opacity:.95;}
.fd-lb .lb-view{display:flex; align-items:center; justify-content:center; height:42px; margin-top:18px; border-radius:12px; background:rgb(255 255 255 / .12); color:#fff; font:700 13px/1 'Inter',system-ui,sans-serif; text-decoration:none;}
.fd-lb .lb-view:hover{background:rgb(255 255 255 / .2);}
.fd-lb .lb-view:empty{display:none;}
@media (max-width:720px), (hover:none) and (pointer:coarse) {
  .fd-lb{grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; height:100dvh;}
  .fd-lb .lb-stage,.fd-lb.is-single .lb-stage{grid-column:1; grid-row:1;}
  .fd-lb .lb-rail{grid-column:1; grid-row:2; flex-direction:row; justify-content:safe center; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); overflow-x:auto; overflow-y:hidden; background:#0b0d12;}
  .fd-lb .lb-th{width:44px; height:44px;}
  .fd-lb .lb-p,.fd-lb .lb-n{display:none;}
  .fd-lb .lb-c{inset-inline-start:16px; top:26px;}
  .fd-lb .lb-x{top:16px;}
  .fd-lb .lb-tab{width:22px; height:64px; margin-top:-32px;}
  .fd-lb.has-details .lb-tab{inset-inline-end:0;}
  .fd-lb .lb-drawer{inset-block:auto 0; inset-inline:0; width:auto; max-height:62%; padding:20px 18px calc(20px + env(safe-area-inset-bottom)); border-radius:18px 18px 0 0; transform:translateY(100%);}
  html[dir="rtl"] .fd-lb .lb-drawer{transform:translateY(100%);}
  .fd-lb.has-details .lb-drawer{transform:none;}
}
@media (prefers-reduced-motion:reduce){ .fd-lb .lb-drawer,.fd-lb .lb-tab{transition:none;} }

/* footer bar used on this page (same as the account pages) */
.auth-foot{border-top:1px solid var(--border-soft); background:var(--white);}
.auth-foot-in{display:flex; justify-content:space-between; align-items:center; gap:12px; padding-block:18px; font-size:13.5px; flex-wrap:wrap;}
.auth-foot-links{display:inline-flex; gap:18px;}
.auth-foot a{color:var(--navy-soft); text-decoration:none;}
.auth-foot a:hover{color:var(--navy);}

@media (max-width:480px){
  .fp{padding:12px 12px 6px; border-radius:14px;}
  .fp-body{font-size:15px;}
}

/* small message at the bottom of the screen */
.fd-toast{position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); opacity:0; z-index:300; max-width:min(92vw,420px); background:#0E1B2E; color:#fff; padding:12px 18px; border-radius:999px; font:600 14px/1.4 'Inter',sans-serif; box-shadow:0 10px 30px rgba(0,0,0,.35); transition:opacity .25s, transform .25s; text-align:center;}
.fd-toast.is-in{opacity:1; transform:translate(-50%,0);}

@media (max-width:520px){
  .fp-actions{grid-template-columns:1fr 1fr 1fr; gap:4px;}
  .fp-actions .fp-btn{gap:5px; padding:9px 7px; font-size:12.5px;}
  .fp-actions .fp-btn svg,.fp-actions .fp-btn img.fp-aura{width:18px; height:18px;}
  .fp-actions{position:relative;}
  .fp-react{position:static;}
  .fp-picker{inset-inline:0; justify-content:space-between; gap:0; padding:6px;}
  .fp-picker .rx.lg{--s:clamp(26px, 7.4vw, 32px);}
}
@media (max-width:400px){
  .fp-actions{gap:3px;}
  .fp-actions .fp-btn{gap:4px; padding:9px 4px; font-size:12px;}
  .fp-actions .fp-btn svg,.fp-actions .fp-btn img.fp-aura{width:16px; height:16px;}
  .fp-actions .fp-btn .rx.md{--s:22px;}
}

/* the time of a post links to the post's own page; a shared anime opens its page */
.fp-who span a.fp-link{color:inherit; text-decoration:none;}
.fp-who span a.fp-link:hover{text-decoration:underline;}
.fp-share-link{color:inherit; text-decoration:none;}
a.fp-share-link:hover{background:var(--blue-tint);}
a.fp-share-link:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}

/* community language picker: not a tab. A round globe button set apart from the chips by a thin divider, with the language code as a small badge on it. */

/* Phones (720px and under): "Poster" posts. Each post is a full-width block with the page colour showing through between posts. Words first, then the photo / video edge to edge, then pill actions. The tab bar is a small floating pill instead of a band. */
@media (max-width:720px){
  .fd-wrap{width:100%;}
  .fd-main{background:var(--paper);}
  .fd-state{padding-inline:14px;}

  /* floating tab pill: the row is see-through and lets taps reach the posts under it */
  .fd-tabs{padding:10px 12px 0; margin:0 0 -2px; background:transparent; justify-content:center; gap:8px; pointer-events:none;}
  .fd-tabs > *{pointer-events:auto;}
  .fd-tabs-in{flex:0 1 auto; gap:2px; padding:4px; border-radius:999px; background:color-mix(in srgb, var(--navy) 14%, var(--white)); border:1px solid var(--border-soft); box-shadow:0 6px 18px rgb(0 0 0 / .3); overflow-x:auto;}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .fd-tabs-in{background:color-mix(in srgb, color-mix(in srgb, var(--navy) 14%, var(--white)) 74%, transparent); -webkit-backdrop-filter:blur(18px) saturate(1.5); backdrop-filter:blur(18px) saturate(1.5);}
  }
  .fd-tab{flex:none; padding:9px 14px; border:0; background:transparent; font-size:13px;}
  .fd-tab:hover{border:0;}
  .fd-tab.is-on{background:var(--blue); color:#fff;}
  #fd-new{margin:18px 8px 0;}   /* clear of the floating tab row and its language badge; same side margin as the post cards (id: the base .fd-new rule below would otherwise win) */
  .cl-switch{margin:0;}
  .fd-tabs .cl-switch > summary.cl-pill{border:0; box-shadow:0 6px 18px rgb(0 0 0 / .3);}
  .fd-tabs .cl-badge{border-color:color-mix(in srgb, var(--navy) 14%, var(--paper));}

  /* the posts */
  .fd-feed{gap:8px; margin-top:8px; padding-inline:8px;}   /* compact cards: 8px sides, 8px between */
  .fd-feed .fp{border:1px solid var(--border-soft); border-radius:14px; padding:0;}
  .fd-feed .fp-head{padding:14px 14px 0; margin-bottom:10px;}
  .fd-feed .fp-event{margin:0 14px 10px; display:inline-block;}
  .fd-feed .fp-body{margin:0 14px 12px; font-size:15.5px;}
  .fd-feed .fp-poll,.fd-feed .fp-share{margin-inline:14px;}
  .fd-feed .fp-photos,.fd-feed .fp-gif,.fd-feed .fp-video{margin:0; border-radius:0; width:100%;}
  .fd-feed .fp-reveal{border-radius:0;}
  /* footer: the post stats first (reactions on the start side, comment total on the end side, each left out when there is nothing to show), then three separate capsule buttons that share the full width */
  .fd-feed .fp-foot{display:block; border-top:0; margin-top:0; padding:2px 12px 12px;}
  .fd-feed .fp-stats{display:flex; align-items:center; justify-content:space-between; min-height:0; padding:6px 6px 10px; font-size:14.5px;}
  .fd-feed .fp-rsum b{font-weight:600;}
  .fd-feed .fp-stats:not(:has(.fp-rsum:not([hidden]))):not(:has(.fp-cstat:not([data-zero]))){display:none;}
  .fd-feed .fp-cstat[data-zero]{display:none;}
  /* no stats under a picture, video or poll: leave room between it and the buttons (a text-only post already ends with its own space) */
  .fd-feed .fp-content:has(> :last-child:not(.fp-body)) + .fp-foot:not(:has(.fp-rsum:not([hidden]))):not(:has(.fp-cstat:not([data-zero]))){padding-top:12px;}
  .fd-feed .fp-stats:not(:has(.fp-rsum:not([hidden]))) .fp-cstat{margin-inline-start:auto;}
  .fd-feed .fp-actions{display:flex; width:100%; align-items:center; gap:8px; padding:0;}
  .fd-feed .fp-react{flex:1 1 0; min-width:0;}
  .fd-feed .fp-react .fp-like{flex:1;}
  .fd-feed .fp-actions > .fp-btn{flex:1 1 0; padding-inline:0;}
  .fd-feed .fp-actions .fp-btn{background:color-mix(in srgb, var(--navy) 9%, transparent); padding:0 14px; justify-content:center; height:38px; min-width:0; padding-inline:0;}
  .fd-feed .fp-actions .fp-btn svg{width:21px; height:21px;}
  .fd-feed .fp-actions .fp-btn:hover{background:color-mix(in srgb, var(--navy) 8%, transparent);}
  .fd-feed .fp-actions .rx-plain{width:24px; height:24px;}
  .fd-feed .fp-actions .fp-btn .rx.md{--s:24px;}
  .fd-feed .fp-actions .fp-lbl{display:none;}
  .fd-feed .fp-actions .fp-like.is-on{background:color-mix(in srgb, var(--rx) 18%, transparent); color:var(--rx);}
  .fd-feed .fp-actions .fp-cmt.is-off{opacity:.45;}
}

/* the ⋯ button of a post */
.fp-opts{position:relative; z-index:1; flex:none; display:inline-grid; place-items:center; width:34px; height:34px; margin-inline-start:2px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--navy-soft); cursor:pointer; transition:background .15s, color .15s;}
.fp-opts:hover,.fp-opts[aria-expanded="true"]{background:var(--blue-tint); color:var(--navy);}
.fp-opts:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}

.cm-dcheck{display:flex; align-items:center; gap:8px; margin-top:12px; font:600 13.5px/1.2 'Inter',sans-serif; color:var(--navy); cursor:pointer;}
.cm-dcheck input{width:18px; height:18px; accent-color:var(--blue);}

/* ------------------------------------------------------------------ writing a post */
.fd-new{display:grid; grid-template-columns:auto 1fr; align-items:center; gap:12px 12px; background:var(--white); border:1px solid var(--border-soft); border-radius:20px; padding:14px; margin:0 0 14px; box-shadow:0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -12px rgb(0 0 0 / .35);}
.fd-new-av,.cp-av{position:relative; flex:none; width:42px; height:42px; border-radius:50%; background:var(--blue); color:#fff; display:grid; place-items:center; font:700 16px/1 'Sora',sans-serif; overflow:hidden;}
.fd-new-av{box-shadow:0 0 0 2px var(--white), 0 0 0 3.5px var(--blue-tint);}
.fd-new-av img,.cp-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.fd-new-btn{min-width:0; text-align:start; border:1px solid transparent; background:var(--paper); color:var(--navy-soft); border-radius:999px; padding:13px 18px; font:500 15px/1.2 'Inter',sans-serif; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:border-color .18s,background .18s,box-shadow .18s;}
.fd-new-btn:hover{border-color:var(--blue); box-shadow:0 0 0 4px var(--blue-tint);}
.fd-new-btn:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.fd-new-q{grid-column:1 / -1; display:flex; gap:8px; padding-top:12px; border-top:1px solid var(--border-soft);}
.fd-new-qb{flex:1; min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; border-radius:999px; padding:10px 8px; background:var(--blue-tint); color:var(--blue-dark); font:600 13px/1 'Inter',sans-serif; cursor:pointer; transition:transform .12s, filter .15s;}
.fd-new-qb.is-video{background:var(--mint-tint); color:var(--teal);}
.fd-new-qb span{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.fd-new-qb:hover{filter:brightness(1.12);}
.fd-new-qb:active{transform:scale(.97);}
.fd-new-qb:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
@media (max-width:359px){ .fd-new-qb span{display:none;} }
.fp-new{animation:fpnew 2.2s ease-out;}
@keyframes fpnew{0%{box-shadow:0 0 0 3px var(--blue);}100%{box-shadow:0 0 0 0 transparent;}}

html.cp-lock{overflow:hidden;}
.cp-ov{position:fixed; inset:0; z-index:1200; background:rgba(8,12,20,.55); backdrop-filter:blur(3px); display:flex; align-items:flex-end; justify-content:center; opacity:0; transition:opacity .2s;}
.cp-ov.is-in{opacity:1;}
.cp-sheet{width:100%; max-width:600px; max-height:92vh; max-height:92dvh; display:flex; flex-direction:column; background:var(--white); color:var(--navy); border:1px solid var(--border-soft); border-radius:22px 22px 0 0; box-shadow:0 -12px 40px rgba(0,0,0,.3); transform:translateY(24px); transition:transform .22s cubic-bezier(.2,.8,.2,1); overflow:hidden;}
.cp-ov.is-in .cp-sheet{transform:none;}
@media (min-width:720px){
  .cp-ov{align-items:center; padding:24px;}
  .cp-sheet{border-radius:22px; max-height:86vh; box-shadow:0 24px 70px rgba(0,0,0,.4);}
}
.cp-head{display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border-soft);}
.cp-title{flex:1; margin:0; font:700 17px/1.2 'Sora',sans-serif; text-align:center; color:var(--navy);}
.cp-x{flex:none; width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:var(--navy-soft); cursor:pointer;}
.cp-x:hover{background:var(--blue-tint); color:var(--navy);}
.cp-post{flex:none; min-width:84px; padding:10px 18px; border:0; border-radius:999px; background:var(--navy); color:var(--paper); font:700 14px/1 'Inter',sans-serif; cursor:pointer; transition:opacity .15s,filter .15s;}
.cp-post:hover:not(:disabled){filter:brightness(1.08);}
.cp-post:disabled{opacity:.4; cursor:default;}
.cp-x:focus-visible,.cp-post:focus-visible,.cp-t:focus-visible,.cp-chip:focus-visible,.cp-sw:focus-visible,.cp-si:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}

.cp-main{display:flex; gap:12px; padding:16px 16px 6px; flex:1; min-height:0; overflow-y:auto;}
.cp-col{flex:1; min-width:0; display:flex; flex-direction:column; gap:4px;}
.cp-who{font:700 14.5px/1.3 'Inter',sans-serif; color:var(--navy);}
.cp-ta{width:100%; min-height:110px; resize:none; border:0; outline:0; background:transparent; color:var(--navy); font:400 17px/1.6 'Inter',sans-serif; padding:4px 0; box-sizing:border-box; overflow-wrap:anywhere;}
.cp-ta::placeholder{color:var(--navy-soft); opacity:.8;}
.cp-ta[readonly]{opacity:.7;}

.cp-sug{margin:0 12px 8px; background:var(--paper); border:1px solid var(--border-soft); border-radius:14px; max-height:210px; overflow-y:auto; padding:4px;}
.cp-si{display:flex; align-items:baseline; gap:8px; width:100%; text-align:start; padding:9px 12px; border:0; border-radius:10px; background:transparent; color:var(--navy); font:600 14px/1.3 'Inter',sans-serif; cursor:pointer;}
.cp-si.is-on,.cp-si:hover{background:var(--blue-tint); color:var(--blue-dark);}
.cp-si-l{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;}
.cp-si-s{font-weight:500; font-size:12.5px; color:var(--navy-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; direction:ltr;}

.cp-cols{display:flex; flex-wrap:wrap; gap:10px; padding:6px 16px 10px;}
.cp-sw{width:28px; height:28px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);}
.cp-sw.is-def{background:var(--navy);}
.cp-sw.is-on{border-color:var(--white); box-shadow:0 0 0 2px var(--blue);}

.cp-err{margin:0 16px 8px; padding:10px 14px; border-radius:12px; background:rgba(220,53,69,.12); color:#e5484d; font:600 13.5px/1.4 'Inter',sans-serif;}

.cp-foot{border-top:1px solid var(--border-soft); padding:8px 12px calc(10px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:6px;}
.cp-chips{display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding:2px 0;}
.cp-chips::-webkit-scrollbar{display:none;}
.cp-chip{flex:none; border:1px solid var(--border-soft); background:var(--paper); color:var(--blue-dark); border-radius:999px; padding:7px 13px; font:600 13px/1 'Inter',sans-serif; cursor:pointer; white-space:nowrap;}
.cp-chip:hover{background:var(--blue-tint); border-color:var(--blue);}
.cp-row{display:flex; align-items:center; justify-content:space-between; gap:8px;}
.cp-tools{display:flex; gap:2px;}
.cp-t{width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:var(--blue); cursor:pointer; transition:background .15s;}
.cp-t:hover,.cp-t[aria-expanded="true"]{background:var(--blue-tint);}
.cp-t.is-on{color:var(--blue-dark);}
.cp-t.is-warn{color:#e5484d; background:rgba(220,53,69,.1);}

.cp-ring{position:relative; width:28px; height:28px; flex:none;}
.cp-ring svg{display:block;}
.cp-ring-bg,.cp-ring-fg{fill:none; stroke-width:3;}
.cp-ring-bg{stroke:var(--border-soft);}
.cp-ring-fg{stroke:var(--blue); stroke-linecap:round; transition:stroke-dashoffset .12s;}
.cp-ring.is-warn .cp-ring-fg{stroke:#ffbb33;}
.cp-ring.is-over .cp-ring-fg{stroke:#e5484d;}
.cp-ring-n{position:absolute; inset:0; display:grid; place-items:center; font:700 9.5px/1 'JetBrains Mono',monospace; color:var(--navy-soft);}
.cp-ring.is-over .cp-ring-n{color:#e5484d;}
.cp-sheet.is-busy .cp-chips,.cp-sheet.is-busy .cp-tools{opacity:.5; pointer-events:none;}

@media (prefers-reduced-motion:reduce){ .cp-ov,.cp-sheet{transition:none;} .fp-new{animation:none;} }

/* ---- attachments: pictures, GIF, video, YouTube */
.cp-sheet{position:relative;}
.cp-sheet.is-reading .cp-main{opacity:.6; pointer-events:none;}
.cp-tools{flex-wrap:wrap;}
.cp-t:disabled{opacity:.35; cursor:default;}
.cp-t:disabled:hover{background:transparent;}
.cp-sep{width:1px; height:22px; background:var(--border-soft); align-self:center; margin:0 6px;}
.cp-att{margin-top:8px;}
.cp-ph-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(86px,1fr)); gap:8px;}
.cp-ph{position:relative; aspect-ratio:1; border-radius:12px; overflow:hidden; background:var(--paper); border:1px solid var(--border-soft);}
.cp-ph img{width:100%; height:100%; object-fit:cover; display:block;}
.cp-ph-add{display:grid; place-items:center; color:var(--blue); cursor:pointer; border-style:dashed; padding:0;}
.cp-ph-add:hover{background:var(--blue-tint);}
.cp-att-note{margin-top:6px; font:500 12.5px/1.3 'Inter',sans-serif; color:var(--navy-soft);}
.cp-rm{position:absolute; top:5px; inset-inline-end:5px; width:26px; height:26px; display:grid; place-items:center; border:0; border-radius:50%; background:rgba(0,0,0,.62); color:#fff; cursor:pointer; padding:0;}
.cp-rm svg{width:14px; height:14px;}
.cp-rm:hover{background:rgba(0,0,0,.82);}
.cp-rm:focus-visible{outline:2px solid #fff; outline-offset:1px;}
.cp-one{position:relative; border-radius:14px; overflow:hidden; background:var(--paper); border:1px solid var(--border-soft); max-width:420px;}
.cp-one img{display:block; width:100%; height:auto; max-height:340px; object-fit:cover;}
.cp-vid{aspect-ratio:16/9;}
.cp-vid img{height:100%; max-height:none;}
.cp-vid.is-noposter{display:grid; place-items:center; color:var(--navy-soft);}
.cp-vid.is-noposter svg{width:40px; height:40px;}
.cp-play{position:absolute; inset:0; margin:auto; width:48px; height:48px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:grid; place-items:center; pointer-events:none;}
.cp-tag{position:absolute; bottom:8px; inset-inline-start:8px; padding:4px 9px; border-radius:999px; background:rgba(0,0,0,.62); color:#fff; font:700 11.5px/1 'JetBrains Mono',monospace;}
.cp-yt-row{display:flex; align-items:center; gap:8px;}
.cp-yt-row .cp-rm{position:static; flex:none; background:var(--paper); color:var(--navy-soft); width:34px; height:34px;}
.cp-yt-in{flex:1; min-width:0; border:1px solid var(--border-soft); background:var(--paper); color:var(--navy); border-radius:12px; padding:10px 12px; font:500 14.5px/1.2 'Inter',sans-serif; outline:0;}
.cp-yt-in:focus{border-color:var(--blue);}
.cp-yt-ok{flex:none; border:0; border-radius:999px; background:var(--navy); color:var(--paper); padding:10px 16px; font:700 13.5px/1 'Inter',sans-serif; cursor:pointer;}
.cp-yt-msg{margin-top:6px; color:#e5484d; font:600 13px/1.3 'Inter',sans-serif;}

/* GIF picker panel */
.cp-pane{position:absolute; inset:0; z-index:3; background:var(--white); display:flex; flex-direction:column; min-height:0;}
.cp-x-sp{flex:none; width:38px;}
.cp-gsearch{position:relative; margin:10px 14px 4px;}
.cp-gin{width:100%; box-sizing:border-box; border:1px solid var(--border-soft); background:var(--paper); color:var(--navy); border-radius:999px; padding:11px 16px 11px 42px; font:500 15px/1.2 'Inter',sans-serif; outline:0;}
html[dir="rtl"] .cp-gin{padding:11px 42px 11px 16px;}
.cp-gin:focus{border-color:var(--blue);}
.cp-gsi{position:absolute; top:50%; inset-inline-start:14px; transform:translateY(-50%); color:var(--navy-soft); display:grid;}
.cp-gchips{padding:6px 14px;}
.cp-chip.is-on{background:var(--blue); border-color:var(--blue); color:#fff;}
.cp-gscroll{flex:1; min-height:0; overflow-y:auto; padding:6px 14px 16px;}
.cp-gcols{column-count:2; column-gap:8px;}
@media (min-width:560px){ .cp-gcols{column-count:3;} }
.cp-g{display:block; width:100%; margin:0 0 8px; padding:0; border:0; border-radius:12px; overflow:hidden; background:var(--paper); cursor:pointer; break-inside:avoid; min-height:60px;}
.cp-g img{display:block; width:100%; height:100%; object-fit:cover;}
.cp-g:hover{outline:2px solid var(--blue);}
.cp-g:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.cp-gstat{text-align:center; padding:24px 12px; color:var(--navy-soft); font:500 14px/1.5 'Inter',sans-serif;}
.cp-gsent{height:2px;}
.cp-pane{height:100%;}
@media (max-width:719px){ .cp-sheet:has(.cp-pane){height:92vh; height:92dvh;} }
@media (min-width:720px){ .cp-sheet:has(.cp-pane){height:80vh;} }
.cp-ov [hidden]{display:none !important;}
.cp-col:has(.cp-att:not([hidden])) .cp-ta{min-height:56px;}

/* ---- Part 3: polls, shared items, event chip, drafts */
.fp-opt-ic{width:28px; height:28px; border-radius:8px; object-fit:cover; margin-inline-end:8px; vertical-align:middle; flex:none;}
.cp-event{display:flex; align-items:center; gap:6px; margin-top:8px; padding:4px 4px 4px 12px; border-radius:999px; background:var(--mint-tint); color:var(--teal); font:600 13px/1.3 'Inter',sans-serif; width:fit-content; max-width:100%;}
html[dir="rtl"] .cp-event{padding:4px 12px 4px 4px;}
.cp-event-t{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cp-event .cp-rm{position:static; flex:none; width:24px; height:24px; background:transparent; color:inherit;}
.cp-draft{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 16px 0; padding:8px 12px; border-radius:12px; background:var(--blue-tint); color:var(--blue-dark); font:500 13px/1.3 'Inter',sans-serif;}
.cp-draft-x{border:0; background:transparent; color:var(--blue-dark); font:700 13px/1 'Inter',sans-serif; cursor:pointer; text-decoration:underline; padding:4px;}
.cp-draft-x:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}

.cp-poll{border:1px solid var(--border-soft); border-radius:16px; padding:12px; background:var(--paper);}
.cp-poll-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;}
.cp-poll-h{color:var(--navy); font:700 14px/1 'Inter',sans-serif;}
.cp-poll .cp-rm{position:static; flex:none; width:30px; height:30px; background:transparent; color:var(--navy-soft);}
.cp-poll-subj{flex-wrap:wrap; padding:0 0 8px; overflow:visible;}
.cp-poll-rows{display:flex; flex-direction:column; gap:8px;}
.cp-pr{display:flex; align-items:center; gap:6px;}
.cp-pr-in{flex:1; min-width:0; border:1px solid var(--border-soft); background:var(--white); color:var(--navy); border-radius:12px; padding:11px 12px; font:500 15px/1.2 'Inter',sans-serif; outline:0;}
.cp-pr-in:focus{border-color:var(--blue);}
.cp-pr-pick{flex:1; min-width:0; display:flex; align-items:center; gap:10px; border:1px dashed var(--border-soft); background:var(--white); color:var(--blue-dark); border-radius:12px; padding:8px 12px; min-height:46px; font:600 14px/1.2 'Inter',sans-serif; cursor:pointer; text-align:start;}
.cp-pr-pick.has-item{border-style:solid; color:var(--navy);}
.cp-pr-pick:hover,.cp-pr-pick:focus-visible{border-color:var(--blue); outline:0;}
.cp-pr-t{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cp-pr-th{flex:none; width:30px; height:30px; border-radius:8px; overflow:hidden; background:var(--blue-tint);}
.cp-pr-th img{width:100%; height:100%; object-fit:cover; display:block;}
.cp-poll-add{margin-top:8px;}
.cp-poll-len{margin-top:12px; border-top:1px solid var(--border-soft); padding-top:10px;}
.cp-poll-lh{display:block; color:var(--navy-soft); font:600 12px/1 'Inter',sans-serif; margin-bottom:8px;}
.cp-poll-sel{display:flex; gap:8px;}
.cp-poll-f{display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; color:var(--navy-soft); font:500 12px/1 'Inter',sans-serif;}
.cp-poll-s{width:100%; border:1px solid var(--border-soft); background:var(--white); color:var(--navy); border-radius:10px; padding:9px 8px; font:600 14px/1 'Inter',sans-serif;}
.cp-poll-s:focus-visible{outline:2px solid var(--blue);}

.cp-sh{position:relative; display:flex; align-items:center; gap:12px; border:1px solid var(--border-soft); border-radius:16px; padding:10px 44px 10px 10px; background:var(--paper);}
html[dir="rtl"] .cp-sh{padding:10px 10px 10px 44px;}
.cp-sh .cp-rm{position:absolute; top:50%; transform:translateY(-50%); inset-inline-end:8px; width:30px; height:30px; background:transparent; color:var(--navy-soft);}
.cp-sh-i,.cp-pi-i{flex:none; width:52px; height:72px; border-radius:10px; overflow:hidden; background:var(--blue-tint);}
.cp-sh-i.is-round,.cp-pi-i.is-round{width:56px; height:56px; border-radius:50%;}
.cp-sh-i img,.cp-pi-i img{width:100%; height:100%; object-fit:cover; display:block;}
.cp-sh-x,.cp-pi-x{display:flex; flex-direction:column; gap:3px; min-width:0;}
.cp-sh-k{color:var(--teal); font:700 11px/1 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.04em;}
.cp-sh-t,.cp-pi-t{color:var(--navy); font:700 15px/1.25 'Inter',sans-serif; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.cp-sh-s,.cp-pi-s{color:var(--navy-soft); font:500 13px/1.3 'Inter',sans-serif;}

.cp-plist{display:flex; flex-direction:column; gap:6px;}
.cp-pi{display:flex; align-items:center; gap:12px; width:100%; border:0; background:transparent; padding:8px; border-radius:12px; cursor:pointer; text-align:start;}
.cp-pi .cp-pi-i{width:44px; height:60px;}
.cp-pi .cp-pi-i.is-round{width:48px; height:48px;}
.cp-pi:hover,.cp-pi:focus-visible{background:var(--blue-tint); outline:0;}
.cp-pi:disabled{opacity:.45; cursor:not-allowed;}

.cp-dlg{position:absolute; inset:0; z-index:4; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.45);}
.cp-dlg-box{width:min(380px,100%); background:var(--white); color:var(--navy); border-radius:18px; padding:20px; display:flex; flex-direction:column; gap:8px; box-shadow:0 20px 50px rgba(0,0,0,.35);}
.cp-dlg-t{margin:0; font:700 17px/1.3 'Inter',sans-serif;}
.cp-dlg-p{margin:0 0 8px; color:var(--navy-soft); font:500 14px/1.45 'Inter',sans-serif;}
.cp-dlg-b{border:1px solid var(--border-soft); background:var(--paper); color:var(--navy); border-radius:999px; padding:12px 16px; font:700 14px/1 'Inter',sans-serif; cursor:pointer;}
.cp-dlg-b.is-main{background:var(--navy); border-color:var(--navy); color:var(--paper);}
.cp-dlg-b.is-danger{color:#d64545; border-color:#d64545;}
.cp-dlg-b:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
@media (max-width:480px){ .cp-t{width:34px; height:34px;} .cp-tools{gap:0; flex-wrap:nowrap; min-width:0;} .cp-sep{margin:0 2px;} .cp-row{gap:4px;} }
@media (max-width:380px){ .cp-t{width:31px; height:31px;} }

/* ---- Contribute sheet ---- */
.cb-lock{overflow:hidden;}
.cb-root{position:fixed; inset:0; z-index:250; display:flex; align-items:flex-end; justify-content:center; opacity:0; transition:opacity .2s;}
.cb-root.is-in{opacity:1;}
.cb-scrim{position:absolute; inset:0; background:rgba(0,0,0,.5);}
.cb-panel{position:relative; width:min(460px,100%); max-height:92vh; overflow:auto; box-sizing:border-box; background:var(--white); color:var(--navy); border-radius:22px 22px 0 0; padding:20px 20px 18px; display:flex; flex-direction:column; gap:16px; transform:translateY(24px); transition:transform .22s;}
.cb-root.is-in .cb-panel{transform:none;}
@media (min-width:640px){ .cb-root{align-items:center;} .cb-panel{border-radius:22px; max-height:88vh;} }
.cb-head{display:flex; align-items:center; gap:12px;}
.cb-aura{flex:none; width:44px; height:44px; object-fit:contain;}
.cb-ht{flex:1; min-width:0; display:flex; flex-direction:column; gap:4px;}
.cb-kicker{font:700 10px/1 'JetBrains Mono',monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--teal);}
.cb-title{margin:0; font:800 18px/1.25 'Sora','Inter',sans-serif; overflow-wrap:anywhere;}
html[lang="ar"] .cb-title,html[lang="ja"] .cb-title{font-family:inherit; letter-spacing:0;}
.cb-x{flex:none; width:36px; height:36px; border:0; border-radius:50%; background:var(--blue-tint); color:var(--navy); font-size:22px; line-height:1; cursor:pointer;}
.cb-body{display:flex; flex-direction:column; gap:14px;}
.cb-row,.cb-earn{display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:14px; background:var(--blue-tint);}
.cb-row{justify-content:space-between;}
.cb-k{font:600 13px/1.3 'Inter',sans-serif; color:var(--navy-soft);}
.cb-v{font:800 17px/1 'JetBrains Mono',monospace; color:var(--navy);}
.cb-amount{display:flex; flex-direction:column; gap:12px;}
.cb-num{width:100%; box-sizing:border-box; text-align:center; padding:12px; border:1.5px solid var(--border-soft); border-radius:14px; background:var(--white); color:var(--navy); font:800 30px/1 'JetBrains Mono',monospace; -moz-appearance:textfield; appearance:textfield;}
.cb-num::-webkit-outer-spin-button,.cb-num::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.cb-num:focus{outline:none; border-color:var(--teal);}
.cb-range{width:100%; accent-color:var(--teal); height:28px; margin:0;}
.cb-quick{display:flex; gap:8px;}
.cb-chip{flex:1; padding:9px 0; border:1px solid var(--border-soft); border-radius:999px; background:var(--white); color:var(--navy); font:700 13px/1 'Inter',sans-serif; cursor:pointer;}
.cb-chip:hover,.cb-chip:focus-visible{border-color:var(--teal); outline:none;}
.cb-amount.is-locked{opacity:.55;}
.cb-earn{flex-wrap:wrap;}
.cb-earn .cb-k{flex:1 1 100%;}
.cb-e{display:flex; align-items:baseline; gap:6px; margin-inline-end:14px;}
.cb-e small{font:600 12px/1.2 'Inter',sans-serif; color:var(--navy-soft);}
.cb-note,.cb-prev,.cb-none{margin:0; font:500 13px/1.5 'Inter',sans-serif; color:var(--navy-soft);}
.cb-prev{color:var(--navy); font-weight:600;}
.cb-none{color:#d64545; font-weight:600;}
.cb-err,.cb-ask{margin:0; padding:10px 14px; border-radius:12px; font:600 14px/1.45 'Inter',sans-serif;}
.cb-err{background:rgba(229,72,77,.12); color:#e5484d;}
.cb-ask{background:var(--mint-tint); color:var(--navy);}
.cb-foot{display:flex; gap:10px; justify-content:flex-end;}
.cb-foot .btn{min-width:110px;}
.cb-go.is-busy{opacity:.6; pointer-events:none;}
.cb-foot .btn:disabled{opacity:.5; cursor:not-allowed;}
@media (prefers-reduced-motion:reduce){ .cb-root,.cb-panel{transition:none;} }

/* ---- contributors list ---- */
.cb-list{display:flex; flex-direction:column; gap:4px; min-height:60px;}
.cb-li{display:flex; align-items:center; gap:12px; padding:8px; border-radius:12px; color:var(--navy); text-decoration:none;}
a.cb-li:hover,a.cb-li:focus-visible{background:var(--blue-tint); outline:none;}
.cb-li.is-me{background:var(--mint-tint);}
.cb-rank{flex:none; width:22px; text-align:center; font:700 12px/1 'JetBrains Mono',monospace; color:var(--navy-soft);}
.cb-av{position:relative; flex:none; width:40px; height:40px; border-radius:50%; overflow:hidden; background:var(--blue-tint); display:grid; place-items:center; font:700 15px/1 'Inter',sans-serif; color:var(--blue-dark);}
.cb-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.cb-who{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px;}
.cb-who b{font:700 14px/1.2 'Inter',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cb-who small{font:500 12px/1.2 'Inter',sans-serif; color:var(--navy-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cb-amt{flex:none; display:inline-flex; align-items:center; gap:5px; font:800 14px/1 'JetBrains Mono',monospace;}
.cb-amt img{width:16px; height:16px; object-fit:contain;}
.cb-empty{margin:0; padding:22px 8px; text-align:center; color:var(--navy-soft); font:500 14px/1.5 'Inter',sans-serif;}
.cb-viewbtn{align-self:flex-start; border:0; background:transparent; padding:4px 0; color:var(--blue); font:700 13px/1.2 'Inter',sans-serif; cursor:pointer;}
.cb-viewbtn:hover{text-decoration:underline;}
.cb-more{align-self:center;}

/* staff: change the community of a post */
.cl-opts{display:flex; flex-direction:column; gap:6px; margin-top:4px;}
.cl-opt{display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; box-sizing:border-box; padding:11px 14px; border:1.5px solid var(--border-soft); border-radius:12px; background:var(--white); color:var(--navy); font:600 14px/1.2 'Inter',sans-serif; cursor:pointer; text-align:start;}
.cl-opt em{font:700 11px/1 'JetBrains Mono',monospace; font-style:normal; color:var(--navy-soft);}
.cl-opt:hover,.cl-opt:focus-visible{border-color:var(--teal); outline:none;}
.cl-opt[aria-checked="true"]{border-color:var(--teal); background:var(--mint-tint);}

/* who reacted */
.rx-tabs{display:flex; gap:6px; overflow-x:auto; padding:2px 0 4px; scrollbar-width:none;}
.rx-tabs::-webkit-scrollbar{display:none;}
.rx-tab{flex:none; display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border:1.5px solid var(--border-soft); border-radius:999px; background:transparent; color:var(--navy); font:700 13px/1 'Inter',sans-serif; cursor:pointer;}
.rx-tab b{font:700 12px/1 'JetBrains Mono',monospace; color:var(--navy-soft);}
.rx-tab:hover,.rx-tab:focus-visible{border-color:var(--teal); outline:none;}
.rx-tab[aria-selected="true"]{border-color:var(--teal); background:var(--mint-tint);}
.rx-ti{display:inline-flex;}
.rx-end{flex:none; display:inline-flex; align-items:center;}
.rx-end .rx{--s:24px;} .rx-ti .rx{--s:20px;}
.cb-more[hidden],.rx-tabs[hidden]{display:none;}
