/* TGS 1.4.107: public feed's own post composer + readable, familiar social cards.
   Applies to activity feeds only after the new composer is mounted. Never overrides private list UI. */
.tgs-social-modern{--tgs-feed-teal:#087d79;--tgs-feed-line:#e2e9e9;--tgs-feed-ink:#263943;--tgs-feed-muted:#677980;}
.tgs-social-compose-card{box-sizing:border-box;position:relative;z-index:1;background:#fff;border:1px solid var(--tgs-feed-line,#e2e9e9);border-radius:18px;padding:18px 20px 14px;margin:15px 0 20px;box-shadow:0 5px 24px rgba(21,45,55,.07);color:var(--tgs-feed-ink,#263943);font:inherit;max-width:100%;}
.tgs-social-compose-card *{box-sizing:border-box;}
.tgs-social-composer-eyebrow{color:#0b807a;font-weight:850;font-size:10px;letter-spacing:.11em;margin-bottom:13px;}
.tgs-social-compose-top{display:flex;align-items:center;gap:12px;}
.tgs-social-avatar{width:46px;height:46px;min-width:46px;object-fit:cover;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8f5f2;color:#0d7874;}
.tgs-social-prompt{display:block;flex:1;border:1px solid #e1e8ea!important;border-radius:999px!important;background:#f4f7f8!important;color:#516169!important;font-family:inherit!important;text-transform:none!important;font-size:15px!important;font-weight:500!important;line-height:1.45!important;min-height:44px!important;padding:11px 18px!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;}
.tgs-social-prompt:hover{background:#e9f4f2!important;}
.tgs-social-compose-fields{display:flex;flex-direction:column;gap:12px;margin-top:16px;}
.tgs-social-compose-fields[hidden],.tgs-social-emojis[hidden],.tgs-social-preview[hidden],.tgs-social-poll-fields[hidden],.tgs-social-feedback[hidden]{display:none!important;}
.tgs-social-audience{color:#6e7d82;font-size:12px;font-weight:650;}
.tgs-social-compose-card textarea.tgs-social-post-text{display:block;width:100%!important;min-height:108px;resize:vertical;border:1px solid #dbe5e5!important;background:#fbfdfd!important;color:#273e46!important;font-family:inherit!important;font-size:15px!important;line-height:1.55!important;border-radius:12px!important;padding:13px 14px!important;box-shadow:none!important;}
.tgs-social-compose-card input.tgs-social-question,.tgs-social-compose-card input.tgs-social-choice{display:block;width:100%!important;border:1px solid #dce5e4!important;background:#fff!important;color:#273e46!important;border-radius:9px!important;min-height:42px!important;font:inherit!important;font-size:14px!important;padding:10px!important;margin-bottom:8px!important;box-shadow:none!important;}
.tgs-social-poll-fields{background:#f5fbf9;border:1px solid #dbebe7;border-radius:13px;padding:14px;}
.tgs-social-helper{margin:0 0 10px!important;color:#5b7776;font-size:13px;}
.tgs-social-compose-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border-top:1px solid #e9eeee;padding-top:12px;}
.tgs-social-compose-card .tgs-social-tool{border:1px solid transparent!important;border-radius:10px!important;color:#3a6165!important;background:transparent!important;font:inherit!important;font-size:13px!important;font-weight:750!important;line-height:1.3!important;text-transform:none!important;min-height:39px!important;padding:7px!important;cursor:pointer!important;white-space:normal;box-shadow:none!important;}
.tgs-social-compose-card .tgs-social-tool:hover,.tgs-social-compose-card .tgs-social-tool.is-active{background:#eaf8f5!important;color:#087b76!important;}
.tgs-social-compose-footer{display:flex;gap:9px;align-items:center;justify-content:flex-end;}
.tgs-social-compose-card .tgs-social-send{border:0!important;background:#087c75!important;color:#fff!important;font:inherit!important;font-size:13px!important;font-weight:800!important;text-transform:none!important;border-radius:10px!important;min-height:40px!important;padding:10px 19px!important;box-shadow:none!important;cursor:pointer!important;}
.tgs-social-compose-card .tgs-social-send:hover{background:#066e69!important;}
.tgs-social-compose-card .tgs-social-send:disabled{opacity:.6;cursor:wait!important;}
.tgs-social-compose-card .tgs-social-cancel{border:0!important;background:#f2f5f5!important;color:#57706e!important;border-radius:10px!important;min-height:40px!important;padding:10px 16px!important;font:inherit!important;font-size:13px!important;font-weight:750!important;text-transform:none!important;box-shadow:none!important;cursor:pointer!important;}
.tgs-social-compose-card :is(button,textarea,input):focus-visible{outline:2px solid #087d79!important;outline-offset:2px!important;}
.tgs-social-emojis{display:flex;flex-wrap:wrap;gap:5px;padding:10px;border:1px solid #e1eaea;background:#fff;border-radius:10px;}
.tgs-social-compose-card .tgs-social-emoji{border:0!important;background:transparent!important;border-radius:7px!important;min-height:32px!important;min-width:32px!important;padding:3px!important;font-size:19px!important;line-height:1.3!important;cursor:pointer!important;box-shadow:none!important;}
.tgs-social-compose-card .tgs-social-emoji:hover{background:#e7f7f3!important;}
.tgs-social-feedback{font-size:13px;font-weight:650;background:#eaf7f0;color:#207451;padding:10px 12px;border-radius:9px;}
.tgs-social-feedback.is-error{background:#fff2f1;color:#a43b3b;}
.tgs-social-preview{background:#f9fcfb;border:1px solid #e2e9e9;border-radius:12px;padding:9px;}
.tgs-social-preview-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;font-weight:700;color:#5d7272;margin-bottom:8px;overflow-wrap:anywhere;}
.tgs-social-compose-card .tgs-social-clear{border:0!important;background:#edf3f3!important;color:#325e5b!important;border-radius:8px!important;font:inherit!important;font-size:12px!important;padding:6px 8px!important;min-height:30px!important;cursor:pointer!important;white-space:nowrap;box-shadow:none!important;}
.tgs-social-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
.tgs-social-preview-grid.is-single{grid-template-columns:1fr;}
.tgs-social-preview-item{width:100%;max-height:270px;min-height:120px;object-fit:cover;border-radius:8px;background:#ecf0f0;}
/* Social-card treatment retains BuddyPress/Youzify controls for moderation, privacy and navigation. */
.tgs-social-modern #activity-stream>li,
.tgs-social-modern ul.activity-list>li,
.tgs-social-modern .youzify-activity-list>li,
.tgs-social-modern .yz-activity-list>li{box-sizing:border-box;background:#fff!important;border:1px solid var(--tgs-feed-line)!important;border-radius:16px!important;padding:16px!important;margin:0 0 15px!important;box-shadow:0 4px 20px rgba(25,46,53,.055)!important;list-style:none!important;max-width:100%;}
.tgs-social-modern :is(.activity-header,.yz-activity-head,.youzify-activity-head){color:var(--tgs-feed-ink)!important;font-weight:600;line-height:1.5;}
.tgs-social-modern :is(.activity-inner,.yz-activity-inner,.youzify-activity-inner){font-size:15px;line-height:1.62;color:var(--tgs-feed-ink);overflow-wrap:anywhere;}
.tgs-social-modern :is(.activity-avatar img,.yz-activity-avatar img,.youzify-activity-avatar img){border-radius:50%!important;max-width:56px;height:auto;}
.tgs-social-modern .tgs-engage-slot{margin-top:10px;}
.tgs-social-modern .tgs-engage{margin-top:9px;padding-top:10px;border-top:1px solid #e7eeec;}
.tgs-social-modern .tgs-engage-counts{font-size:12px;min-height:26px;}
.tgs-social-modern .tgs-engage-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;border-top:1px solid #eef2f2;padding-top:6px;}
.tgs-social-modern .tgs-engage-actions .tgs-engage-btn{width:100%!important;min-height:38px!important;padding:7px 2px!important;font-size:12px!important;}
.tgs-social-modern .tgs-engage-media{margin:12px 0;}
.tgs-engage-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow:hidden;border-radius:12px;}
.tgs-engage-gallery.is-single{grid-template-columns:1fr;}
.tgs-engage-gallery>a{display:block;min-width:0;background:#eff4f4;}
.tgs-engage-gallery img{display:block;width:100%;height:235px;object-fit:cover;}
.tgs-engage-gallery.is-single img{height:auto;max-height:500px;object-fit:contain;}
.tgs-engage-video{display:block;width:100%;max-height:460px;object-fit:contain;border-radius:12px;background:#11282d;}
/* Gift poll form is shown when native posting is available; fallback composer has its own poll UI. */
@media(max-width:650px){
 .tgs-social-compose-card{padding:14px;margin:10px 0 15px;border-radius:13px;}
 .tgs-social-compose-tools{grid-template-columns:repeat(2,minmax(0,1fr));}
 .tgs-social-modern .tgs-engage-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
 .tgs-social-modern #activity-stream>li,.tgs-social-modern ul.activity-list>li{padding:12px!important;border-radius:13px!important;}
 .tgs-engage-gallery img{height:160px;}
}

/* v1.4.108: preserve (and restyle) the real Youzify/BuddyPress composer when present. */
.tgs-social-modern :is(#whats-new-form,#youzify-wall-form,.youzify-wall-form,.yz-wall-form){box-sizing:border-box;background:#fff;border:1px solid #e2e9e9;border-radius:16px;padding:16px;margin:14px 0 18px;box-shadow:0 4px 20px rgba(21,45,55,.06);}
.tgs-social-modern :is(#whats-new-form,#youzify-wall-form,.youzify-wall-form,.yz-wall-form) textarea{max-width:100%;}
.tgs-social-native-emoji-toolbar{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap;}
.tgs-social-native-emojis{display:flex;gap:4px;flex-wrap:wrap;}
.tgs-social-native-emojis[hidden]{display:none!important;}
.tgs-social-native-emoji-toolbar button{font:inherit;font-size:13px;border:1px solid #e2ebea;border-radius:9px;background:#f8fbfb;padding:6px 10px;cursor:pointer;}
.tgs-social-native-emojis button{font-size:18px;border:0;background:transparent;padding:5px;}

/* 1.4.109: unauthenticated or unverified pages show links, never intercept login. */
.tgs-social-guest-notice{flex:1;display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:10px 13px;background:#f3f7f7;border:1px solid #dde9e8;border-radius:12px;color:#4d6266;font-size:13px;line-height:1.5;}
.tgs-social-guest-notice a{font-weight:800;color:#167d78;text-decoration:underline;}

/* 1.4.111: prominent button for the existing canonical community link. */
.tgs-social-compose-card .tgs-social-guest-notice .tgs-social-login-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border:0;border-radius:10px;background:#087c75;color:#fff!important;font-size:16px;font-weight:800;line-height:1.2;text-decoration:none!important;white-space:nowrap;box-shadow:none;transition:background-color .15s ease;}
.tgs-social-compose-card .tgs-social-guest-notice .tgs-social-login-link:hover{background:#066e69;color:#fff!important;}
.tgs-social-compose-card .tgs-social-guest-notice .tgs-social-login-link:focus-visible{outline:3px solid #c4a750;outline-offset:3px;}

/* v1.4.112: make the prompt title and the action equally prominent. */
.tgs-social-compose-card .tgs-social-guest-notice > span{font-size:20px!important;font-weight:800!important;line-height:1.35!important;color:#254a49!important;}
.tgs-social-compose-card .tgs-social-guest-notice .tgs-social-login-link{font-size:20px!important;min-height:50px;padding:11px 24px;}
@media(max-width:480px){.tgs-social-compose-card .tgs-social-guest-notice > span,.tgs-social-compose-card .tgs-social-guest-notice .tgs-social-login-link{font-size:18px!important;}}
