/* Shared single-photo attachment control for dashboard/market/news compose forms. */
.community-compose .community-attachment-control{
 margin-top:9px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;
}
.community-compose .community-attachment-control .community-attach-button,
.community-compose .community-attachment-control .community-attach-remove{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;min-height:36px;padding:6px 12px;cursor:pointer;
 border:1px solid var(--sg-border-39586a,#39586a);border-radius:8px;
 background:var(--sg-bg-14394a,#14394a);color:var(--sg-text-e5f2f6,#e5f2f6);
 font-size:12px;line-height:1.3;font-weight:700;
 grid-column:auto;grid-row:auto;
}
.community-compose .community-attachment-control .community-attach-button:hover,
.community-compose .community-attachment-control .community-attach-remove:hover{border-color:var(--mint,#49e4cd)}
.community-compose .community-attachment-control .community-attach-hint{font-size:11px;color:var(--sub,#92a9ba)}
.community-compose .community-attachment-control .community-attach-preview{
 flex-basis:100%;min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.community-compose .community-attachment-control .community-attach-preview[hidden]{display:none!important}
.community-compose .community-attachment-control .community-attach-preview img{
 max-width:min(100%,180px);max-height:140px;object-fit:contain;border-radius:8px;
}
.community-compose .community-attachment-control input[type=file][hidden]{display:none!important}
.stockgap-compose-dialog .community-compose .community-attachment-control{margin-top:10px}
