/* P1N Community Engine 0.2.3-alpha.7 — post-action overflow hotfix.
 * Keep the reaction control compact and prevent its summary or picker
 * from forcing Quote/Edit/Report into a new row at normal post widths.
 */
.post-card .post-main{container-type:inline-size}
.post-card .post-bottom{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:nowrap;gap:7px;min-width:0;
}
.post-card .post-bottom>.post-actions-inline{
  display:flex;align-items:center;flex-wrap:nowrap;gap:5px;min-width:0;
}
.post-card .post-bottom>.post-actions-inline:first-child{flex:0 0 auto}
.post-card .post-bottom>.post-actions-inline:last-child{
  margin-left:auto;justify-content:flex-end;flex:0 1 auto;
}
.post-card .post-bottom>.post-actions-inline:last-child>*{flex-shrink:0}
.post-card .post-bottom .btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:4px;min-height:30px;padding:5px 7px;
  font-size:11px;line-height:1.3;white-space:nowrap;
}
.post-card .post-bottom .btn .ui-icon{flex:none;width:12px;height:12px}
.post-card .post-bottom form{margin:0}
/* The reaction widget itself must never break into extra lines. */
.post-card .ce236-reactions{
  display:inline-flex;flex-wrap:nowrap;align-items:center;
  flex:0 0 auto;white-space:nowrap;max-width:none;
}
.post-card .ce236-reactions .ce234-react-primary{
  min-width:72px;max-width:128px;height:32px;min-height:32px;
  padding:4px 9px;gap:5px;font-size:11px;
}
.post-card .ce236-reactions .ce234-react-primary [data-ce-react-current-icon]{font-size:16px}
.post-card .ce236-reactions .ce234-picker-trigger{
  min-width:27px;width:27px;height:32px;min-height:32px;
  padding:0 3px;font-size:18px;
}
/* Counter is a single small action; the member list remains a click away.
   Accessible name and title explain its purpose for all device sizes. */
.post-card .ce236-reactions .ce234-react-summary{
  height:32px;min-height:32px;margin-left:5px;padding:3px 5px;
  gap:4px;flex-shrink:0;
}
.post-card .ce236-reactions .ce234-react-summary strong{font-size:12px}
.post-card .ce236-reactions .ce236-summary-icon{font-size:13px}
.post-card .ce236-reactions .ce234-see-members,
.post-card .ce236-reactions .ce234-react-summary .ui-icon{display:none}
/* Picker is an overlay and must not contribute to post measurements. */
.post-card .ce236-reactions .ce234-picker{
  position:absolute;width:max-content;max-width:calc(100vw - 16px);
  margin:0;box-sizing:border-box;
}
/* At reduced card widths, keep the reaction row compact and put the
   secondary tools on a deliberate, aligned row (never clip/scroll sideways). */
@container (max-width: 490px){
  .post-card .post-bottom{flex-wrap:wrap;row-gap:7px}
  .post-card .post-bottom>.post-actions-inline:first-child{width:auto}
  .post-card .post-bottom>.post-actions-inline:last-child{
    flex:1 1 100%;width:100%;margin-left:0;
    justify-content:flex-start;flex-wrap:wrap;gap:5px;
  }
}
@container (max-width: 350px){
  .post-card .post-bottom .btn{padding:5px 6px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .post-card .post-bottom .btn{transition:none}
}
