.feed-center,
#feed-list{
  overflow:visible;
}

.post-card{
  position:relative;
  overflow:visible;
}

.post-card.has-open-options{
  z-index:320;
}

.post-report-menu{
  z-index:340;
}

.post-report-menu[open]{
  z-index:360;
}

.post-report-menu>.post-options-panel{
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  z-index:380;
  width:min(330px,calc(100vw - 30px));
  display:grid;
  gap:10px;
  padding:13px;
  background:#fff;
  border:1px solid var(--ui-border);
  border-radius:13px;
  box-shadow:0 18px 46px rgba(18,35,66,.19);
}

.post-options-heading{
  display:grid;
  gap:2px;
  padding-bottom:8px;
  border-bottom:1px solid var(--ui-border);
}

.post-options-heading strong{
  color:var(--ui-text);
  font-size:13px;
}

.post-options-heading small{
  color:var(--ui-muted);
  font-size:11px;
}

.post-type-quick-form{
  display:grid;
  gap:6px;
}

.post-type-quick-form>label{
  color:var(--ui-text-2);
  font-size:11px;
  font-weight:700;
}

.post-type-quick-form>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
}

.post-type-quick-form .form-select{
  min-height:36px;
  font-size:12px;
}

.post-type-quick-form .btn{
  min-height:36px;
}

.post-option-action{
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  padding:0 10px;
  color:var(--ui-text);
  background:#f7f9fc;
  border:1px solid transparent;
  border-radius:9px;
  font-size:12px;
  font-weight:700;
}

.post-option-action:hover{
  color:var(--ui-primary);
  background:var(--ui-soft-blue);
  border-color:#dce7f7;
}

.post-option-action.is-danger{
  color:#b42318;
  background:#fff6f5;
}

.post-option-action.is-danger:hover{
  color:#8f1710;
  background:#ffebe8;
  border-color:#ffd5cf;
}

.post-option-action .icon{
  width:17px;
  height:17px;
}

.post-report-form{
  display:grid;
  gap:8px;
}

.post-report-form label{
  display:grid;
  gap:4px;
  color:var(--ui-text-2);
  font-size:11px;
  font-weight:700;
}

.post-report-form select,
.post-report-form textarea{
  width:100%;
  padding:7px 8px;
  border:1px solid var(--ui-border-strong);
  border-radius:8px;
  font-size:12px;
}

.post-edit-modal{
  z-index:1800;
}

.post-edit-modal .modal-dialog{
  max-width:720px;
}

.post-edit-modal .modal-content{
  overflow:hidden;
  border:0;
  border-radius:17px;
  box-shadow:0 28px 80px rgba(17,31,55,.22);
}

.post-edit-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 15px;
  border-bottom:1px solid var(--ui-border);
}

.post-edit-header h2{
  margin:3px 0 4px;
  font-size:21px;
  font-weight:800;
}

.post-edit-header p{
  margin:0;
  color:var(--ui-muted);
  font-size:12px;
}

.post-edit-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
  padding:18px 22px 22px;
}

.post-edit-form .full-span{
  grid-column:1/-1;
}

.post-current-media{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:9px 11px;
  background:#f7f9fc;
  border:1px solid var(--ui-border);
  border-radius:10px;
  font-size:12px;
}

.post-current-media span{
  color:var(--ui-muted);
}

.post-current-media a{
  margin-left:auto;
  color:var(--ui-primary);
  font-weight:700;
}

.post-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:4px;
}

.post-video-external{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:3;
  padding:6px 9px;
  color:#fff;
  background:rgba(0,0,0,.68);
  border-radius:8px;
  font-size:10px;
  font-weight:700;
  backdrop-filter:blur(5px);
}

.post-video-external:hover{
  color:#fff;
  background:rgba(0,0,0,.84);
}

.alert.is-auto-closing{
  opacity:0;
  transform:translateY(-6px);
  transition:opacity .22s ease,transform .22s ease;
}

@media(max-width:720px){
  .post-report-menu>.post-options-panel{
    position:fixed;
    right:10px;
    bottom:76px;
    left:10px;
    width:auto;
    max-height:calc(100vh - 110px);
    overflow:auto;
  }

  .post-edit-form{
    grid-template-columns:1fr;
    padding:15px;
  }

  .post-edit-form .full-span{
    grid-column:auto;
  }

  .post-edit-header{
    padding:16px 15px 12px;
  }
}
