.community-groups { flex: 0 1 auto; min-height: 65px; max-height: 220px; overflow: auto; padding: 14px 22px 16px; border-top: 1px solid #e9eff3; background: #fcfdfe; }
.community-groups-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.community-groups-head > strong { color: #4d6577; font-size: 12px; font-weight: 600; }
.group-create-entry,.group-button,.group-primary,.group-danger {
  padding: 7px 11px; border: 1px solid #dce8ef; border-radius: 9px;
  background: #f7fbfd; color: #4c7b98; font: 12px/1.5 system-ui,"Microsoft YaHei",sans-serif; cursor: pointer; white-space: nowrap;
}
.group-create-entry { border-radius: 999px; background: #edf7fd; border-color: #d0e8f7; color: #287faa; }
.group-button:hover,.group-create-entry:hover { background: #e8f4fc; }
.community-group-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 9px; }
.community-group-list:empty { margin: 0; }
.community-group-entry { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 11px; border: 1px solid #e4edf3; border-radius: 11px; background: #fff; color: #536f83; text-align: left; cursor: pointer; }
.community-group-entry > img { width: 25px; height: 25px; flex: none; }
.community-group-entry > span:not(.group-chevron) { display: grid; gap: 3px; min-width: 0; }
.community-group-entry strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.community-group-entry small { color: #95a5b0; font-size: 10px; }
.group-chevron { margin-left: auto; color: #97aebf; font-size: 20px; }
.group-hint { color: #8b9ca8; font-size: 11px; line-height: 1.8; margin: 9px 0 0; }
.group-hint:empty { display: none; }
dialog.circle-groups-dialog { position: fixed; inset: 0; width: min(570px,calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #fff; border-radius: 20px; background: #fff; color: #354e60; box-shadow: 0 30px 90px #1a334540; font: 13px/1.6 system-ui,"Microsoft YaHei",sans-serif; color-scheme: light; overflow: hidden; }
.circle-groups-dialog[open] { display: flex; flex-direction: column; }
.circle-groups-dialog::backdrop { background: #17273366; backdrop-filter: blur(4px); }
.circle-groups-dialog * { box-sizing: border-box; }
.circle-groups-dialog button:disabled,.group-create-entry:disabled { opacity: .5; cursor: default; }
.circle-groups-dialog :focus-visible,.community-groups :focus-visible { outline: 2px solid #2c9cda; outline-offset: 3px; }
.group-dialog-head { display: flex; align-items: center; gap: 11px; padding: 17px 20px; border-bottom: 1px solid #eaf0f4; }
.group-dialog-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.group-back { display: grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #f0f5f8; color: #7d95a5; font-size: 23px; cursor: pointer; }
.group-dialog-content { overflow: auto; padding: 17px 22px 23px; }
.group-status { margin: 0 0 12px; color: #5d8caa; font-size: 12px; overflow-wrap: anywhere; }
.group-status:empty { display: none; }
.group-create-form { display: grid; gap: 13px; }
.group-create-form label { display: grid; gap: 9px; }
.circle-groups-dialog input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #dce6ed; border-radius: 10px; background: #fbfcfd; color: #3b566a; font: inherit; }
.group-primary { border-color: #268dbd; background: #268dbd; color: #fff; }
.group-primary:hover:not(:disabled) { background: #1e7ca7; }
.group-management h3 { margin: 18px 0 8px; font-size: 12px; color: #678295; font-weight: 550; }
.group-member-list,.group-friend-list { display: grid; gap: 2px; }
.group-friend-list { max-height: 220px; overflow: auto; margin-top: 9px; }
.group-person { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.group-avatar { position: relative; display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; overflow: hidden; border-radius: 10px; background: #eef4f8; color: #7290a5; font-size: 12px; }
.group-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.group-person-info { display: grid; flex: 1; gap: 2px; min-width: 0; }
.group-person-info strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.group-person-info small { font-size: 10px; color: #98a8b3; }
.group-person .group-button { font-size: 10px; }
.group-invite-section,.group-moderation { margin-top: 18px; padding-top: 2px; border-top: 1px solid #ebf1f5; }
.group-invite-form { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.group-invite-form input { flex: 1; }
.group-hidden-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf2f5; }
.group-hidden-item > div { flex: 1; min-width: 0; }
.group-hidden-item strong { font-size: 11px; font-weight: 550; }
.group-hidden-item p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.group-hidden-item small { color: #97a5af; }
.group-danger-zone { margin-top: 25px; padding-top: 16px; border-top: 1px solid #edf1f4; text-align: right; }
.group-danger { border-color: #f0d9d9; background: #fff9f9; color: #bb6666; }
.circle-group-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; color: #8c9ca8; font-size: 11px; }
.circle-group-tools .circle-text-button { color: #2b86b3; font-size: 12px; }
.circle-brand h2 { overflow: hidden; text-overflow: ellipsis; }
.creator-circle-invite { min-width: 210px; max-width: min(320px,80vw); padding: 15px; border: 1px solid #d9e9f3; border-radius: 13px; background: #f3f9fd; color: #51748b; }
.creator-circle-invite > strong { display: block; margin-bottom: 5px; color: #35617e; font-size: 13px; overflow-wrap: anywhere; }
.creator-circle-invite > small { display: block; color: #90a4b3; font-size: 10px; }
.creator-circle-invite-status { margin: 7px 0; font-size: 11px; }
.creator-circle-invite-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.creator-circle-invite button { padding: 6px 11px; border: 1px solid #c8dfed; border-radius: 8px; background: #fff; color: #5083a2; cursor: pointer; font-size: 11px; }
.creator-circle-invite button[data-invite-action="accept"] { background: #278fbe; border-color: #278fbe; color: #fff; }
.creator-circle-invite button:disabled { opacity: .55; cursor: default; }
@media (max-width:550px) {
  .community-groups { padding: 12px 15px; max-height: 200px; }
  .group-dialog-head { padding: 13px 15px; }
  .group-dialog-content { padding: 13px 16px 18px; }
  .group-invite-form { flex-wrap: wrap; }
  .group-invite-form input { flex-basis: 100%; }
}
@media (max-width:370px) { .community-group-list { grid-template-columns: 1fr; } }
