/* P1N Community Engine v0.3.0 Alpha.8 — focused post toolbar.
   Keeps post controls to Reaction / Quote / More. No second staff row. */
.post-card .post-main{display:flex;flex-direction:column;min-width:0}
.post-card .post-main>.post-body{flex:1 0 auto}
.post-card .post-bottom.ce308-post-footer{
  display:block!important;flex:none;width:100%;min-width:0;
  margin-top:auto!important;padding:12px 0 0!important;
  overflow:visible;background:transparent;border-top:1px solid var(--line,#2c4c72)
}
.post-card .ce308-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:14px;row-gap:9px;min-width:0}
.post-card .ce308-reaction-group{display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0}
.post-card .ce308-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;flex-wrap:wrap;margin-left:auto;min-width:0}
.post-card .ce308-quote,.post-card .ce308-multiquote-button,.post-card .ce308-more-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;
  margin:0;padding:7px 12px;border:1px solid #345673;border-radius:9px;
  background:transparent;color:#c7ddf1;font-size:.77rem;line-height:1.2;font-weight:670;white-space:nowrap;
  transition:background-color .17s ease,border-color .17s ease,color .17s ease
}
.post-card .ce308-quote{background:#163554;border-color:#356284;color:#e5f5ff}
.post-card .ce308-multiquote-button{background:#122f4b;border-color:#437496;color:#d7eeff}
.post-card .ce308-quote:hover,.post-card .ce308-multiquote-button:hover,.post-card .ce308-more-trigger:hover{background:#1b4868;border-color:#40b2d7;color:#fff}
.post-card .ce308-quote:focus-visible,.post-card .ce308-multiquote-button:focus-visible,.post-card .ce308-more-trigger:focus-visible{outline:2px solid #50dafa;outline-offset:2px}
.post-card .ce308-primary-actions :is(.ce308-quote,.ce308-multiquote-button,.ce308-more-trigger) .ui-icon{width:15px;height:15px;flex:0 0 15px}
.post-card .ce308-multiquote-button[aria-pressed=true]{background:#154759;border-color:#30bacf;color:#effdff}
.post-card .ce308-more-trigger .ui-icon:last-child{width:12px;height:12px;flex-basis:12px;transition:transform .15s ease}
.post-card .ce308-more-trigger[aria-expanded=true]{background:#134763;border-color:#47c5e8;color:#edfdff}
.post-card .ce308-more-trigger[aria-expanded=true] .ui-icon:last-child{transform:rotate(180deg)}
.ce308-menu-host{position:relative;flex:none}
.ce308-floating-menu[hidden],.ce308-menu-backdrop[hidden]{display:none!important}
.ce308-floating-menu{
  position:fixed;z-index:1050;box-sizing:border-box;width:270px;min-width:0;
  max-width:calc(100vw - 24px);max-height:calc(100dvh - 95px);overflow:auto;
  overscroll-behavior:contain;border:1px solid #376787;border-radius:14px;
  background:#11253f;color:#e8f4ff;box-shadow:0 16px 42px rgba(0,6,21,.65),0 0 0 1px #76cded11;
  padding:7px;animation:ce308-open .16s cubic-bezier(.2,.75,.3,1) both
}
.ce308-menu-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 10px 11px;border-bottom:1px solid #2e4b67;margin-bottom:4px}
.ce308-menu-header strong{font-size:.81rem;color:#f1f9ff}
.ce308-menu-header small{font-size:.7rem;color:#9cbed9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ce308-menu-section{display:grid;gap:2px;min-width:0}
.ce308-menu-section>form{margin:0;display:block;min-width:0}
.ce308-menu-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid transparent;background:transparent;color:#dceafa;min-height:38px;border-radius:8px;padding:9px 11px;cursor:pointer;text-decoration:none;font-size:.8rem;font-weight:590;line-height:1.3}
.ce308-menu-item>.ui-icon{width:16px;height:16px;flex:0 0 16px;color:#96c9e5}
.ce308-menu-item>span{flex:1;min-width:0;overflow-wrap:anywhere}
.ce308-menu-item:hover,.ce308-menu-item:focus-visible{background:#1d4262;border-color:#3c779a;color:#fff;outline-offset:1px}
.ce308-menu-item.ce304-multiquote.is-selected{color:#7de9fb!important;background:#154759!important;border-color:#30bacf!important}
.ce308-section-title{display:flex;align-items:center;gap:7px;margin:8px 2px 4px;padding:10px 10px 5px;border-top:1px solid #2e506e;color:#8dd7f1;font-size:.7rem;letter-spacing:.055em;font-weight:780;text-transform:uppercase}
.ce308-section-title .ui-icon{height:14px;width:14px;flex:none}
.ce308-danger{color:#ffb7c5!important}
.ce308-danger>.ui-icon{color:#f298a9}
.ce308-danger:hover{background:#552f45!important;border-color:#98516b!important;color:#fff!important}
.ce308-menu-backdrop{position:fixed;inset:0;z-index:1049;background:transparent}
@keyframes ce308-open{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){
  .post-card .ce308-toolbar{gap:8px}
  .post-card .ce308-primary-actions{gap:6px}
  .post-card .ce308-quote,.post-card .ce308-multiquote-button,.post-card .ce308-more-trigger{min-height:33px;padding:7px 9px;font-size:.74rem}
}
@media(max-width:680px){
  .post-card .ce308-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
  .post-card .ce308-reaction-group{min-width:0}
  .post-card .ce308-primary-actions{justify-content:flex-start;margin-left:0;gap:6px}
}
@media(max-width:460px){
  .post-card .ce308-primary-actions{gap:5px}
  .post-card .ce308-primary-actions :is(.ce308-quote,.ce308-multiquote-button,.ce308-more-trigger){padding:7px 8px}
  .post-card .ce308-quote .ui-icon,.post-card .ce308-multiquote-button .ui-icon{display:none}
  .ce308-menu-backdrop{background:rgba(3,11,24,.62);backdrop-filter:blur(2px)}
  .ce308-floating-menu{left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;width:auto!important;max-width:none!important;max-height:min(75dvh,560px)!important;border-radius:15px;animation:ce308-sheet-in .18s ease both}
  .ce308-menu-header{padding:12px 12px 14px}
  .ce308-menu-item{min-height:44px;font-size:.85rem}
}
@keyframes ce308-sheet-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.ce308-floating-menu,.post-card .ce308-primary-actions :is(button,a),.post-card .ce308-primary-actions .ui-icon{animation:none!important;transition:none!important}}
