/* Community is configured separately and remains hidden while disabled. */
.live-community{clear:both;margin-top:3rem;padding-top:1.8rem;border-top:1px solid var(--tg-border-color-base);color:var(--tg-color-base)}
.live-community h2{font:600 clamp(2rem,3vw,3rem)/1.05 var(--editorial-display);color:var(--tg-color-emphasized);border:0}
.live-community-muted,.live-community-status{color:var(--tg-color-subtle);font-size:.8rem;line-height:1.6}
.live-community-comment{padding:1.1rem 0;border-bottom:1px solid var(--tg-border-color-base)}
.live-community-comment strong{font-size:.75rem;color:var(--tg-color-emphasized)}
.live-community-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--editorial-text)}
.live-community summary{cursor:pointer;color:var(--tg-color-link)}
.live-community label{display:block;margin:1rem 0 .4rem;font-size:.75rem;font-weight:700}
.live-community input:not([type=checkbox]),.live-community textarea{display:block;box-sizing:border-box;width:100%;margin-top:.4rem;padding:.8rem;border:1px solid var(--tg-border-color-base);border-radius:5px;background:var(--tg-color-surface-0);color:var(--tg-color-base);font:inherit}
.live-community textarea{min-height:110px;resize:vertical}.live-community-check{display:flex!important;gap:.5rem;align-items:center;font-weight:400!important}
.live-community-button{margin:.5rem .6rem .5rem 0;padding:.65rem .9rem;border:1px solid var(--tg-border-color-base);border-radius:4px;background:var(--tg-color-surface-1);color:var(--tg-color-link);font:600 .75rem var(--tg-font-family-body);cursor:pointer}
.live-community-button:disabled{opacity:.6;cursor:wait}.live-community :is(button,input,textarea,summary):focus-visible{outline:3px solid var(--tg-color-link);outline-offset:3px}
.live-community-moderation{margin:1.5rem 0;padding:1rem;border:1px solid var(--tg-border-color-base);border-radius:6px;background:var(--tg-color-surface-1)}.live-community-moderation>summary{font-weight:700}
.live-community-reply{margin-left:clamp(1rem,4vw,3rem)}
.live-forum{max-width:1100px;margin:0 auto}.live-forum-head{padding:clamp(2rem,5vw,4rem);background:var(--tg-color-surface-1);border:1px solid var(--tg-border-color-base);border-radius:10px}.live-forum-head h2{font:600 clamp(3rem,6vw,5rem)/.96 var(--editorial-display);letter-spacing:-.03em;color:var(--tg-color-emphasized)}.live-forum-head p{max-width:42ch;color:var(--tg-color-subtle);line-height:1.7}.live-forum-kicker{font-size:.62rem;font-weight:700;letter-spacing:.1em;color:var(--tg-color-link)}.live-forum-content{margin:3rem 0}.live-forum-content h3{font:600 clamp(2rem,4vw,3rem)/1 var(--editorial-display);color:var(--tg-color-emphasized)}.live-forum-card,.live-forum-post{padding:1.5rem 0;border-bottom:1px solid var(--tg-border-color-base)}.live-forum-card .live-community-button{display:block;border:0;background:transparent;padding:.5rem 0;text-align:left;font:600 1.6rem var(--editorial-display);color:var(--tg-color-emphasized)}.live-forum-compose{padding:1rem;border:1px solid var(--tg-border-color-base);border-radius:6px}.live-forum select{display:block;margin-top:.4rem;padding:.65rem;background:var(--tg-color-surface-0);color:var(--tg-color-base);border:1px solid var(--tg-border-color-base)}
.live-forum label{display:block;margin:1rem 0 .4rem;font-size:.75rem;font-weight:700}.live-forum input:not([type=checkbox]),.live-forum textarea{display:block;box-sizing:border-box;width:100%;margin-top:.4rem;padding:.8rem;border:1px solid var(--tg-border-color-base);border-radius:5px;background:var(--tg-color-surface-0);color:var(--tg-color-base);font:inherit}.live-forum textarea{min-height:110px;resize:vertical}.live-forum details summary{cursor:pointer;color:var(--tg-color-link)}.live-forum :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--tg-color-link);outline-offset:3px}
.live-forum-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.7rem}.live-forum-images img{display:block;max-width:100%;max-height:160px;object-fit:cover;border-radius:5px}

