.forum-hero,.forum-row,.forum-actions,#forum-search{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.forum-hero{justify-content:space-between;margin-block:1rem}
.forum-layout{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(0,3fr) minmax(11rem,1fr);gap:1rem;align-items:start}
.forum-panel{padding:1rem;border:1px solid color-mix(in srgb,currentColor 15%,transparent);border-radius:1rem;min-width:0}
.forum-panel h2{font-size:1rem;margin-block:.25rem .65rem}
.forum-panel nav{display:flex;gap:.4rem;flex-wrap:wrap}
.forum-panel button,.forum-actions a{border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:.65rem;padding:.45rem .65rem;background:transparent;color:inherit;cursor:pointer}
.forum-panel button[aria-pressed=true]{background:#167a48;color:white}
.forum-panel input,.forum-panel textarea,.forum-panel select{max-width:100%;color:inherit;background:transparent;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:.5rem;padding:.55rem}
.forum-panel form{display:grid;gap:.65rem;margin-block:.6rem}
#forum-search{display:flex}#forum-search input{flex:1;min-width:0}
.forum-card{padding:.85rem 0;border-bottom:1px solid color-mix(in srgb,currentColor 15%,transparent);overflow-wrap:anywhere}
.forum-card h2,.forum-card h3{margin:.3rem 0}.forum-card small{opacity:.75}
.forum-text{white-space:pre-wrap;overflow-wrap:anywhere}.forum-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.forum-photos{display:flex;gap:.5rem;flex-wrap:wrap}.forum-photos img{display:block;width:7rem;height:5rem;object-fit:cover;border-radius:.5rem}
.forum-comment-reply{margin-inline-start:1rem}.forum-panel textarea{min-height:6rem;width:100%}
.forum-lightbox{max-width:95vw;max-height:95vh}.forum-lightbox img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}
@media(max-width:790px){.forum-layout{display:flex;flex-direction:column;gap:.6rem}.forum-panel{width:100%;padding:.65rem}.forum-card{padding:.65rem 0}}
#forum-banner:not([hidden]){display:grid;gap:.5rem;margin-bottom:.65rem;padding:.65rem;border-radius:.75rem;background:color-mix(in srgb,#2cbd7a 11%,transparent)}
.forum-public-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:.5rem;margin-bottom:.4rem}
#forum-banner .forum-public-image{aspect-ratio:4/1}

