/* Scoped to the community composer, post actions and its share dialog. */
body .feed-compose-toggle>summary{display:flex;align-items:center;gap:9px;padding:12px 4px;min-height:44px;box-sizing:border-box;cursor:pointer;font-size:15px;font-weight:700;list-style:none;color:var(--ui162-text,#22314a)}
body .feed-compose-toggle>summary::-webkit-details-marker{display:none}
body .feed-compose-toggle>summary>span{font-size:23px;font-weight:400;line-height:1}
body .feed-compose-toggle[open]>summary{margin-bottom:14px;border-bottom:1px solid var(--ui162-border,#d9e2e8)}
body .feed-compose-toggle:not([open])>form{display:none!important}
body .feed-compose-toggle>summary:focus-visible,body .feed-back-link:focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:3px}
body .feed-back-link{display:inline-flex;align-items:center;min-height:44px;margin:0 12px 14px;color:var(--ui162-link,#256d63);font-weight:650}
body .feed-v3 article[data-feed-post]{scroll-margin-top:90px}
body .feed-v3 .social-actions button.feed-share-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;margin-left:auto;padding:8px 11px!important;background:var(--ui162-soft,#edf3f6)!important;color:var(--ui162-text,#22314a)!important;border:1px solid var(--ui162-border,#d9e2e8)!important;border-radius:10px;box-shadow:none;font:inherit;font-size:13px;line-height:1.3;white-space:nowrap}
body .feed-share-button svg{width:18px;height:18px;flex:none}
body .feed-share-button:focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:3px}
body.feed-sharing{overflow:hidden}
body .feed-share-dialog{box-sizing:border-box;width:min(500px,calc(100vw - 28px));max-width:500px;max-height:88dvh;margin:auto;padding:22px;border:1px solid var(--ui162-border,#d9e2e8);border-radius:20px;background:var(--ui162-surface,#fff)!important;color:var(--ui162-text,#22314a)!important;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0006}
body .feed-share-dialog:not([open]){display:none!important}
body .feed-share-dialog::backdrop{background:#071123b3;backdrop-filter:blur(3px)}
body .feed-share-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px}
body .feed-share-dialog h2{margin:0!important;font-size:21px!important;line-height:1.3;color:inherit!important}
body .feed-share-dialog button,body .feed-share-dialog a{box-sizing:border-box;min-height:44px;border:1px solid var(--ui162-border,#d9e2e8)!important;border-radius:11px;padding:11px 12px!important;background:var(--ui162-soft,#edf3f6)!important;color:var(--ui162-text,#22314a)!important;font:inherit;font-size:14px;line-height:1.3;text-align:center;text-decoration:none;cursor:pointer;box-shadow:none}
body .feed-share-dialog [data-feed-share-close]{width:44px;flex:none;font-size:27px;line-height:1;padding:4px!important;background:transparent!important;border:0!important}
body .feed-share-dialog p{line-height:1.5;font-size:14px}
body .feed-share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}
body .feed-share-options a{display:flex;align-items:center;justify-content:center}
body .feed-share-options [data-feed-share-native]{grid-column:1/-1}
body .feed-share-dialog [hidden]{display:none!important}
body .feed-share-link{display:block;font-size:13px}
body .feed-share-link input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:7px 0 10px;padding:12px;border:1px solid var(--ui162-border,#d9e2e8);border-radius:9px;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);font-size:16px}
body .feed-share-dialog [data-feed-share-copy]{width:100%;font-weight:700}
body .feed-share-dialog [data-feed-share-status]:empty{display:none}
body .feed-share-dialog :is(button,a,input):focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:3px}
@media(max-width:600px){body .feed-share-dialog{width:100%;max-width:none;max-height:90dvh;margin:auto 0 0;border-radius:20px 20px 0 0;padding:18px 16px max(22px,env(safe-area-inset-bottom))}body .feed-v3 .social-actions button.feed-share-button{font-size:12px}}

/* Mail, QR and post-management controls, using the active theme colors. */
body .feed-share-dialog .feed-share-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0}
body .feed-share-dialog .feed-share-options a{display:flex;flex-direction:column;gap:8px;padding:9px 3px!important;border:0!important;background:transparent!important;font-size:12px;min-width:0}
body .feed-share-dialog .feed-brand{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:#fff!important;box-shadow:0 4px 12px #0002}
body .feed-share-dialog .feed-brand svg{width:27px;height:27px}
body .feed-brand-telegram{background:#168abf}body .feed-brand-whatsapp{background:#168a50}body .feed-brand-viber{background:#7952b4}body .feed-brand-facebook{background:#1877f2}
body .feed-share-dialog :is(button,[data-feed-qr-download]){display:inline-flex;align-items:center;justify-content:center;gap:8px}
body .feed-share-dialog :is(button,[data-feed-qr-download]) svg{width:20px;height:20px;flex:none}
body .feed-share-dialog :is(.feed-share-native,.feed-share-mail-toggle){width:100%;margin:0 0 10px}
body .feed-share-dialog .feed-share-mail-toggle{font-weight:750;border-color:var(--ui162-link,#256d63)!important;color:var(--ui162-link,#256d63)!important}
body .feed-share-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body .feed-share-dialog [data-feed-share-copy]{width:auto}
body .feed-share-dialog :is(.feed-share-mail-panel,.feed-share-qr-panel){margin:15px 0;padding:16px 0;border-block:1px solid var(--ui162-border,#d9e2e8)}
body .feed-share-dialog h3{font-size:17px!important;line-height:1.4;margin:0 0 12px;color:inherit!important}
body .feed-share-dialog .feed-recipient-search{display:flex!important;align-items:center;gap:8px;margin:0 0 12px}
body .feed-share-dialog :is(input,textarea,select){box-sizing:border-box;max-width:100%;min-width:0;padding:11px;border:1px solid var(--ui162-border,#d9e2e8);border-radius:9px;background:var(--ui162-surface,#fff)!important;color:var(--ui162-text,#22314a)!important;font:inherit;font-size:16px}
body .feed-recipient-search input{width:0;flex:1}body .feed-recipient-search button{flex:none}
body .feed-share-recipients{display:grid;gap:7px;max-height:240px;overflow:auto;overscroll-behavior:contain}
body .feed-share-dialog .feed-share-recipient{display:flex;width:100%;justify-content:flex-start;text-align:left;padding:8px!important}
body .feed-share-recipient img{width:38px!important;height:38px!important;flex:none;border-radius:50%;object-fit:cover}
body .feed-share-recipient>span{min-width:0;flex:1}body .feed-share-recipient :is(strong,small){display:block;overflow-wrap:anywhere}body .feed-share-recipient small{margin-top:3px;opacity:.8;font-size:12px}
body .feed-share-dialog .feed-share-recipient[aria-pressed=true]{border-color:var(--ui162-link,#256d63)!important;outline:1px solid var(--ui162-link,#256d63)}
body .feed-share-dialog :is(textarea,select){display:block;width:100%;margin-top:6px}body .feed-share-dialog textarea{resize:vertical;min-height:80px}
body .feed-share-dialog [data-feed-mail-send]{width:100%;margin-top:10px;font-weight:700}
body .feed-share-dialog button:disabled{opacity:.55;cursor:default}
body .feed-share-dialog :is([data-feed-mail-status],[data-feed-selected],[data-feed-edit-status]):empty{display:none}
body .feed-share-dialog [data-feed-mail-status] a{display:inline;border:0!important;background:transparent!important;padding:0!important;color:var(--ui162-link,#256d63)!important;text-decoration:underline}
body .feed-share-qr-panel{text-align:center}body .feed-share-qr-panel canvas{display:block;width:min(260px,100%);height:auto;margin:0 auto 14px;background:#fff!important;border-radius:0!important}
body .feed-share-dialog [data-feed-edit-form]{display:grid;gap:16px;margin-top:20px}body [data-feed-edit-form]>label{display:block;font-size:14px}
body .feed-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body .feed-share-dialog .feed-edit-actions [data-feed-share-close]{width:auto;font-size:14px;line-height:1.3;padding:11px 12px!important;border:1px solid var(--ui162-border,#d9e2e8)!important}
body .feed-post-menu{position:relative;flex:none}body .feed-post-menu>summary{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;list-style:none;cursor:pointer;color:var(--ui162-text,#22314a)}
body .feed-post-menu>summary::-webkit-details-marker{display:none}body .feed-post-menu>summary svg{width:23px;height:23px;fill:currentColor}
body .feed-post-menu>.feed-post-menu-panel{box-sizing:border-box;position:absolute;right:0;top:calc(100% + 5px);z-index:100;min-width:220px;max-width:calc(100vw - 32px);padding:7px!important;border:1px solid var(--ui162-border,#d9e2e8);border-radius:13px;background:var(--ui162-surface,#fff)!important;color:var(--ui162-text,#22314a);box-shadow:0 9px 32px #0003}
body .feed-post-menu:not([open])>.feed-post-menu-panel{display:none!important}
body .feed-post-menu-panel form{margin:0!important}
body .feed-v3 .feed-post-menu-panel .feed-menu-action{box-sizing:border-box;display:flex;align-items:center;gap:11px;width:100%;min-height:44px;margin:0!important;padding:11px!important;border:0!important;border-radius:9px;background:transparent!important;color:var(--ui162-text,#22314a)!important;box-shadow:none;font:inherit;font-size:14px;text-align:left;white-space:normal}
body .feed-menu-action svg{width:20px;height:20px;flex:none}
body .feed-v3 .feed-post-menu-panel .feed-menu-danger{color:var(--feed-danger,#bf3946)!important}
body .feed-v3 .feed-post-menu-panel .feed-menu-action:hover{background:var(--ui162-soft,#edf3f6)!important}
body .feed-v3 .social-card:has(.feed-post-menu[open]){overflow:visible}
body .feed-post-menu :is(summary,button):focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:2px}
body .feed-share-dialog .feed-share-wall-toggle{width:100%;margin:0 0 10px;font-weight:750;border-color:var(--ui162-link,#256d63)!important;color:var(--ui162-link,#256d63)!important}
body .feed-share-wall-panel{margin:15px 0;padding:16px 0;border-block:1px solid var(--ui162-border,#d9e2e8)}
body .feed-share-dialog [data-feed-wall-send]{width:100%;margin-top:10px;font-weight:700}
body .feed-share-dialog [data-feed-wall-status]:empty{display:none}
body .feed-share-dialog [data-feed-wall-status] a{display:inline;border:0!important;background:transparent!important;padding:0!important;color:var(--ui162-link,#256d63)!important;text-decoration:underline}
