/* Clearer profile text and compact but comfortably sized group members. */
#groupSettingsDialog{width:380px}
#groupSettingsDialog .gs-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px;padding:16px 14px}
#groupSettingsDialog .gs-person .gs-avatar{width:50px;height:50px;font-size:21px;box-shadow:0 2px 5px #203f6014}
#groupSettingsDialog .gs-person>small{font-size:12px;color:#53677b;line-height:1.45}
#groupSettingsDialog .gs-person>.gs-role{font-size:11px;padding:3px 6px;color:#586c80}
#groupSettingsDialog .gs-person>.gs-role-owner{color:#a46714}#groupSettingsDialog .gs-person>.gs-role-admin{color:#1f6eaa}
#groupSettingsDialog .gs-member-action{overflow:visible;gap:7px;align-self:start;padding:0 2px!important;background:transparent!important}
#groupSettingsDialog .gs-action-icon{display:grid;place-items:center;width:50px;height:50px;border:1px solid #b9d9f7;border-radius:15px;background:linear-gradient(155deg,#fff,#e5f2ff);color:#217bc6;box-shadow:0 3px 0 #c9def0,0 5px 10px #4380b918,inset 0 1px 0 #fff;font-size:31px;line-height:1;transition:transform .12s,box-shadow .12s}
#groupSettingsDialog .gs-action-label{font-size:13px;line-height:1.5;color:#2e6d9f;font-weight:600}
#groupSettingsDialog .gs-action-remove .gs-action-icon{color:#b35e66;background:linear-gradient(155deg,#fff,#fff0f1);border-color:#ebcdd1;box-shadow:0 3px 0 #e7cdd2,0 5px 10px #a4546912,inset 0 1px 0 #fff}
#groupSettingsDialog .gs-action-remove .gs-action-label{color:#a5525c}
#groupSettingsDialog .gs-member-action:hover .gs-action-icon{transform:translateY(-2px)}
#groupSettingsDialog .gs-member-action:active .gs-action-icon{transform:translateY(2px);box-shadow:0 1px 2px #203f6020}
#groupSettingsDialog .gs-member-profile .gs-avatar{width:48px;height:48px;font-size:20px}#groupSettingsDialog .gs-member-actions{margin-left:56px}
#selfProfileDialog{color:#263b4e;font-size:14px}
#selfProfileDialog .friend-profile-fields,#selfProfileDialog .profile-card-about{font-size:14px;line-height:1.65;gap:7px 10px;color:#263b4e}
#selfProfileDialog .friend-profile-fields dt,#selfProfileDialog .profile-card-about dt,#selfProfileDialog #friendNoteInline label{color:#536477;font-size:14px;font-weight:500}
#selfProfileDialog .friend-profile-fields dd,#selfProfileDialog .profile-card-about dd{color:#263b4e}
#selfProfileDialog #friendCopyID,#selfProfileDialog #profileCardCopyID{font-size:13px;color:#435a70;line-height:1.65}
#selfProfileDialog #profileCardLevel,#selfProfileDialog #profileCardLevel .level-title strong{color:#4c6075;font-size:14px;font-weight:500}
#selfProfileDialog #friendActivity h3,#selfProfileDialog #profileNetwork h3{font-size:14px;color:#304961;font-weight:650}
#selfProfileDialog #friendOnline.offline{color:#607185}#selfProfileDialog #friendOnline.online{color:#16805e}
#selfProfileDialog #friendNoteValue{min-height:40px;font-size:14px;background:#f8fafc;border-color:#cbd7e3;color:#263b4e}
#selfProfileDialog #friendNoteInline{gap:3px;margin:10px 0 12px}#selfProfileDialog #friendNoteValue::placeholder{color:#6b7d90}
#selfProfileDialog #friendNoteStatus,#profileNoteStatus{font-size:12px;line-height:1.6;color:#526c85;min-height:19px;margin:1px 0 0;text-align:left}
#selfProfileDialog #friendNoteStatus[data-state=error],#profileNoteStatus[data-state=error]{color:#b33c46}
#selfProfileDialog #profileNetworkStatus,#selfProfileDialog #profileNetwork small,#selfProfileDialog #selfProfileStatus{color:#536b80;font-size:12px;line-height:1.6}
#selfProfileDialog #profileDragHandle{color:#536b80;font-size:12px}#selfProfileDialog.is-other-profile #profileDragHandle{color:#fff}
#selfProfileDialog #selfProfileForm label{font-size:14px;color:#536477}#selfProfileDialog #selfProfileForm input,#selfProfileDialog #selfProfileForm textarea{font-size:14px}
/* Home has no active recipient or input controls. */
#chatPane.is-chat-home{background:#f8fbff;background-image:radial-gradient(ellipse at 50% 40%,#fff 20%,#f5f9fe 100%)}
#chatPane.is-chat-home>#chatTitle,#chatPane.is-chat-home>#messages,#chatPane.is-chat-home>#composer,#chatPane.is-chat-home>#groupAnnouncementBanner{display:none!important}
#chatHome{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;min-height:0;padding:36px 20px;text-align:center;outline:none;color:#36516d}
.chat-home-art{width:240px;max-width:65%;margin:0 0 8px}.chat-home-art svg{width:100%;height:auto;display:block}
#chatHome h1{font-size:25px;letter-spacing:1px;font-weight:600;margin:5px 0 12px;color:#2c4762}#chatHome p{font-size:14px;line-height:1.8;color:#6b7e92;margin:0}#chatHome small{font-size:12px;color:#75879a;margin-top:26px}#chatHome kbd{display:inline-block;border:1px solid #d8e1eb;border-bottom-width:2px;border-radius:5px;padding:2px 6px;font:inherit;background:#fff;margin-right:5px}
#resumeChat{margin-top:24px;background:#338eeb;color:#fff;padding:11px 24px;border-radius:9px}
/* Visible, keyboard-accessible divider. Resizing does not rebuild chat content. */
#conversationDivider{position:relative;flex:0 0 6px;width:6px;align-self:stretch;z-index:5;cursor:col-resize;touch-action:none;background:#f3f6fa;outline:none;border-left:1px solid #e1e8f0}
#conversationDivider::after{content:'';position:absolute;top:calc(50% - 24px);left:1px;width:3px;height:48px;background:#cbd7e5;border-radius:4px;transition:background .15s}
#conversationDivider:hover,#conversationDivider:focus-visible,.resizing-conversations #conversationDivider{background:#ddecfc}#conversationDivider:hover::after,#conversationDivider:focus-visible::after,.resizing-conversations #conversationDivider::after{background:#388cde}
body.resizing-conversations,body.resizing-conversations *{cursor:col-resize!important;user-select:none!important}body.chat-popout #conversationDivider{display:none!important}
#conversations{min-width:0}#conversations #search{min-width:0}#chatPane{min-height:0}
@media(max-width:360px){#groupSettingsDialog .gs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#groupSettingsDialog .gs-action-icon{transition:none}}
/* Joining notices are read-only and independent of the current chat recipient. */
#joinNoticeDialog{width:min(490px,calc(100vw - 32px));padding:0;border-radius:16px;overflow:hidden;max-height:calc(100dvh - 32px)}
.join-notice-head{height:auto;display:flex;align-items:center;gap:14px;padding:20px 24px;background:#f3f8ff;border-bottom:1px solid #e0ebf6}.join-notice-head>div{flex:1;min-width:0}.join-notice-head h2{font-size:19px;color:#26496a;margin:0 0 5px}.join-notice-head small{font-size:13px;color:#526e88;overflow-wrap:anywhere}.join-notice-head button{padding:2px 6px;font-size:26px;color:#5a7894;background:none}
.join-notice-content{padding:22px 24px;max-height:calc(100dvh - 245px);overflow-y:auto}.join-notice-content p{white-space:pre-wrap;overflow-wrap:anywhere;color:#30475e;font-size:15px;line-height:1.9}.join-notice-content img{display:block;max-width:100%;height:auto;border-radius:8px;margin:12px auto 0}.join-notice-content .join-image-status{font-size:13px;color:#667c92}
.join-notice-foot{padding:10px 24px 22px;display:flex;align-items:center;justify-content:flex-end;gap:15px;border:0}.join-notice-foot button{background:#318bed;color:#fff;font-size:14px;font-weight:600;padding:10px 25px;border-radius:9px}.join-notice-foot p{color:#a94950;font-size:12px}