.forum-shell{--f-ink:#12243a;--f-muted:#53667b;--f-card:#fff;--f-edge:#dae6ee;--f-green:#116a49;--f-mint:#def7e9;--f-blue:#e7f0ff;--f-violet:#f0e7ff;--f-orange:#fff1db;color:var(--f-ink);}
.forum-shell [hidden]{display:none!important}
.forum-hero{padding:clamp(1rem,3vw,2.15rem);border:1px solid var(--f-edge);border-radius:1.35rem;background:linear-gradient(115deg,#ddfaed,#e8f2ff 64%,#f3eaff);margin:1rem 0}
.forum-hero h1{margin:0;font-size:clamp(1.65rem,4vw,2.7rem);line-height:1.1}
.forum-hero p{color:var(--f-muted);margin:.55rem 0 0}
.forum-hero .portal-primary{border-radius:999px;min-height:44px}
.forum-layout{grid-template-columns:minmax(10rem,.78fr) minmax(0,3fr) minmax(11rem,1fr)}
.forum-panel{background:var(--f-card);border-color:var(--f-edge);box-shadow:0 5px 22px #243a5410}
.forum-main{background:#f5f9fd}
.forum-panel :is(button,.forum-actions a){border-radius:999px;border-color:var(--f-edge);background:#f1f6fb;min-height:36px;color:var(--f-ink)}
.forum-panel :is(button,.forum-actions a):hover{border-color:#71ab99;background:var(--f-mint)}
.forum-panel button[aria-pressed=true]{background:var(--f-mint);color:var(--f-green);border-color:#84cbb0}
.forum-panel :is(input,textarea,select){background:var(--f-card);border-color:var(--f-edge);border-radius:.75rem}
.forum-panel summary{cursor:pointer;font-weight:700}
.forum-rail{display:grid;gap:.85rem;min-width:0}
.forum-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.45rem;flex-wrap:wrap;margin-block:.65rem}
#forum-circles,#forum-personal{display:grid;margin-top:.65rem;gap:.45rem}
#forum-circles button{text-align:start}
#forum-circles button:nth-child(3n+1){background:var(--f-blue)}
#forum-circles button:nth-child(3n+2){background:var(--f-mint)}
#forum-circles button:nth-child(3n){background:var(--f-violet)}
#forum-recommended .forum-card{padding:.6rem;margin-bottom:.55rem;background:#f4f8fd}
#forum-recommended small{display:block;margin:.25rem 0}
#forum-hotspots{padding-inline-start:1.5rem;margin:.3rem 0;color:#914c08}
#forum-hotspots li{margin-block:.55rem;overflow-wrap:anywhere}
#forum-hotspots small{display:block;color:var(--f-muted)}
.forum-stream{columns:2;column-gap:.8rem}
[data-layout=list] .forum-stream{columns:1}
.forum-card,.forum-compose-form,.forum-reply-form{border:1px solid var(--f-edge);border-radius:1rem;background:var(--f-card);padding:.8rem;margin-bottom:.7rem}
.forum-stream>.forum-card{break-inside:avoid}
.forum-card h2{font-size:1rem;line-height:1.4;margin-block:.5rem .35rem}
.forum-card small{color:var(--f-muted);opacity:1}
.forum-author{display:flex;align-items:center;gap:.5rem}
.forum-author>div{flex:1;min-width:0}
.forum-author small{display:block}
.forum-author .forum-public-image,.forum-avatar-text{display:grid;place-items:center;width:36px;height:36px;aspect-ratio:1;border-radius:50%;margin:0;background:var(--f-violet);flex:none}
.forum-author button{font-size:.75rem;max-width:48%;overflow-wrap:anywhere;background:var(--f-blue)}
.forum-labels{display:flex;flex-wrap:wrap;gap:.3rem;margin-block:.4rem}
.forum-tag{border-radius:999px;padding:.2rem .55rem;font-size:.75rem;background:var(--f-mint)}
.forum-tag.featured{background:var(--f-violet)}.forum-tag.pinned{background:var(--f-orange)}.forum-tag.question{background:var(--f-blue)}
.forum-card-actions{margin-top:.6rem;gap:.3rem}
.forum-card-actions :is(button,a){font-size:.79rem;text-decoration:none}
.forum-more{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}
.forum-more summary{padding:.24rem .55rem;border-radius:999px;background:var(--f-blue)}
.forum-more[open] button{margin:.3rem .2rem 0 0}
.forum-stream .forum-photos button{width:100%;padding:0;border:0;border-radius:.65rem;overflow:hidden}
.forum-stream .forum-photos img{width:100%;height:auto;aspect-ratio:16/10}
.forum-stream .forum-card:nth-child(3n+2) .forum-photos img{aspect-ratio:4/3}
.forum-back{display:inline-flex;margin-bottom:.7rem;font-weight:700}
.forum-comments{scroll-margin-top:6rem}
.forum-emoji[open] button{margin:.25rem .2rem}
.forum-lightbox{background:#101922;color:#fff;border:0;border-radius:1.1rem;padding:.75rem}
.forum-lightbox button{border-radius:999px;padding:.35rem .7rem;margin:0 .25rem .4rem 0}
#forum-status:empty,#forum-topic-state:empty{display:none}
#forum-status:not(:empty){border-radius:.7rem;padding:.6rem .8rem;background:var(--f-orange)}
@media(max-width:1100px){.forum-layout{grid-template-columns:minmax(8rem,1fr) minmax(0,3fr)}.forum-rail{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.forum-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem}.forum-rail{grid-column:auto;grid-template-columns:minmax(0,1fr)}.forum-stream{columns:1}.forum-hero .portal-primary{position:fixed;inset:auto 1rem max(1rem,env(safe-area-inset-bottom)) auto;z-index:8;box-shadow:0 5px 22px #143a4660}.forum-sidebar #forum-circles{display:flex}}
.forum-photos button{position:relative}
.forum-photo-count{position:absolute;inset:auto .5rem .5rem auto;border-radius:999px;padding:.2rem .45rem;color:white;background:#18263cd9}
.forum-topic-choices{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.forum-topic-choices button:nth-child(3n+1):not([aria-pressed=true]){background:var(--f-blue)}
.forum-topic-choices button:nth-child(3n+2):not([aria-pressed=true]){background:var(--f-violet)}
.forum-topic-choices button:nth-child(3n):not([aria-pressed=true]){background:var(--f-orange)}
.forum-image-canvas{max-width:90vw;max-height:78vh;overflow:auto}
.forum-image-canvas img.forum-zoomed{max-width:none;max-height:none;width:160vw}
@media(max-width:850px){.forum-shell:has(#forum-browse[hidden]) .forum-hero .portal-primary{position:static}.forum-shell:has(#forum-browse:not([hidden])){padding-bottom:4rem}}

.forum-layout > *,#forum-content,.forum-compose-form label,.forum-card{min-width:0;overflow-wrap:anywhere}
.forum-layout :is(input,textarea,select,img){max-width:100%;box-sizing:border-box}
.forum-page-head{background:linear-gradient(115deg,#eef8f4,#eff3ff);border:1px solid var(--f-edge);border-radius:1rem;padding:.75rem;margin-bottom:.7rem}
.forum-page-head h2{margin:.35rem 0}.forum-page-head nav{display:flex;flex-wrap:wrap;gap:.35rem}
.forum-detail-card h2{font-size:clamp(1.15rem,3vw,1.65rem)}
.forum-detail-card .forum-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.forum-detail-card .forum-photos button{width:100%;min-width:0;padding:0;overflow:hidden;border-radius:.65rem}
.forum-detail-card .forum-photos img{width:100%;height:auto;aspect-ratio:4/3}
.forum-compose-form label{display:grid;gap:.35rem;font-weight:650}
.forum-compose-form textarea{min-height:10rem}
.forum-attachment{background:#f2f7fc;border-radius:.65rem;padding:.45rem;margin-block:.25rem}
.forum-report-form{background:#fff7ec;border:1px solid #efd9bc;border-radius:1rem;padding:.7rem}
.forum-list-empty{border:1px dashed var(--f-edge);background:white;border-radius:.9rem;padding:.85rem;color:var(--f-muted)}
.forum-reply-form .forum-row{gap:.35rem}.forum-reply-form textarea{min-height:4.5rem}
.forum-comment-reply{border-inline-start:3px solid #b8def3}
@media(max-width:760px){body.portal-body .forum-main-page>.forum-shell{width:calc(100% - 20px);padding-inline:0}.forum-detail-card .forum-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.forum-card,.forum-compose-form,.forum-reply-form{padding:.65rem}.forum-hero{padding:.8rem}.forum-reply-form :is(input,textarea),.forum-compose-form :is(input,textarea,select){font-size:16px}}
@media(max-width:760px) and (orientation:landscape){body.portal-body .forum-main-page>.forum-shell{width:calc(100% - 16px)}}
.forum-panel form:not(#forum-search){grid-template-columns:minmax(0,1fr)}
.forum-panel form > *, .forum-panel form :is(label,input,select,textarea){min-width:0;box-sizing:border-box}
.forum-compose-form input[type=file]{width:100%}

#forum-hotspots li{position:relative;padding-inline-end:3rem;min-width:0}
#forum-hotspots li a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#forum-hotspots li small{position:absolute;inset-inline-end:0;top:0;white-space:nowrap;font-variant-numeric:tabular-nums}
#forum-recommended .forum-card{display:flex;align-items:center;gap:4px;padding:6px;min-width:0}
#forum-recommended .forum-public-image{width:24px;height:24px;flex:0 0 24px;margin:0;border-radius:5px}
#forum-recommended .forum-card button{font-size:.73rem;padding:3px 4px;min-height:30px;white-space:nowrap}
#forum-recommended .forum-card button:first-of-type{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:start;background:transparent;border-color:transparent}
#forum-recommended .forum-card small{flex:none;margin:0;white-space:nowrap;font-size:.68rem;font-variant-numeric:tabular-nums}
#forum-recommended .forum-card button:last-of-type{flex:none}

#forum-personal{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
#forum-personal > :is(button,a){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:32px;padding:5px 10px;border:1px solid var(--f-edge);border-radius:999px;background:#f0f5fb;color:var(--f-ink);font-size:.83rem;line-height:20px;text-align:start;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#forum-personal > :is(button,a):nth-child(3n+2){background:#eaf7f1}
#forum-personal > :is(button,a):nth-child(3n){background:#f3effc}
#forum-personal > :is(button,a):hover{background:var(--f-mint);border-color:#71ab99}
#forum-personal > :is(button,a):focus-visible{outline:2px solid var(--f-green);outline-offset:1px}

.forum-panel button.forum-join-icon,.forum-panel #forum-recommended button.forum-join-icon{background:#def7e9;color:#116a49;border-color:#9bd5ba;font-weight:750;padding-inline:.52rem}
.forum-panel button.forum-join-icon:hover,.forum-panel #forum-recommended button.forum-join-icon:hover{background:#c9f0dc;border-color:#71ab99}
.forum-panel button.forum-join-icon,.forum-panel #forum-recommended button.forum-join-icon{display:inline-grid;place-items:center;inline-size:32px;block-size:32px;padding:0;font:600 24px/1 system-ui}
