/* Einheitliche Aktionsbuttons in Community, Einstellungen und Messenger. */
#portal-content :is(.community-privacy-note,.community-hero,.community-directory,.settings-card,.message-compose) button:not(.message-person){background:#110f0d;color:#fff;border:1px solid #110f0d;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
#portal-content :is(.community-privacy-note,.community-hero,.community-directory,.settings-card,.message-compose) button:not(.message-person):is(:hover,:focus-visible){background:#9c5e45;border-color:#9c5e45;color:#fff}
#portal-content button:focus-visible{outline:2px solid #9c5e45;outline-offset:3px}
#portal-content .community-directory-card button{grid-column:2;justify-self:start;width:auto;min-height:36px;padding:.45rem .7rem;font-size:.7rem;font-weight:750;line-height:1.3}
#portal-content .community-directory-card{column-gap:1.1rem;row-gap:.5rem}
#portal-content .community-directory>footer{display:flex;justify-content:center;margin-top:1rem}
#portal-content .community-directory>footer button{padding:.6rem 1rem;font-size:.75rem}
#portal-content .community-directory [hidden]{display:none!important}
#portal-content #direct-message-form .message-send-button{display:grid!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;aspect-ratio:1;border-radius:50%;background:#110f0d!important;color:#fff!important;place-items:center}
#portal-content #direct-message-form .message-send-button>span{display:none}
#portal-content #direct-message-form .message-send-button svg{width:18px;height:18px}
#portal-content #direct-message-form .message-send-button:is(:hover,:focus-visible){background:#9c5e45!important}

#portal-content .portal-shortcuts button:is(:hover,:focus-visible),
#portal-content .portal-shortcuts button:is(:hover,:focus-visible) :is(span,svg){color:#fff!important}
#portal-content .portal-shortcuts button:is(:hover,:focus-visible) svg{stroke:#fff!important}
.portal-sidebar nav button,.portal-sidebar nav .portal-document{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;text-align:left}
.portal-sidebar .portal-nav-icon{flex:0 0 1.1rem;width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.portal-sidebar nav button>span:first-of-type{flex:1;text-align:left}
.portal-sidebar nav button .nav-message-alert svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.6}
.portal-sidebar nav :is(.nav-health-state,.nav-message-alert,.nav-live-count){flex:0 0 auto;margin-left:auto}
.portal-sidebar nav .portal-document{line-height:1.4}
@media(max-width:1100px){
 .portal-sidebar nav{grid-template-columns:minmax(0,1fr)}
 .portal-sidebar nav button,.portal-sidebar nav .portal-document{justify-content:flex-start;text-align:left;min-width:0}
 .portal-sidebar .portal-nav-icon{width:1.1rem;height:1.1rem;max-width:1.1rem;max-height:1.1rem}
}
/* Kleine Community-Aktionen auch gegen allgemeine Mobilregeln absichern. */
#portal-content .community-directory-card button[data-community-message]{grid-column:2!important;justify-self:start!important;align-self:start;width:max-content!important;max-width:100%!important;min-width:0!important;padding:.45rem .7rem!important}
#portal-content{position:relative;z-index:0}
.community-profile-dialog{position:fixed;inset:0;width:min(390px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:0;border:1px solid #cfc3b7;background:#110f0d;color:#fff;overflow:auto}
.community-profile-dialog::backdrop{background:rgba(17,15,13,.55)}
.community-profile-dialog .community-profile-popover{position:static!important;display:block!important;width:auto!important;margin:0;padding:2.6rem 1.15rem 1.15rem!important;box-shadow:none}
.community-profile-close{position:absolute;z-index:2;top:.65rem;right:.65rem;display:grid;width:32px;height:32px;padding:0;place-items:center;border:1px solid #b7896c;background:#110f0d;color:#fff;font-size:1.4rem;cursor:pointer}
.community-profile-close:is(:hover,:focus-visible){background:#9c5e45}
@media(max-width:1100px){
 .portal-main>header{position:fixed;top:0;left:0;right:0;z-index:80;height:4.5rem;box-sizing:border-box}
 .portal-main{padding-top:4.5rem}
 .portal-sidebar{z-index:70}
 .portal-menu-backdrop{z-index:60}
}
@media(max-width:750px),(pointer:coarse){
 #portal-content .community-person:is(:hover,:focus,:focus-within) .community-profile-popover{display:none!important}
 .community-person{cursor:pointer}
}
#portal-content .message-image-reactions{display:flex;gap:.4rem;align-items:center;margin:.5rem 0}
#portal-content .message-image-reactions button{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:40px;min-height:36px;padding:.35rem .55rem;border:1px solid #b6a797;border-radius:999px;background:#fbfaf7;color:#29231d;cursor:pointer;line-height:1}
#portal-content .message-image-reactions button>span{font-size:1.05rem}
#portal-content .message-image-reactions button>b{font-size:.7rem}
#portal-content .message-image-reactions button[aria-pressed="true"]{border-color:#9c5e45;background:#e8d5c6;box-shadow:inset 0 0 0 1px #9c5e45}
#portal-content .message-image-reactions button:is(:hover,:focus-visible){border-color:#9c5e45;background:#eadfd3}
/* Kompakte Aktionen rechts im Portal-Kopf. */
.portal-main>header .portal-header-actions :is(.portal-language,.view-site,.server-logout){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;height:36px;min-height:36px;padding:.4rem .65rem;font-size:.68rem;font-weight:750;line-height:1;white-space:nowrap}
@media(max-width:1100px){
 .portal-main>header .portal-header-actions{gap:.4rem}
 .portal-main>header .portal-header-actions .view-site{display:none}
 .portal-main>header .portal-header-actions :is(.portal-language,.server-logout){height:32px;min-height:32px;font-size:.6rem;padding:.35rem .5rem}
}