/* Update 331: Einheitliche Statusanzeige und bestaetigter gruener Teilnahme-Button */
.ap-participation-badge331{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;border:1px solid rgba(146,164,176,.36);background:rgba(107,128,141,.10);color:#bdcdd4;font-size:10px;font-weight:800;line-height:1.1;white-space:nowrap;vertical-align:middle;flex:0 0 auto}
.ap-participation-badge331.is-joined{color:#8df5ae;border-color:rgba(81,217,121,.55);background:rgba(22,137,65,.19)}
.ap-participation-icon331{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:900;line-height:1}
.ap-participation-badge331.is-not-joined .ap-participation-icon331{font-size:13px}
#meetupGrid .meetup-title-badges{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#meetupGrid .meetup-titleline{flex-wrap:wrap;row-gap:5px}
#topicList .community-event-titleline{flex-wrap:wrap;gap:5px 8px}
#liveGrid .live-body>.ap-participation-badge331{margin:7px 0 0}
#itemDetailsModal .ap-participation-detail331{margin:10px 0;padding:7px 12px;font-size:12px}
.mobile-preview-copy247>.ap-participation-badge331{font-size:9px;letter-spacing:0;padding:2px 5px;max-width:100%}
.mobile-preview-copy247>.ap-participation-badge331 .ap-participation-icon331{width:13px;height:13px;font-size:10px}
html body #meetupGrid .meetup-join-btn.joined,html body #topicList .event-join-btn.joined,html body #liveGrid .event-join-btn.joined,html body #itemDetailsModal .event-join-btn.joined,html body #itemDetailsModal .mobile-detail-primary247.joined{background:linear-gradient(180deg,#25c766,#128c46)!important;border:1px solid #53df88!important;color:#fff!important;box-shadow:0 4px 15px rgba(17,125,60,.26)!important}
html body #meetupGrid .meetup-join-btn.joined:hover,html body #topicList .event-join-btn.joined:hover,html body #liveGrid .event-join-btn.joined:hover{background:linear-gradient(180deg,#34d878,#159b4e)!important}
@media(max-width:760px){#meetupGrid .ap-participation-badge331,#topicList .ap-participation-badge331{font-size:9px;padding:3px 6px}.mobile-preview-copy247>.ap-participation-badge331{display:inline-flex;width:max-content}}
@media(max-width:390px){#meetupGrid .ap-participation-badge331,#topicList .ap-participation-badge331{font-size:8px;padding:3px 5px}}
/* Mobile icon-only bars have very specific generic button backgrounds.
   The selected join state must win over those neutral rules. */
html body #meetupGrid#meetupGrid .meetup-event-style .meetup-actions > button.meetup-join-btn.joined,
html body #topicList#topicList .community-event-actions > button.event-join-btn.joined,
html body #liveGrid#liveGrid .event-card-actions > button.event-join-btn.joined{
 background:linear-gradient(180deg,#25c766,#128c46)!important;
 border-color:#53df88!important;
 color:#fff!important;
 box-shadow:0 4px 15px rgba(17,125,60,.30)!important;
}