/* The account panel uses the same editorial palette as the encyclopedia. */
.profile-panel[hidden]{display:none}
.profile-panel{position:fixed;left:66px;bottom:14px;z-index:80;width:min(306px,calc(100vw - 76px));overflow:hidden;border:1px solid var(--tg-border-color-base);border-radius:10px;background:var(--tg-color-surface-1);color:var(--tg-color-base);box-shadow:0 18px 50px rgba(0,0,0,.22)}
.profile-panel-intro{padding:1.2rem 1.2rem 1rem;border-bottom:1px solid var(--tg-border-color-base)}
.profile-panel-kicker{font:700 .57rem var(--tg-font-family-body);letter-spacing:.13em;color:var(--tg-color-link)}
.profile-panel-intro h1{font:600 1.65rem/1.1 var(--editorial-display);color:var(--tg-color-emphasized);margin:.5rem 0 .35rem;overflow-wrap:anywhere}
.profile-panel-intro p,.profile-panel-actions p{font:.75rem/1.5 var(--tg-font-family-body);color:var(--tg-color-subtle);margin:0}
.profile-panel-links{padding:.45rem .65rem}.profile-panel-links a,.profile-coming{display:flex;align-items:center;gap:.75rem;padding:.7rem .55rem;border-radius:6px;color:var(--tg-color-base);text-decoration:none}
.profile-panel-links a:hover{background:var(--tg-color-surface-3)}.profile-panel-links svg{width:20px;height:20px;flex:none}.profile-panel-links span:nth-child(2){flex:1}.profile-panel-links strong,.profile-panel-links small{display:block}.profile-panel-links strong{font:600 .9rem var(--editorial-text)}.profile-panel-links small{font:.67rem var(--tg-font-family-body);color:var(--tg-color-subtle);margin-top:.15rem}.profile-coming{opacity:.62}
.profile-panel-actions{padding:.75rem 1.2rem 1rem;border-top:1px solid var(--tg-border-color-base)}.profile-panel-actions button{width:100%;padding:.75rem;border:0;border-radius:6px;background:var(--tg-color-progressive);color:#fff;font:600 .76rem var(--tg-font-family-body);cursor:pointer}.profile-panel-actions button:disabled{opacity:.6;cursor:wait}.profile-panel-actions p:not(:empty){margin-top:.5rem}.profile-panel :is(button,a):focus-visible,#rail-profile:focus-visible{outline:3px solid var(--tg-color-link);outline-offset:2px}
@media(max-width:720px){.profile-panel{left:auto;right:8px;bottom:calc(62px + env(safe-area-inset-bottom,0px));width:min(306px,calc(100vw - 16px))}}
/* Account controls use the existing appearance settings; unfinished areas are labelled. */
.profile-panel{max-height:calc(100dvh - 90px);overflow-y:auto}
.profile-panel-links button#profile-preferences{display:flex;align-items:center;gap:.75rem;width:100%;padding:.7rem .55rem;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.profile-panel-links button#profile-preferences:hover{background:var(--tg-color-surface-3)}
.profile-coming{justify-content:space-between;gap:.5rem;padding:.45rem .55rem}.profile-coming small{margin:0}
.profile-edit{padding:.6rem .55rem;font:600 .9rem var(--editorial-text)}.profile-edit summary{cursor:pointer}.profile-edit form{display:grid;gap:.45rem;padding-top:.7rem;font:.75rem/1.4 var(--tg-font-family-body)}.profile-edit input{box-sizing:border-box;width:100%;padding:.5rem;background:var(--tg-color-surface-1);color:var(--tg-color-base);border:1px solid var(--tg-border-color-base);border-radius:4px}.profile-edit small,.profile-edit p{color:var(--tg-color-subtle);margin:0}.profile-edit form button{padding:.55rem;border:0;border-radius:4px;background:var(--tg-color-progressive);color:white;cursor:pointer}
.profile-edit textarea{box-sizing:border-box;width:100%;resize:vertical;padding:.5rem;background:var(--tg-color-surface-1);color:var(--tg-color-base);border:1px solid var(--tg-border-color-base);border-radius:4px;font:inherit}.profile-tool-note,#profile-watch-status,#profile-watch-items{font:.75rem/1.4 var(--tg-font-family-body);color:var(--tg-color-subtle)}#profile-watch-current,#profile-watch-items button{padding:.4rem;border:1px solid var(--tg-border-color-base);border-radius:4px;background:transparent;color:var(--tg-color-base);cursor:pointer}#profile-watch-items>div{display:flex;justify-content:space-between;gap:.5rem;align-items:center;margin:.5rem 0}#profile-watch-items a{overflow-wrap:anywhere;text-transform:capitalize}
#profile-notification-items,#profile-contribution-items{font:.75rem/1.4 var(--tg-font-family-body);overflow-wrap:anywhere}#profile-notification-items button{padding:.4rem;border:1px solid var(--tg-border-color-base);border-radius:4px;background:transparent;color:var(--tg-color-base);cursor:pointer}

/* A spacious account page instead of the old fixed account popover. */
.rail #rail-profile{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:var(--tg-border-radius-medium);color:var(--tg-color-base)}
.rail #rail-profile:hover{background:var(--tg-color-surface-3)}.rail #rail-profile svg{width:18px;height:18px}
.wiki-view.is-account .wiki-hero,.wiki-view.is-account .wiki-article,.wiki-view.is-account .wiki-side,.wiki-view.is-account .wiki-retrieved{display:none}
.wiki-view.is-account .wiki-cols{display:block}
.profile-panel{position:static;width:auto;max-width:1050px;max-height:none;overflow:visible;margin:2rem auto 4rem;border:0;border-radius:0;box-shadow:none;background:transparent;font-family:'Poppins',sans-serif}
.profile-panel[hidden]{display:none}
.profile-panel-intro{padding:clamp(1.5rem,4vw,3rem);border:1px solid var(--tg-border-color-base);border-radius:16px;background:var(--tg-color-surface-1)}
.profile-panel-kicker{font:700 .65rem 'Poppins',sans-serif;letter-spacing:.1em}
.profile-panel-intro h1{font:600 clamp(1.8rem,4vw,2.8rem)/1.2 'Poppins',sans-serif;margin:.6rem 0}
.profile-panel-intro p,.profile-panel-actions p{font:.85rem/1.6 'Poppins',sans-serif}
.profile-panel-links{padding:1.5rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.profile-panel-links>a,.profile-panel-links button#profile-preferences,.profile-edit{display:block;padding:1.25rem;border:1px solid var(--tg-border-color-base);border-radius:12px;background:var(--tg-color-surface-1);color:var(--tg-color-base);font:500 .9rem/1.5 'Poppins',sans-serif}
.profile-panel-links>a,.profile-panel-links button#profile-preferences{display:flex;align-items:center;gap:.9rem;min-height:84px;box-sizing:border-box;text-align:left}
.profile-panel-links strong{font:600 .95rem 'Poppins',sans-serif}.profile-panel-links small{font:.75rem/1.5 'Poppins',sans-serif}
#profile-member-links:not([hidden]){display:contents}
.profile-edit summary{font:600 .95rem 'Poppins',sans-serif;cursor:pointer}.profile-edit form{font:.8rem/1.6 'Poppins',sans-serif}.profile-edit form,.profile-tool-note,#profile-notification-items,#profile-contribution-items,#profile-watch-items{margin-top:.8rem}
.profile-edit input,.profile-edit textarea{padding:.75rem;font:inherit;background:var(--tg-color-surface-0)}
.profile-edit form button{justify-self:start;padding:.7rem 1rem}.profile-panel-actions{padding:1.5rem 0;border:0}.profile-panel-actions button{width:auto;padding:.8rem 1.25rem}
@media(max-width:720px){.rail #rail-profile{width:44px;height:44px}.profile-panel{position:static;width:auto;margin:1rem auto 3rem}.profile-panel-links{grid-template-columns:1fr}}
.profile-panel-intro{display:flex;align-items:center;gap:1.25rem}
.account-avatar{display:grid;place-items:center;flex:none;width:clamp(58px,9vw,82px);aspect-ratio:1;border:1px solid var(--tg-border-color-base);border-radius:50%;background:var(--tg-color-surface-2);color:var(--tg-color-link);font:600 1.8rem 'Poppins',sans-serif}
.wiki-view.is-account .profile-panel{margin-top:clamp(6rem,9vw,8rem)}
/* Compact account card: a shortcut to the full profile, not the profile itself. */
.account-quick[hidden]{display:none}.account-quick{position:fixed;z-index:85;left:66px;bottom:14px;width:min(310px,calc(100vw - 82px));padding:1rem;border:1px solid var(--tg-border-color-base);border-radius:16px;background:var(--tg-color-surface-1);color:var(--tg-color-base);box-shadow:0 20px 55px #0004;font-family:'Poppins',sans-serif}
.account-quick-head{display:flex;gap:.8rem;align-items:center;padding:.3rem .2rem 1rem}.account-quick-head small,.account-quick-head strong,.account-quick-head span{display:block}.account-quick-head small{font-size:.58rem;letter-spacing:.12em;color:var(--tg-color-link);font-weight:700}.account-quick-head strong{font-size:.95rem;overflow-wrap:anywhere}.account-quick-head span{font-size:.68rem;color:var(--tg-color-subtle)}
.account-quick-avatar{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;background:var(--tg-color-surface-2) center/cover;color:var(--tg-color-link);font-weight:600}
.account-quick-main{display:flex;justify-content:space-between;padding:.75rem 1rem;border-radius:9px;background:var(--tg-color-progressive);color:#fff!important;font-size:.78rem;font-weight:600;text-decoration:none}.account-quick nav{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;margin-top:.8rem}.account-quick nav a{display:flex;justify-content:space-between;gap:.3rem;padding:.65rem .55rem;border-radius:7px;color:var(--tg-color-base);font-size:.74rem;text-decoration:none}.account-quick nav a:hover{background:var(--tg-color-surface-3)}.account-quick :is(a,button):focus-visible{outline:3px solid var(--tg-color-link);outline-offset:2px}
.profile-panel-intro{position:relative;overflow:hidden;isolation:isolate}.profile-panel-intro::before{content:"";position:absolute;z-index:-1;inset:-35px;background:linear-gradient(90deg,var(--tg-color-surface-1),color-mix(in srgb,var(--tg-color-surface-1) 72%,transparent)),var(--account-cover,none) center/cover;filter:blur(18px)}.account-avatar{background-position:center;background-size:cover}
#profile-image-remove{background:transparent;border:1px solid var(--tg-border-color-base);color:var(--tg-color-base)}
@media(max-width:720px){.account-quick{left:auto;right:8px;bottom:calc(64px + env(safe-area-inset-bottom,0px));width:min(310px,calc(100vw - 16px))}}
.live-forum-preview{padding:1rem;margin:.5rem 0 1rem;border:1px solid var(--tg-border-color-base);border-radius:8px;background:var(--tg-color-surface-2)}.live-forum-preview[hidden]{display:none}.live-forum-preview h4{font:600 1rem 'Poppins',sans-serif;margin:0 0 .5rem}
.account-quick{box-sizing:border-box}
/* The profile editor stays on the account page, with a clear upload preview. */
.profile-panel-intro>div:nth-child(2){flex:1;min-width:0}.profile-edit-shortcut{flex:none;border:1px solid var(--tg-border-color-base);border-radius:9px;background:var(--tg-color-surface-1);color:var(--tg-color-base);padding:.7rem 1rem;font:600 .75rem 'Poppins',sans-serif;cursor:pointer}.profile-edit-shortcut[hidden]{display:none}
.profile-edit-main{grid-column:1/-1}.profile-edit-main summary span{display:block;color:var(--tg-color-subtle);font:400 .75rem/1.5 'Poppins',sans-serif;margin-top:.3rem}.profile-edit-main form{max-width:640px;gap:.7rem}.profile-image-editor{display:flex;align-items:center;gap:1.2rem;margin:.4rem 0 1rem}.profile-image-preview{display:grid;place-items:center;flex:none;width:96px;height:96px;border:1px solid var(--tg-border-color-base);border-radius:50%;background:var(--tg-color-surface-2) center/cover;color:var(--tg-color-link);font:600 2rem 'Poppins',sans-serif}.profile-image-fields{display:grid;gap:.45rem;min-width:0;flex:1}.profile-image-fields label,.profile-edit-main form>label{font-weight:600}.profile-image-fields small{font-size:.72rem;line-height:1.5}.profile-image-fields input{max-width:100%;font-size:.72rem}.profile-edit-main button:disabled{opacity:.5;cursor:not-allowed}.profile-edit-main input:focus-visible,.profile-edit-main button:focus-visible{outline:3px solid var(--tg-color-link);outline-offset:2px}
@media(max-width:540px){.profile-panel-intro{flex-wrap:wrap}.profile-edit-shortcut{margin-left:calc(clamp(58px,9vw,82px) + 1.25rem)}.profile-image-editor{align-items:flex-start}.profile-image-preview{width:72px;height:72px}}
/* Discussion Center: a readable feed and one clear publishing action. */
.discussion-loading{padding:clamp(2rem,5vw,4rem);border:1px solid var(--tg-border-color-base);border-radius:16px;background:var(--tg-color-surface-1)}
.discussion-loading h2{font:600 2rem 'Poppins',sans-serif}.discussion-loading p{color:var(--tg-color-subtle);line-height:1.7}
.live-forum{max-width:1100px;font-family:'Poppins',sans-serif}.live-forum-head{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;padding:clamp(1.5rem,4vw,3rem);border-radius:16px;background:var(--tg-color-surface-1)}
.live-forum-head h2{font:600 clamp(2rem,4vw,3.25rem)/1.15 'Poppins',sans-serif;letter-spacing:-.03em;margin:.6rem 0}.live-forum-head p{font:.85rem/1.7 'Poppins',sans-serif;margin:0;color:var(--tg-color-subtle)}.live-forum-head .live-forum-start{flex:none;padding:.85rem 1.1rem;border:0;border-radius:8px;background:var(--tg-color-progressive);color:#fff;font:600 .78rem 'Poppins',sans-serif}.live-forum-head .live-forum-start:disabled{opacity:.55;cursor:not-allowed}
.live-forum-content{margin:1.5rem 0 3rem}.live-forum-notice{padding:1rem 1.2rem;border:1px solid var(--tg-border-color-base);border-radius:10px;background:var(--tg-color-surface-2);font:.8rem/1.6 'Poppins',sans-serif;color:var(--tg-color-subtle)}
.live-forum-toolbar{display:flex;justify-content:space-between;align-items:end;margin:2rem 0 1rem}.live-forum-toolbar h3,.live-forum-compose h3,.live-forum-replies h3{font:600 1.25rem/1.3 'Poppins',sans-serif;margin:0}.live-forum-toolbar p{margin:.4rem 0 0}.live-forum-filters{display:flex;gap:.45rem;flex-wrap:wrap;padding:0 0 1rem;border-bottom:1px solid var(--tg-border-color-base)}.live-forum-filters button{margin:0;padding:.55rem .8rem;border-radius:99px;background:transparent;color:var(--tg-color-subtle)}.live-forum-filters button[aria-pressed=true]{color:var(--tg-color-emphasized);background:var(--tg-color-surface-2);border-color:var(--tg-color-link)}
.live-forum-card{padding:1.35rem 0}.live-forum-card-meta{display:flex;align-items:center;gap:.6rem}.live-forum-initial{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tg-color-surface-2);color:var(--tg-color-link);font-size:.8rem;font-weight:600}.live-forum-card .live-community-button{font:600 1.05rem/1.4 'Poppins',sans-serif;padding:.65rem 0 .2rem}.live-forum-excerpt{color:var(--tg-color-subtle);font:.78rem/1.7 'Poppins',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:.35rem 0}.live-forum-empty{color:var(--tg-color-subtle);padding:2rem 0;font:.85rem/1.7 'Poppins',sans-serif}
.live-forum-compose{margin:1rem 0 2rem;padding:clamp(1rem,3vw,1.75rem);border-radius:12px;background:var(--tg-color-surface-1)}.live-forum-compose[hidden]{display:none}.live-forum-compose h3+p{margin:.5rem 0 1rem}.live-forum-compose input,.live-forum-compose textarea,.live-forum-compose select{border-radius:7px!important}.live-forum-compose textarea{min-height:150px}.live-forum-footer{padding-top:1rem;border-top:1px solid var(--tg-border-color-base);font-size:.8rem}.live-forum-post{padding:1.4rem 0}.live-forum-post h3{font:600 clamp(1.5rem,3vw,2.2rem)/1.2 'Poppins',sans-serif}
@media(max-width:600px){.live-forum-head{align-items:stretch;flex-direction:column}.live-forum-head .live-forum-start{width:100%;margin:0}.live-forum-filters{gap:.35rem}.live-forum-filters button{font-size:.7rem}}
.live-forum-topic{padding:.8rem 1rem;border-left:3px solid var(--tg-color-link);background:var(--tg-color-surface-1);font:.8rem/1.6 'Poppins',sans-serif}
.live-forum-card{display:block;color:inherit;text-decoration:none;border-radius:8px;padding:1.2rem;transition:background .15s}.live-forum-card:hover,.live-forum-card:focus-visible{background:var(--tg-color-surface-1)}.live-forum-card-title{display:block;margin:.65rem 0 .2rem;color:var(--tg-color-emphasized);font:600 1.05rem/1.4 'Poppins',sans-serif}
/* Email account and recovery forms use the same account surface as Google. */
.profile-email-auth{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--tg-border-color-base)}
.profile-email-auth h2{font:600 1rem var(--tg-font-family-body);margin:0 0 .5rem}
.profile-email-auth nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.profile-panel-actions .profile-email-auth nav button{width:auto;padding:.55rem .75rem;background:transparent;color:var(--tg-color-link);border:1px solid var(--tg-border-color-base)}
.profile-panel-actions .profile-email-auth nav button[aria-pressed="true"]{background:var(--tg-color-progressive);color:#fff}
.profile-email-auth form,.profile-email-auth form div{display:grid;gap:.5rem}
.profile-email-auth label{font:600 .8rem var(--tg-font-family-body)}
.profile-email-auth input{box-sizing:border-box;width:100%;max-width:30rem;padding:.7rem;border:1px solid var(--tg-border-color-base);border-radius:6px;background:var(--tg-color-surface-0);color:var(--tg-color-base);font:inherit}
.profile-email-auth small{font:.75rem/1.5 var(--tg-font-family-body);color:var(--tg-color-subtle)}
.profile-email-auth [hidden]{display:none!important}

/* Role labels come only from the server's trusted role registry. */
.live-community-role{display:inline-block;margin-inline-start:.3em;padding:.12em .45em;border:1px solid currentColor;border-radius:.35em;font-size:.72em;line-height:1.3;vertical-align:middle}

/* Community surfaces: explicit contrast in both themes, including dark mode. */
:root{--community-outline:rgba(38,31,22,.22);--community-outline-strong:rgba(38,31,22,.38);--community-field:#fffdf9}
html[data-theme="dark"]{--community-outline:rgba(242,231,208,.24);--community-outline-strong:rgba(242,231,208,.42);--community-field:#15151b}
.live-community,.live-forum,.profile-panel{font-family:var(--tg-font-family-body)}
.live-community{margin-top:3rem;padding:2rem 0 0;border-top:1px solid var(--community-outline)}
.live-community h2{margin:0 0 .3rem;font:700 clamp(1.45rem,2vw,1.8rem)/1.25 var(--tg-font-family-body);letter-spacing:-.02em}
.live-community h3{font:700 1rem/1.35 var(--tg-font-family-body);margin:0 0 .5rem;color:var(--tg-color-emphasized)}
.live-community-list{display:grid;gap:.65rem;margin:1.25rem 0}
.live-community-comment{padding:1rem 1.1rem;border:1px solid var(--community-outline);border-radius:12px;background:var(--tg-color-surface-1)}
.live-community-comment strong{font-size:.84rem}.live-community-comment .live-community-body{font:.9rem/1.65 var(--tg-font-family-body);margin:.6rem 0}
.live-community-reply{margin-left:clamp(1rem,4vw,3rem);border-left:3px solid var(--tg-color-link)}
.live-community-empty,.live-forum-empty{margin:1rem 0;padding:1.2rem;border:1px dashed var(--community-outline-strong);border-radius:12px;background:var(--tg-color-surface-1);color:var(--tg-color-subtle);font-size:.85rem}
.live-community-signin,.live-community-form,.live-forum-compose,.live-forum-replies>.live-community-form{box-sizing:border-box;margin:1.25rem 0;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid var(--community-outline-strong);border-radius:14px;background:var(--tg-color-surface-1)}
.live-community-signin-title{font-weight:700;color:var(--tg-color-emphasized);margin:0}.live-community-signin p{margin:.35rem 0}
.live-community-signin a.live-community-button{display:inline-block;text-decoration:none}
.live-community :is(input:not([type=checkbox]),textarea),.live-forum :is(input:not([type=checkbox]),textarea,select),.profile-email-auth input,.profile-edit :is(input,textarea){box-sizing:border-box;border:1px solid var(--community-outline-strong);background:var(--community-field);color:var(--tg-color-base);border-radius:9px}
.live-community :is(input,textarea)::placeholder,.live-forum :is(input,textarea)::placeholder{color:var(--tg-color-subtle);opacity:1}
.live-community-form label,.live-forum label{font-size:.8rem;color:var(--tg-color-emphasized)}
.live-community-form textarea,.live-forum textarea{min-height:140px}
.live-community-button{border-color:var(--community-outline-strong);border-radius:8px;color:var(--tg-color-base)}
.live-community-form button[type=submit],.live-forum-compose button[type=submit],.live-forum-replies button[type=submit],.live-community-signin a{background:var(--tg-color-progressive);border-color:var(--tg-color-progressive);color:#17120b;font-weight:700}
.live-community-form button[hidden],.live-forum button[hidden]{display:none}
.live-community-moderation,.live-forum-head,.live-forum-post,.live-forum-preview,.discussion-loading{border:1px solid var(--community-outline);border-radius:14px;background:var(--tg-color-surface-1)}
.live-forum-post{padding:clamp(1rem,3vw,1.6rem)}
.live-forum-list{display:grid;gap:.65rem}.live-forum-card{border:1px solid var(--community-outline);border-radius:12px;background:var(--tg-color-surface-1)}
.live-forum-card:hover,.live-forum-card:focus-visible{border-color:var(--community-outline-strong);background:var(--tg-color-surface-2)}
.live-forum-replies{margin-top:1.5rem}.live-forum-replies .live-community-comment{margin:.7rem 0}.live-forum-replies .live-community-form{margin-top:1.25rem}
.live-forum-filters{border-color:var(--community-outline)}.live-forum-filters button{border-color:var(--community-outline)}
.live-forum-head .live-forum-start{color:#17120b}

/* Put sign-in first, not below profile tools; retain every account flow. */
.profile-panel.is-guest{display:flex;flex-direction:column}
.profile-panel.is-guest .profile-panel-intro{order:0}
.profile-panel.is-guest .profile-panel-actions{order:1}
.profile-panel.is-guest .profile-panel-links{order:2}
.profile-panel.is-guest .profile-panel-actions{width:min(100%,580px);box-sizing:border-box;margin:1rem auto 0;padding:clamp(1.2rem,4vw,2rem);border:1px solid var(--community-outline-strong);border-radius:16px;background:var(--tg-color-surface-1)}
.profile-panel.is-guest .profile-panel-intro,.profile-panel-links>a,.profile-panel-links button#profile-preferences,.profile-edit{border-color:var(--community-outline)}
.account-auth-kicker{font-size:.65rem;font-weight:700;letter-spacing:.12em;color:var(--tg-color-link)}
#profile-signup-info h2{font:700 clamp(1.3rem,3vw,1.75rem)/1.2 var(--tg-font-family-body);margin:.5rem 0;color:var(--tg-color-emphasized)}
#profile-signup-info .account-policy{font-size:.72rem;margin-top:.75rem}
.profile-panel.is-guest #profile-auth{display:block;width:100%;margin:1.25rem 0 .3rem;min-height:46px;background:var(--tg-color-progressive);color:#17120b;font-size:.85rem}
.profile-email-auth{margin-top:1.3rem;padding-top:1.2rem;border-top:1px solid var(--community-outline)}
.profile-email-auth h2{font-size:.95rem;color:var(--tg-color-emphasized)}
.profile-email-notice{padding:.75rem .9rem;border:1px solid var(--community-outline);border-radius:9px;background:var(--tg-color-surface-2)}
.profile-panel-actions .profile-email-auth nav{display:flex;gap:.35rem;padding:.3rem;border:1px solid var(--community-outline);border-radius:10px;background:var(--tg-color-surface-2)}
.profile-panel-actions .profile-email-auth nav button{flex:1;min-height:40px;margin:0;border:0;color:var(--tg-color-base);font-size:.75rem}
.profile-panel-actions .profile-email-auth nav button[aria-pressed="true"]{background:var(--tg-color-surface-1);color:var(--tg-color-emphasized);box-shadow:0 0 0 1px var(--community-outline)}
.profile-email-auth form{gap:.6rem}.profile-email-auth input{max-width:none;min-height:46px}
.profile-panel-actions .profile-email-auth form>button{width:100%;min-height:46px;color:#17120b}
@media(max-width:600px){.live-community-comment{padding:.9rem}.live-community-reply{margin-left:.75rem}.profile-panel-actions .profile-email-auth nav{flex-wrap:wrap}.profile-panel-actions .profile-email-auth nav button{min-width:90px}}
.profile-panel.is-guest[hidden]{display:none}
.profile-panel:not([hidden]){display:flex;flex-direction:column}
.profile-panel .profile-panel-intro{order:0}.profile-panel .profile-panel-links{order:1}.profile-panel .profile-panel-actions{order:2}
.profile-panel.is-guest .profile-panel-actions{order:1}.profile-panel.is-guest .profile-panel-links{order:2}
.live-comment-header{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.live-comment-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--community-outline);border-radius:50%;background:var(--tg-color-surface-2);color:var(--tg-color-link);font-size:.8rem;font-weight:700}
.live-comment-date{color:var(--tg-color-subtle);font-size:.72rem}

/* Dedicated signup fields and Google identity affordance. */
#profile-signup-fields:not([hidden]){display:grid;gap:.45rem}#profile-signup-fields p{font-size:.72rem;color:var(--tg-color-subtle)}
#profile-signup-agreement:not([hidden]){display:flex;align-items:flex-start;gap:.5rem;font-size:.75rem;line-height:1.5}#profile-signup-agreement input{min-height:0;width:auto;margin-top:.25rem}
.profile-panel.is-guest #profile-auth{background:var(--tg-color-surface-1);color:var(--tg-color-emphasized);border:1px solid var(--community-outline-strong)}
.profile-panel.is-guest #profile-auth::before{content:'G';display:inline-grid;place-items:center;margin-right:.7rem;font:700 1.2rem Arial;color:#4285f4}
.profile-panel:not(.is-guest) .signup-route-link{display:none}.signup-route-link{display:block;margin:.6rem 0;color:var(--tg-color-link);font-size:.78rem}
.live-comment-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem}

.live-comment-avatar,.live-forum-initial{background-position:center;background-size:cover}.profile-avatar-public{display:flex;gap:.5rem;align-items:flex-start;font-size:.73rem;line-height:1.45}.profile-avatar-public input{width:auto!important;min-height:0!important;margin-top:.2rem}

.community-citation{display:inline;color:var(--tg-color-link);font-weight:600;text-decoration:underline;text-underline-offset:3px}.community-cite-button{align-self:flex-start;border:1px solid var(--community-outline);border-radius:8px;padding:.5rem .8rem;color:var(--tg-color-base);background:var(--tg-color-surface-2);cursor:pointer}
.live-forum-head{background:linear-gradient(90deg,rgba(12,14,19,.95) 0%,rgba(12,14,19,.82) 44%,rgba(12,14,19,.35) 100%),url('/assets/collection/art-ec41e07d2713eb1d.webp') center 48%/cover no-repeat}
.live-forum-head h2,.live-forum-head p{color:#f8f5f0}.live-forum-head .live-forum-kicker{color:#e4c988}
@media(max-width:600px){.live-forum-head{background-position:64% center}.live-forum-head p{color:#eee9e0}}

.live-forum-art-credit{display:inline-block;margin-top:1rem;color:#e4c988;font-size:.68rem;text-decoration:underline;text-underline-offset:3px}
.live-forum-empty[hidden]{display:none}.live-forum-card{display:block;overflow:hidden;text-decoration:none;cursor:pointer}.live-forum-card:focus-visible{outline:3px solid var(--tg-color-link);outline-offset:3px}.live-forum-feed-images{margin:1rem -1rem -1rem;background:#0d0e10}.live-forum-feed-images img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}.live-forum-feed-images img+img{border-top:1px solid var(--community-outline)}.live-forum-date{display:flex;align-items:center;gap:.5rem;margin-left:auto;color:var(--tg-color-subtle);font-size:.76rem}.live-forum-date select{margin:0;border-radius:8px}
/* Signup is a destination, not a compressed account widget. */
.signup-welcome{display:none}.profile-panel.is-signup-route.is-guest:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,1fr);gap:0;max-width:1080px;margin:1rem auto 3rem;border:1px solid var(--community-outline);border-radius:20px;overflow:hidden;background:var(--tg-color-surface-1)}
.is-signup-route.is-guest .profile-panel-intro,.is-signup-route.is-guest .profile-panel-links{display:none}.is-signup-route.is-guest .signup-welcome{display:flex;min-height:600px;flex-direction:column;justify-content:space-between;padding:clamp(2rem,5vw,4rem);box-sizing:border-box;background:linear-gradient(180deg,rgba(8,10,14,.72),rgba(8,10,14,.35) 55%,rgba(8,10,14,.88)),url('/assets/collection/art-ec41e07d2713eb1d.webp') center/cover;color:#fff}.signup-welcome span{font-size:.65rem;font-weight:700;letter-spacing:.15em;color:#e4c988}.signup-welcome h2{font:600 clamp(2.7rem,5vw,4.5rem)/1.05 var(--editorial-display);margin:2rem 0 1rem;color:#fff}.signup-welcome p{max-width:33ch;line-height:1.7;color:#f3efe7}.signup-welcome a{color:#f4ddaa;font-size:.7rem}.profile-panel.is-signup-route.is-guest .profile-panel-actions{width:100%;max-width:none;margin:0;padding:clamp(1.5rem,4vw,3rem);border:0;border-radius:0;box-sizing:border-box}.is-signup-route .signup-route-link{display:none}.is-signup-route #profile-signup-info h2{font-size:clamp(1.75rem,3vw,2.3rem)}.is-signup-route .profile-email-auth input{max-width:none;min-height:46px}.is-signup-route .profile-email-auth form{gap:.7rem}.is-signup-route .account-policy{display:none}
.live-forum-post .live-forum-images{display:block;margin-top:1rem}.live-forum-post .live-forum-images img{width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain;border-radius:0}.live-forum-post .live-forum-images img+img{margin-top:.5rem}
@media(max-width:720px){.profile-panel.is-signup-route.is-guest:not([hidden]){display:block}.is-signup-route.is-guest .signup-welcome{min-height:230px;padding:1.5rem}.signup-welcome h2{font-size:2.5rem;margin:.8rem 0}.signup-welcome p{font-size:.8rem;margin:0 0 1rem}.live-forum-date{margin-left:0}}
.profile-panel.is-guest #profile-auth::before{content:'';width:19px;height:19px;vertical-align:middle;background:url('/assets/community/google-mark.svg') center/contain no-repeat}
/* Account tools have their own address and full-page workspace. */
.account-tool-header[hidden]{display:none}.account-tool-cards{display:contents}.account-tool-cards>a{display:flex;align-items:center;gap:1rem;min-height:98px;padding:1.25rem;border:1px solid var(--community-outline);border-radius:12px;background:var(--tg-color-surface-1);color:var(--tg-color-base);text-decoration:none;box-sizing:border-box;transition:border-color .15s,background .15s}.account-tool-cards>a:hover,.account-tool-cards>a:focus-visible{border-color:var(--tg-color-link);background:var(--tg-color-surface-2)}.account-tool-cards>a>span:nth-child(2){flex:1;min-width:0}.account-tool-cards strong,.account-tool-cards small{display:block}.account-tool-cards small{color:var(--tg-color-subtle);margin-top:.25rem}.account-tool-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--community-outline);border-radius:11px;color:var(--tg-color-link);font-size:1.2rem}.profile-panel:not([data-account-tool=""]) .account-tool-cards,.profile-panel:not([data-account-tool=""]) .profile-panel-links>a,.profile-panel:not([data-account-tool=""]) #profile-preferences,.profile-panel:not([data-account-tool=""]) #profile-edit,.profile-panel:not([data-account-tool=""]).is-guest .account-tool-header{display:none}
.profile-panel #profile-notifications,.profile-panel #profile-sandbox,.profile-panel #profile-watchlist,.profile-panel #profile-contributions{display:none}.profile-panel[data-account-tool="notifications"] #profile-notifications,.profile-panel[data-account-tool="sandbox"] #profile-sandbox,.profile-panel[data-account-tool="watchlist"] #profile-watchlist,.profile-panel[data-account-tool="contributions"] #profile-contributions{display:block;grid-column:1/-1;min-height:220px;padding:clamp(1.25rem,3vw,2rem)}.profile-panel[data-account-tool]:not([data-account-tool=""]) .profile-edit>summary{display:none}.profile-panel[data-account-tool]:not([data-account-tool=""]):not(.is-guest) .profile-panel-intro,.profile-panel[data-account-tool]:not([data-account-tool=""]):not(.is-guest) .profile-panel-actions{display:none}.account-tool-header{padding:clamp(1.5rem,4vw,3rem);border:1px solid var(--community-outline);border-radius:16px;background:var(--tg-color-surface-1)}.account-tool-header a{display:block;margin-bottom:2rem;color:var(--tg-color-link);font-size:.8rem;text-decoration:none}.account-tool-header span{font-size:.65rem;font-weight:700;letter-spacing:.12em;color:var(--tg-color-link)}.account-tool-header h1{font:600 clamp(2rem,4vw,3rem)/1.15 var(--tg-font-family-body);margin:.6rem 0}.account-tool-header p{color:var(--tg-color-subtle);margin:0;font-size:.85rem}.profile-panel[data-account-tool]:not([data-account-tool=""]) .profile-panel-links{display:block;padding-top:1rem}.profile-panel.is-guest[data-account-tool]:not([data-account-tool=""]) .profile-panel-links{display:none}

/* Actions belong together beneath the comment, not in separate boxed rows. */
.live-community-comment .live-comment-actions{display:flex;align-items:center;gap:1.15rem;flex-wrap:wrap;margin:.65rem 0 0}.live-community-comment .live-comment-actions .live-community-button{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:.2rem 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--tg-color-link);font-size:.76rem;font-weight:600}.live-community-comment .live-comment-actions .live-community-button:hover{text-decoration:underline;text-underline-offset:3px;background:transparent}.live-community-comment .live-comment-actions .live-community-button:focus-visible{outline:2px solid var(--tg-color-link);outline-offset:3px}
/* Signup: form first, artwork on the right, with theme-coloured detailing. */
@media(min-width:721px){.profile-panel.is-signup-route.is-guest:not([hidden]){grid-template-columns:minmax(380px,1fr) minmax(0,1.1fr)}.is-signup-route.is-guest .profile-panel-actions{grid-column:1;grid-row:1}.is-signup-route.is-guest .signup-welcome{grid-column:2;grid-row:1}}
.is-signup-route.is-guest .signup-welcome{background:linear-gradient(180deg,rgba(15,10,8,.5),rgba(15,10,8,.12) 45%,rgba(15,10,8,.82)),url('/assets/community/signup-ordinary-abyss-4k.webp') center/cover;color:#fff}.is-signup-route.is-guest .profile-panel-actions{border-top:4px solid var(--tg-color-progressive)}
html[data-theme="dark"] .is-signup-route .account-auth-kicker,html[data-theme="dark"] .is-signup-route .profile-email-auth label,html[data-theme="dark"] .is-signup-route .profile-email-auth nav button[aria-pressed="true"]{color:#e7bd6e}
html[data-theme="dark"] .is-signup-route .profile-email-auth nav button[aria-pressed="true"]{border-color:#b8862a}html[data-theme="dark"] .is-signup-route .profile-email-auth input:focus{outline:2px solid #d5aa5b;outline-offset:1px}
.signup-art-controls{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;position:relative;z-index:1}.signup-art-controls a{color:#f4ddaa}.signup-art-controls button{padding:.55rem .8rem;background:rgba(10,8,7,.72);color:#f4eadb;border:1px solid rgba(255,255,255,.45);border-radius:8px;font:600 .68rem var(--tg-font-family-body);cursor:pointer}.signup-art-controls button:hover{background:rgba(10,8,7,.92)}.signup-art-controls :is(a,button):focus-visible{outline:3px solid #f4ddaa;outline-offset:3px}
