/* Shared account, friends and moments interface. Scoped to social-* elements. */
.social-overlay, .social-dialog, .social-toast, .social-image-viewer { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.social-overlay *, .social-dialog * { box-sizing: border-box; }
.social-overlay[hidden], .social-footer[hidden] { display: none !important; }
.admin-body [hidden], .chat-body [hidden] { display: none !important; }
.social-overlay { position: fixed; inset: 0; z-index: 15000; display: flex; align-items: center; justify-content: center; background: rgba(17, 25, 40, .42); backdrop-filter: blur(4px); padding: 24px; color: #202838; }
.social-dialog { width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.8); background: #f4f6f9; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 90px rgba(20,35,56,.25); }
.social-header { min-height: 66px; display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e9edf2; }
.social-header h2 { color: #172436; margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .01em; }
.social-dialog button, .social-dialog input, .social-dialog select, .social-dialog textarea { font: inherit; }
.social-icon-button { border: 0; background: transparent; color: #536176; border-radius: 12px; width: 40px; height: 40px; padding: 0; font-size: 29px !important; line-height: 1; cursor: pointer; }
.social-icon-button:hover { background: #f1f4f8; }
.social-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; scrollbar-width: thin; }
.social-section { background: #fff; border-radius: 16px; padding: 20px; margin: 0 0 14px; border: 1px solid #e9edf2; }
.social-section > h3, .social-section-heading h3 { font-size: 15px; margin: 0; font-weight: 650; color: #283448; }
.social-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.social-button { min-height: 40px; padding: 10px 18px; background: #16775f; border: 1px solid transparent; border-radius: 10px; color: #fff; font-weight: 600 !important; font-size: 14px !important; line-height: 1.3; cursor: pointer; transition: background .16s ease; white-space: nowrap; }
.social-button:hover { background: #11614d; }
.social-button-muted { background: #edf2f5; color: #33465c; }
.social-button-muted:hover { background: #e2e9f0; }
.social-dialog button:disabled, .social-dialog input:disabled { cursor: not-allowed; opacity: .55; }
.social-dialog button:focus-visible, .social-dialog input:focus-visible, .social-dialog textarea:focus-visible, .social-dialog select:focus-visible { outline: 3px solid #95d6c8; outline-offset: 2px; }
.social-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .social-dialog textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dce3ea; border-radius: 9px; color: #253448; background: #fff; font-size: 14px; line-height: 1.5; box-shadow: none; }
.social-dialog textarea { resize: vertical; }
.social-dialog input::placeholder, .social-dialog textarea::placeholder { color: #8a96a6; }
.social-dialog input[readonly] { background: #f6f8fa !important; }
.social-search { display: flex; gap: 8px; }
.social-hint { color: #8390a0; font-size: 12px; line-height: 1.65; margin: 9px 0 0; }
.social-muted { font-size: 12px; color: #8793a3; }
.social-count { font-size: 12px; font-weight: 650; color: #58716c; background: #ecf6f2; border-radius: 20px; padding: 3px 8px; }
.social-person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; background: transparent; border: 0; text-align: left; color: #263447; cursor: pointer; border-bottom: 1px solid #f0f2f5; border-radius: 0; }
.social-person:last-child { border-bottom: 0; }
.social-person:hover { background: #f8fafb; }
.social-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; object-fit: cover; background: #edf2f6; }
.social-avatar-large { width: 80px; height: 80px; flex: 0 0 80px; border-radius: 23px; }
.social-person-body { flex: 1; min-width: 0; }
.social-person strong { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 14px; overflow-wrap: anywhere; }
.social-person small { display: block; color: #8a95a5; font-size: 12px; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.social-chevron { font-size: 24px; font-weight: 400; color: #a4adba; }
.social-request { border-bottom: 1px solid #edf0f4; padding-bottom: 12px; }
.social-request:last-child { border: 0; padding-bottom: 0; }
.social-request .social-person { border: 0; }
.social-request-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.social-request-actions > span { margin-right: auto; font-size: 11px; color: #a1a9b5; }
.social-request-actions .social-button { min-height: 34px; padding: 7px 14px; font-size: 12px !important; }
.social-outgoing { margin-top: 12px; border-top: 1px solid #eef1f5; padding-top: 12px; color: #7f8c9c; font-size: 12px; }
.social-outgoing summary { cursor: pointer; }
.social-outgoing-item { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; }
.social-empty { padding: 44px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #8793a3; font-size: 14px; line-height: 1.6; }
.social-empty p { margin: 10px 0; }
.social-empty small { color: #a1aab7; }
.social-empty-small { padding: 22px 4px; }
.social-empty-symbol { width: 58px; height: 58px; border-radius: 20px; background: #e8eee9; color: #8fa39b; display: grid; place-items: center; font-size: 30px; }
.social-spinner { width: 24px; height: 24px; border: 2px solid #dde6e2; border-top-color: #16775f; border-radius: 50%; animation: social-spin .8s linear infinite; }
@keyframes social-spin { to { transform: rotate(360deg); } }
.social-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.social-me-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.social-me-hero strong { color: #27384c; font-size: 16px; }
.social-me-hero p { color: #8b96a5; font-size: 12px; margin: 8px 0; }
.social-avatar-picker { cursor: pointer; position: relative; flex-shrink: 0; }
.social-avatar-picker > span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(21,36,47,.66); color: #fff; font-size: 11px; text-align: center; border-radius: 0 0 23px 23px; padding: 5px; }
.social-field { display: block; margin-top: 17px; }
.social-field > span { display: flex; align-items: baseline; gap: 7px; margin-bottom: 8px; color: #4c5b6f; font-size: 13px; font-weight: 550; }
.social-field small { color: #97a1af; font-size: 11px; font-weight: 400; }
.social-uid-input, .social-uid-value { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .06em; }
.social-uid-blackgold { color: #a37a26 !important; }
.social-uid-red { color: #d53846 !important; }
.social-uid-rainbow { color: #8452cf !important; }
.social-uid-value.social-uid-rainbow { background: linear-gradient(100deg,#6e65ce,#c556a7 38%,#d66551 65%,#a37c24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.social-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-style-option { display: flex; position: relative; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 12px; border: 1px solid #e5e9ef; border-radius: 12px; cursor: pointer; }
.social-style-option:has(input:checked) { background: #f0f8f5; border-color: #35907b; box-shadow: 0 0 0 1px #35907b; }
.social-style-option > input { position: absolute; right: 8px; top: 8px; accent-color: #16775f; width: 13px; height: 13px; margin: 0; }
.social-style-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.social-style-preview strong { font-size: 13px; color: #37465a; }
.social-style-option small { font-size: 10px; line-height: 1.4; color: #8e9baa; }
.social-style-option.is-locked { opacity: .57; background: #fafbfc; cursor: not-allowed; }
.social-ordinary { height: 19px; display: inline-flex; align-items: center; font-size: 10px; letter-spacing: .04em; color: #8a96a6; border: 1px solid #d7dee7; border-radius: 4px; padding: 0 7px; font-weight: 700; }
.social-badge { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; gap: 3px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: .025em; width: auto; max-width: none; height: auto; }
.social-badge > span { font-size: 10px; }
.social-badge-blackgold { color: #f5d890; background: linear-gradient(115deg,#292826,#474039 60%,#252421); border: 1px solid #a98b4c; box-shadow: inset 0 0 0 1px rgba(247,221,159,.08); }
.social-badge-red { color: #fff2d0; background: linear-gradient(115deg,#e74c57,#b82035); border: 1px solid #cd3544; }
.social-badge-rainbow { color: #fff; background: linear-gradient(115deg,#7563d8 0%,#c957b0 35%,#f1817e 65%,#eab552 100%); border: 1px solid rgba(161,97,191,.3); }
.social-badge.social-badge-image { display: inline-flex; align-items: center; flex-shrink: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; max-width: 96px; height: 26px; vertical-align: middle; }
.social-badge-art { display: block; width: auto; height: auto; max-width: 96px; max-height: 26px; object-fit: contain; }
.social-profile-cover > .social-badge-image { height: 40px; max-width: 140px; }
.social-profile-cover > .social-badge-image img { max-width: 140px; max-height: 40px; }
.social-style-preview .social-badge-image { height: 32px; max-width: 105px; }
.social-style-preview .social-badge-image img { max-height: 32px; max-width: 105px; }
.social-badge-library { border-top: 1px solid #edf0f4; margin-top: 18px; padding-top: 18px; }
.social-badge-library h4 { margin: 0; font-size: 13px; color: #44556a; }
.social-badge-group { margin-top: 15px; }
.social-badge-group h5 { margin: 0 0 9px; color: #79899b; font-size: 12px; font-weight: 500; }
.social-badge-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.social-badge-option { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 102px; padding: 14px 7px 9px; gap: 8px; border: 1px solid #e2e8ed; border-radius: 10px; cursor: pointer; background: #fbfcfd; }
.social-badge-option input { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; accent-color: #16775f; margin: 0; }
.social-badge-option img { max-width: 100%; width: auto; max-height: 52px; height: 52px; object-fit: contain; }
.social-badge-option > span { color: #53657a; font-size: 10px; text-align: center; line-height: 1.5; }
.social-badge-option:has(input:checked) { border-color: #38927c; box-shadow: 0 0 0 1px #38927c; background: #eff8f4; }
.social-badge-option.is-locked { opacity: .48; cursor: not-allowed; }
.social-switch-row { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 16px 0; border-bottom: 1px solid #f0f2f5; }
.social-switch-row:last-child { border: 0; padding-bottom: 0; }
.social-switch-row > span:first-child { flex: 1; min-width: 0; }
.social-switch-row strong { display: block; font-size: 13px; color: #415166; font-weight: 550; }
.social-switch-row small { display: block; color: #98a2af; font-size: 11px; line-height: 1.5; margin-top: 5px; }
.social-switch-row input { position: absolute; right: 0; width: 42px; height: 25px; opacity: 0; }
.social-switch-track { flex: 0 0 42px; height: 25px; border-radius: 20px; background: #dce3e9; padding: 3px; transition: background .18s; }
.social-switch-track::after { content: ''; display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .18s; }
.social-switch-row input:checked + .social-switch-track { background: #21816a; }
.social-switch-row input:checked + .social-switch-track::after { transform: translateX(17px); }
.social-switch-row input:focus-visible + .social-switch-track { outline: 3px solid #95d6c8; outline-offset: 2px; }
.social-form-message { font-size: 12px; line-height: 1.6; color: #ce4d51; padding: 0 4px; margin: 10px 0; overflow-wrap: anywhere; }
.social-form-message:empty { display: none; }
.social-sticky-actions { display: flex; gap: 10px; position: sticky; bottom: -16px; background: rgba(244,246,249,.97); padding: 12px 0 4px; }
.social-sticky-actions > button { flex: 1; }
.social-footer { display: flex; flex-shrink: 0; gap: 12px; padding: 14px 20px; border-top: 1px solid #e7ecf2; background: #fff; }
.social-footer .social-button { flex: 1; }
.social-profile-cover { display: flex; flex-direction: column; align-items: center; background: linear-gradient(160deg,#e8f1ed,#f4f6f9 78%); margin: -16px -16px 14px; padding: 32px 20px 22px; }
.social-profile-avatar { padding: 5px; background: #ffffffb3; border-radius: 29px; box-shadow: 0 7px 20px #30453b10; }
.social-profile-avatar img { display: block; }
.social-profile-cover h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 650; color: #26374a; overflow-wrap: anywhere; text-align: center; }
.social-profile-cover p { color: #8a98a3; font-size: 12px; margin: 10px 0 0; }
.social-profile-details { margin: 0; }
.social-profile-details > div { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.social-profile-details > div:last-child { border-bottom: 0; }
.social-profile-details dt { font-size: 13px; color: #8b97a6; }
.social-profile-details dd { margin: 0; color: #3a4b60; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-profile-details > .social-empty { display: block; }
.social-entry { width: 100%; display: flex; align-items: center; gap: 13px; padding: 0; color: #3b4c60; background: transparent; border: 0; text-align: left; cursor: pointer; }
.social-entry > span:nth-child(2) { flex: 1; }
.social-entry strong { display: block; font-size: 14px; }
.social-entry small { display: block; color: #9aa4b1; font-size: 11px; margin-top: 6px; }
.social-entry-icon { width: 40px; height: 40px; border-radius: 12px; background: #f0eee9; color: #b49865; display: grid; place-items: center; font-size: 24px; }
.social-centered { text-align: center; }
.social-load-more { width: 100%; margin-bottom: 14px; }
.social-composer textarea { border: 0; background: #f7f9fb; }
.social-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.social-upload-button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #64827c; cursor: pointer; }
.social-upload-button > span { font-size: 20px; }
.social-moment { background: #fff; border: 1px solid #e9edf2; border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.social-moment-heading { display: flex; gap: 11px; align-items: center; }
.social-moment-heading > div { flex: 1; min-width: 0; }
.social-moment-heading strong { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; color: #3c5673; overflow-wrap: anywhere; }
.social-moment-heading time { display: block; font-size: 11px; color: #a1aab6; margin-top: 5px; }
.social-avatar-button { padding: 0; display: flex; background: transparent; border: 0; cursor: pointer; border-radius: 13px; }
.social-moment-text { margin: 16px 0; font-size: 14px; color: #354456; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.social-moment-images { display: grid; gap: 5px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 14px; }
.social-moment-images.social-images-1 { grid-template-columns: minmax(0, 320px); }
.social-moment-images.social-images-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.social-image-button { display: block; padding: 0; border: 0; background: #eff2f5; border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.social-image-button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.social-images-1 .social-image-button { aspect-ratio: auto; max-height: 350px; }
.social-images-1 .social-image-button img { height: auto; max-height: 350px; object-fit: contain; }
.social-moment-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 15px 0 0; }
.social-moment-toolbar > span { margin-right: auto; font-size: 11px; }
.social-link { padding: 3px 0; background: transparent; border: 0; color: #547b96; font-size: 12px !important; cursor: pointer; }
.social-link:hover { color: #176e80; }
.social-link.is-liked { color: #ca6777; }
.social-danger { color: #bf676c !important; }
.social-comments { margin-top: 12px; background: #f3f6f8; border-radius: 8px; padding: 8px 10px; }
.social-comments p { margin: 4px 0; font-size: 12px; line-height: 1.7; color: #536176; overflow-wrap: anywhere; white-space: pre-wrap; }
.social-comments strong { color: #59718c; font-weight: 600; }
.social-comment-form { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.social-comment-form input { padding: 8px 10px !important; font-size: 12px !important; background: #f8fafb !important; border: 0 !important; }
.social-comment-form button { flex-shrink: 0; }
.social-image-previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.social-image-previews:empty { display: none; }
.social-image-preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #edf1f4; }
.social-image-preview img { height: 100%; width: 100%; object-fit: cover; }
.social-image-preview button { position: absolute; right: 4px; top: 4px; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #0008; color: #fff; font-size: 18px; }
.social-image-viewer { position: fixed; inset: 0; z-index: 17000; display: grid; place-items: center; background: #101621ec; padding: 50px 20px; }
.social-image-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.social-image-viewer button { position: absolute; right: 20px; top: 20px; background: #fff2; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.social-visitor-heading { display: flex; align-items: center; gap: 13px; padding: 10px 4px 22px; }
.social-visitor-heading h3 { margin: 0; font-size: 17px; color: #344c5b; }
.social-visitor-heading p { font-size: 11px; color: #90a099; margin: 6px 0 0; }
.social-toast { position: fixed; z-index: 19000; left: 50%; bottom: max(35px, env(safe-area-inset-bottom)); transform: translate(-50%,10px); max-width: min(460px,calc(100% - 40px)); padding: 12px 20px; border-radius: 11px; background: #243448ed; color: #fff; font-size: 13px; box-shadow: 0 5px 22px #0002; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; line-height: 1.6; text-align: center; }
.social-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.profile-avatar-action { cursor: pointer; }
.profile-avatar-action:focus-visible { outline: 3px solid #74b5a5; outline-offset: 2px; }
.message-narration { justify-content: center !important; text-align: center; margin: 14px auto !important; max-width: 90%; color: #7e8998; }
.message-narration .bubble, .message-narration .message-bubble { font-size: 12px; line-height: 1.7; font-style: italic; background: transparent !important; box-shadow: none !important; color: inherit; padding: 4px 12px; }
.message-narration-body { max-width: 100%; color: #7e8998; font-size: 12px; line-height: 1.7; text-align: center; padding: 6px 12px; }
.message-narration-body .message-text { font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-avatar-action { background: transparent; border: 0; padding: 0; border-radius: 50%; flex-shrink: 0; }
.god-social-controls { border-top: 1px solid #e6ebf0; padding-top: 14px; margin-top: 8px; display: grid; gap: 12px; }
.god-social-controls > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #41536a; }
.god-social-profile { display: grid; gap: 12px; margin-top: 12px; }
.god-social-controls h3 { margin: 0; font-size: 14px; color: #334960; }
.god-social-uid-row, .god-social-buttons { display: flex; align-items: center; gap: 8px; }
.god-social-uid-row input { flex: 1; min-width: 0; }
.god-social-controls button, .god-ban-item button { min-height: 36px; font-size: 12px; white-space: nowrap; }
.god-social-controls button { border: 0; border-radius: 9px; padding: 9px 13px; background: #16775f; color: #fff; cursor: pointer; }
.god-social-controls button:disabled { opacity: .55; cursor: wait; }
.god-social-controls .social-badge-blackgold, .god-social-controls .social-badge-blackgold > span { color: #f5d890; }
.god-social-controls .social-badge-red, .god-social-controls .social-badge-red > span { color: #fff2d0; }
.god-social-controls .social-badge-rainbow, .god-social-controls .social-badge-rainbow > span { color: #fff; }
.god-profile-msg { color: #657b70; }
.god-social-grants { display: grid; gap: 10px; }
.god-social-grant-block { padding: 10px; background: #f5f7fa; border-radius: 12px; }
.god-badge-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.god-badge-preview-grid figure { min-width: 0; margin: 0; padding: 10px 5px; border-radius: 9px; background: #fff; text-align: center; border: 1px solid #e9edf2; }
.god-badge-preview-grid img { width: auto; max-width: 100%; height: 48px; object-fit: contain; }
.god-badge-preview-grid figcaption { color: #8190a1; font-size: 10px; margin-top: 6px; line-height: 1.5; }
.god-connect-form { display: grid; grid-template-columns: auto minmax(160px,1fr) auto; align-items: center; gap: 12px; margin-top: 16px; }
.god-connect-form > label { font-size: 13px; color: #62758c; }
.god-connect-form select { min-width: 0; border: 1px solid #dce4ec; padding: 12px; border-radius: 10px; background: #fff; font-size: 13px; }
.god-connect-form button { border: 0; border-radius: 10px; padding: 12px 16px; background: #16775f; color: #fff; cursor: pointer; }
.god-connect-form button:disabled { opacity: .55; cursor: wait; }
.god-social-grant { display: grid; grid-template-columns: 1fr 100px minmax(0, 175px); gap: 8px; align-items: center; padding: 10px; background: #f5f7fa; border-radius: 9px; }
.god-social-grant > label { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px; }
.god-social-grant input[type="checkbox"] { width: 16px; height: 16px; accent-color: #21816a; }
.god-social-grant input[type="datetime-local"] { min-width: 0; width: 100%; font-size: 11px; }
.god-social-grant select { min-width: 0; width: 100%; font-size: 12px; }
.god-social-note { color: #8b96a5; font-size: 11px; line-height: 1.6; margin: 0; }
.god-social-buttons .god-delete-account { margin-left: auto; color: #bd4552; border: 1px solid #e7b6bd; background: #fff5f5; }
.god-ban-list { display: grid; gap: 10px; }
.god-ban-item { display: flex; gap: 12px; align-items: center; padding: 14px; background: #f6f8fa; border-radius: 12px; }
.god-ban-item > div { flex: 1; min-width: 0; }
.god-ban-item strong { font-size: 13px; color: #3c4f65; overflow-wrap: anywhere; }
.god-ban-item p { color: #8996a6; font-size: 11px; line-height: 1.5; margin: 5px 0 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .social-overlay { padding: 0; align-items: stretch; }
  .social-dialog { width: 100%; max-height: 100%; height: 100%; border: 0; border-radius: 0; }
  .social-header { padding-top: calc(8px + env(safe-area-inset-top,0px)); min-height: calc(57px + env(safe-area-inset-top,0px)); }
  .social-header h2 { font-size: 17px; }
  .social-content { padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom,0px)); }
  .social-section, .social-moment { padding: 17px; border-radius: 14px; margin-bottom: 12px; }
  .social-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom,0px)); }
  .social-profile-cover { margin: -12px -12px 12px; padding-top: 26px; }
  .social-sticky-actions { bottom: calc(-12px - env(safe-area-inset-bottom,0px)); padding-bottom: calc(8px + env(safe-area-inset-bottom,0px)); }
  .social-search input { font-size: 12px !important; }
  .social-search .social-button { padding-left: 13px; padding-right: 13px; }
  .social-field > span { flex-wrap: wrap; }
  .social-request-actions > span { font-size: 10px; }
  .god-social-grant { grid-template-columns: 1fr 100px; }
  .god-social-grant input[type="datetime-local"] { grid-column: 1 / -1; }
  .god-social-buttons { flex-wrap: wrap; }
  .god-connect-form { grid-template-columns: 1fr; gap: 9px; }
  .social-badge-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .god-badge-preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .social-overlay *, .social-toast { animation: none !important; transition: none !important; } }

/* Membership belongs beside the name; number art and nameplates are separate. */
.social-profile-cover { display: block; background: #f4f8f6; padding: 24px 20px 20px; }
.social-profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.social-profile-avatar { flex-shrink: 0; border-radius: 24px; }
.social-profile-heading { flex: 1; min-width: 0; }
.social-profile-name { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.social-profile-name h3 { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 21px; line-height: 1.35; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-profile-name .social-badge { height: 25px; max-width: 108px; }
.social-profile-name .social-badge img { max-width: 108px; max-height: 25px; }
.social-profile-heading > p { margin: 7px 0 0; }
.social-nameplate { margin-top: 10px; height: 32px; max-width: 150px; display: flex; align-items: center; }
.social-nameplate img { max-width: 100%; max-height: 32px; object-fit: contain; }
/* Compact contexts keep the account mark on the same line without turning
   every message or feed item into a tall identity block. */
.message-author .social-nameplate,
.social-moment-heading .social-nameplate,
.social-visitor-heading .social-nameplate { display: inline-flex; align-items: center; margin: 0 0 0 4px; height: 20px; max-width: 84px; vertical-align: middle; }
.message-author .social-nameplate img,
.social-moment-heading .social-nameplate img,
.social-visitor-heading .social-nameplate img { max-height: 20px; }
.social-profile-number { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e2ebe6; padding-top: 16px; margin-top: 20px; min-width: 0; }
.social-profile-number > span:first-child { font-size: 11px; color: #7e8d86; flex-shrink: 0; }
.social-uid-number, .social-uid-fallback { font-size: 16px; font-weight: 650; color: #3c5261; font-variant-numeric: tabular-nums; }
.social-uid-decoration { display: inline-grid; width: min(240px,100%); height: 42px; min-width: 0; }
.social-uid-fallback, .social-uid-art { grid-area: 1/1; }
.social-uid-fallback { align-self: center; }
.social-uid-decoration:has(.social-uid-art) .social-uid-fallback { visibility: hidden; }
.social-uid-art { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 42px; padding: 6px 14px; background-size: 100% 100%; background-repeat: no-repeat; }
.social-uid-tag { width: 20px; max-height: 22px; object-fit: contain; flex-shrink: 0; }
.social-uid-digits { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; height: 23px; }
.social-uid-digits img { flex: 0 1 auto; width: auto; max-width: 20px; height: 23px; object-fit: contain; min-width: 0; }
.social-decoration-picker { border-top: 1px solid #e7edf0; margin-top: 16px; padding-top: 14px; }
.social-decoration-picker > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; list-style: none; font-size: 13px; color: #3a4f62; }
.social-decoration-picker > summary::after { content: '+'; margin-left: auto; font-size: 18px; color: #7d9188; }
.social-decoration-picker[open] > summary::after { content: '−'; }
.social-picker-current { width: 100%; color: #6f827b; font-size: 11px; }
.social-decoration-selected { display: flex; align-items: center; justify-content: center; height: 74px; margin-top: 12px; background: #f7f9fa; border-radius: 8px; }
.social-decoration-selected img { width: auto; max-width: 90%; max-height: 50px; object-fit: contain; }
.social-catalog-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,auto); align-items: center; gap: 8px; margin: 14px 0; }
.social-catalog-filters select { border: 1px solid #dce3ea; background: #fff; border-radius: 8px; color: #4c5f6e; font-size: 12px; padding: 11px 6px; min-width: 0; max-width: 100%; }
.social-catalog-filters input { font-size: 12px !important; }
.social-catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; font-size: 12px; color: #8b97a1; }
.social-catalog-pagination .social-icon-button { width: 32px; height: 32px; font-size: 24px !important; }
.social-badge-option { border-radius: 8px; min-height: 112px; }
.social-badge-option > small { color: #95a19b; font-size: 10px; }
.social-badge-option img { height: 42px; max-height: 42px; }
.social-bubble-shop { padding: 6px 2px; }
.social-free-label { color: #278668; background: #e7f5ed; border-radius: 4px; font-size: 11px; padding: 4px 7px; }
.social-bubble-preview { padding: 14px 12px; background: #eaf0f3; min-height: 260px; border-radius: 8px; }
.social-bubble-preview-title { display: flex; gap: 12px; justify-content: space-between; font-size: 12px; color: #506573; }
.social-bubble-preview-title span { color: #6f8a7c; flex-shrink: 0; }
.social-bubble-conversation { display: grid; gap: 16px; padding-top: 18px; }
.social-bubble-demo-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.social-bubble-demo-row.is-mine { justify-content: flex-end; }
.social-bubble-demo-row > .social-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
.social-bubble-demo-row > .message-bubble { width: auto; max-width: calc(100% - 40px); min-width: 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.social-bubble-demo-row > .message-bubble:not(.message-bubble-custom) { background: #fff; border-radius: 8px; padding: 10px 13px; color: #3d5360; }
.social-bubble-demo-row.is-mine > .message-bubble:not(.message-bubble-custom) { background: #d0edda; }
.social-bubble-preferences { display: flex; align-items: center; gap: 14px; padding: 2px 0; }
.social-bubble-preferences .social-switch-row { flex: 1; border: 0; padding: 14px 0; }
.social-bubble-preferences .social-link { flex-shrink: 0; }
.social-bubble-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.social-bubble-item { display: flex; flex-direction: column; align-items: center; min-width: 0; height: 136px; padding: 10px 7px; border: 1px solid #e0e8e5; border-radius: 8px; background: #fff; cursor: pointer; gap: 7px; }
.social-bubble-item img { width: 64px; height: 64px; object-fit: contain; }
.social-bubble-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; font-weight: 500; color: #526573; line-height: 1.4; min-height: 16px; overflow-wrap: anywhere; }
.social-bubble-item > span { color: #438d70; font-size: 10px; margin-top: auto; }
.social-bubble-item.is-selected { border-color: #339478; box-shadow: inset 0 0 0 1px #339478; background: #f0f9f4; }
.god-decoration-catalog { margin-top: 12px; }
.god-decoration-catalog > summary { cursor: pointer; font-size: 12px; color: #617887; }
.god-decoration-catalog > button { margin-top: 9px; }
.god-bubble-permission { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e4ebe7; margin-top: 8px; padding-top: 14px; }
.god-bubble-permission > label { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; flex: 1; font-size: 13px; color: #526b62; }
.god-bubble-permission input { width: 16px; height: 16px; accent-color: #21816a; }
.god-badge-preview-grid figure { border-radius: 8px; }
@media (max-width:600px) {
  .social-profile-identity { gap: 12px; }
  .social-profile-name h3 { font-size: 19px; }
  .social-profile-avatar .social-avatar { width: 68px; height: 68px; }
  .social-profile-cover { padding: 22px 18px 18px; }
  .social-uid-art { padding-inline: 14px; }
  .social-catalog-filters { grid-template-columns: minmax(0,1fr) 110px; }
  .social-bubble-item { height: 133px; }
}
