/* v0.4.8: stable two-row entry footer in feed and discussion. Keep the AJAX reaction root intact. */
.bars-feed-card .ap376-entry-actions.ap408-entry-footer,
.bars-discussion-entry .ap363-entry-footer.ap408-entry-footer {
 display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;min-width:0;margin-top:8px;
}
.ap408-entry-footer {--ap408-control:40px}
.bars-feed-card .ap408-entry-footer{--ap408-control:34px;--ap376-control:34px}
.bars-feed-card .ap408-entry-footer>.ap334-entry-reactions,
.bars-discussion-entry .ap408-entry-footer>.ap334-entry-reactions {
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important;width:100%;min-width:0;max-width:100%;overflow:visible;
}
.ap408-entry-footer.ap363-entry-footer .bars36-used,
.bars-feed-card .ap408-entry-footer .bars36-used {display:flex;grid-column:1!important;grid-row:1!important;justify-content:flex-start!important;justify-self:stretch;align-items:center;text-align:left;margin:0!important;min-width:0;gap:8px}
.ap408-entry-footer .bars36-used:empty{display:none!important}
.ap408-entry-footer.ap363-entry-footer>.ap334-entry-reactions>.ap334-entry-controls,
.bars-feed-card .ap408-entry-footer .ap334-entry-controls {display:flex!important;grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;justify-self:end;align-items:center;gap:4px;min-width:0;margin:0!important;max-width:100%}
.ap408-entry-footer .ap334-entry-controls>.bars36-picker,.ap408-entry-footer .ap334-entry-controls>.bars36-login {margin:0!important;align-self:center;justify-self:end;flex:none}
.ap408-entry-footer.ap363-entry-footer .ap334-entry-controls>.bars36-picker>summary,
.ap408-entry-footer.ap363-entry-footer .ap334-entry-controls>.bars36-login,
.bars-feed-card .ap408-entry-footer .ap334-entry-controls>.bars36-picker>summary,
.bars-feed-card .ap408-entry-footer .ap334-entry-controls>.bars36-login {display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box!important;width:var(--ap408-control)!important;height:var(--ap408-control)!important;min-width:var(--ap408-control)!important;min-height:var(--ap408-control)!important;max-width:var(--ap408-control)!important;padding:0!important;margin:0!important;border-radius:9px!important}
.ap408-entry-footer .ap334-entry-controls>small{font-size:11px;max-width:100%;overflow-wrap:anywhere}
.ap408-entry-footer [data-bars75-status]{grid-column:1/-1!important;grid-row:auto!important;margin:0!important}
.ap408-entry-footer [data-bars75-status]:empty{display:none!important}
.ap408-entry-footer>.ap408-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;width:100%;min-width:0;padding-top:6px;border-top:1px solid var(--line);box-sizing:border-box}
.ap408-tools>.ap386-bars-owner{margin:0!important;align-self:center;flex:0 1 auto;min-width:0;max-width:100%;gap:5px}
.ap408-tools:has(.ap386-bars-edit[open])>.ap386-bars-owner{flex:1 1 100%;width:100%;align-self:stretch}
.ap408-tools>.ap361-primary-actions{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:5px!important;margin:0 0 0 auto!important;width:auto!important;min-width:0;max-width:100%}
.ap408-entry-footer>.ap408-tools>.ap361-primary-actions>:is(a,button){box-sizing:border-box!important;flex:0 0 var(--ap408-control)!important;width:var(--ap408-control)!important;height:var(--ap408-control)!important;min-width:var(--ap408-control)!important;min-height:var(--ap408-control)!important;max-width:var(--ap408-control)!important;max-height:var(--ap408-control)!important;padding:0!important;margin:0!important}
/* The discussion has a scroll container: keep an open picker in-flow so its menu cannot be clipped. */
.ap408-entry-footer .ap334-entry-reactions:has(.bars36-picker[open])>.ap334-entry-controls{grid-column:1/-1!important;grid-row:2!important;justify-self:stretch;width:100%;flex-wrap:wrap}
.ap408-entry-footer .bars36-picker[open]{width:100%;display:flex;flex-direction:column;align-items:flex-end}
.ap408-entry-footer .bars36-picker[open]>summary{margin-left:auto!important}
.ap408-entry-footer .bars36-picker[open]>.bars36-menu{position:static!important;width:min(320px,100%)!important;max-width:100%!important;max-height:min(280px,45vh);margin:6px 0 0 auto!important;box-sizing:border-box}
@media(max-width:420px){.ap408-tools>.ap361-primary-actions{gap:4px!important}.ap408-entry-footer>.ap408-tools{gap:5px}}

/* Individual Bars only. Reserve a distinct top row for the share count. */
body :is(.ap408-entry-footer,.bars-paper-links) button.ap-share-icon.ap346-share > .ap346-count {
 top:2px!important;right:4px!important;font-size:10px!important;line-height:10px!important;
 max-width:calc(100% - 6px)!important;font-variant-numeric:tabular-nums;
}
body :is(.ap408-entry-footer,.bars-paper-links) button.ap-share-icon.ap346-share > .ap314-share-art {
 bottom:2px!important;left:50%!important;transform:translateX(-50%)!important;
 width:min(23px,calc(100% - 17px))!important;height:min(23px,calc(100% - 17px))!important;
 max-width:23px!important;object-fit:contain!important;
}
