/* Shared desktop/mobile community entry; preserve the supplied QR image. */
.community-join-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid #bed0de; border-radius: 10px; background: #edf4f9; color: #183f68; line-height: 1.2; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.community-join-button:hover { background: #dfebf4; border-color: #93afc5; }
.community-join-button:focus-visible, .community-dialog button:focus-visible, .community-dialog a:focus-visible, .community-wechat:focus-visible { outline: 3px solid #3979ae; outline-offset: 3px; }
.community-dialog { position: fixed; inset: 0; margin: auto; width: min(430px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 26px; border: 1px solid #dce3e9; border-radius: 22px; background: #fff; color: #223548; box-shadow: 0 24px 80px #0f294033; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; overflow: auto; overscroll-behavior: contain; text-align: left; box-sizing: border-box; }
.community-dialog::backdrop { background: rgba(14,30,43,.45); }
.community-dialog [hidden] { display: none !important; }
.community-dialog p { margin: 0; }
.community-dialog .community-eyebrow { margin: 0 40px 8px 0; color: #526b80; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.community-dialog h2 { margin: 0 18px 9px 0; color: #183f68; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.community-dialog .community-description { margin-bottom: 18px; color: #526475; font-size: 14px; line-height: 1.75; }
.community-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #526475; font: 28px/1 sans-serif; cursor: pointer; }
.community-close:hover { background: #f0f4f7; }
.community-qr-frame { position: relative; width: min(264px, 100%); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; background: #fff; }
.community-qr-frame img { position: absolute; width: 136.363636%; max-width: none; height: auto; left: -18.181818%; top: -69.696970%; display: block; }
.community-dialog .community-scan { color: #4e6273; font-size: 12px; text-align: center; line-height: 1.65; }
.community-qr-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 5px; color: #647487; font-size: 11px; }
.community-qr-meta a { display: inline-flex; align-items: center; min-height: 36px; color: #245c88; text-decoration: underline; text-underline-offset: 3px; }
.community-contact { margin-top: 15px; padding-top: 16px; border-top: 1px solid #e3e9ee; }
.community-dialog .community-contact > p:first-child { color: #435b70; font-size: 13px; }
.community-contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.community-wechat { font: 600 19px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; -webkit-user-select: all; color: #183f68; }
.community-copy { min-height: 44px; padding: 0 15px; border: 0; border-radius: 10px; background: #183f68; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.community-copy:hover { background: #245780; }
.community-dialog .community-copy-status { min-height: 18px; margin-top: 5px; color: #426148; font-size: 12px; }
.community-dialog .community-expired, .community-dialog .community-image-error { margin: 18px 0; padding: 14px; border-radius: 10px; background: #f1f5f8; color: #435b70; font-size: 14px; }
@media (max-width: 420px) { .community-dialog { padding: 23px 20px 17px; } .community-dialog h2 { font-size: 22px; } }

/* Keep the group entry in the former install slot; installation lives in More. */
.top-actions .community-join-button { min-height: 44px; padding: 0 15px; border-radius: 999px; }
.share-menu-install { margin-bottom: 10px; }
.share-menu-install[hidden] { display: none !important; }
.pwa-install-open .share-menu-shell, .mobile-install-open .share-menu-shell { visibility: hidden; }
